diff --git a/README.md b/README.md index 41824d19..04d7ebfa 100644 --- a/README.md +++ b/README.md @@ -44,18 +44,12 @@ Instantiate and use the client with the following: ```python from merge import Merge -from merge.resources.chat import DataPassthroughRequest, MethodEnum client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) +client.filestorage.account_token.regenerate_create() ``` ## Instantiation @@ -89,7 +83,6 @@ The SDK also exports an `async` client so that you can make non-blocking calls t import asyncio from merge import AsyncMerge -from merge.resources.chat import DataPassthroughRequest, MethodEnum client = AsyncMerge( account_token="YOUR_ACCOUNT_TOKEN", @@ -98,12 +91,7 @@ client = AsyncMerge( async def main() -> None: - await client.chat.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) + await client.filestorage.account_token.regenerate_create() asyncio.run(main()) @@ -118,7 +106,7 @@ will be thrown. from merge.core.api_error import ApiError try: - client.chat.async_passthrough.create(...) + client.filestorage.account_token.regenerate_create(...) except ApiError as e: print(e.status_code) print(e.body) @@ -137,9 +125,19 @@ from merge import Merge client = Merge( ..., ) -response = client.chat.async_passthrough.with_raw_response.create(...) +response = client.filestorage.account_token.with_raw_response.regenerate_create( + ... +) print(response.headers) # access the response headers print(response.data) # access the underlying object +pager = client.filestorage.audit_trail.list(...) +print(pager.response.headers) # access the response headers for the first page +for item in pager: + print(item) # access the underlying object(s) +for page in pager.iter_pages(): + print(page.response.headers) # access the response headers for each page + for item in page: + print(item) # access the underlying object(s) ``` ### Retries @@ -157,7 +155,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret Use the `max_retries` request option to configure this behavior. ```python -client.chat.async_passthrough.create(..., request_options={ +client.filestorage.account_token.regenerate_create(..., request_options={ "max_retries": 1 }) ``` @@ -177,7 +175,7 @@ client = Merge( # Override timeout for a specific method -client.chat.async_passthrough.create(..., request_options={ +client.filestorage.account_token.regenerate_create(..., request_options={ "timeout_in_seconds": 1 }) ``` @@ -233,35 +231,27 @@ with open(local_filename, "wb") as f: ## Pagination -The SDK may return paginated results. Endpoints that return paginated results will -include a `next` and `prev` property on the response. To get the next page, you can -pass in the value of `next` to the cursor property on the request. Similarly, to -get the previous page, you can pass in the value of `prev` to the cursor property on -the request. +Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object. -Below is an example of iterating over all pages: ```python +from merge import Merge -# response contains the first page -response = merge_client.hris.employees.list(created_after="2030-01-01") - -# if there is a next page, load it by passing `next` to the cursor argument -while response.next is not None: - response = hris_client.employees.list( - cursor=response.next, - created_after="2030-01-01") +client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +response = client.filestorage.audit_trail.list( + cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + end_date="end_date", + event_type="event_type", + page_size=1, + start_date="start_date", + user_email="user_email", +) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ``` - - - - - - - - - - - - - diff --git a/poetry.lock b/poetry.lock index 5092d3a1..3bdd3b92 100644 --- a/poetry.lock +++ b/poetry.lock @@ -38,13 +38,13 @@ trio = ["trio (>=0.26.1)"] [[package]] name = "certifi" -version = "2026.2.25" +version = "2026.4.22" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.7" files = [ - {file = "certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa"}, - {file = "certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7"}, + {file = "certifi-2026.4.22-py3-none-any.whl", hash = "sha256:3cb2210c8f88ba2318d29b0388d1023c8492ff72ecdde4ebdaddbb13a31b1c4a"}, + {file = "certifi-2026.4.22.tar.gz", hash = "sha256:8d455352a37b71bf76a79caa83a3d6c25afee4a385d632127b6afb3963f1c580"}, ] [[package]] @@ -133,17 +133,17 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "idna" -version = "3.11" +version = "3.13" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.8" files = [ - {file = "idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea"}, - {file = "idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"}, + {file = "idna-3.13-py3-none-any.whl", hash = "sha256:892ea0cde124a99ce773decba204c5552b69c3c67ffd5f232eb7696135bc8bb3"}, + {file = "idna-3.13.tar.gz", hash = "sha256:585ea8fe5d69b9181ec1afba340451fba6ba764af97026f92a91d4eef164a242"}, ] [package.extras] -all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] +all = ["mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] [[package]] name = "iniconfig" @@ -222,13 +222,13 @@ files = [ [[package]] name = "packaging" -version = "26.0" +version = "26.1" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529"}, - {file = "packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4"}, + {file = "packaging-26.1-py3-none-any.whl", hash = "sha256:5d9c0669c6285e491e0ced2eee587eaf67b670d94a19e94e3984a481aba6802f"}, + {file = "packaging-26.1.tar.gz", hash = "sha256:f042152b681c4bfac5cae2742a55e103d27ab2ec0f3d88037136b6bfe7c9c5de"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index ad028ac0..4f9b62a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "MergePythonClient" [tool.poetry] name = "MergePythonClient" -version = "2.6.3" +version = "3.0.0" description = "" readme = "README.md" authors = [] diff --git a/reference.md b/reference.md index 0f023f71..388af165 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference -## Chat AccountDetails -
client.chat.account_details.retrieve() +## Filestorage AccountDetails +
client.filestorage.account_details.retrieve()
@@ -33,7 +33,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.account_details.retrieve() +client.filestorage.account_details.retrieve() ```
@@ -61,8 +61,8 @@ client.chat.account_details.retrieve()
-## Chat AccountToken -
client.chat.account_token.retrieve(...) +## Filestorage AccountToken +
client.filestorage.account_token.retrieve(...)
@@ -95,7 +95,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.account_token.retrieve( +client.filestorage.account_token.retrieve( public_token="public_token", ) @@ -133,8 +133,69 @@ client.chat.account_token.retrieve(
-## Chat AsyncPassthrough -
client.chat.async_passthrough.create(...) +
client.filestorage.account_token.regenerate_create() +
+
+ +#### πŸ“ Description + +
+
+ +
+
+ +Exchange Linked Account account tokens. +
+
+
+
+ +#### πŸ”Œ Usage + +
+
+ +
+
+ +```python +from merge import Merge + +client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.account_token.regenerate_create() + +``` +
+
+
+
+ +#### βš™οΈ Parameters + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +## Filestorage AsyncPassthrough +
client.filestorage.async_passthrough.create(...)
@@ -162,13 +223,13 @@ Asynchronously pull data from an endpoint not currently supported by Merge. ```python from merge import Merge -from merge.resources.chat import DataPassthroughRequest, MethodEnum +from merge.resources.filestorage import DataPassthroughRequest, MethodEnum client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.async_passthrough.create( +client.filestorage.async_passthrough.create( request=DataPassthroughRequest( method=MethodEnum.GET, path="/scooters", @@ -209,7 +270,7 @@ client.chat.async_passthrough.create(
-
client.chat.async_passthrough.retrieve(...) +
client.filestorage.async_passthrough.retrieve(...)
@@ -242,7 +303,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.async_passthrough.retrieve( +client.filestorage.async_passthrough.retrieve( async_passthrough_receipt_id="async_passthrough_receipt_id", ) @@ -280,8 +341,8 @@ client.chat.async_passthrough.retrieve(
-## Chat AuditTrail -
client.chat.audit_trail.list(...) +## Filestorage AuditTrail +
client.filestorage.audit_trail.list(...)
@@ -314,7 +375,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.audit_trail.list( +response = client.filestorage.audit_trail.list( cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", end_date="end_date", event_type="event_type", @@ -322,6 +383,11 @@ client.chat.audit_trail.list( start_date="start_date", user_email="user_email", ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -397,8 +463,8 @@ client.chat.audit_trail.list(
-## Chat AvailableActions -
client.chat.available_actions.retrieve() +## Filestorage AvailableActions +
client.filestorage.available_actions.retrieve()
@@ -431,7 +497,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.available_actions.retrieve() +client.filestorage.available_actions.retrieve() ```
@@ -459,8 +525,8 @@ client.chat.available_actions.retrieve()
-## Chat Conversations -
client.chat.conversations.list(...) +## Filestorage Scopes +
client.filestorage.scopes.default_scopes_retrieve()
@@ -472,7 +538,7 @@ client.chat.available_actions.retrieve()
-Returns a list of `Conversation` objects. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -487,34 +553,13 @@ Returns a list of `Conversation` objects.
```python -import datetime - from merge import Merge client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.conversations.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) +client.filestorage.scopes.default_scopes_retrieve() ```
@@ -530,91 +575,64 @@ client.chat.conversations.list(
-**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. -
-
-
-**cursor:** `typing.Optional[str]` β€” The pagination cursor value. -
+
+
client.filestorage.scopes.linked_account_scopes_retrieve()
-**expand:** `typing.Optional[typing.Literal["members"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
+#### πŸ“ Description
-**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
-
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). -
+#### πŸ”Œ Usage +
-**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
-
-**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
+```python +from merge import Merge -
-
+client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.scopes.linked_account_scopes_retrieve() -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - +``` +
+
+#### βš™οΈ Parameters +
-**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
-
@@ -630,7 +648,7 @@ client.chat.conversations.list(
-
client.chat.conversations.members_list(...) +
client.filestorage.scopes.linked_account_scopes_create(...)
@@ -642,7 +660,7 @@ client.chat.conversations.list(
-Returns a list of `Member` objects. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -658,22 +676,42 @@ Returns a list of `Member` objects. ```python from merge import Merge -from merge.resources.chat.resources.conversations import ( - ConversationsMembersListRequestExpand, +from merge.resources.filestorage import ( + FieldPermissionDeserializerRequest, + IndividualCommonModelScopeDeserializerRequest, + ModelPermissionDeserializerRequest, ) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.conversations.members_list( - conversation_id="conversation_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ConversationsMembersListRequestExpand.GROUP, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, +client.filestorage.scopes.linked_account_scopes_create( + common_models=[ + IndividualCommonModelScopeDeserializerRequest( + model_name="Employee", + model_permissions={ + "READ": ModelPermissionDeserializerRequest( + is_enabled=True, + ), + "WRITE": ModelPermissionDeserializerRequest( + is_enabled=False, + ), + }, + field_permissions=FieldPermissionDeserializerRequest( + enabled_fields=["avatar", "home_location"], + disabled_fields=["work_location"], + ), + ), + IndividualCommonModelScopeDeserializerRequest( + model_name="Benefit", + model_permissions={ + "WRITE": ModelPermissionDeserializerRequest( + is_enabled=False, + ) + }, + ), + ], ) ``` @@ -690,7 +728,7 @@ client.chat.conversations.members_list(
-**conversation_id:** `str` +**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for
@@ -698,50 +736,64 @@ client.chat.conversations.members_list(
-**cursor:** `typing.Optional[str]` β€” The pagination cursor value. +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
+ +
-
-
-**expand:** `typing.Optional[ConversationsMembersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. -
+
+## Filestorage DeleteAccount +
client.filestorage.delete_account.delete()
-**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
+#### πŸ“ Description
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
-
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - +Delete a linked account. +
+
+#### πŸ”Œ Usage +
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - +
+
+ +```python +from merge import Merge + +client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.delete_account.delete() + +```
+
+
+ +#### βš™οΈ Parameters + +
+
@@ -758,7 +810,8 @@ client.chat.conversations.members_list(
-
client.chat.conversations.retrieve(...) +## Filestorage Drives +
client.filestorage.drives.list(...)
@@ -770,7 +823,7 @@ client.chat.conversations.members_list(
-Returns a `Conversation` object with the given `id`. +Returns a list of `Drive` objects.
@@ -785,17 +838,40 @@ Returns a `Conversation` object with the given `id`.
```python +import datetime + from merge import Merge client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.conversations.retrieve( - id="id", +response = client.filestorage.drives.list( + created_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + created_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + include_deleted_data=True, include_remote_data=True, include_shell_data=True, + modified_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + modified_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + name="name", + page_size=1, + remote_id="remote_id", ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -811,7 +887,7 @@ client.chat.conversations.retrieve(
-**id:** `str` +**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime.
@@ -819,7 +895,7 @@ client.chat.conversations.retrieve(
-**expand:** `typing.Optional[typing.Literal["members"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. +**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime.
@@ -827,7 +903,7 @@ client.chat.conversations.retrieve(
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. +**cursor:** `typing.Optional[str]` β€” The pagination cursor value.
@@ -835,7 +911,7 @@ client.chat.conversations.retrieve(
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
@@ -843,126 +919,59 @@ client.chat.conversations.retrieve(
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models.
- -
- - - - -
- -## Chat Scopes -
client.chat.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
+**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +
-#### πŸ”Œ Usage - -
-
-
-```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.scopes.default_scopes_retrieve() - -``` -
-
+**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. +
-#### βš™οΈ Parameters - -
-
-
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned.
-
-
- - -
-
-
-
client.chat.scopes.linked_account_scopes_retrieve()
-#### πŸ“ Description - -
-
+**name:** `typing.Optional[str]` β€” If provided, will only return drives with this name. This performs an exact match. + +
+
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
+**page_size:** `typing.Optional[int]` β€” Number of results to return per page. +
-#### πŸ”Œ Usage - -
-
-
-```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.scopes.linked_account_scopes_retrieve() - -``` -
-
+**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. +
-#### βš™οΈ Parameters - -
-
-
@@ -978,7 +987,7 @@ client.chat.scopes.linked_account_scopes_retrieve()
-
client.chat.scopes.linked_account_scopes_create(...) +
client.filestorage.drives.retrieve(...)
@@ -990,7 +999,7 @@ client.chat.scopes.linked_account_scopes_retrieve()
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns a `Drive` object with the given `id`.
@@ -1006,42 +1015,15 @@ Update permissions for any Common Model or field for a single Linked Account. An ```python from merge import Merge -from merge.resources.chat import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], +client.filestorage.drives.retrieve( + id="id", + include_remote_data=True, + include_shell_data=True, ) ``` @@ -1058,7 +1040,7 @@ client.chat.scopes.linked_account_scopes_create(
-**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for +**id:** `str`
@@ -1066,65 +1048,19 @@ client.chat.scopes.linked_account_scopes_create(
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models.
- -
- - - - -
- -## Chat DeleteAccount -
client.chat.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
-```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.delete_account.delete() - -``` -
-
+**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +
-#### βš™οΈ Parameters - -
-
-
@@ -1140,8 +1076,8 @@ client.chat.delete_account.delete()
-## Chat FieldMapping -
client.chat.field_mapping.field_mappings_retrieve(...) +## Filestorage FieldMapping +
client.filestorage.field_mapping.field_mappings_retrieve(...)
@@ -1174,7 +1110,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.field_mapping.field_mappings_retrieve( +client.filestorage.field_mapping.field_mappings_retrieve( exclude_remote_field_metadata=True, ) @@ -1212,7 +1148,7 @@ client.chat.field_mapping.field_mappings_retrieve(
-
client.chat.field_mapping.field_mappings_create(...) +
client.filestorage.field_mapping.field_mappings_create(...)
@@ -1245,8 +1181,9 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.field_mapping.field_mappings_create( +client.filestorage.field_mapping.field_mappings_create( exclude_remote_field_metadata=True, + remote_data_iteration_count=1, target_field_name="example_target_field_name", target_field_description="this is a example description of the target field", remote_field_traversal_path=["example_remote_field"], @@ -1325,6 +1262,14 @@ client.chat.field_mapping.field_mappings_create(
+**remote_data_iteration_count:** `typing.Optional[int]` β€” Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + +
+
+ +
+
+ **jmes_path:** `typing.Optional[str]` β€” JMES path to specify json query expression to be used on field mapping.
@@ -1345,7 +1290,7 @@ client.chat.field_mapping.field_mappings_create(
-
client.chat.field_mapping.field_mappings_destroy(...) +
client.filestorage.field_mapping.field_mappings_destroy(...)
@@ -1378,7 +1323,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.field_mapping.field_mappings_destroy( +client.filestorage.field_mapping.field_mappings_destroy( field_mapping_id="field_mapping_id", ) @@ -1416,7 +1361,7 @@ client.chat.field_mapping.field_mappings_destroy(
-
client.chat.field_mapping.field_mappings_partial_update(...) +
client.filestorage.field_mapping.field_mappings_partial_update(...)
@@ -1449,8 +1394,9 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.field_mapping.field_mappings_partial_update( +client.filestorage.field_mapping.field_mappings_partial_update( field_mapping_id="field_mapping_id", + remote_data_iteration_count=1, ) ``` @@ -1475,6 +1421,14 @@ client.chat.field_mapping.field_mappings_partial_update(
+**remote_data_iteration_count:** `typing.Optional[int]` β€” Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + +
+
+ +
+
+ **remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.
@@ -1519,7 +1473,7 @@ client.chat.field_mapping.field_mappings_partial_update(
-
client.chat.field_mapping.remote_fields_retrieve(...) +
client.filestorage.field_mapping.remote_fields_retrieve(...)
@@ -1552,7 +1506,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.field_mapping.remote_fields_retrieve( +client.filestorage.field_mapping.remote_fields_retrieve( common_models="common_models", include_example_values="include_example_values", ) @@ -1599,7 +1553,7 @@ client.chat.field_mapping.remote_fields_retrieve(
-
client.chat.field_mapping.target_fields_retrieve() +
client.filestorage.field_mapping.target_fields_retrieve()
@@ -1632,7 +1586,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.field_mapping.target_fields_retrieve() +client.filestorage.field_mapping.target_fields_retrieve() ```
@@ -1660,8 +1614,8 @@ client.chat.field_mapping.target_fields_retrieve()
-## Chat GenerateKey -
client.chat.generate_key.create(...) +## Filestorage Files +
client.filestorage.files.list(...)
@@ -1673,7 +1627,7 @@ client.chat.field_mapping.target_fields_retrieve()
-Create a remote key. +Returns a list of `File` objects.
@@ -1688,87 +1642,16 @@ Create a remote key.
```python +import datetime + from merge import Merge +from merge.resources.filestorage.resources.files import FilesListRequestOrderBy client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
- - - -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - - - -
- -## Chat Groups -
client.chat.groups.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Group` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.groups.list( +response = client.filestorage.files.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -1776,18 +1659,34 @@ client.chat.groups.list( "2024-01-15 09:30:00+00:00", ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + drive_id="drive_id", + folder_id="folder_id", include_deleted_data=True, include_remote_data=True, include_shell_data=True, + mime_type="mime_type", modified_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), modified_before=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), + name="name", + order_by=FilesListRequestOrderBy.CREATED_AT_DESCENDING, page_size=1, + remote_created_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + remote_created_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), remote_id="remote_id", ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -1827,7 +1726,7 @@ client.chat.groups.list(
-**expand:** `typing.Optional[typing.Literal["users"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. +**drive_id:** `typing.Optional[str]` β€” Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive.
@@ -1835,7 +1734,11 @@ client.chat.groups.list(
-**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). +**expand:** `typing.Optional[ + typing.Union[ + FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem] + ] +]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
@@ -1843,7 +1746,7 @@ client.chat.groups.list(
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. +**folder_id:** `typing.Optional[str]` β€” Specifying a folder id returns only the files in that folder. Specifying null returns only the files in root directory.
@@ -1851,7 +1754,7 @@ client.chat.groups.list(
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
@@ -1859,7 +1762,7 @@ client.chat.groups.list(
-**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -1867,7 +1770,7 @@ client.chat.groups.list(
-**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. +**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
@@ -1875,7 +1778,7 @@ client.chat.groups.list(
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. +**mime_type:** `typing.Optional[str]` β€” If provided, will only return files with these mime_types. Multiple values can be separated by commas.
@@ -1883,7 +1786,7 @@ client.chat.groups.list(
-**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. +**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned.
@@ -1891,72 +1794,31 @@ client.chat.groups.list(
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned.
-
-
- - -
-
-
- -
client.chat.groups.retrieve(...) -
-
- -#### πŸ“ Description - -
-
-Returns a `Group` object with the given `id`. -
-
+**name:** `typing.Optional[str]` β€” If provided, will only return files with this name. This performs an exact match. +
-#### πŸ”Œ Usage -
-
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
+**order_by:** `typing.Optional[FilesListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. +
-#### βš™οΈ Parameters - -
-
-
-**id:** `str` +**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100.
@@ -1964,7 +1826,7 @@ client.chat.groups.retrieve(
-**expand:** `typing.Optional[typing.Literal["users"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. +**remote_created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return files created in the third party platform after this datetime.
@@ -1972,7 +1834,7 @@ client.chat.groups.retrieve(
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. +**remote_created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return files created in the third party platform before this datetime.
@@ -1980,7 +1842,7 @@ client.chat.groups.retrieve(
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object.
@@ -2000,8 +1862,7 @@ client.chat.groups.retrieve(
-## Chat Issues -
client.chat.issues.list(...) +
client.filestorage.files.create(...)
@@ -2013,7 +1874,7 @@ client.chat.groups.retrieve(
-Gets all issues for Organization. +Creates a `File` object with the given values.
@@ -2028,38 +1889,17 @@ Gets all issues for Organization.
```python -import datetime - from merge import Merge -from merge.resources.chat.resources.issues import IssuesListRequestStatus +from merge.resources.filestorage import FileRequest client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, +client.filestorage.files.create( + is_debug_mode=True, + run_async=True, + model=FileRequest(), ) ``` @@ -2076,7 +1916,7 @@ client.chat.issues.list(
-**account_token:** `typing.Optional[str]` +**model:** `FileRequest`
@@ -2084,7 +1924,7 @@ client.chat.issues.list(
-**cursor:** `typing.Optional[str]` β€” The pagination cursor value. +**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response.
@@ -2092,7 +1932,7 @@ client.chat.issues.list(
-**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time +**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously.
@@ -2100,63 +1940,72 @@ client.chat.issues.list(
-**end_user_organization_name:** `typing.Optional[str]` +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
+
+
-
-
-**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. -
+
+
client.filestorage.files.retrieve(...)
-**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
+#### πŸ“ Description
-**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
-
-**integration_name:** `typing.Optional[str]` - +Returns a `File` object with the given `id`. +
+
+#### πŸ”Œ Usage +
-**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
-
-**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - +```python +from merge import Merge + +client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.files.retrieve( + id="id", + include_remote_data=True, + include_shell_data=True, +) + +``` +
+
+#### βš™οΈ Parameters +
-**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. +
+
+ +**id:** `str`
@@ -2164,7 +2013,12 @@ client.chat.issues.list(
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. +**expand:** `typing.Optional[ + typing.Union[ + FilesRetrieveRequestExpandItem, + typing.Sequence[FilesRetrieveRequestExpandItem], + ] +]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
@@ -2172,7 +2026,7 @@ client.chat.issues.list(
-**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -2180,12 +2034,7 @@ client.chat.issues.list(
-**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED +**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
@@ -2205,7 +2054,7 @@ Status of the issue. Options: ('ONGOING', 'RESOLVED')
-
client.chat.issues.retrieve(...) +
client.filestorage.files.download_request_meta_retrieve(...)
@@ -2217,7 +2066,7 @@ Status of the issue. Options: ('ONGOING', 'RESOLVED')
-Get a specific issue. +Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our direct file download help center article.
@@ -2238,8 +2087,9 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.issues.retrieve( +client.filestorage.files.download_request_meta_retrieve( id="id", + mime_type="mime_type", ) ``` @@ -2264,6 +2114,14 @@ client.chat.issues.retrieve(
+**mime_type:** `typing.Optional[str]` β€” If provided, specifies the export format of the file to be downloaded. + +
+
+ +
+
+ **request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
@@ -2276,8 +2134,7 @@ client.chat.issues.retrieve(
-## Chat LinkToken -
client.chat.link_token.create(...) +
client.filestorage.files.download_request_meta_list(...)
@@ -2289,7 +2146,7 @@ client.chat.issues.retrieve(
-Creates a link token to be used when linking a new end user. The link token expires after single use. +Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party.
@@ -2305,18 +2162,30 @@ Creates a link token to be used when linking a new end user. The link token expi ```python from merge import Merge -from merge.resources.chat import CategoriesEnum +from merge.resources.filestorage.resources.files import ( + FilesDownloadRequestMetaListRequestOrderBy, +) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], +response = client.filestorage.files.download_request_meta_list( + created_after="created_after", + created_before="created_before", + cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + include_deleted_data=True, + mime_types="mime_types", + modified_after="modified_after", + modified_before="modified_before", + order_by=FilesDownloadRequestMetaListRequestOrderBy.CREATED_AT_DESCENDING, + page_size=1, ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ``` @@ -2332,7 +2201,7 @@ client.chat.link_token.create(
-**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. +**created_after:** `typing.Optional[str]` β€” If provided, will only return objects created after this datetime.
@@ -2340,7 +2209,7 @@ client.chat.link_token.create(
-**end_user_organization_name:** `str` β€” Your end user's organization. +**created_before:** `typing.Optional[str]` β€” If provided, will only return objects created before this datetime.
@@ -2348,7 +2217,7 @@ client.chat.link_token.create(
-**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. +**cursor:** `typing.Optional[str]` β€” The pagination cursor value.
@@ -2356,7 +2225,7 @@ client.chat.link_token.create(
-**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. +**ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` β€” If provided, will only return objects with the given IDs. Comma-separated list of strings.
@@ -2364,7 +2233,7 @@ client.chat.link_token.create(
-**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. +**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
@@ -2372,7 +2241,7 @@ client.chat.link_token.create(
-**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. +**mime_types:** `typing.Optional[str]` β€” A comma-separated list of preferred MIME types in order of priority. If supported by the third-party provider, the file(s) will be returned in the first supported MIME type from the list. The default MIME type is PDF. To see supported MIME types by file type, refer to our export format help center article.
@@ -2380,7 +2249,7 @@ client.chat.link_token.create(
-**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. +**modified_after:** `typing.Optional[str]` β€” If provided, will only return objects modified after this datetime.
@@ -2388,7 +2257,7 @@ client.chat.link_token.create(
-**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. +**modified_before:** `typing.Optional[str]` β€” If provided, will only return objects modified before this datetime.
@@ -2396,7 +2265,7 @@ client.chat.link_token.create(
-**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. +**order_by:** `typing.Optional[FilesDownloadRequestMetaListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at.
@@ -2404,14 +2273,7 @@ client.chat.link_token.create(
-**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. +**page_size:** `typing.Optional[int]` β€” Number of results to return per page.
@@ -2419,44 +2281,64 @@ client.chat.link_token.create(
-**language:** `typing.Optional[EndUserDetailsRequestLanguage]` +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. + +
+
+ +
-The following subset of IETF language tags can be used to configure localization. -* `en` - en -* `de` - de - +
+
client.filestorage.files.meta_post_retrieve()
-**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
+#### πŸ“ Description
-**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - +
+
+ +Returns metadata for `FileStorageFile` POSTs. +
+
+#### πŸ”Œ Usage +
-**completed_account_initial_screen:** `typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen]` +
+
-When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. +```python +from merge import Merge -* `SELECTIVE_SYNC` - SELECTIVE_SYNC - +client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.files.meta_post_retrieve() + +``` +
+
+#### βš™οΈ Parameters + +
+
+
@@ -2472,8 +2354,8 @@ When creating a Link token, you can specifiy the initial screen of Linking Flow
-## Chat LinkedAccounts -
client.chat.linked_accounts.list(...) +## Filestorage Folders +
client.filestorage.folders.list(...)
@@ -2485,7 +2367,7 @@ When creating a Link token, you can specifiy the initial screen of Linking Flow
-List linked accounts for your organization. +Returns a list of `Folder` objects.
@@ -2500,30 +2382,42 @@ List linked accounts for your organization.
```python +import datetime + from merge import Merge -from merge.resources.chat.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, +response = client.filestorage.folders.list( + created_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + created_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", + drive_id="drive_id", + include_deleted_data=True, + include_remote_data=True, + include_shell_data=True, + modified_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + modified_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + name="name", page_size=1, - status="status", + parent_folder_id="parent_folder_id", + remote_id="remote_id", ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -2539,19 +2433,15 @@ client.chat.linked_accounts.list(
-**category:** `typing.Optional[LinkedAccountsListRequestCategory]` +**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. + +
+
-Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` +
+
-* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage -* `knowledgebase` - knowledgebase -* `chat` - chat +**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime.
@@ -2567,7 +2457,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. +**drive_id:** `typing.Optional[str]` β€” If provided, will only return folders in this drive.
@@ -2575,7 +2465,12 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. +**expand:** `typing.Optional[ + typing.Union[ + FoldersListRequestExpandItem, + typing.Sequence[FoldersListRequestExpandItem], + ] +]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
@@ -2583,7 +2478,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. +**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
@@ -2591,7 +2486,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -2599,7 +2494,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**id:** `typing.Optional[str]` +**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
@@ -2607,7 +2502,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. +**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned.
@@ -2615,7 +2510,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. +**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned.
@@ -2623,7 +2518,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. +**name:** `typing.Optional[str]` β€” If provided, will only return folders with this name. This performs an exact match.
@@ -2631,7 +2526,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. +**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100.
@@ -2639,7 +2534,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. +**parent_folder_id:** `typing.Optional[str]` β€” If provided, will only return folders in this parent folder. If null, will return folders in root directory.
@@ -2647,7 +2542,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` +**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object.
@@ -2667,8 +2562,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-## Chat Messages -
client.chat.messages.list(...) +
client.filestorage.folders.create(...)
@@ -2680,7 +2574,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-Returns a list of `Message` objects. +Creates a `Folder` object with the given values.
@@ -2695,37 +2589,17 @@ Returns a list of `Message` objects.
```python -import datetime - from merge import Merge -from merge.resources.chat.resources.messages import MessagesListRequestOrderBy +from merge.resources.filestorage import FolderRequest client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.messages.list( - conversation_id="conversation_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=MessagesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - remote_id="remote_id", - root_message="root_message", +client.filestorage.folders.create( + is_debug_mode=True, + run_async=True, + model=FolderRequest(), ) ``` @@ -2742,7 +2616,7 @@ client.chat.messages.list(
-**conversation_id:** `typing.Optional[str]` β€” Filter messages by conversation ID. +**model:** `FolderRequest`
@@ -2750,7 +2624,7 @@ client.chat.messages.list(
-**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. +**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response.
@@ -2758,7 +2632,7 @@ client.chat.messages.list(
-**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. +**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously.
@@ -2766,55 +2640,72 @@ client.chat.messages.list(
-**cursor:** `typing.Optional[str]` β€” The pagination cursor value. +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
+
+
-
-
-**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). -
+
+
client.filestorage.folders.retrieve(...)
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
+#### πŸ“ Description
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
-
-**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - +Returns a `Folder` object with the given `id`.
+ + + +#### πŸ”Œ Usage
-**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - +
+
+ +```python +from merge import Merge + +client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.folders.retrieve( + id="id", + include_remote_data=True, + include_shell_data=True, +) + +``` +
+
+#### βš™οΈ Parameters + +
+
+
-**order_by:** `typing.Optional[MessagesListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. +**id:** `str`
@@ -2822,7 +2713,12 @@ client.chat.messages.list(
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. +**expand:** `typing.Optional[ + typing.Union[ + FoldersRetrieveRequestExpandItem, + typing.Sequence[FoldersRetrieveRequestExpandItem], + ] +]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
@@ -2830,7 +2726,7 @@ client.chat.messages.list(
-**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -2838,7 +2734,7 @@ client.chat.messages.list(
-**root_message:** `typing.Optional[str]` β€” If provided as 'true', will only return root messages (messages without a parent message). +**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
@@ -2858,7 +2754,7 @@ client.chat.messages.list(
-
client.chat.messages.retrieve(...) +
client.filestorage.folders.meta_post_retrieve()
@@ -2870,7 +2766,7 @@ client.chat.messages.list(
-Returns a `Message` object with the given `id`. +Returns metadata for `FileStorageFolder` POSTs.
@@ -2891,11 +2787,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.messages.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) +client.filestorage.folders.meta_post_retrieve() ``` @@ -2911,23 +2803,71 @@ client.chat.messages.retrieve(
-**id:** `str` +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
+ +
+ + + + +
+## Filestorage GenerateKey +
client.filestorage.generate_key.create(...)
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - +#### πŸ“ Description + +
+
+ +
+
+ +Create a remote key. +
+
+#### πŸ”Œ Usage +
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +
+
+ +```python +from merge import Merge + +client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.generate_key.create( + name="Remote Deployment Key 1", +) + +``` +
+
+
+
+ +#### βš™οΈ Parameters + +
+
+ +
+
+ +**name:** `str` β€” The name of the remote key
@@ -2947,7 +2887,8 @@ client.chat.messages.retrieve(
-
client.chat.messages.replies_list(...) +## Filestorage Groups +
client.filestorage.groups.list(...)
@@ -2959,7 +2900,7 @@ client.chat.messages.retrieve(
-Returns a list of `Message` objects. +Returns a list of `Group` objects.
@@ -2974,24 +2915,39 @@ Returns a list of `Message` objects.
```python +import datetime + from merge import Merge -from merge.resources.chat.resources.messages import ( - MessagesRepliesListRequestOrderBy, -) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.messages.replies_list( - message_id="message_id", +response = client.filestorage.groups.list( + created_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + created_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", include_deleted_data=True, include_remote_data=True, include_shell_data=True, - order_by=MessagesRepliesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, + modified_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + modified_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), page_size=1, + remote_id="remote_id", ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -3007,7 +2963,15 @@ client.chat.messages.replies_list(
-**message_id:** `str` +**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. + +
+
+ +
+
+ +**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime.
@@ -3023,6 +2987,19 @@ client.chat.messages.replies_list(
+**expand:** `typing.Optional[ + typing.Union[ + GroupsListRequestExpandItem, + typing.Sequence[GroupsListRequestExpandItem], + ] +]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + +
+
+ +
+
+ **include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
@@ -3047,7 +3024,15 @@ client.chat.messages.replies_list(
-**order_by:** `typing.Optional[MessagesRepliesListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. +**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. + +
+
+ +
+
+ +**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned.
@@ -3063,6 +3048,14 @@ client.chat.messages.replies_list(
+**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. + +
+
+ +
+
+ **request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
@@ -3075,8 +3068,7 @@ client.chat.messages.replies_list(
-## Chat Passthrough -
client.chat.passthrough.create(...) +
client.filestorage.groups.retrieve(...)
@@ -3088,7 +3080,7 @@ client.chat.messages.replies_list(
-Pull data from an endpoint not currently supported by Merge. +Returns a `Group` object with the given `id`.
@@ -3104,17 +3096,15 @@ Pull data from an endpoint not currently supported by Merge. ```python from merge import Merge -from merge.resources.chat import DataPassthroughRequest, MethodEnum client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), +client.filestorage.groups.retrieve( + id="id", + include_remote_data=True, + include_shell_data=True, ) ``` @@ -3131,7 +3121,36 @@ client.chat.passthrough.create(
-**request:** `DataPassthroughRequest` +**id:** `str` + +
+
+ +
+
+ +**expand:** `typing.Optional[ + typing.Union[ + GroupsRetrieveRequestExpandItem, + typing.Sequence[GroupsRetrieveRequestExpandItem], + ] +]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + +
+
+ +
+
+ +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. + +
+
+ +
+
+ +**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
@@ -3151,8 +3170,8 @@ client.chat.passthrough.create(
-## Chat RegenerateKey -
client.chat.regenerate_key.create(...) +## Filestorage Issues +
client.filestorage.issues.list(...)
@@ -3164,7 +3183,7 @@ client.chat.passthrough.create(
-Exchange remote keys. +Gets all issues for Organization.
@@ -3179,15 +3198,44 @@ Exchange remote keys.
```python +import datetime + from merge import Merge +from merge.resources.filestorage.resources.issues import IssuesListRequestStatus client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.regenerate_key.create( - name="Remote Deployment Key 1", +response = client.filestorage.issues.list( + account_token="account_token", + cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + end_date="end_date", + end_user_organization_name="end_user_organization_name", + first_incident_time_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + first_incident_time_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + include_muted="include_muted", + integration_name="integration_name", + last_incident_time_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + last_incident_time_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + linked_account_id="linked_account_id", + page_size=1, + start_date="start_date", + status=IssuesListRequestStatus.ONGOING, ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -3203,7 +3251,7 @@ client.chat.regenerate_key.create(
-**name:** `str` β€” The name of the remote key +**account_token:** `typing.Optional[str]`
@@ -3211,72 +3259,95 @@ client.chat.regenerate_key.create(
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**cursor:** `typing.Optional[str]` β€” The pagination cursor value.
- -
+
+
+**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time +
-
-## Chat SyncStatus -
client.chat.sync_status.list(...)
-#### πŸ“ Description +**end_user_organization_name:** `typing.Optional[str]` + +
+
+**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. + +
+
+
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. +
+ +
+
+ +**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues +
-#### πŸ”Œ Usage -
+**integration_name:** `typing.Optional[str]` + +
+
+
-```python -from merge import Merge +**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. + +
+
-client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) +
+
-``` +**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. +
+ +
+
+ +**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. +
-#### βš™οΈ Parameters -
+**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. + +
+
+
-**cursor:** `typing.Optional[str]` β€” The pagination cursor value. +**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time
@@ -3284,7 +3355,12 @@ client.chat.sync_status.list(
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. +**status:** `typing.Optional[IssuesListRequestStatus]` + +Status of the issue. Options: ('ONGOING', 'RESOLVED') + +* `ONGOING` - ONGOING +* `RESOLVED` - RESOLVED
@@ -3304,8 +3380,7 @@ client.chat.sync_status.list(
-## Chat ForceResync -
client.chat.force_resync.sync_status_resync_create() +
client.filestorage.issues.retrieve(...)
@@ -3317,7 +3392,7 @@ client.chat.sync_status.list(
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Get a specific issue.
@@ -3338,7 +3413,9 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.force_resync.sync_status_resync_create() +client.filestorage.issues.retrieve( + id="id", +) ``` @@ -3354,6 +3431,14 @@ client.chat.force_resync.sync_status_resync_create()
+**id:** `str` + +
+
+ +
+
+ **request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
@@ -3366,8 +3451,8 @@ client.chat.force_resync.sync_status_resync_create()
-## Chat Users -
client.chat.users.list(...) +## Filestorage LinkToken +
client.filestorage.link_token.create(...)
@@ -3379,7 +3464,7 @@ client.chat.force_resync.sync_status_resync_create()
-Returns a list of `User` objects. +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -3394,33 +3479,18 @@ Returns a list of `User` objects.
```python -import datetime - from merge import Merge +from merge.resources.filestorage import CategoriesEnum client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", +client.filestorage.link_token.create( + end_user_email_address="example@gmail.com", + end_user_organization_name="Test Organization", + end_user_origin_id="12345", + categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], ) ``` @@ -3437,7 +3507,7 @@ client.chat.users.list(
-**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. +**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.
@@ -3445,7 +3515,7 @@ client.chat.users.list(
-**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. +**end_user_organization_name:** `str` β€” Your end user's organization.
@@ -3453,7 +3523,7 @@ client.chat.users.list(
-**cursor:** `typing.Optional[str]` β€” The pagination cursor value. +**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.
@@ -3461,7 +3531,7 @@ client.chat.users.list(
-**expand:** `typing.Optional[typing.Literal["groups"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. +**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link.
@@ -3469,7 +3539,7 @@ client.chat.users.list(
-**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). +**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.
@@ -3477,7 +3547,7 @@ client.chat.users.list(
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. +**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
@@ -3485,7 +3555,7 @@ client.chat.users.list(
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
@@ -3493,7 +3563,7 @@ client.chat.users.list(
-**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. +**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
@@ -3501,7 +3571,7 @@ client.chat.users.list(
-**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. +**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
@@ -3509,7 +3579,14 @@ client.chat.users.list(
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. +**category_common_model_scopes:** `typing.Optional[ + typing.Dict[ + str, + typing.Optional[ + typing.Sequence[IndividualCommonModelScopeDeserializerRequest] + ], + ] +]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.
@@ -3517,7 +3594,28 @@ client.chat.users.list(
-**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. +**language:** `typing.Optional[EndUserDetailsRequestLanguage]` + +The following subset of IETF language tags can be used to configure localization. + +* `en` - en +* `de` - de + +
+
+ +
+
+ +**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. + +
+
+ +
+
+ +**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options.
@@ -3537,7 +3635,8 @@ client.chat.users.list(
-
client.chat.users.retrieve(...) +## Filestorage LinkedAccounts +
client.filestorage.linked_accounts.list(...)
@@ -3549,7 +3648,7 @@ client.chat.users.list(
-Returns a `User` object with the given `id`. +List linked accounts for your organization.
@@ -3565,16 +3664,34 @@ Returns a `User` object with the given `id`. ```python from merge import Merge +from merge.resources.filestorage.resources.linked_accounts import ( + LinkedAccountsListRequestCategory, +) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.chat.users.retrieve( +response = client.filestorage.linked_accounts.list( + category=LinkedAccountsListRequestCategory.ACCOUNTING, + cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + end_user_email_address="end_user_email_address", + end_user_organization_name="end_user_organization_name", + end_user_origin_id="end_user_origin_id", + end_user_origin_ids="end_user_origin_ids", id="id", - include_remote_data=True, - include_shell_data=True, + ids="ids", + include_duplicates=True, + integration_name="integration_name", + is_test_account="is_test_account", + page_size=1, + status="status", ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ``` @@ -3590,7 +3707,17 @@ client.chat.users.retrieve(
-**id:** `str` +**category:** `typing.Optional[LinkedAccountsListRequestCategory]` + +Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` + +* `hris` - hris +* `ats` - ats +* `accounting` - accounting +* `ticketing` - ticketing +* `crm` - crm +* `mktg` - mktg +* `filestorage` - filestorage
@@ -3598,7 +3725,7 @@ client.chat.users.retrieve(
-**expand:** `typing.Optional[typing.Literal["groups"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. +**cursor:** `typing.Optional[str]` β€” The pagination cursor value.
@@ -3606,7 +3733,7 @@ client.chat.users.retrieve(
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. +**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address.
@@ -3614,7 +3741,7 @@ client.chat.users.retrieve(
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name.
@@ -3622,133 +3749,55 @@ client.chat.users.retrieve(
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID.
- -
- - - - -
- -## Chat WebhookReceivers -
client.chat.webhook_receivers.list() -
-
- -#### πŸ“ Description - -
-
-Returns a list of `WebhookReceiver` objects. -
-
+**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. +
-#### πŸ”Œ Usage - -
-
-
-```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.webhook_receivers.list() - -``` -
-
+**id:** `typing.Optional[str]` +
-#### βš™οΈ Parameters - -
-
-
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
-
-
- - -
-
-
- -
client.chat.webhook_receivers.create(...) -
-
- -#### πŸ“ Description - -
-
-Creates a `WebhookReceiver` object with the given values. -
-
+**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. +
-#### πŸ”Œ Usage -
-
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.chat.webhook_receivers.create( - event="event", - is_active=True, -) - -``` -
-
+**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. +
-#### βš™οΈ Parameters - -
-
-
-**event:** `str` +**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
@@ -3756,7 +3805,7 @@ client.chat.webhook_receivers.create(
-**is_active:** `bool` +**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100.
@@ -3764,7 +3813,7 @@ client.chat.webhook_receivers.create(
-**key:** `typing.Optional[str]` +**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED`
@@ -3784,8 +3833,8 @@ client.chat.webhook_receivers.create(
-## Ats AccountDetails -
client.ats.account_details.retrieve() +## Filestorage Passthrough +
client.filestorage.passthrough.create(...)
@@ -3797,7 +3846,7 @@ client.chat.webhook_receivers.create(
-Get details for a linked account. +Pull data from an endpoint not currently supported by Merge.
@@ -3813,12 +3862,18 @@ Get details for a linked account. ```python from merge import Merge +from merge.resources.filestorage import DataPassthroughRequest, MethodEnum client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.ats.account_details.retrieve() +client.filestorage.passthrough.create( + request=DataPassthroughRequest( + method=MethodEnum.GET, + path="/scooters", + ), +) ``` @@ -3829,56971 +3884,12 @@ client.ats.account_details.retrieve() #### βš™οΈ Parameters
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - - -
-
- -## Ats AccountToken -
client.ats.account_token.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.account_token.retrieve( - public_token="public_token", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**public_token:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Activities -
client.ats.activities.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Activity` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.activities import ( - ActivitiesListRequestRemoteFields, - ActivitiesListRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.activities.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=ActivitiesListRequestRemoteFields.ACTIVITY_TYPE, - remote_id="remote_id", - show_enum_origins=ActivitiesListRequestShowEnumOrigins.ACTIVITY_TYPE, - user_id="user_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["user"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[ActivitiesListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[ActivitiesListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**user_id:** `typing.Optional[str]` β€” If provided, will only return activities done by this user. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.activities.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Activity` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import ActivityRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.activities.create( - is_debug_mode=True, - run_async=True, - model=ActivityRequest(), - remote_user_id="remote_user_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ActivityRequest` - -
-
- -
-
- -**remote_user_id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.activities.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Activity` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.activities import ( - ActivitiesRetrieveRequestRemoteFields, - ActivitiesRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.activities.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=ActivitiesRetrieveRequestRemoteFields.ACTIVITY_TYPE, - show_enum_origins=ActivitiesRetrieveRequestShowEnumOrigins.ACTIVITY_TYPE, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["user"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[ActivitiesRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.activities.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Activity` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.activities.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Applications -
client.ats.applications.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Application` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.applications import ( - ApplicationsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.applications.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - credited_to_id="credited_to_id", - current_stage_id="current_stage_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ApplicationsListRequestExpand.CANDIDATE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - reject_reason_id="reject_reason_id", - remote_id="remote_id", - source="source", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**candidate_id:** `typing.Optional[str]` β€” If provided, will only return applications for this candidate. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**credited_to_id:** `typing.Optional[str]` β€” If provided, will only return applications credited to this user. - -
-
- -
-
- -**current_stage_id:** `typing.Optional[str]` β€” If provided, will only return applications at this interview stage. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ApplicationsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**job_id:** `typing.Optional[str]` β€” If provided, will only return applications for this job. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**reject_reason_id:** `typing.Optional[str]` β€” If provided, will only return applications with this reject reason. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**source:** `typing.Optional[str]` β€” If provided, will only return applications with this source. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.applications.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Application` object with the given values. -For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - -See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import ApplicationRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.applications.create( - is_debug_mode=True, - run_async=True, - model=ApplicationRequest(), - remote_user_id="remote_user_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ApplicationRequest` - -
-
- -
-
- -**remote_user_id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.applications.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Application` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.applications import ( - ApplicationsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.applications.retrieve( - id="id", - expand=ApplicationsRetrieveRequestExpand.CANDIDATE, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ApplicationsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.applications.change_stage_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates the `current_stage` field of an `Application` object -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.applications.change_stage_create( - id="id", - is_debug_mode=True, - run_async=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**job_interview_stage:** `typing.Optional[str]` β€” The interview stage to move the application to. - -
-
- -
-
- -**remote_user_id:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.applications.meta_post_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Application` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.applications.meta_post_retrieve( - application_remote_template_id="application_remote_template_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**application_remote_template_id:** `typing.Optional[str]` β€” The template ID associated with the nested application in the request. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats AsyncPassthrough -
client.ats.async_passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.async_passthrough.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Attachments -
client.ats.attachments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Attachment` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.attachments.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**candidate_id:** `typing.Optional[str]` β€” If provided, will only return attachments for this candidate. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["candidate"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["attachment_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["attachment_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.attachments.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Attachment` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import AttachmentRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.attachments.create( - is_debug_mode=True, - run_async=True, - model=AttachmentRequest(), - remote_user_id="remote_user_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `AttachmentRequest` - -
-
- -
-
- -**remote_user_id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.attachments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Attachment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["candidate"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["attachment_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["attachment_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.attachments.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Attachment` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.attachments.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats AuditTrail -
client.ats.audit_trail.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred before this time - -
-
- -
-
- -**event_type:** `typing.Optional[str]` β€” If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred after this time - -
-
- -
-
- -**user_email:** `typing.Optional[str]` β€” If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats AvailableActions -
client.ats.available_actions.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.available_actions.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Candidates -
client.ats.candidates.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Candidate` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.candidates import CandidatesListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.candidates.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=CandidatesListRequestExpand.APPLICATIONS, - first_name="first_name", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - last_name="last_name", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - tags="tags", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email_addresses:** `typing.Optional[str]` β€” If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas. - -
-
- -
-
- -**expand:** `typing.Optional[CandidatesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**first_name:** `typing.Optional[str]` β€” If provided, will only return candidates with this first name. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**last_name:** `typing.Optional[str]` β€” If provided, will only return candidates with this last name. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**tags:** `typing.Optional[str]` β€” If provided, will only return candidates with these tags; multiple tags can be separated by commas. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.candidates.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Candidate` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import CandidateRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.candidates.create( - is_debug_mode=True, - run_async=True, - model=CandidateRequest(), - remote_user_id="remote_user_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `CandidateRequest` - -
-
- -
-
- -**remote_user_id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.candidates.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Candidate` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.candidates import ( - CandidatesRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.candidates.retrieve( - id="id", - expand=CandidatesRetrieveRequestExpand.APPLICATIONS, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[CandidatesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.candidates.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates a `Candidate` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import PatchedCandidateRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.candidates.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedCandidateRequest(), - remote_user_id="remote_user_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedCandidateRequest` - -
-
- -
-
- -**remote_user_id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.candidates.ignore_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import ReasonEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.candidates.ignore_create( - model_id="model_id", - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model_id:** `str` - -
-
- -
-
- -**reason:** `IgnoreCommonModelRequestReason` - -
-
- -
-
- -**message:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.candidates.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Candidate` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.candidates.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.candidates.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Candidate` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.candidates.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Scopes -
client.ats.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.scopes.default_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.scopes.linked_account_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.scopes.linked_account_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.scopes.linked_account_scopes_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats DeleteAccount -
client.ats.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.delete_account.delete() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Departments -
client.ats.departments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Department` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.departments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.departments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Department` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.departments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Eeocs -
client.ats.eeocs.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `EEOC` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.eeocs import ( - EeocsListRequestRemoteFields, - EeocsListRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.eeocs.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=EeocsListRequestRemoteFields.DISABILITY_STATUS, - remote_id="remote_id", - show_enum_origins=EeocsListRequestShowEnumOrigins.DISABILITY_STATUS, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**candidate_id:** `typing.Optional[str]` β€” If provided, will only return EEOC info for this candidate. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["candidate"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[EeocsListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[EeocsListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.eeocs.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `EEOC` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.eeocs import ( - EeocsRetrieveRequestRemoteFields, - EeocsRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.eeocs.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS, - show_enum_origins=EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["candidate"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[EeocsRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[EeocsRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats FieldMapping -
client.ats.field_mapping.field_mappings_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.field_mapping.field_mappings_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**target_field_name:** `str` β€” The name of the target field you want this remote field to map to. - -
-
- -
-
- -**target_field_description:** `str` β€” The description of the target field you want this remote field to map to. - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Sequence[typing.Optional[typing.Any]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `str` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `str` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**common_model_name:** `str` β€” The name of the Common Model that the remote field corresponds to in a given category. - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.field_mapping.field_mappings_destroy(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.field_mapping.field_mappings_partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `typing.Optional[str]` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `typing.Optional[str]` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.field_mapping.remote_fields_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Optional[str]` β€” A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - -
-
- -
-
- -**include_example_values:** `typing.Optional[str]` β€” If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.field_mapping.target_fields_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.field_mapping.target_fields_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats GenerateKey -
client.ats.generate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Interviews -
client.ats.interviews.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `ScheduledInterview` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.interviews import InterviewsListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.interviews.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=InterviewsListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - job_interview_stage_id="job_interview_stage_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - organizer_id="organizer_id", - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**application_id:** `typing.Optional[str]` β€” If provided, will only return interviews for this application. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[InterviewsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**job_id:** `typing.Optional[str]` β€” If provided, wll only return interviews organized for this job. - -
-
- -
-
- -**job_interview_stage_id:** `typing.Optional[str]` β€” If provided, will only return interviews at this stage. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**organizer_id:** `typing.Optional[str]` β€” If provided, will only return interviews organized by this user. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.interviews.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `ScheduledInterview` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import ScheduledInterviewRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.interviews.create( - is_debug_mode=True, - run_async=True, - model=ScheduledInterviewRequest(), - remote_user_id="remote_user_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ScheduledInterviewRequest` - -
-
- -
-
- -**remote_user_id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.interviews.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `ScheduledInterview` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.interviews import ( - InterviewsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.interviews.retrieve( - id="id", - expand=InterviewsRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[InterviewsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.interviews.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `ScheduledInterview` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.interviews.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Issues -
client.ats.issues.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.issues import IssuesListRequestStatus - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_token:** `typing.Optional[str]` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` - -
-
- -
-
- -**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. - -
-
- -
-
- -**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
- -
-
- -**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` - -
-
- -
-
- -**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
- -
-
- -**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - -
-
- -
-
- -**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time - -
-
- -
-
- -**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.issues.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.issues.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats JobInterviewStages -
client.ats.job_interview_stages.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `JobInterviewStage` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.job_interview_stages.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["job"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**job_id:** `typing.Optional[str]` β€” If provided, will only return interview stages for this job. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.job_interview_stages.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `JobInterviewStage` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.job_interview_stages.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["job"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats JobPostings -
client.ats.job_postings.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `JobPosting` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.job_postings import ( - JobPostingsListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.job_postings.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - status=JobPostingsListRequestStatus.CLOSED, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["job"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**status:** `typing.Optional[JobPostingsListRequestStatus]` - -If provided, will only return Job Postings with this status. Options: ('PUBLISHED', 'CLOSED', 'DRAFT', 'INTERNAL', 'PENDING') - -* `PUBLISHED` - PUBLISHED -* `CLOSED` - CLOSED -* `DRAFT` - DRAFT -* `INTERNAL` - INTERNAL -* `PENDING` - PENDING - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.job_postings.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `JobPosting` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.job_postings.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["job"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Jobs -
client.ats.jobs.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Job` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.jobs import ( - JobsListRequestExpand, - JobsListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.jobs.list( - code="code", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JobsListRequestExpand.DEPARTMENTS, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - offices="offices", - page_size=1, - remote_id="remote_id", - status=JobsListRequestStatus.ARCHIVED, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**code:** `typing.Optional[str]` β€” If provided, will only return jobs with this code. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[JobsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**offices:** `typing.Optional[str]` β€” If provided, will only return jobs for this office; multiple offices can be separated by commas. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**status:** `typing.Optional[JobsListRequestStatus]` - -If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') - -* `OPEN` - OPEN -* `CLOSED` - CLOSED -* `DRAFT` - DRAFT -* `ARCHIVED` - ARCHIVED -* `PENDING` - PENDING - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.jobs.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Job` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.jobs import JobsRetrieveRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.jobs.retrieve( - id="id", - expand=JobsRetrieveRequestExpand.DEPARTMENTS, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[JobsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.jobs.screening_questions_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `ScreeningQuestion` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.jobs import ( - JobsScreeningQuestionsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.jobs.screening_questions_list( - job_id="job_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JobsScreeningQuestionsListRequestExpand.JOB, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**job_id:** `str` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[JobsScreeningQuestionsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats LinkToken -
client.ats.link_token.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import CategoriesEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - -
-
- -
-
- -**end_user_organization_name:** `str` β€” Your end user's organization. - -
-
- -
-
- -**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - -
-
- -
-
- -**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. - -
-
- -
-
- -**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - -
-
- -
-
- -**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - -
-
- -
-
- -**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - -
-
- -
-
- -**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - -
-
- -
-
- -**language:** `typing.Optional[EndUserDetailsRequestLanguage]` - -The following subset of IETF language tags can be used to configure localization. - -* `en` - en -* `de` - de - -
-
- -
-
- -**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
- -
-
- -**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats LinkedAccounts -
client.ats.linked_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category:** `typing.Optional[LinkedAccountsListRequestCategory]` - -Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - -* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. - -
-
- -
-
- -**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. - -
-
- -
-
- -**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - -
-
- -
-
- -**id:** `typing.Optional[str]` - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - -
-
- -
-
- -**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. - -
-
- -
-
- -**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Offers -
client.ats.offers.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Offer` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.offers import OffersListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.offers.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - creator_id="creator_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=OffersListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**application_id:** `typing.Optional[str]` β€” If provided, will only return offers for this application. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**creator_id:** `typing.Optional[str]` β€” If provided, will only return offers created by this user. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[OffersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.offers.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Offer` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.offers import OffersRetrieveRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.offers.retrieve( - id="id", - expand=OffersRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[OffersRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Offices -
client.ats.offices.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Office` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.offices.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.offices.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Office` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.offices.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Passthrough -
client.ats.passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats RegenerateKey -
client.ats.regenerate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.regenerate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats RejectReasons -
client.ats.reject_reasons.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RejectReason` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.reject_reasons.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.reject_reasons.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `RejectReason` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.reject_reasons.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Scorecards -
client.ats.scorecards.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Scorecard` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ats.resources.scorecards import ScorecardsListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.scorecards.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ScorecardsListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - interview_id="interview_id", - interviewer_id="interviewer_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**application_id:** `typing.Optional[str]` β€” If provided, will only return scorecards for this application. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ScorecardsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**interview_id:** `typing.Optional[str]` β€” If provided, will only return scorecards for this interview. - -
-
- -
-
- -**interviewer_id:** `typing.Optional[str]` β€” If provided, will only return scorecards for this interviewer. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["overall_recommendation"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["overall_recommendation"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.scorecards.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Scorecard` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ats.resources.scorecards import ( - ScorecardsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.scorecards.retrieve( - id="id", - expand=ScorecardsRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ScorecardsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["overall_recommendation"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["overall_recommendation"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats SyncStatus -
client.ats.sync_status.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats ForceResync -
client.ats.force_resync.sync_status_resync_create() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.force_resync.sync_status_resync_create() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Tags -
client.ats.tags.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Tag` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.tags.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats Users -
client.ats.users.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteUser` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email="email", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email:** `typing.Optional[str]` β€” If provided, will only return remote users with the given email address - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["access_role"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["access_role"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.users.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `RemoteUser` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["access_role"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["access_role"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ats WebhookReceivers -
client.ats.webhook_receivers.list() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.webhook_receivers.list() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ats.webhook_receivers.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ats.webhook_receivers.create( - event="event", - is_active=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**event:** `str` - -
-
- -
-
- -**is_active:** `bool` - -
-
- -
-
- -**key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm AccountDetails -
client.crm.account_details.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.account_details.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm AccountToken -
client.crm.account_token.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.account_token.retrieve( - public_token="public_token", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**public_token:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Accounts -
client.crm.accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Account` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.accounts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - owner_id="owner_id", - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["owner"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return accounts with this name. - -
-
- -
-
- -**owner_id:** `typing.Optional[str]` β€” If provided, will only return accounts with this owner. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.accounts.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Account` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import AccountRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.accounts.create( - is_debug_mode=True, - run_async=True, - model=AccountRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `AccountRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.accounts.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Account` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.accounts.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["owner"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.accounts.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates an `Account` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import PatchedAccountRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.accounts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedAccountRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedAccountRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.accounts.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `CRMAccount` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.accounts.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.accounts.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `CRMAccount` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.accounts.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.accounts.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.accounts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm AsyncPassthrough -
client.crm.async_passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.async_passthrough.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm AuditTrail -
client.crm.audit_trail.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred before this time - -
-
- -
-
- -**event_type:** `typing.Optional[str]` β€” If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred after this time - -
-
- -
-
- -**user_email:** `typing.Optional[str]` β€” If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm AvailableActions -
client.crm.available_actions.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.available_actions.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Contacts -
client.crm.contacts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Contact` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.crm.resources.contacts import ContactsListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.list( - account_id="account_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=ContactsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - phone_numbers="phone_numbers", - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_id:** `typing.Optional[str]` β€” If provided, will only return contacts with this account. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email_addresses:** `typing.Optional[str]` β€” If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - -
-
- -
-
- -**expand:** `typing.Optional[ContactsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**phone_numbers:** `typing.Optional[str]` β€” If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.contacts.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Contact` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import ContactRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ContactRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.contacts.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Contact` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm.resources.contacts import ContactsRetrieveRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.retrieve( - id="id", - expand=ContactsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ContactsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.contacts.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates a `Contact` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import PatchedContactRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedContactRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedContactRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.contacts.ignore_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import IgnoreCommonModelRequest, ReasonEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.ignore_create( - model_id="model_id", - request=IgnoreCommonModelRequest( - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model_id:** `str` - -
-
- -
-
- -**request:** `IgnoreCommonModelRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.contacts.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `CRMContact` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.contacts.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `CRMContact` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.contacts.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.contacts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm CustomObjectClasses -
client.crm.custom_object_classes.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `CustomObjectClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.custom_object_classes.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["fields"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.custom_object_classes.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `CustomObjectClass` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.custom_object_classes.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["fields"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm AssociationTypes -
client.crm.association_types.custom_object_classes_association_types_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `AssociationType` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.association_types.custom_object_classes_association_types_list( - custom_object_class_id="custom_object_class_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["target_object_classes"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.association_types.custom_object_classes_association_types_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `AssociationType` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import ( - AssociationTypeRequestRequest, - ObjectClassDescriptionRequest, - OriginTypeEnum, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.association_types.custom_object_classes_association_types_create( - custom_object_class_id="custom_object_class_id", - is_debug_mode=True, - run_async=True, - model=AssociationTypeRequestRequest( - source_object_class=ObjectClassDescriptionRequest( - id="id", - origin_type=OriginTypeEnum.CUSTOM_OBJECT, - ), - target_object_classes=[ - ObjectClassDescriptionRequest( - id="id", - origin_type=OriginTypeEnum.CUSTOM_OBJECT, - ) - ], - remote_key_name="remote_key_name", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**model:** `AssociationTypeRequestRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.association_types.custom_object_classes_association_types_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `AssociationType` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.association_types.custom_object_classes_association_types_retrieve( - custom_object_class_id="custom_object_class_id", - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["target_object_classes"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.association_types.custom_object_classes_association_types_meta_post_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `CRMAssociationType` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.association_types.custom_object_classes_association_types_meta_post_retrieve( - custom_object_class_id="custom_object_class_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm CustomObjects -
client.crm.custom_objects.custom_object_classes_custom_objects_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `CustomObject` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.custom_objects.custom_object_classes_custom_objects_list( - custom_object_class_id="custom_object_class_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.custom_objects.custom_object_classes_custom_objects_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `CustomObject` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import CustomObjectRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.custom_objects.custom_object_classes_custom_objects_create( - custom_object_class_id="custom_object_class_id", - is_debug_mode=True, - run_async=True, - model=CustomObjectRequest( - fields={"test_field": "hello"}, - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**model:** `CustomObjectRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.custom_objects.custom_object_classes_custom_objects_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `CustomObject` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.custom_objects.custom_object_classes_custom_objects_retrieve( - custom_object_class_id="custom_object_class_id", - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.custom_objects.custom_object_classes_custom_objects_meta_post_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `CRMCustomObject` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.custom_objects.custom_object_classes_custom_objects_meta_post_retrieve( - custom_object_class_id="custom_object_class_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Associations -
client.crm.associations.custom_object_classes_custom_objects_associations_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Association` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.associations.custom_object_classes_custom_objects_associations_list( - custom_object_class_id="custom_object_class_id", - object_id="object_id", - association_type_id="association_type_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**custom_object_class_id:** `str` - -
-
- -
-
- -**object_id:** `str` - -
-
- -
-
- -**association_type_id:** `typing.Optional[str]` β€” If provided, will only return opportunities with this association_type. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["association_type"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.associations.custom_object_classes_custom_objects_associations_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.associations.custom_object_classes_custom_objects_associations_update( - source_class_id="source_class_id", - source_object_id="source_object_id", - target_class_id="target_class_id", - target_object_id="target_object_id", - association_type_id="association_type_id", - is_debug_mode=True, - run_async=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**source_class_id:** `str` - -
-
- -
-
- -**source_object_id:** `str` - -
-
- -
-
- -**target_class_id:** `str` - -
-
- -
-
- -**target_object_id:** `str` - -
-
- -
-
- -**association_type_id:** `str` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Scopes -
client.crm.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.scopes.default_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.scopes.linked_account_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.scopes.linked_account_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.scopes.linked_account_scopes_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm DeleteAccount -
client.crm.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.delete_account.delete() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm EngagementTypes -
client.crm.engagement_types.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `EngagementType` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagement_types.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagement_types.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `EngagementType` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagement_types.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagement_types.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagement_types.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Engagements -
client.crm.engagements.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Engagement` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.crm.resources.engagements import ( - EngagementsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagements.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=EngagementsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[EngagementsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**started_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return engagements started after this datetime. - -
-
- -
-
- -**started_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return engagements started before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagements.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Engagement` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import EngagementRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagements.create( - is_debug_mode=True, - run_async=True, - model=EngagementRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `EngagementRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagements.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Engagement` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm.resources.engagements import ( - EngagementsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagements.retrieve( - id="id", - expand=EngagementsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[EngagementsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagements.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates an `Engagement` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import PatchedEngagementRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagements.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedEngagementRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedEngagementRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagements.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Engagement` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagements.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagements.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Engagement` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagements.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.engagements.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.engagements.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm FieldMapping -
client.crm.field_mapping.field_mappings_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.field_mapping.field_mappings_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**target_field_name:** `str` β€” The name of the target field you want this remote field to map to. - -
-
- -
-
- -**target_field_description:** `str` β€” The description of the target field you want this remote field to map to. - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Sequence[typing.Optional[typing.Any]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `str` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `str` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**common_model_name:** `str` β€” The name of the Common Model that the remote field corresponds to in a given category. - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.field_mapping.field_mappings_destroy(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.field_mapping.field_mappings_partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `typing.Optional[str]` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `typing.Optional[str]` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.field_mapping.remote_fields_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Optional[str]` β€” A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - -
-
- -
-
- -**include_example_values:** `typing.Optional[str]` β€” If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.field_mapping.target_fields_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.field_mapping.target_fields_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm GenerateKey -
client.crm.generate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Issues -
client.crm.issues.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.crm.resources.issues import IssuesListRequestStatus - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_token:** `typing.Optional[str]` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` - -
-
- -
-
- -**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. - -
-
- -
-
- -**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
- -
-
- -**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` - -
-
- -
-
- -**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
- -
-
- -**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - -
-
- -
-
- -**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time - -
-
- -
-
- -**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.issues.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.issues.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Leads -
client.crm.leads.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Lead` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.crm.resources.leads import LeadsListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.leads.list( - converted_account_id="converted_account_id", - converted_contact_id="converted_contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=LeadsListRequestExpand.CONVERTED_ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - owner_id="owner_id", - page_size=1, - phone_numbers="phone_numbers", - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**converted_account_id:** `typing.Optional[str]` β€” If provided, will only return leads with this account. - -
-
- -
-
- -**converted_contact_id:** `typing.Optional[str]` β€” If provided, will only return leads with this contact. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email_addresses:** `typing.Optional[str]` β€” If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - -
-
- -
-
- -**expand:** `typing.Optional[LeadsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**owner_id:** `typing.Optional[str]` β€” If provided, will only return leads with this owner. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**phone_numbers:** `typing.Optional[str]` β€” If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.leads.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Lead` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import LeadRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.leads.create( - is_debug_mode=True, - run_async=True, - model=LeadRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `LeadRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.leads.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Lead` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm.resources.leads import LeadsRetrieveRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.leads.retrieve( - id="id", - expand=LeadsRetrieveRequestExpand.CONVERTED_ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[LeadsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.leads.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Lead` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.leads.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.leads.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.leads.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm LinkToken -
client.crm.link_token.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import CategoriesEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - -
-
- -
-
- -**end_user_organization_name:** `str` β€” Your end user's organization. - -
-
- -
-
- -**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - -
-
- -
-
- -**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. - -
-
- -
-
- -**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - -
-
- -
-
- -**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - -
-
- -
-
- -**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - -
-
- -
-
- -**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - -
-
- -
-
- -**language:** `typing.Optional[EndUserDetailsRequestLanguage]` - -The following subset of IETF language tags can be used to configure localization. - -* `en` - en -* `de` - de - -
-
- -
-
- -**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
- -
-
- -**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm LinkedAccounts -
client.crm.linked_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category:** `typing.Optional[LinkedAccountsListRequestCategory]` - -Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - -* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. - -
-
- -
-
- -**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. - -
-
- -
-
- -**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - -
-
- -
-
- -**id:** `typing.Optional[str]` - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - -
-
- -
-
- -**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. - -
-
- -
-
- -**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Notes -
client.crm.notes.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Note` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.crm.resources.notes import NotesListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.notes.list( - account_id="account_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=NotesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - opportunity_id="opportunity_id", - owner_id="owner_id", - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_id:** `typing.Optional[str]` β€” If provided, will only return notes with this account. - -
-
- -
-
- -**contact_id:** `typing.Optional[str]` β€” If provided, will only return notes with this contact. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[NotesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**opportunity_id:** `typing.Optional[str]` β€” If provided, will only return notes with this opportunity. - -
-
- -
-
- -**owner_id:** `typing.Optional[str]` β€” If provided, will only return notes with this owner. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.notes.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Note` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import NoteRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.notes.create( - is_debug_mode=True, - run_async=True, - model=NoteRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `NoteRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.notes.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Note` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm.resources.notes import NotesRetrieveRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.notes.retrieve( - id="id", - expand=NotesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[NotesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.notes.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Note` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.notes.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.notes.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.notes.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Opportunities -
client.crm.opportunities.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Opportunity` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.crm.resources.opportunities import ( - OpportunitiesListRequestExpand, - OpportunitiesListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.opportunities.list( - account_id="account_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=OpportunitiesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - owner_id="owner_id", - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - stage_id="stage_id", - status=OpportunitiesListRequestStatus.LOST, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_id:** `typing.Optional[str]` β€” If provided, will only return opportunities with this account. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[OpportunitiesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**owner_id:** `typing.Optional[str]` β€” If provided, will only return opportunities with this owner. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return opportunities created in the third party platform after this datetime. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**stage_id:** `typing.Optional[str]` β€” If provided, will only return opportunities with this stage. - -
-
- -
-
- -**status:** `typing.Optional[OpportunitiesListRequestStatus]` - -If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST') - -* `OPEN` - OPEN -* `WON` - WON -* `LOST` - LOST - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Opportunity` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import OpportunityRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.opportunities.create( - is_debug_mode=True, - run_async=True, - model=OpportunityRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `OpportunityRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Opportunity` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm.resources.opportunities import ( - OpportunitiesRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.opportunities.retrieve( - id="id", - expand=OpportunitiesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[OpportunitiesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates an `Opportunity` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import PatchedOpportunityRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.opportunities.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedOpportunityRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedOpportunityRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Opportunity` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.opportunities.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Opportunity` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.opportunities.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.opportunities.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Passthrough -
client.crm.passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm RegenerateKey -
client.crm.regenerate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.regenerate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Stages -
client.crm.stages.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Stage` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.stages.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.stages.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Stage` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.stages.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.stages.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.stages.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm SyncStatus -
client.crm.sync_status.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm ForceResync -
client.crm.force_resync.sync_status_resync_create() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.force_resync.sync_status_resync_create() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Tasks -
client.crm.tasks.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Task` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.crm.resources.tasks import TasksListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.tasks.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TasksListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[TasksListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.tasks.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Task` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import TaskRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.tasks.create( - is_debug_mode=True, - run_async=True, - model=TaskRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `TaskRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.tasks.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Task` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm.resources.tasks import TasksRetrieveRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.tasks.retrieve( - id="id", - expand=TasksRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[TasksRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.tasks.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates a `Task` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import PatchedTaskRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.tasks.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedTaskRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedTaskRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.tasks.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Task` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.tasks.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.tasks.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Task` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.tasks.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.tasks.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.tasks.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm Users -
client.crm.users.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email="email", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email:** `typing.Optional[str]` β€” If provided, will only return users with this email. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.users.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `User` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.users.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.users.ignore_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.crm import IgnoreCommonModelRequest, ReasonEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.users.ignore_create( - model_id="model_id", - request=IgnoreCommonModelRequest( - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model_id:** `str` - -
-
- -
-
- -**request:** `IgnoreCommonModelRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.users.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.users.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Crm WebhookReceivers -
client.crm.webhook_receivers.list() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.webhook_receivers.list() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.crm.webhook_receivers.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.crm.webhook_receivers.create( - event="event", - is_active=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**event:** `str` - -
-
- -
-
- -**is_active:** `bool` - -
-
- -
-
- -**key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris AccountDetails -
client.hris.account_details.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.account_details.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris AccountToken -
client.hris.account_token.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.account_token.retrieve( - public_token="public_token", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**public_token:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris AsyncPassthrough -
client.hris.async_passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.async_passthrough.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris AuditTrail -
client.hris.audit_trail.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred before this time - -
-
- -
-
- -**event_type:** `typing.Optional[str]` β€” If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred after this time - -
-
- -
-
- -**user_email:** `typing.Optional[str]` β€” If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris AvailableActions -
client.hris.available_actions.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.available_actions.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris BankInfo -
client.hris.bank_info.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `BankInfo` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.bank_info import ( - BankInfoListRequestAccountType, - BankInfoListRequestOrderBy, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.bank_info.list( - account_type=BankInfoListRequestAccountType.CHECKING, - bank_name="bank_name", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=BankInfoListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_type:** `typing.Optional[BankInfoListRequestAccountType]` - -If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') - -* `SAVINGS` - SAVINGS -* `CHECKING` - CHECKING - -
-
- -
-
- -**bank_name:** `typing.Optional[str]` β€” If provided, will only return BankInfo's with this bank name. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will only return bank accounts for this employee. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**order_by:** `typing.Optional[BankInfoListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["account_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["account_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.bank_info.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `BankInfo` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.bank_info.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["account_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["account_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Benefits -
client.hris.benefits.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Benefit` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.benefits.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will return the benefits associated with the employee. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.benefits.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Benefit` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.benefits.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Companies -
client.hris.companies.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Company` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.companies.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.companies.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Company` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.companies.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Scopes -
client.hris.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.scopes.default_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.scopes.linked_account_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.scopes.linked_account_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.scopes.linked_account_scopes_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris DeleteAccount -
client.hris.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.delete_account.delete() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Dependents -
client.hris.dependents.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Dependent` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.dependents.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will only return dependents for this employee. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_sensitive_fields:** `typing.Optional[bool]` β€” Whether to include sensitive fields (such as social security numbers) in the response. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.dependents.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Dependent` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.dependents.retrieve( - id="id", - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_sensitive_fields:** `typing.Optional[bool]` β€” Whether to include sensitive fields (such as social security numbers) in the response. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris EmployeePayrollRuns -
client.hris.employee_payroll_runs.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `EmployeePayrollRun` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.employee_payroll_runs import ( - EmployeePayrollRunsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employee_payroll_runs.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=EmployeePayrollRunsListRequestExpand.EMPLOYEE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - payroll_run_id="payroll_run_id", - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will only return employee payroll runs for this employee. - -
-
- -
-
- -**ended_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return employee payroll runs ended after this datetime. - -
-
- -
-
- -**ended_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return employee payroll runs ended before this datetime. - -
-
- -
-
- -**expand:** `typing.Optional[EmployeePayrollRunsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**payroll_run_id:** `typing.Optional[str]` β€” If provided, will only return employee payroll runs for this employee. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**started_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return employee payroll runs started after this datetime. - -
-
- -
-
- -**started_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return employee payroll runs started before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.employee_payroll_runs.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `EmployeePayrollRun` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris.resources.employee_payroll_runs import ( - EmployeePayrollRunsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employee_payroll_runs.retrieve( - id="id", - expand=EmployeePayrollRunsRetrieveRequestExpand.EMPLOYEE, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[EmployeePayrollRunsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Employees -
client.hris.employees.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Employee` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.employees import ( - EmployeesListRequestEmploymentStatus, - EmployeesListRequestExpand, - EmployeesListRequestRemoteFields, - EmployeesListRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employees.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - display_full_name="display_full_name", - employee_number="employee_number", - employment_status=EmployeesListRequestEmploymentStatus.ACTIVE, - employment_type="employment_type", - expand=EmployeesListRequestExpand.COMPANY, - first_name="first_name", - groups="groups", - home_location_id="home_location_id", - include_deleted_data=True, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - job_title="job_title", - last_name="last_name", - manager_id="manager_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - pay_group_id="pay_group_id", - personal_email="personal_email", - remote_fields=EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS, - remote_id="remote_id", - show_enum_origins=EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - team_id="team_id", - terminated_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - terminated_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - work_email="work_email", - work_location_id="work_location_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return employees for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**display_full_name:** `typing.Optional[str]` β€” If provided, will only return employees with this display name. - -
-
- -
-
- -**employee_number:** `typing.Optional[str]` β€” If provided, will only return employees with this employee number. - -
-
- -
-
- -**employment_status:** `typing.Optional[EmployeesListRequestEmploymentStatus]` - -If provided, will only return employees with this employment status. - -* `ACTIVE` - ACTIVE -* `PENDING` - PENDING -* `INACTIVE` - INACTIVE - -
-
- -
-
- -**employment_type:** `typing.Optional[str]` β€” If provided, will only return employees that have an employment of the specified employment type. - -
-
- -
-
- -**expand:** `typing.Optional[EmployeesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**first_name:** `typing.Optional[str]` β€” If provided, will only return employees with this first name. - -
-
- -
-
- -**groups:** `typing.Optional[str]` β€” If provided, will only return employees matching the group ids; multiple groups can be separated by commas. - -
-
- -
-
- -**home_location_id:** `typing.Optional[str]` β€” If provided, will only return employees for this home location. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_sensitive_fields:** `typing.Optional[bool]` β€” Whether to include sensitive fields (such as social security numbers) in the response. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**job_title:** `typing.Optional[str]` β€” If provided, will only return employees that have an employment of the specified job title. - -
-
- -
-
- -**last_name:** `typing.Optional[str]` β€” If provided, will only return employees with this last name. - -
-
- -
-
- -**manager_id:** `typing.Optional[str]` β€” If provided, will only return employees for this manager. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**pay_group_id:** `typing.Optional[str]` β€” If provided, will only return employees for this pay group - -
-
- -
-
- -**personal_email:** `typing.Optional[str]` β€” If provided, will only return Employees with this personal email - -
-
- -
-
- -**remote_fields:** `typing.Optional[EmployeesListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[EmployeesListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**started_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return employees that started after this datetime. - -
-
- -
-
- -**started_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return employees that started before this datetime. - -
-
- -
-
- -**team_id:** `typing.Optional[str]` β€” If provided, will only return employees for this team. - -
-
- -
-
- -**terminated_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return employees that were terminated after this datetime. - -
-
- -
-
- -**terminated_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return employees that were terminated before this datetime. - -
-
- -
-
- -**work_email:** `typing.Optional[str]` β€” If provided, will only return Employees with this work email - -
-
- -
-
- -**work_location_id:** `typing.Optional[str]` β€” If provided, will only return employees for this location. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.employees.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Employee` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import EmployeeRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employees.create( - is_debug_mode=True, - run_async=True, - model=EmployeeRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `EmployeeRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.employees.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Employee` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris.resources.employees import ( - EmployeesRetrieveRequestExpand, - EmployeesRetrieveRequestRemoteFields, - EmployeesRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employees.retrieve( - id="id", - expand=EmployeesRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - remote_fields=EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS, - show_enum_origins=EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[EmployeesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_sensitive_fields:** `typing.Optional[bool]` β€” Whether to include sensitive fields (such as social security numbers) in the response. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[EmployeesRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[EmployeesRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.employees.ignore_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import ReasonEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employees.ignore_create( - model_id="model_id", - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model_id:** `str` - -
-
- -
-
- -**reason:** `IgnoreCommonModelRequestReason` - -
-
- -
-
- -**message:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.employees.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Employee` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employees.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris EmployerBenefits -
client.hris.employer_benefits.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `EmployerBenefit` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employer_benefits.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.employer_benefits.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `EmployerBenefit` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employer_benefits.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Employments -
client.hris.employments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Employment` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.employments import ( - EmploymentsListRequestExpand, - EmploymentsListRequestOrderBy, - EmploymentsListRequestRemoteFields, - EmploymentsListRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - expand=EmploymentsListRequestExpand.EMPLOYEE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=EmploymentsListRequestOrderBy.EFFECTIVE_DATE_DESCENDING, - page_size=1, - remote_fields=EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE, - remote_id="remote_id", - show_enum_origins=EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will only return employments for this employee. - -
-
- -
-
- -**expand:** `typing.Optional[EmploymentsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**order_by:** `typing.Optional[EmploymentsListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: effective_date, -effective_date. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_fields:** `typing.Optional[EmploymentsListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[EmploymentsListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.employments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Employment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris.resources.employments import ( - EmploymentsRetrieveRequestExpand, - EmploymentsRetrieveRequestRemoteFields, - EmploymentsRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.employments.retrieve( - id="id", - expand=EmploymentsRetrieveRequestExpand.EMPLOYEE, - include_remote_data=True, - include_shell_data=True, - remote_fields=EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE, - show_enum_origins=EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[EmploymentsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[EmploymentsRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris FieldMapping -
client.hris.field_mapping.field_mappings_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.field_mapping.field_mappings_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**target_field_name:** `str` β€” The name of the target field you want this remote field to map to. - -
-
- -
-
- -**target_field_description:** `str` β€” The description of the target field you want this remote field to map to. - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Sequence[typing.Optional[typing.Any]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `str` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `str` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**common_model_name:** `str` β€” The name of the Common Model that the remote field corresponds to in a given category. - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**jmes_path:** `typing.Optional[str]` β€” JMES path to specify json query expression to be used on field mapping. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.field_mapping.field_mappings_destroy(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.field_mapping.field_mappings_partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `typing.Optional[str]` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `typing.Optional[str]` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**jmes_path:** `typing.Optional[str]` β€” JMES path to specify json query expression to be used on field mapping. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.field_mapping.remote_fields_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Optional[str]` β€” A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - -
-
- -
-
- -**include_example_values:** `typing.Optional[str]` β€” If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.field_mapping.target_fields_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.field_mapping.target_fields_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris GenerateKey -
client.hris.generate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Groups -
client.hris.groups.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Group` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_commonly_used_as_team="is_commonly_used_as_team", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - names="names", - page_size=1, - remote_id="remote_id", - types="types", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_commonly_used_as_team:** `typing.Optional[str]` β€” If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**names:** `typing.Optional[str]` β€” If provided, will only return groups with these names. Multiple values can be separated by commas. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**types:** `typing.Optional[str]` β€” If provided, will only return groups of these types. Multiple values can be separated by commas. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.groups.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Group` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Issues -
client.hris.issues.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.issues import IssuesListRequestStatus - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_token:** `typing.Optional[str]` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` - -
-
- -
-
- -**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. - -
-
- -
-
- -**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
- -
-
- -**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` - -
-
- -
-
- -**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
- -
-
- -**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - -
-
- -
-
- -**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time - -
-
- -
-
- -**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.issues.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.issues.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris LinkToken -
client.hris.link_token.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import CategoriesEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - -
-
- -
-
- -**end_user_organization_name:** `str` β€” Your end user's organization. - -
-
- -
-
- -**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - -
-
- -
-
- -**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. - -
-
- -
-
- -**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - -
-
- -
-
- -**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - -
-
- -
-
- -**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - -
-
- -
-
- -**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - -
-
- -
-
- -**language:** `typing.Optional[EndUserDetailsRequestLanguage]` - -The following subset of IETF language tags can be used to configure localization. - -* `en` - en -* `de` - de - -
-
- -
-
- -**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
- -
-
- -**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - -
-
- -
-
- -**completed_account_initial_screen:** `typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen]` - -When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - -* `SELECTIVE_SYNC` - SELECTIVE_SYNC - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris LinkedAccounts -
client.hris.linked_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category:** `typing.Optional[LinkedAccountsListRequestCategory]` - -Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - -* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. - -
-
- -
-
- -**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. - -
-
- -
-
- -**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - -
-
- -
-
- -**id:** `typing.Optional[str]` - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - -
-
- -
-
- -**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. - -
-
- -
-
- -**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Locations -
client.hris.locations.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Location` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.locations import ( - LocationsListRequestLocationType, - LocationsListRequestRemoteFields, - LocationsListRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.locations.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - location_type=LocationsListRequestLocationType.HOME, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=LocationsListRequestRemoteFields.COUNTRY, - remote_id="remote_id", - show_enum_origins=LocationsListRequestShowEnumOrigins.COUNTRY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**location_type:** `typing.Optional[LocationsListRequestLocationType]` - -If provided, will only return locations with this location type - -* `HOME` - HOME -* `WORK` - WORK - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_fields:** `typing.Optional[LocationsListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[LocationsListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.locations.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Location` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris.resources.locations import ( - LocationsRetrieveRequestRemoteFields, - LocationsRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.locations.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=LocationsRetrieveRequestRemoteFields.COUNTRY, - show_enum_origins=LocationsRetrieveRequestShowEnumOrigins.COUNTRY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[LocationsRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[LocationsRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Passthrough -
client.hris.passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris PayGroups -
client.hris.pay_groups.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `PayGroup` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.pay_groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.pay_groups.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `PayGroup` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.pay_groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris PayrollRuns -
client.hris.payroll_runs.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `PayrollRun` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.payroll_runs import ( - PayrollRunsListRequestRemoteFields, - PayrollRunsListRequestRunType, - PayrollRunsListRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.payroll_runs.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=PayrollRunsListRequestRemoteFields.RUN_STATE, - remote_id="remote_id", - run_type=PayrollRunsListRequestRunType.CORRECTION, - show_enum_origins=PayrollRunsListRequestShowEnumOrigins.RUN_STATE, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**ended_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return payroll runs ended after this datetime. - -
-
- -
-
- -**ended_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return payroll runs ended before this datetime. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_fields:** `typing.Optional[PayrollRunsListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**run_type:** `typing.Optional[PayrollRunsListRequestRunType]` - -If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS') - -* `REGULAR` - REGULAR -* `OFF_CYCLE` - OFF_CYCLE -* `CORRECTION` - CORRECTION -* `TERMINATION` - TERMINATION -* `SIGN_ON_BONUS` - SIGN_ON_BONUS - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[PayrollRunsListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**started_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return payroll runs started after this datetime. - -
-
- -
-
- -**started_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return payroll runs started before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.payroll_runs.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `PayrollRun` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris.resources.payroll_runs import ( - PayrollRunsRetrieveRequestRemoteFields, - PayrollRunsRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.payroll_runs.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=PayrollRunsRetrieveRequestRemoteFields.RUN_STATE, - show_enum_origins=PayrollRunsRetrieveRequestShowEnumOrigins.RUN_STATE, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[PayrollRunsRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris RegenerateKey -
client.hris.regenerate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.regenerate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris SyncStatus -
client.hris.sync_status.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris ForceResync -
client.hris.force_resync.sync_status_resync_create() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.force_resync.sync_status_resync_create() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris Teams -
client.hris.teams.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Team` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.teams.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_team_id="parent_team_id", - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["parent_team"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**parent_team_id:** `typing.Optional[str]` β€” If provided, will only return teams with this parent team. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.teams.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Team` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.teams.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["parent_team"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris TimeOff -
client.hris.time_off.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `TimeOff` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.time_off import ( - TimeOffListRequestExpand, - TimeOffListRequestRemoteFields, - TimeOffListRequestRequestType, - TimeOffListRequestShowEnumOrigins, - TimeOffListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.time_off.list( - approver_id="approver_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=TimeOffListRequestExpand.APPROVER, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=TimeOffListRequestRemoteFields.REQUEST_TYPE, - remote_id="remote_id", - request_type=TimeOffListRequestRequestType.BEREAVEMENT, - show_enum_origins=TimeOffListRequestShowEnumOrigins.REQUEST_TYPE, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - status=TimeOffListRequestStatus.APPROVED, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**approver_id:** `typing.Optional[str]` β€” If provided, will only return time off for this approver. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will only return time off for this employee. - -
-
- -
-
- -**ended_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return employees that ended after this datetime. - -
-
- -
-
- -**ended_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return time-offs that ended before this datetime. - -
-
- -
-
- -**expand:** `typing.Optional[TimeOffListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_fields:** `typing.Optional[TimeOffListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_type:** `typing.Optional[TimeOffListRequestRequestType]` - -If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - -* `VACATION` - VACATION -* `SICK` - SICK -* `PERSONAL` - PERSONAL -* `JURY_DUTY` - JURY_DUTY -* `VOLUNTEER` - VOLUNTEER -* `BEREAVEMENT` - BEREAVEMENT - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[TimeOffListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**started_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return time-offs that started after this datetime. - -
-
- -
-
- -**started_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return time-offs that started before this datetime. - -
-
- -
-
- -**status:** `typing.Optional[TimeOffListRequestStatus]` - -If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') - -* `REQUESTED` - REQUESTED -* `APPROVED` - APPROVED -* `DECLINED` - DECLINED -* `CANCELLED` - CANCELLED -* `DELETED` - DELETED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.time_off.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `TimeOff` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import TimeOffRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.time_off.create( - is_debug_mode=True, - run_async=True, - model=TimeOffRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `TimeOffRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.time_off.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `TimeOff` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris.resources.time_off import ( - TimeOffRetrieveRequestExpand, - TimeOffRetrieveRequestRemoteFields, - TimeOffRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.time_off.retrieve( - id="id", - expand=TimeOffRetrieveRequestExpand.APPROVER, - include_remote_data=True, - include_shell_data=True, - remote_fields=TimeOffRetrieveRequestRemoteFields.REQUEST_TYPE, - show_enum_origins=TimeOffRetrieveRequestShowEnumOrigins.REQUEST_TYPE, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[TimeOffRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[TimeOffRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[TimeOffRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.time_off.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `TimeOff` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.time_off.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris TimeOffBalances -
client.hris.time_off_balances.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `TimeOffBalance` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.time_off_balances import ( - TimeOffBalancesListRequestPolicyType, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.time_off_balances.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - policy_type=TimeOffBalancesListRequestPolicyType.BEREAVEMENT, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will only return time off balances for this employee. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**policy_type:** `typing.Optional[TimeOffBalancesListRequestPolicyType]` - -If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - -* `VACATION` - VACATION -* `SICK` - SICK -* `PERSONAL` - PERSONAL -* `JURY_DUTY` - JURY_DUTY -* `VOLUNTEER` - VOLUNTEER -* `BEREAVEMENT` - BEREAVEMENT - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["policy_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["policy_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.time_off_balances.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `TimeOffBalance` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.time_off_balances.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["policy_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["policy_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris TimesheetEntries -
client.hris.timesheet_entries.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `TimesheetEntry` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.hris.resources.timesheet_entries import ( - TimesheetEntriesListRequestOrderBy, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.timesheet_entries.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=TimesheetEntriesListRequestOrderBy.START_TIME_DESCENDING, - page_size=1, - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**employee_id:** `typing.Optional[str]` β€” If provided, will only return timesheet entries for this employee. - -
-
- -
-
- -**ended_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return timesheet entries ended after this datetime. - -
-
- -
-
- -**ended_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return timesheet entries ended before this datetime. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**order_by:** `typing.Optional[TimesheetEntriesListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: start_time, -start_time. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**started_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return timesheet entries started after this datetime. - -
-
- -
-
- -**started_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return timesheet entries started before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.timesheet_entries.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `TimesheetEntry` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.hris import TimesheetEntryRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.timesheet_entries.create( - is_debug_mode=True, - run_async=True, - model=TimesheetEntryRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `TimesheetEntryRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.timesheet_entries.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `TimesheetEntry` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.timesheet_entries.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["employee"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.timesheet_entries.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `TimesheetEntry` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.timesheet_entries.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Hris WebhookReceivers -
client.hris.webhook_receivers.list() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.webhook_receivers.list() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hris.webhook_receivers.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.hris.webhook_receivers.create( - event="event", - is_active=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**event:** `str` - -
-
- -
-
- -**is_active:** `bool` - -
-
- -
-
- -**key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase AccountDetails -
client.knowledgebase.account_details.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.account_details.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase AccountToken -
client.knowledgebase.account_token.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.account_token.retrieve( - public_token="public_token", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**public_token:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Articles -
client.knowledgebase.articles.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Article` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.knowledgebase.resources.articles import ( - ArticlesListRequestExpand, - ArticlesListRequestType, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.articles.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ArticlesListRequestExpand.ATTACHMENTS, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_article_id="parent_article_id", - parent_container_id="parent_container_id", - remote_id="remote_id", - root_container_id="root_container_id", - status="status", - type=ArticlesListRequestType.EMPTY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ArticlesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**parent_article_id:** `typing.Optional[str]` β€” If provided, will only return sub articles of the parent_article_id. - -
-
- -
-
- -**parent_container_id:** `typing.Optional[str]` β€” If provided, will only return sub articles of the parent_container_id. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**root_container_id:** `typing.Optional[str]` β€” If provided, will only return sub articles of the root_container_id. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” If provided, will only return articles of the given status; multiple statuses can be separated by commas. - -
-
- -
-
- -**type:** `typing.Optional[ArticlesListRequestType]` β€” If provided, will only return articles of the given type. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.articles.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Article` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase.resources.articles import ( - ArticlesRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.articles.retrieve( - id="id", - expand=ArticlesRetrieveRequestExpand.ATTACHMENTS, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ArticlesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase AsyncPassthrough -
client.knowledgebase.async_passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.async_passthrough.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Attachments -
client.knowledgebase.attachments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Attachment` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.attachments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.attachments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Attachment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase AuditTrail -
client.knowledgebase.audit_trail.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred before this time - -
-
- -
-
- -**event_type:** `typing.Optional[str]` β€” If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred after this time - -
-
- -
-
- -**user_email:** `typing.Optional[str]` β€” If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase AvailableActions -
client.knowledgebase.available_actions.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.available_actions.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Containers -
client.knowledgebase.containers.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Container` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.knowledgebase.resources.containers import ( - ContainersListRequestExpand, - ContainersListRequestType, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.containers.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ContainersListRequestExpand.PARENT_ARTICLE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_article_id="parent_article_id", - parent_container_id="parent_container_id", - remote_id="remote_id", - type=ContainersListRequestType.EMPTY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ContainersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**parent_article_id:** `typing.Optional[str]` β€” If provided, will only return sub containers of the parent_article_id. - -
-
- -
-
- -**parent_container_id:** `typing.Optional[str]` β€” If provided, will only return sub containers of the parent_container_id. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**type:** `typing.Optional[ContainersListRequestType]` β€” If provided, will only return containers of the given type. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.containers.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Container` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase.resources.containers import ( - ContainersRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.containers.retrieve( - id="id", - expand=ContainersRetrieveRequestExpand.PARENT_ARTICLE, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ContainersRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Scopes -
client.knowledgebase.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.scopes.default_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.scopes.linked_account_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.scopes.linked_account_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.scopes.linked_account_scopes_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase DeleteAccount -
client.knowledgebase.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.delete_account.delete() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase FieldMapping -
client.knowledgebase.field_mapping.field_mappings_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.field_mapping.field_mappings_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**target_field_name:** `str` β€” The name of the target field you want this remote field to map to. - -
-
- -
-
- -**target_field_description:** `str` β€” The description of the target field you want this remote field to map to. - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Sequence[typing.Optional[typing.Any]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `str` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `str` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**common_model_name:** `str` β€” The name of the Common Model that the remote field corresponds to in a given category. - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**jmes_path:** `typing.Optional[str]` β€” JMES path to specify json query expression to be used on field mapping. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.field_mapping.field_mappings_destroy(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.field_mapping.field_mappings_partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `typing.Optional[str]` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `typing.Optional[str]` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**jmes_path:** `typing.Optional[str]` β€” JMES path to specify json query expression to be used on field mapping. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.field_mapping.remote_fields_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Optional[str]` β€” A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - -
-
- -
-
- -**include_example_values:** `typing.Optional[str]` β€” If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.field_mapping.target_fields_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.field_mapping.target_fields_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase GenerateKey -
client.knowledgebase.generate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Groups -
client.knowledgebase.groups.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Group` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.knowledgebase.resources.groups import ( - GroupsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=GroupsListRequestExpand.PARENT_GROUP, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[GroupsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.groups.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Group` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase.resources.groups import ( - GroupsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.groups.retrieve( - id="id", - expand=GroupsRetrieveRequestExpand.PARENT_GROUP, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[GroupsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Issues -
client.knowledgebase.issues.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.knowledgebase.resources.issues import ( - IssuesListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_token:** `typing.Optional[str]` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` - -
-
- -
-
- -**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. - -
-
- -
-
- -**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
- -
-
- -**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` - -
-
- -
-
- -**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
- -
-
- -**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - -
-
- -
-
- -**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time - -
-
- -
-
- -**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.issues.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.issues.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase LinkToken -
client.knowledgebase.link_token.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase import CategoriesEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - -
-
- -
-
- -**end_user_organization_name:** `str` β€” Your end user's organization. - -
-
- -
-
- -**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - -
-
- -
-
- -**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. - -
-
- -
-
- -**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - -
-
- -
-
- -**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - -
-
- -
-
- -**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - -
-
- -
-
- -**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - -
-
- -
-
- -**language:** `typing.Optional[EndUserDetailsRequestLanguage]` - -The following subset of IETF language tags can be used to configure localization. - -* `en` - en -* `de` - de - -
-
- -
-
- -**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
- -
-
- -**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - -
-
- -
-
- -**completed_account_initial_screen:** `typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen]` - -When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - -* `SELECTIVE_SYNC` - SELECTIVE_SYNC - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase LinkedAccounts -
client.knowledgebase.linked_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category:** `typing.Optional[LinkedAccountsListRequestCategory]` - -Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - -* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage -* `knowledgebase` - knowledgebase - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. - -
-
- -
-
- -**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. - -
-
- -
-
- -**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - -
-
- -
-
- -**id:** `typing.Optional[str]` - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - -
-
- -
-
- -**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. - -
-
- -
-
- -**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Passthrough -
client.knowledgebase.passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.knowledgebase import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase RegenerateKey -
client.knowledgebase.regenerate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.regenerate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase SyncStatus -
client.knowledgebase.sync_status.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase ForceResync -
client.knowledgebase.force_resync.sync_status_resync_create() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.force_resync.sync_status_resync_create() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase Users -
client.knowledgebase.users.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.users.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `User` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Knowledgebase WebhookReceivers -
client.knowledgebase.webhook_receivers.list() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.webhook_receivers.list() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.knowledgebase.webhook_receivers.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.knowledgebase.webhook_receivers.create( - event="event", - is_active=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**event:** `str` - -
-
- -
-
- -**is_active:** `bool` - -
-
- -
-
- -**key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing AccountDetails -
client.ticketing.account_details.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.account_details.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing AccountToken -
client.ticketing.account_token.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.account_token.retrieve( - public_token="public_token", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**public_token:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Accounts -
client.ticketing.accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Account` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.accounts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.accounts.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Account` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing AsyncPassthrough -
client.ticketing.async_passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.async_passthrough.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Attachments -
client.ticketing.attachments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Attachment` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.attachments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ticket_id="ticket_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["ticket"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return attachments created in the third party platform after this datetime. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**ticket_id:** `typing.Optional[str]` β€” If provided, will only return comments for this ticket. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.attachments.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Attachment` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import AttachmentRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.attachments.create( - is_debug_mode=True, - run_async=True, - model=AttachmentRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `AttachmentRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.attachments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Attachment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["ticket"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.attachments.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `TicketingAttachment` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.attachments.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing AuditTrail -
client.ticketing.audit_trail.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred before this time - -
-
- -
-
- -**event_type:** `typing.Optional[str]` β€” If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred after this time - -
-
- -
-
- -**user_email:** `typing.Optional[str]` β€” If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing AvailableActions -
client.ticketing.available_actions.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.available_actions.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Collections -
client.ticketing.collections.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Collection` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ticketing.resources.collections import ( - CollectionsListRequestCollectionType, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.collections.list( - collection_type=CollectionsListRequestCollectionType.EMPTY, - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - parent_collection_id="parent_collection_id", - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**collection_type:** `typing.Optional[CollectionsListRequestCollectionType]` β€” If provided, will only return collections of the given type. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["parent_collection"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return collections with this name. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**parent_collection_id:** `typing.Optional[str]` β€” If provided, will only return collections whose parent collection matches the given id. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["collection_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["collection_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.collections.viewers_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Collection` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing.resources.collections import ( - CollectionsViewersListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.collections.viewers_list( - collection_id="collection_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CollectionsViewersListRequestExpand.TEAM, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**collection_id:** `str` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[CollectionsViewersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.collections.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Collection` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.collections.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["parent_collection"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["collection_type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["collection_type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Comments -
client.ticketing.comments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Comment` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ticketing.resources.comments import ( - CommentsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.comments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CommentsListRequestExpand.CONTACT, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ticket_id="ticket_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[CommentsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return Comments created in the third party platform after this datetime. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**ticket_id:** `typing.Optional[str]` β€” If provided, will only return comments for this ticket. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.comments.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Comment` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import CommentRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.comments.create( - is_debug_mode=True, - run_async=True, - model=CommentRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `CommentRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.comments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Comment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing.resources.comments import ( - CommentsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.comments.retrieve( - id="id", - expand=CommentsRetrieveRequestExpand.CONTACT, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[CommentsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.comments.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Comment` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.comments.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Contacts -
client.ticketing.contacts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Contact` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.contacts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email_address:** `typing.Optional[str]` β€” If provided, will only return Contacts that match this email. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["account"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.contacts.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Contact` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import ContactRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ContactRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.contacts.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Contact` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.contacts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["account"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.contacts.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `TicketingContact` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.contacts.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Scopes -
client.ticketing.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.scopes.default_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.scopes.linked_account_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.scopes.linked_account_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.scopes.linked_account_scopes_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing DeleteAccount -
client.ticketing.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.delete_account.delete() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing FieldMapping -
client.ticketing.field_mapping.field_mappings_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.field_mapping.field_mappings_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**target_field_name:** `str` β€” The name of the target field you want this remote field to map to. - -
-
- -
-
- -**target_field_description:** `str` β€” The description of the target field you want this remote field to map to. - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Sequence[typing.Optional[typing.Any]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `str` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `str` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**common_model_name:** `str` β€” The name of the Common Model that the remote field corresponds to in a given category. - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**jmes_path:** `typing.Optional[str]` β€” JMES path to specify json query expression to be used on field mapping. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.field_mapping.field_mappings_destroy(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.field_mapping.field_mappings_partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `typing.Optional[str]` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `typing.Optional[str]` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**jmes_path:** `typing.Optional[str]` β€” JMES path to specify json query expression to be used on field mapping. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.field_mapping.remote_fields_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Optional[str]` β€” A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - -
-
- -
-
- -**include_example_values:** `typing.Optional[str]` β€” If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.field_mapping.target_fields_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.field_mapping.target_fields_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing GenerateKey -
client.ticketing.generate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Issues -
client.ticketing.issues.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ticketing.resources.issues import IssuesListRequestStatus - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_token:** `typing.Optional[str]` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` - -
-
- -
-
- -**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. - -
-
- -
-
- -**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
- -
-
- -**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` - -
-
- -
-
- -**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
- -
-
- -**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - -
-
- -
-
- -**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time - -
-
- -
-
- -**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.issues.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.issues.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing LinkToken -
client.ticketing.link_token.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import CategoriesEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - -
-
- -
-
- -**end_user_organization_name:** `str` β€” Your end user's organization. - -
-
- -
-
- -**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - -
-
- -
-
- -**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. - -
-
- -
-
- -**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - -
-
- -
-
- -**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - -
-
- -
-
- -**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - -
-
- -
-
- -**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - -
-
- -
-
- -**language:** `typing.Optional[EndUserDetailsRequestLanguage]` - -The following subset of IETF language tags can be used to configure localization. - -* `en` - en -* `de` - de - -
-
- -
-
- -**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
- -
-
- -**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - -
-
- -
-
- -**completed_account_initial_screen:** `typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen]` - -When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - -* `SELECTIVE_SYNC` - SELECTIVE_SYNC - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing LinkedAccounts -
client.ticketing.linked_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category:** `typing.Optional[LinkedAccountsListRequestCategory]` - -Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - -* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. - -
-
- -
-
- -**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. - -
-
- -
-
- -**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - -
-
- -
-
- -**id:** `typing.Optional[str]` - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - -
-
- -
-
- -**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. - -
-
- -
-
- -**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Passthrough -
client.ticketing.passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Projects -
client.ticketing.projects.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Project` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.projects.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.projects.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Project` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.projects.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.projects.users_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing.resources.projects import ( - ProjectsUsersListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.projects.users_list( - parent_id="parent_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ProjectsUsersListRequestExpand.ROLES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**parent_id:** `str` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ProjectsUsersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing RegenerateKey -
client.ticketing.regenerate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.regenerate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Roles -
client.ticketing.roles.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Role` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.roles.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.roles.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Role` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.roles.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing SyncStatus -
client.ticketing.sync_status.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing ForceResync -
client.ticketing.force_resync.sync_status_resync_create() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.force_resync.sync_status_resync_create() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Tags -
client.ticketing.tags.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Tag` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tags.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tags.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Tag` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tags.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Teams -
client.ticketing.teams.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Team` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.teams.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.teams.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Team` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.teams.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Tickets -
client.ticketing.tickets.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Ticket` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ticketing.resources.tickets import ( - TicketsListRequestExpand, - TicketsListRequestPriority, - TicketsListRequestRemoteFields, - TicketsListRequestShowEnumOrigins, - TicketsListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.list( - account_id="account_id", - assignee_ids="assignee_ids", - collection_ids="collection_ids", - completed_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - completed_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - creator_id="creator_id", - creator_ids="creator_ids", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - due_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - due_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=TicketsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - parent_ticket_id="parent_ticket_id", - priority=TicketsListRequestPriority.HIGH, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_fields=TicketsListRequestRemoteFields.PRIORITY, - remote_id="remote_id", - remote_updated_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_updated_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - show_enum_origins=TicketsListRequestShowEnumOrigins.PRIORITY, - status=TicketsListRequestStatus.EMPTY, - tags="tags", - ticket_type="ticket_type", - ticket_url="ticket_url", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_id:** `typing.Optional[str]` β€” If provided, will only return tickets for this account. - -
-
- -
-
- -**assignee_ids:** `typing.Optional[str]` β€” If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. - -
-
- -
-
- -**collection_ids:** `typing.Optional[str]` β€” If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. - -
-
- -
-
- -**completed_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets completed after this datetime. - -
-
- -
-
- -**completed_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets completed before this datetime. - -
-
- -
-
- -**contact_id:** `typing.Optional[str]` β€” If provided, will only return tickets for this contact. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**creator_id:** `typing.Optional[str]` β€” If provided, will only return tickets created by this creator_id. - -
-
- -
-
- -**creator_ids:** `typing.Optional[str]` β€” If provided, will only return tickets created by the creator_ids; multiple creator_ids can be separated by commas. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**due_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets due after this datetime. - -
-
- -
-
- -**due_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets due before this datetime. - -
-
- -
-
- -**expand:** `typing.Optional[TicketsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return tickets with this name. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**parent_ticket_id:** `typing.Optional[str]` β€” If provided, will only return sub tickets of the parent_ticket_id. - -
-
- -
-
- -**priority:** `typing.Optional[TicketsListRequestPriority]` - -If provided, will only return tickets of this priority. - -* `URGENT` - URGENT -* `HIGH` - HIGH -* `NORMAL` - NORMAL -* `LOW` - LOW - -
-
- -
-
- -**remote_created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets created in the third party platform after this datetime. - -
-
- -
-
- -**remote_created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets created in the third party platform before this datetime. - -
-
- -
-
- -**remote_fields:** `typing.Optional[TicketsListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**remote_updated_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets updated in the third party platform after this datetime. - -
-
- -
-
- -**remote_updated_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return tickets updated in the third party platform before this datetime. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[TicketsListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**status:** `typing.Optional[TicketsListRequestStatus]` β€” If provided, will only return tickets of this status. - -
-
- -
-
- -**tags:** `typing.Optional[str]` β€” If provided, will only return tickets matching the tags; multiple tags can be separated by commas. - -
-
- -
-
- -**ticket_type:** `typing.Optional[str]` β€” If provided, will only return tickets of this type. - -
-
- -
-
- -**ticket_url:** `typing.Optional[str]` β€” If provided, will only return tickets where the URL matches or contains the substring - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Ticket` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import TicketRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.create( - is_debug_mode=True, - run_async=True, - model=TicketRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `TicketRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Ticket` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing.resources.tickets import ( - TicketsRetrieveRequestExpand, - TicketsRetrieveRequestRemoteFields, - TicketsRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.retrieve( - id="id", - expand=TicketsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - remote_fields=TicketsRetrieveRequestRemoteFields.PRIORITY, - show_enum_origins=TicketsRetrieveRequestShowEnumOrigins.PRIORITY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[TicketsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[TicketsRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[TicketsRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates a `Ticket` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing import PatchedTicketRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedTicketRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedTicketRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.viewers_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing.resources.tickets import ( - TicketsViewersListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.viewers_list( - ticket_id="ticket_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TicketsViewersListRequestExpand.TEAM, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**ticket_id:** `str` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[TicketsViewersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Ticket` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.meta_post_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Ticket` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.meta_post_retrieve( - collection_id="collection_id", - ticket_type="ticket_type", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**collection_id:** `typing.Optional[str]` β€” If provided, will only return tickets for this collection. - -
-
- -
-
- -**ticket_type:** `typing.Optional[str]` β€” If provided, will only return tickets for this ticket type. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.tickets.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ids="ids", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” If provided, will only return remote field classes with the `ids` in this list - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing Users -
client.ticketing.users.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.ticketing.resources.users import UsersListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - expand=UsersListRequestExpand.ROLES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - team="team", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email_address:** `typing.Optional[str]` β€” If provided, will only return users with emails equal to this value (case insensitive). - -
-
- -
-
- -**expand:** `typing.Optional[UsersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**team:** `typing.Optional[str]` β€” If provided, will only return users matching in this team. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.users.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `User` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.ticketing.resources.users import UsersRetrieveRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.users.retrieve( - id="id", - expand=UsersRetrieveRequestExpand.ROLES, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[UsersRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Ticketing WebhookReceivers -
client.ticketing.webhook_receivers.list() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.webhook_receivers.list() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.ticketing.webhook_receivers.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.ticketing.webhook_receivers.create( - event="event", - is_active=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**event:** `str` - -
-
- -
-
- -**is_active:** `bool` - -
-
- -
-
- -**key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage AccountDetails -
client.filestorage.account_details.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.account_details.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage AccountToken -
client.filestorage.account_token.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.account_token.retrieve( - public_token="public_token", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**public_token:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage AsyncPassthrough -
client.filestorage.async_passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.async_passthrough.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage AuditTrail -
client.filestorage.audit_trail.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred before this time - -
-
- -
-
- -**event_type:** `typing.Optional[str]` β€” If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred after this time - -
-
- -
-
- -**user_email:** `typing.Optional[str]` β€” If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage AvailableActions -
client.filestorage.available_actions.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.available_actions.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Scopes -
client.filestorage.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.scopes.default_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.scopes.linked_account_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.scopes.linked_account_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.scopes.linked_account_scopes_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage DeleteAccount -
client.filestorage.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.delete_account.delete() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Drives -
client.filestorage.drives.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Drive` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.drives.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return drives with this name. This performs an exact match. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.drives.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Drive` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.drives.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage FieldMapping -
client.filestorage.field_mapping.field_mappings_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.field_mapping.field_mappings_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**target_field_name:** `str` β€” The name of the target field you want this remote field to map to. - -
-
- -
-
- -**target_field_description:** `str` β€” The description of the target field you want this remote field to map to. - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Sequence[typing.Optional[typing.Any]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `str` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `str` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**common_model_name:** `str` β€” The name of the Common Model that the remote field corresponds to in a given category. - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.field_mapping.field_mappings_destroy(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.field_mapping.field_mappings_partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `typing.Optional[str]` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `typing.Optional[str]` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.field_mapping.remote_fields_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Optional[str]` β€” A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - -
-
- -
-
- -**include_example_values:** `typing.Optional[str]` β€” If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.field_mapping.target_fields_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.field_mapping.target_fields_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Files -
client.filestorage.files.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `File` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.filestorage.resources.files import ( - FilesListRequestExpand, - FilesListRequestOrderBy, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.files.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - drive_id="drive_id", - expand=FilesListRequestExpand.DRIVE, - folder_id="folder_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - mime_type="mime_type", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - order_by=FilesListRequestOrderBy.CREATED_AT_DESCENDING, - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**drive_id:** `typing.Optional[str]` β€” Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive. - -
-
- -
-
- -**expand:** `typing.Optional[FilesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**folder_id:** `typing.Optional[str]` β€” Specifying a folder id returns only the files in that folder. Specifying null returns only the files in root directory. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**mime_type:** `typing.Optional[str]` β€” If provided, will only return files with these mime_types. Multiple values can be separated by commas. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return files with this name. This performs an exact match. - -
-
- -
-
- -**order_by:** `typing.Optional[FilesListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return files created in the third party platform after this datetime. - -
-
- -
-
- -**remote_created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return files created in the third party platform before this datetime. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.files.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `File` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage import FileRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.files.create( - is_debug_mode=True, - run_async=True, - model=FileRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `FileRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.files.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `File` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage.resources.files import ( - FilesRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.files.retrieve( - id="id", - expand=FilesRetrieveRequestExpand.DRIVE, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[FilesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.files.download_request_meta_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.files.download_request_meta_retrieve( - id="id", - mime_type="mime_type", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**mime_type:** `typing.Optional[str]` β€” If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.files.download_request_meta_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage.resources.files import ( - FilesDownloadRequestMetaListRequestOrderBy, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.files.download_request_meta_list( - created_after="created_after", - created_before="created_before", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - mime_types="mime_types", - modified_after="modified_after", - modified_before="modified_before", - order_by=FilesDownloadRequestMetaListRequestOrderBy.CREATED_AT_DESCENDING, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[str]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[str]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` β€” If provided, will only return objects with the given IDs. Comma-separated list of strings. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**mime_types:** `typing.Optional[str]` β€” A comma-separated list of preferred MIME types in order of priority. If supported by the third-party provider, the file(s) will be returned in the first supported MIME type from the list. The default MIME type is PDF. To see supported MIME types by file type, refer to our export format help center article. - -
-
- -
-
- -**modified_after:** `typing.Optional[str]` β€” If provided, will only return objects modified after this datetime. - -
-
- -
-
- -**modified_before:** `typing.Optional[str]` β€” If provided, will only return objects modified before this datetime. - -
-
- -
-
- -**order_by:** `typing.Optional[FilesDownloadRequestMetaListRequestOrderBy]` β€” Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.files.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `FileStorageFile` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.files.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Folders -
client.filestorage.folders.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Folder` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.filestorage.resources.folders import ( - FoldersListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.folders.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - drive_id="drive_id", - expand=FoldersListRequestExpand.DRIVE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - parent_folder_id="parent_folder_id", - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**drive_id:** `typing.Optional[str]` β€” If provided, will only return folders in this drive. - -
-
- -
-
- -**expand:** `typing.Optional[FoldersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return folders with this name. This performs an exact match. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**parent_folder_id:** `typing.Optional[str]` β€” If provided, will only return folders in this parent folder. If null, will return folders in root directory. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.folders.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Folder` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage import FolderRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.folders.create( - is_debug_mode=True, - run_async=True, - model=FolderRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `FolderRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.folders.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Folder` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage.resources.folders import ( - FoldersRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.folders.retrieve( - id="id", - expand=FoldersRetrieveRequestExpand.DRIVE, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[FoldersRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.folders.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `FileStorageFolder` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.folders.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage GenerateKey -
client.filestorage.generate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Groups -
client.filestorage.groups.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Group` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["child_groups"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.groups.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Group` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["child_groups"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Issues -
client.filestorage.issues.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.filestorage.resources.issues import IssuesListRequestStatus - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_token:** `typing.Optional[str]` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` - -
-
- -
-
- -**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. - -
-
- -
-
- -**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
- -
-
- -**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` - -
-
- -
-
- -**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
- -
-
- -**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - -
-
- -
-
- -**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time - -
-
- -
-
- -**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.issues.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.issues.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage LinkToken -
client.filestorage.link_token.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage import CategoriesEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - -
-
- -
-
- -**end_user_organization_name:** `str` β€” Your end user's organization. - -
-
- -
-
- -**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - -
-
- -
-
- -**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. - -
-
- -
-
- -**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - -
-
- -
-
- -**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - -
-
- -
-
- -**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - -
-
- -
-
- -**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - -
-
- -
-
- -**language:** `typing.Optional[LanguageEnum]` - -The following subset of IETF language tags can be used to configure localization. - -* `en` - en -* `de` - de - -
-
- -
-
- -**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
- -
-
- -**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage LinkedAccounts -
client.filestorage.linked_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category:** `typing.Optional[LinkedAccountsListRequestCategory]` - -Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - -* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. - -
-
- -
-
- -**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. - -
-
- -
-
- -**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - -
-
- -
-
- -**id:** `typing.Optional[str]` - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - -
-
- -
-
- -**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. - -
-
- -
-
- -**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Passthrough -
client.filestorage.passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.filestorage import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage RegenerateKey -
client.filestorage.regenerate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.regenerate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage SyncStatus -
client.filestorage.sync_status.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage ForceResync -
client.filestorage.force_resync.sync_status_resync_create() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.force_resync.sync_status_resync_create() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage Users -
client.filestorage.users.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_me="is_me", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_me:** `typing.Optional[str]` β€” If provided, will only return the user object for requestor. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.users.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `User` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Filestorage WebhookReceivers -
client.filestorage.webhook_receivers.list() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.webhook_receivers.list() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.filestorage.webhook_receivers.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.filestorage.webhook_receivers.create( - event="event", - is_active=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**event:** `str` - -
-
- -
-
- -**is_active:** `bool` - -
-
- -
-
- -**key:** `typing.Optional[str]` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting AccountDetails -
client.accounting.account_details.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.account_details.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting AccountToken -
client.accounting.account_token.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.account_token.retrieve( - public_token="public_token", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**public_token:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting AccountingPeriods -
client.accounting.accounting_periods.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `AccountingPeriod` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.accounting_periods.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.accounting_periods.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `AccountingPeriod` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.accounting_periods.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Accounts -
client.accounting.accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Account` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.accounts import ( - AccountsListRequestClassification, - AccountsListRequestRemoteFields, - AccountsListRequestShowEnumOrigins, - AccountsListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.accounts.list( - account_type="account_type", - classification=AccountsListRequestClassification.EMPTY, - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_fields=AccountsListRequestRemoteFields.CLASSIFICATION, - remote_id="remote_id", - show_enum_origins=AccountsListRequestShowEnumOrigins.CLASSIFICATION, - status=AccountsListRequestStatus.EMPTY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_type:** `typing.Optional[str]` β€” If provided, will only return accounts with the passed in enum. - -
-
- -
-
- -**classification:** `typing.Optional[AccountsListRequestClassification]` β€” If provided, will only return accounts with this classification. - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return accounts for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return Accounts with this name. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[AccountsListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[AccountsListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**status:** `typing.Optional[AccountsListRequestStatus]` β€” If provided, will only return accounts with this status. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.accounts.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Account` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import AccountRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.accounts.create( - is_debug_mode=True, - run_async=True, - model=AccountRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `AccountRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.accounts.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Account` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.accounts import ( - AccountsRetrieveRequestRemoteFields, - AccountsRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=AccountsRetrieveRequestRemoteFields.CLASSIFICATION, - show_enum_origins=AccountsRetrieveRequestShowEnumOrigins.CLASSIFICATION, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[AccountsRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[AccountsRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.accounts.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Account` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.accounts.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Addresses -
client.accounting.addresses.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Address` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.addresses.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting AsyncPassthrough -
client.accounting.async_passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.async_passthrough.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting AsyncTasks -
client.accounting.async_tasks.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `AsyncPostTask` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.async_tasks.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Attachments -
client.accounting.attachments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `AccountingAttachment` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.attachments.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return accounting attachments for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.attachments.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `AccountingAttachment` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import AccountingAttachmentRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.attachments.create( - is_debug_mode=True, - run_async=True, - model=AccountingAttachmentRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `AccountingAttachmentRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.attachments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `AccountingAttachment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.attachments.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `AccountingAttachment` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.attachments.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting AuditTrail -
client.accounting.audit_trail.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred before this time - -
-
- -
-
- -**event_type:** `typing.Optional[str]` β€” If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include audit trail events that occurred after this time - -
-
- -
-
- -**user_email:** `typing.Optional[str]` β€” If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting AvailableActions -
client.accounting.available_actions.retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.available_actions.retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting BalanceSheets -
client.accounting.balance_sheets.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `BalanceSheet` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.balance_sheets.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return balance sheets for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.balance_sheets.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `BalanceSheet` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.balance_sheets.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting BankFeedAccounts -
client.accounting.bank_feed_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `BankFeedAccount` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_accounts.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.bank_feed_accounts.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `BankFeedAccount` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import BankFeedAccountRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_accounts.create( - is_debug_mode=True, - run_async=True, - model=BankFeedAccountRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `BankFeedAccountRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.bank_feed_accounts.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `BankFeedAccount` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.bank_feed_accounts.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `BankFeedAccount` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_accounts.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting BankFeedTransactions -
client.accounting.bank_feed_transactions.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `BankFeedTransaction` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_transactions.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_processed=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["bank_feed_account"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_processed:** `typing.Optional[bool]` β€” If provided, will only return bank feed transactions with this is_processed value - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.bank_feed_transactions.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `BankFeedTransaction` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import BankFeedTransactionRequestRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_transactions.create( - is_debug_mode=True, - run_async=True, - model=BankFeedTransactionRequestRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `BankFeedTransactionRequestRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.bank_feed_transactions.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `BankFeedTransaction` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_transactions.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["bank_feed_account"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.bank_feed_transactions.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `BankFeedTransaction` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.bank_feed_transactions.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting CashFlowStatements -
client.accounting.cash_flow_statements.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `CashFlowStatement` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.cash_flow_statements.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return cash flow statements for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.cash_flow_statements.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `CashFlowStatement` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.cash_flow_statements.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting CompanyInfo -
client.accounting.company_info.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `CompanyInfo` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.company_info import ( - CompanyInfoListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.company_info.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CompanyInfoListRequestExpand.ADDRESSES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[CompanyInfoListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.company_info.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `CompanyInfo` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.company_info import ( - CompanyInfoRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.company_info.retrieve( - id="id", - expand=CompanyInfoRetrieveRequestExpand.ADDRESSES, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[CompanyInfoRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Contacts -
client.accounting.contacts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Contact` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.contacts import ( - ContactsListRequestExpand, - ContactsListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.contacts.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - expand=ContactsListRequestExpand.ADDRESSES, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_customer="is_customer", - is_supplier="is_supplier", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - status=ContactsListRequestStatus.EMPTY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return contacts for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**email_address:** `typing.Optional[str]` β€” If provided, will only return Contacts that match this email. - -
-
- -
-
- -**expand:** `typing.Optional[ContactsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_customer:** `typing.Optional[str]` β€” If provided, will only return Contacts that are denoted as customers. - -
-
- -
-
- -**is_supplier:** `typing.Optional[str]` β€” If provided, will only return Contacts that are denoted as suppliers. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return Contacts that match this name. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**status:** `typing.Optional[ContactsListRequestStatus]` β€” If provided, will only return Contacts that match this status. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Contact` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import ContactRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ContactRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Contact` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.contacts import ( - ContactsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.contacts.retrieve( - id="id", - expand=ContactsRetrieveRequestExpand.ADDRESSES, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ContactsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates a `Contact` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import PatchedContactRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.contacts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedContactRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedContactRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Contact` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.contacts.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Contact` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.contacts.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.contacts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting CreditNotes -
client.accounting.credit_notes.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `CreditNote` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.credit_notes import ( - CreditNotesListRequestExpand, - CreditNotesListRequestRemoteFields, - CreditNotesListRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.credit_notes.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CreditNotesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=CreditNotesListRequestRemoteFields.STATUS, - remote_id="remote_id", - show_enum_origins=CreditNotesListRequestShowEnumOrigins.STATUS, - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return credit notes for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[CreditNotesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[CreditNotesListRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[CreditNotesListRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**transaction_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**transaction_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.credit_notes.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `CreditNote` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import CreditNoteRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.credit_notes.create( - is_debug_mode=True, - run_async=True, - model=CreditNoteRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `CreditNoteRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.credit_notes.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `CreditNote` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.credit_notes import ( - CreditNotesRetrieveRequestExpand, - CreditNotesRetrieveRequestRemoteFields, - CreditNotesRetrieveRequestShowEnumOrigins, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.credit_notes.retrieve( - id="id", - expand=CreditNotesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, - remote_fields=CreditNotesRetrieveRequestRemoteFields.STATUS, - show_enum_origins=CreditNotesRetrieveRequestShowEnumOrigins.STATUS, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[CreditNotesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[CreditNotesRetrieveRequestRemoteFields]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.credit_notes.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `CreditNote` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.credit_notes.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Scopes -
client.accounting.scopes.default_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.scopes.default_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.scopes.linked_account_scopes_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.scopes.linked_account_scopes_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.scopes.linked_account_scopes_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Sequence[IndividualCommonModelScopeDeserializerRequest]` β€” The common models you want to update the scopes for - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting DeleteAccount -
client.accounting.delete_account.delete() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.delete_account.delete() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Employees -
client.accounting.employees.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Employee` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.employees.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return employees for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.employees.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Employee` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.employees.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting ExpenseReports -
client.accounting.expense_reports.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `ExpenseReport` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expense_reports.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpenseReportsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return expense reports for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ExpenseReportsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expense_reports.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `ExpenseReport` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import ExpenseReportRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expense_reports.create( - is_debug_mode=True, - run_async=True, - model=ExpenseReportRequest( - tracking_categories=[ - "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", - "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", - ], - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ExpenseReportRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expense_reports.lines_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsLinesListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expense_reports.lines_list( - expense_report_id="expense_report_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpenseReportsLinesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**expense_report_id:** `str` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ExpenseReportsLinesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expense_reports.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `ExpenseReport` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expense_reports.retrieve( - id="id", - expand=ExpenseReportsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ExpenseReportsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expense_reports.lines_remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expense_reports.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expense_reports.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `ExpenseReport` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expense_reports.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expense_reports.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expense_reports.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Expenses -
client.accounting.expenses.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Expense` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.expenses import ( - ExpensesListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expenses.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpensesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return expenses for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ExpensesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**transaction_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**transaction_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Expense` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import ExpenseRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expenses.create( - is_debug_mode=True, - run_async=True, - model=ExpenseRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ExpenseRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Expense` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.expenses import ( - ExpensesRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expenses.retrieve( - id="id", - expand=ExpensesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ExpensesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.lines_remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expenses.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Expense` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expenses.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.expenses.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting FieldMapping -
client.accounting.field_mapping.field_mappings_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.field_mapping.field_mappings_create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**target_field_name:** `str` β€” The name of the target field you want this remote field to map to. - -
-
- -
-
- -**target_field_description:** `str` β€” The description of the target field you want this remote field to map to. - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Sequence[typing.Optional[typing.Any]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `str` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `str` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**common_model_name:** `str` β€” The name of the Common Model that the remote field corresponds to in a given category. - -
-
- -
-
- -**exclude_remote_field_metadata:** `typing.Optional[bool]` β€” If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.field_mapping.field_mappings_destroy(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.field_mapping.field_mappings_partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**field_mapping_id:** `str` - -
-
- -
-
- -**remote_field_traversal_path:** `typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]` β€” The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - -
-
- -
-
- -**remote_method:** `typing.Optional[str]` β€” The method of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**remote_url_path:** `typing.Optional[str]` β€” The path of the remote endpoint where the remote field is coming from. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.field_mapping.remote_fields_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**common_models:** `typing.Optional[str]` β€” A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - -
-
- -
-
- -**include_example_values:** `typing.Optional[str]` β€” If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.field_mapping.target_fields_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.field_mapping.target_fields_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting GeneralLedgerTransactions -
client.accounting.general_ledger_transactions.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `GeneralLedgerTransaction` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.general_ledger_transactions import ( - GeneralLedgerTransactionsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.general_ledger_transactions.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=GeneralLedgerTransactionsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - posted_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - posted_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return general ledger transactions for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[GeneralLedgerTransactionsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**posted_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects posted after this datetime. - -
-
- -
-
- -**posted_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects posted before this datetime. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.general_ledger_transactions.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `GeneralLedgerTransaction` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.general_ledger_transactions import ( - GeneralLedgerTransactionsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.general_ledger_transactions.retrieve( - id="id", - expand=GeneralLedgerTransactionsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting GenerateKey -
client.accounting.generate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.generate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting IncomeStatements -
client.accounting.income_statements.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `IncomeStatement` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.income_statements.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return income statements for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.income_statements.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `IncomeStatement` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.income_statements.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Invoices -
client.accounting.invoices.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Invoice` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.invoices import ( - InvoicesListRequestExpand, - InvoicesListRequestStatus, - InvoicesListRequestType, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.list( - company_id="company_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=InvoicesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - issue_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - issue_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - number="number", - page_size=1, - remote_id="remote_id", - status=InvoicesListRequestStatus.DRAFT, - type=InvoicesListRequestType.ACCOUNTS_PAYABLE, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return invoices for this company. - -
-
- -
-
- -**contact_id:** `typing.Optional[str]` β€” If provided, will only return invoices for this contact. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[InvoicesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**issue_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**issue_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**number:** `typing.Optional[str]` β€” If provided, will only return Invoices with this number. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**status:** `typing.Optional[InvoicesListRequestStatus]` - -If provided, will only return Invoices with this status. - -* `PAID` - PAID -* `DRAFT` - DRAFT -* `SUBMITTED` - SUBMITTED -* `PARTIALLY_PAID` - PARTIALLY_PAID -* `OPEN` - OPEN -* `VOID` - VOID - -
-
- -
-
- -**type:** `typing.Optional[InvoicesListRequestType]` - -If provided, will only return Invoices with this type. - -* `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE -* `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Invoice` object with the given values. - Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). - -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import InvoiceRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.create( - is_debug_mode=True, - run_async=True, - model=InvoiceRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `InvoiceRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Invoice` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.invoices import ( - InvoicesRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.retrieve( - id="id", - expand=InvoicesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[InvoicesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["type"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["type"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates an `Invoice` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import InvoiceRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=InvoiceRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `InvoiceRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.line_items_remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Invoice` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Invoice` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.invoices.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Issues -
client.accounting.issues.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.issues import IssuesListRequestStatus - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_token:** `typing.Optional[str]` - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred before this time - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` - -
-
- -
-
- -**first_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was after this datetime. - -
-
- -
-
- -**first_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose first incident time was before this datetime. - -
-
- -
-
- -**include_muted:** `typing.Optional[str]` β€” If true, will include muted issues - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` - -
-
- -
-
- -**last_incident_time_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was after this datetime. - -
-
- -
-
- -**last_incident_time_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return issues whose last incident time was before this datetime. - -
-
- -
-
- -**linked_account_id:** `typing.Optional[str]` β€” If provided, will only include issues pertaining to the linked account passed in. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**start_date:** `typing.Optional[str]` β€” If included, will only include issues whose most recent action occurred after this time - -
-
- -
-
- -**status:** `typing.Optional[IssuesListRequestStatus]` - -Status of the issue. Options: ('ONGOING', 'RESOLVED') - -* `ONGOING` - ONGOING -* `RESOLVED` - RESOLVED - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.issues.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.issues.retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Items -
client.accounting.items.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Item` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.items import ItemsListRequestExpand - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.items.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ItemsListRequestExpand.COMPANY, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return items for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ItemsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.items.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates an `Item` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import ItemRequestRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.items.create( - is_debug_mode=True, - run_async=True, - model=ItemRequestRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `ItemRequestRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.items.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `Item` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.items import ( - ItemsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.items.retrieve( - id="id", - expand=ItemsRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ItemsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.items.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates an `Item` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import PatchedItemRequestRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.items.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedItemRequestRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedItemRequestRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.items.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Item` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.items.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.items.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Item` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.items.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting JournalEntries -
client.accounting.journal_entries.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `JournalEntry` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.journal_entries import ( - JournalEntriesListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.journal_entries.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JournalEntriesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return journal entries for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[JournalEntriesListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**transaction_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**transaction_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.journal_entries.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `JournalEntry` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import JournalEntryRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.journal_entries.create( - is_debug_mode=True, - run_async=True, - model=JournalEntryRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `JournalEntryRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.journal_entries.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `JournalEntry` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.journal_entries import ( - JournalEntriesRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.journal_entries.retrieve( - id="id", - expand=JournalEntriesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[JournalEntriesRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.journal_entries.lines_remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.journal_entries.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.journal_entries.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `JournalEntry` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.journal_entries.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.journal_entries.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.journal_entries.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting LinkToken -
client.accounting.link_token.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import CategoriesEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**end_user_email_address:** `str` β€” Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - -
-
- -
-
- -**end_user_organization_name:** `str` β€” Your end user's organization. - -
-
- -
-
- -**end_user_origin_id:** `str` β€” This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - -
-
- -
-
- -**categories:** `typing.Sequence[CategoriesEnum]` β€” The integration categories to show in Merge Link. - -
-
- -
-
- -**integration:** `typing.Optional[str]` β€” The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - -
-
- -
-
- -**link_expiry_mins:** `typing.Optional[int]` β€” An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - -
-
- -
-
- -**should_create_magic_link_url:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**hide_admin_magic_link:** `typing.Optional[bool]` β€” Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - -
-
- -
-
- -**common_models:** `typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]]` β€” An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - -
-
- -
-
- -**category_common_model_scopes:** `typing.Optional[ - typing.Dict[ - str, - typing.Optional[ - typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - ], - ] -]` β€” When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - -
-
- -
-
- -**language:** `typing.Optional[EndUserDetailsRequestLanguage]` - -The following subset of IETF language tags can be used to configure localization. - -* `en` - en -* `de` - de - -
-
- -
-
- -**are_syncs_disabled:** `typing.Optional[bool]` β€” The boolean that indicates whether initial, periodic, and force syncs will be disabled. - -
-
- -
-
- -**integration_specific_config:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` β€” A JSON object containing integration-specific configuration options. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting LinkedAccounts -
client.accounting.linked_accounts.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category:** `typing.Optional[LinkedAccountsListRequestCategory]` - -Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - -* `hris` - hris -* `ats` - ats -* `accounting` - accounting -* `ticketing` - ticketing -* `crm` - crm -* `mktg` - mktg -* `filestorage` - filestorage - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**end_user_email_address:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given email address. - -
-
- -
-
- -**end_user_organization_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given organization name. - -
-
- -
-
- -**end_user_origin_id:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given origin ID. - -
-
- -
-
- -**end_user_origin_ids:** `typing.Optional[str]` β€” Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - -
-
- -
-
- -**id:** `typing.Optional[str]` - -
-
- -
-
- -**ids:** `typing.Optional[str]` β€” Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - -
-
- -
-
- -**include_duplicates:** `typing.Optional[bool]` β€” If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - -
-
- -
-
- -**integration_name:** `typing.Optional[str]` β€” If provided, will only return linked accounts associated with the given integration name. - -
-
- -
-
- -**is_test_account:** `typing.Optional[str]` β€” If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**status:** `typing.Optional[str]` β€” Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Passthrough -
client.accounting.passthrough.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import DataPassthroughRequest, MethodEnum - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request:** `DataPassthroughRequest` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting PaymentMethods -
client.accounting.payment_methods.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `PaymentMethod` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payment_methods.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payment_methods.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `PaymentMethod` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payment_methods.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting PaymentTerms -
client.accounting.payment_terms.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `PaymentTerm` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payment_terms.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payment_terms.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `PaymentTerm` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payment_terms.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Payments -
client.accounting.payments.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Payment` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.payments import ( - PaymentsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.list( - account_id="account_id", - company_id="company_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=PaymentsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**account_id:** `typing.Optional[str]` β€” If provided, will only return payments for this account. - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return payments for this company. - -
-
- -
-
- -**contact_id:** `typing.Optional[str]` β€” If provided, will only return payments for this contact. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[PaymentsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**transaction_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**transaction_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payments.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `Payment` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import PaymentRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.create( - is_debug_mode=True, - run_async=True, - model=PaymentRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `PaymentRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payments.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Payment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.payments import ( - PaymentsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.retrieve( - id="id", - expand=PaymentsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[PaymentsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payments.partial_update(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Updates a `Payment` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import PatchedPaymentRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedPaymentRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**model:** `PatchedPaymentRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payments.line_items_remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payments.meta_patch_retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Payment` PATCHs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.meta_patch_retrieve( - id="id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payments.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `Payment` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.payments.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.payments.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting PhoneNumbers -
client.accounting.phone_numbers.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns an `AccountingPhoneNumber` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.phone_numbers.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Projects -
client.accounting.projects.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Project` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.projects import ( - ProjectsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.projects.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ProjectsListRequestExpand.COMPANY, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return projects for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[ProjectsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.projects.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `Project` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.projects import ( - ProjectsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.projects.retrieve( - id="id", - expand=ProjectsRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[ProjectsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting PurchaseOrders -
client.accounting.purchase_orders.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `PurchaseOrder` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.purchase_orders import ( - PurchaseOrdersListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.purchase_orders.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=PurchaseOrdersListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - issue_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - issue_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return purchase orders for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[PurchaseOrdersListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**issue_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**issue_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.purchase_orders.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Creates a `PurchaseOrder` object with the given values. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting import PurchaseOrderRequest - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.purchase_orders.create( - is_debug_mode=True, - run_async=True, - model=PurchaseOrderRequest(), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**model:** `PurchaseOrderRequest` - -
-
- -
-
- -**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. - -
-
- -
-
- -**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.purchase_orders.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `PurchaseOrder` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge -from merge.resources.accounting.resources.purchase_orders import ( - PurchaseOrdersRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.purchase_orders.retrieve( - id="id", - expand=PurchaseOrdersRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[PurchaseOrdersRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_remote_fields:** `typing.Optional[bool]` β€” Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.purchase_orders.line_items_remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.purchase_orders.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.purchase_orders.meta_post_retrieve() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns metadata for `PurchaseOrder` POSTs. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.purchase_orders.meta_post_retrieve() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.purchase_orders.remote_field_classes_list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.purchase_orders.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**is_common_model_field:** `typing.Optional[bool]` β€” If provided, will only return remote field classes with this is_common_model_field value - -
-
- -
-
- -**is_custom:** `typing.Optional[bool]` β€” If provided, will only return remote fields classes with this is_custom value - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting RegenerateKey -
client.accounting.regenerate_key.create(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.regenerate_key.create( - name="Remote Deployment Key 1", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**name:** `str` β€” The name of the remote key - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting SyncStatus -
client.accounting.sync_status.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting ForceResync -
client.accounting.force_resync.sync_status_resync_create() -
-
- -#### πŸ“ Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.force_resync.sync_status_resync_create() - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting TaxRates -
client.accounting.tax_rates.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `TaxRate` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.tax_rates.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return tax rates for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return TaxRates with this name. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.tax_rates.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `TaxRate` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.tax_rates.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting TrackingCategories -
client.accounting.tracking_categories.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `TrackingCategory` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.tracking_categories import ( - TrackingCategoriesListRequestCategoryType, - TrackingCategoriesListRequestStatus, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.tracking_categories.list( - category_type=TrackingCategoriesListRequestCategoryType.EMPTY, - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - status=TrackingCategoriesListRequestStatus.EMPTY, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**category_type:** `typing.Optional[TrackingCategoriesListRequestCategoryType]` β€” If provided, will only return tracking categories with this type. - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return tracking categories for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**name:** `typing.Optional[str]` β€” If provided, will only return tracking categories with this name. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**status:** `typing.Optional[TrackingCategoriesListRequestStatus]` β€” If provided, will only return tracking categories with this status. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.accounting.tracking_categories.retrieve(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a `TrackingCategory` object with the given `id`. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -from merge import Merge - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.tracking_categories.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[typing.Literal["company"]]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**remote_fields:** `typing.Optional[typing.Literal["status"]]` β€” Deprecated. Use show_enum_origins. - -
-
- -
-
- -**show_enum_origins:** `typing.Optional[typing.Literal["status"]]` β€” A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. - -
-
-
-
- - -
-
-
- -## Accounting Transactions -
client.accounting.transactions.list(...) -
-
- -#### πŸ“ Description - -
-
- -
-
- -Returns a list of `Transaction` objects. -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```python -import datetime - -from merge import Merge -from merge.resources.accounting.resources.transactions import ( - TransactionsListRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.transactions.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TransactionsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), -) - -``` -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**company_id:** `typing.Optional[str]` β€” If provided, will only return accounting transactions for this company. - -
-
- -
-
- -**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
- -
-
- -**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. - -
-
- -
-
- -**expand:** `typing.Optional[TransactionsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - -
-
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. - -
-
- -
-
- -**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
- -
-
- -**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
- -
-
- -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - -
-
- -
-
- -**transaction_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. - -
-
+
-**transaction_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. +**request:** `DataPassthroughRequest`
@@ -60813,7 +3909,8 @@ client.accounting.transactions.list(
-
client.accounting.transactions.retrieve(...) +## Filestorage RegenerateKey +
client.filestorage.regenerate_key.create(...)
@@ -60825,7 +3922,7 @@ client.accounting.transactions.list(
-Returns a `Transaction` object with the given `id`. +Exchange remote keys.
@@ -60841,19 +3938,13 @@ Returns a `Transaction` object with the given `id`. ```python from merge import Merge -from merge.resources.accounting.resources.transactions import ( - TransactionsRetrieveRequestExpand, -) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.accounting.transactions.retrieve( - id="id", - expand=TransactionsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_shell_data=True, +client.filestorage.regenerate_key.create( + name="Remote Deployment Key 1", ) ``` @@ -60870,31 +3961,7 @@ client.accounting.transactions.retrieve(
-**id:** `str` - -
-
- -
-
- -**expand:** `typing.Optional[TransactionsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - -
-
- -
-
- -**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
- -
-
- -**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +**name:** `str` β€” The name of the remote key
@@ -60914,8 +3981,8 @@ client.accounting.transactions.retrieve(
-## Accounting VendorCredits -
client.accounting.vendor_credits.list(...) +## Filestorage SyncStatus +
client.filestorage.sync_status.list(...)
@@ -60927,7 +3994,7 @@ client.accounting.transactions.retrieve(
-Returns a list of `VendorCredit` objects. +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -60942,45 +4009,21 @@ Returns a list of `VendorCredit` objects.
```python -import datetime - from merge import Merge -from merge.resources.accounting.resources.vendor_credits import ( - VendorCreditsListRequestExpand, -) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.accounting.vendor_credits.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), +response = client.filestorage.sync_status.list( cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=VendorCreditsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -60996,7 +4039,7 @@ client.accounting.vendor_credits.list(
-**company_id:** `typing.Optional[str]` β€” If provided, will only return vendor credits for this company. +**cursor:** `typing.Optional[str]` β€” The pagination cursor value.
@@ -61004,7 +4047,7 @@ client.accounting.vendor_credits.list(
-**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. +**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100.
@@ -61012,99 +4055,65 @@ client.accounting.vendor_credits.list(
-**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. +**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
- -
-
- -**cursor:** `typing.Optional[str]` β€” The pagination cursor value. -
-
-
-**expand:** `typing.Optional[VendorCreditsListRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. -
+
+## Filestorage ForceResync +
client.filestorage.force_resync.sync_status_resync_create()
-**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - -
-
+#### πŸ“ Description
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. - -
-
-
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
- -
-
- -**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned. -
+#### πŸ”Œ Usage +
-**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned. - -
-
-
-**page_size:** `typing.Optional[int]` β€” Number of results to return per page. - -
-
+```python +from merge import Merge -
-
+client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", +) +client.filestorage.force_resync.sync_status_resync_create() -**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object. - +```
- -
-
- -**transaction_date_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime. -
+#### βš™οΈ Parameters +
-**transaction_date_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime. - -
-
-
@@ -61120,7 +4129,8 @@ client.accounting.vendor_credits.list(
-
client.accounting.vendor_credits.create(...) +## Filestorage Users +
client.filestorage.users.list(...)
@@ -61132,7 +4142,7 @@ client.accounting.vendor_credits.list(
-Creates a `VendorCredit` object with the given values. +Returns a list of `User` objects.
@@ -61147,18 +4157,41 @@ Creates a `VendorCredit` object with the given values.
```python +import datetime + from merge import Merge -from merge.resources.accounting import VendorCreditRequest client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.accounting.vendor_credits.create( - is_debug_mode=True, - run_async=True, - model=VendorCreditRequest(), +response = client.filestorage.users.list( + created_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + created_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email_address="email_address", + include_deleted_data=True, + include_remote_data=True, + include_shell_data=True, + is_me="is_me", + modified_after=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + modified_before=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + page_size=1, + remote_id="remote_id", ) +for item in response: + yield item +# alternatively, you can paginate page-by-page +for page in response.iter_pages(): + yield page ```
@@ -61174,7 +4207,7 @@ client.accounting.vendor_credits.create(
-**model:** `VendorCreditRequest` +**created_after:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created after this datetime.
@@ -61182,7 +4215,7 @@ client.accounting.vendor_credits.create(
-**is_debug_mode:** `typing.Optional[bool]` β€” Whether to include debug fields (such as log file links) in the response. +**created_before:** `typing.Optional[dt.datetime]` β€” If provided, will only return objects created before this datetime.
@@ -61190,7 +4223,7 @@ client.accounting.vendor_credits.create(
-**run_async:** `typing.Optional[bool]` β€” Whether or not third-party updates should be run asynchronously. +**cursor:** `typing.Optional[str]` β€” The pagination cursor value.
@@ -61198,76 +4231,47 @@ client.accounting.vendor_credits.create(
-**request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration. +**email_address:** `typing.Optional[str]` β€” If provided, will only return users with emails equal to this value (case insensitive).
- -
+
+
+**include_deleted_data:** `typing.Optional[bool]` β€” Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). +
-
-
client.accounting.vendor_credits.retrieve(...)
-#### πŸ“ Description - -
-
+**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. + +
+
-Returns a `VendorCredit` object with the given `id`. -
-
+**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +
-#### πŸ”Œ Usage - -
-
-
-```python -from merge import Merge -from merge.resources.accounting.resources.vendor_credits import ( - VendorCreditsRetrieveRequestExpand, -) - -client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", -) -client.accounting.vendor_credits.retrieve( - id="id", - expand=VendorCreditsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, -) - -``` -
-
+**is_me:** `typing.Optional[str]` β€” If provided, will only return the user object for requestor. +
-#### βš™οΈ Parameters - -
-
-
-**id:** `str` +**modified_after:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge after this date time will be returned.
@@ -61275,7 +4279,7 @@ client.accounting.vendor_credits.retrieve(
-**expand:** `typing.Optional[VendorCreditsRetrieveRequestExpand]` β€” Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. +**modified_before:** `typing.Optional[dt.datetime]` β€” If provided, only objects synced by Merge before this date time will be returned.
@@ -61283,7 +4287,7 @@ client.accounting.vendor_credits.retrieve(
-**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. +**page_size:** `typing.Optional[int]` β€” Number of results to return per page. The maximum limit is 100.
@@ -61291,7 +4295,7 @@ client.accounting.vendor_credits.retrieve(
-**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). +**remote_id:** `typing.Optional[str]` β€” The API provider's ID for the given object.
@@ -61311,7 +4315,7 @@ client.accounting.vendor_credits.retrieve(
-
client.accounting.vendor_credits.meta_post_retrieve() +
client.filestorage.users.retrieve(...)
@@ -61323,7 +4327,7 @@ client.accounting.vendor_credits.retrieve(
-Returns metadata for `VendorCredit` POSTs. +Returns a `User` object with the given `id`.
@@ -61344,7 +4348,11 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.accounting.vendor_credits.meta_post_retrieve() +client.filestorage.users.retrieve( + id="id", + include_remote_data=True, + include_shell_data=True, +) ``` @@ -61360,6 +4368,30 @@ client.accounting.vendor_credits.meta_post_retrieve()
+**id:** `str` + +
+
+ +
+
+ +**include_remote_data:** `typing.Optional[bool]` β€” Whether to include the original data Merge fetched from the third-party to produce these models. + +
+
+ +
+
+ +**include_shell_data:** `typing.Optional[bool]` β€” Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). + +
+
+ +
+
+ **request_options:** `typing.Optional[RequestOptions]` β€” Request-specific configuration.
@@ -61372,8 +4404,8 @@ client.accounting.vendor_credits.meta_post_retrieve()
-## Accounting WebhookReceivers -
client.accounting.webhook_receivers.list() +## Filestorage WebhookReceivers +
client.filestorage.webhook_receivers.list()
@@ -61406,7 +4438,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.accounting.webhook_receivers.list() +client.filestorage.webhook_receivers.list() ```
@@ -61434,7 +4466,7 @@ client.accounting.webhook_receivers.list()
-
client.accounting.webhook_receivers.create(...) +
client.filestorage.webhook_receivers.create(...)
@@ -61467,7 +4499,7 @@ client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) -client.accounting.webhook_receivers.create( +client.filestorage.webhook_receivers.create( event="event", is_active=True, ) diff --git a/src/merge/__init__.py b/src/merge/__init__.py index 91011bdf..466e67e5 100644 --- a/src/merge/__init__.py +++ b/src/merge/__init__.py @@ -6,7 +6,7 @@ from importlib import import_module if typing.TYPE_CHECKING: - from .resources import accounting, ats, chat, crm, filestorage, hris, knowledgebase, ticketing + from .resources import filestorage from .client import AsyncMerge, Merge from .environment import MergeEnvironment from .version import __version__ @@ -15,14 +15,7 @@ "Merge": ".client", "MergeEnvironment": ".environment", "__version__": ".version", - "accounting": ".resources", - "ats": ".resources", - "chat": ".resources", - "crm": ".resources", "filestorage": ".resources", - "hris": ".resources", - "knowledgebase": ".resources", - "ticketing": ".resources", } @@ -45,17 +38,4 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = [ - "AsyncMerge", - "Merge", - "MergeEnvironment", - "__version__", - "accounting", - "ats", - "chat", - "crm", - "filestorage", - "hris", - "knowledgebase", - "ticketing", -] +__all__ = ["AsyncMerge", "Merge", "MergeEnvironment", "__version__", "filestorage"] diff --git a/src/merge/client.py b/src/merge/client.py index ff255527..5b965532 100644 --- a/src/merge/client.py +++ b/src/merge/client.py @@ -9,14 +9,7 @@ from .environment import MergeEnvironment if typing.TYPE_CHECKING: - from .resources.accounting.client import AccountingClient, AsyncAccountingClient - from .resources.ats.client import AsyncAtsClient, AtsClient - from .resources.chat.client import AsyncChatClient, ChatClient - from .resources.crm.client import AsyncCrmClient, CrmClient from .resources.filestorage.client import AsyncFilestorageClient, FilestorageClient - from .resources.hris.client import AsyncHrisClient, HrisClient - from .resources.knowledgebase.client import AsyncKnowledgebaseClient, KnowledgebaseClient - from .resources.ticketing.client import AsyncTicketingClient, TicketingClient class Merge: @@ -88,62 +81,7 @@ def __init__( else httpx.Client(timeout=_defaulted_timeout), timeout=_defaulted_timeout, ) - self._chat: typing.Optional[ChatClient] = None - self._ats: typing.Optional[AtsClient] = None - self._crm: typing.Optional[CrmClient] = None - self._hris: typing.Optional[HrisClient] = None - self._knowledgebase: typing.Optional[KnowledgebaseClient] = None - self._ticketing: typing.Optional[TicketingClient] = None self._filestorage: typing.Optional[FilestorageClient] = None - self._accounting: typing.Optional[AccountingClient] = None - - @property - def chat(self): - if self._chat is None: - from .resources.chat.client import ChatClient # noqa: E402 - - self._chat = ChatClient(client_wrapper=self._client_wrapper) - return self._chat - - @property - def ats(self): - if self._ats is None: - from .resources.ats.client import AtsClient # noqa: E402 - - self._ats = AtsClient(client_wrapper=self._client_wrapper) - return self._ats - - @property - def crm(self): - if self._crm is None: - from .resources.crm.client import CrmClient # noqa: E402 - - self._crm = CrmClient(client_wrapper=self._client_wrapper) - return self._crm - - @property - def hris(self): - if self._hris is None: - from .resources.hris.client import HrisClient # noqa: E402 - - self._hris = HrisClient(client_wrapper=self._client_wrapper) - return self._hris - - @property - def knowledgebase(self): - if self._knowledgebase is None: - from .resources.knowledgebase.client import KnowledgebaseClient # noqa: E402 - - self._knowledgebase = KnowledgebaseClient(client_wrapper=self._client_wrapper) - return self._knowledgebase - - @property - def ticketing(self): - if self._ticketing is None: - from .resources.ticketing.client import TicketingClient # noqa: E402 - - self._ticketing = TicketingClient(client_wrapper=self._client_wrapper) - return self._ticketing @property def filestorage(self): @@ -153,14 +91,6 @@ def filestorage(self): self._filestorage = FilestorageClient(client_wrapper=self._client_wrapper) return self._filestorage - @property - def accounting(self): - if self._accounting is None: - from .resources.accounting.client import AccountingClient # noqa: E402 - - self._accounting = AccountingClient(client_wrapper=self._client_wrapper) - return self._accounting - class AsyncMerge: """ @@ -231,62 +161,7 @@ def __init__( else httpx.AsyncClient(timeout=_defaulted_timeout), timeout=_defaulted_timeout, ) - self._chat: typing.Optional[AsyncChatClient] = None - self._ats: typing.Optional[AsyncAtsClient] = None - self._crm: typing.Optional[AsyncCrmClient] = None - self._hris: typing.Optional[AsyncHrisClient] = None - self._knowledgebase: typing.Optional[AsyncKnowledgebaseClient] = None - self._ticketing: typing.Optional[AsyncTicketingClient] = None self._filestorage: typing.Optional[AsyncFilestorageClient] = None - self._accounting: typing.Optional[AsyncAccountingClient] = None - - @property - def chat(self): - if self._chat is None: - from .resources.chat.client import AsyncChatClient # noqa: E402 - - self._chat = AsyncChatClient(client_wrapper=self._client_wrapper) - return self._chat - - @property - def ats(self): - if self._ats is None: - from .resources.ats.client import AsyncAtsClient # noqa: E402 - - self._ats = AsyncAtsClient(client_wrapper=self._client_wrapper) - return self._ats - - @property - def crm(self): - if self._crm is None: - from .resources.crm.client import AsyncCrmClient # noqa: E402 - - self._crm = AsyncCrmClient(client_wrapper=self._client_wrapper) - return self._crm - - @property - def hris(self): - if self._hris is None: - from .resources.hris.client import AsyncHrisClient # noqa: E402 - - self._hris = AsyncHrisClient(client_wrapper=self._client_wrapper) - return self._hris - - @property - def knowledgebase(self): - if self._knowledgebase is None: - from .resources.knowledgebase.client import AsyncKnowledgebaseClient # noqa: E402 - - self._knowledgebase = AsyncKnowledgebaseClient(client_wrapper=self._client_wrapper) - return self._knowledgebase - - @property - def ticketing(self): - if self._ticketing is None: - from .resources.ticketing.client import AsyncTicketingClient # noqa: E402 - - self._ticketing = AsyncTicketingClient(client_wrapper=self._client_wrapper) - return self._ticketing @property def filestorage(self): @@ -296,14 +171,6 @@ def filestorage(self): self._filestorage = AsyncFilestorageClient(client_wrapper=self._client_wrapper) return self._filestorage - @property - def accounting(self): - if self._accounting is None: - from .resources.accounting.client import AsyncAccountingClient # noqa: E402 - - self._accounting = AsyncAccountingClient(client_wrapper=self._client_wrapper) - return self._accounting - def _get_base_url(*, base_url: typing.Optional[str] = None, environment: MergeEnvironment) -> str: if base_url is not None: diff --git a/src/merge/core/__init__.py b/src/merge/core/__init__.py index 18228526..5134f31b 100644 --- a/src/merge/core/__init__.py +++ b/src/merge/core/__init__.py @@ -13,6 +13,7 @@ from .http_client import AsyncHttpClient, HttpClient from .http_response import AsyncHttpResponse, HttpResponse from .jsonable_encoder import jsonable_encoder + from .pagination import AsyncPager, SyncPager from .pydantic_utilities import ( IS_PYDANTIC_V2, UniversalBaseModel, @@ -32,6 +33,7 @@ "AsyncClientWrapper": ".client_wrapper", "AsyncHttpClient": ".http_client", "AsyncHttpResponse": ".http_response", + "AsyncPager": ".pagination", "BaseClientWrapper": ".client_wrapper", "FieldMetadata": ".serialization", "File": ".file", @@ -40,6 +42,7 @@ "IS_PYDANTIC_V2": ".pydantic_utilities", "RequestOptions": ".request_options", "SyncClientWrapper": ".client_wrapper", + "SyncPager": ".pagination", "UncheckedBaseModel": ".unchecked_base_model", "UnionMetadata": ".unchecked_base_model", "UniversalBaseModel": ".pydantic_utilities", @@ -83,6 +86,7 @@ def __dir__(): "AsyncClientWrapper", "AsyncHttpClient", "AsyncHttpResponse", + "AsyncPager", "BaseClientWrapper", "FieldMetadata", "File", @@ -91,6 +95,7 @@ def __dir__(): "IS_PYDANTIC_V2", "RequestOptions", "SyncClientWrapper", + "SyncPager", "UncheckedBaseModel", "UnionMetadata", "UniversalBaseModel", diff --git a/src/merge/core/client_wrapper.py b/src/merge/core/client_wrapper.py index 3b87debd..bf291996 100644 --- a/src/merge/core/client_wrapper.py +++ b/src/merge/core/client_wrapper.py @@ -24,10 +24,10 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "MergePythonClient/2.6.3", + "User-Agent": "MergePythonClient/3.0.0", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "MergePythonClient", - "X-Fern-SDK-Version": "2.6.3", + "X-Fern-SDK-Version": "3.0.0", **(self.get_custom_headers() or {}), } if self._account_token is not None: diff --git a/src/merge/core/pagination.py b/src/merge/core/pagination.py new file mode 100644 index 00000000..97bcb645 --- /dev/null +++ b/src/merge/core/pagination.py @@ -0,0 +1,82 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +from dataclasses import dataclass +from typing import AsyncIterator, Awaitable, Callable, Generic, Iterator, List, Optional, TypeVar + +from .http_response import BaseHttpResponse + +# Generic to represent the underlying type of the results within a page +T = TypeVar("T") + + +# SDKs implement a Page ABC per-pagination request, the endpoint then returns a pager that wraps this type +# for example, an endpoint will return SyncPager[UserPage] where UserPage implements the Page ABC. ex: +# +# SyncPager( +# has_next=response.list_metadata.after is not None, +# items=response.data, +# # This should be the outer function that returns the SyncPager again +# get_next=lambda: list(..., cursor: response.cursor) (or list(..., offset: offset + 1)) +# ) + + +@dataclass(frozen=True) +class SyncPager(Generic[T]): + get_next: Optional[Callable[[], Optional[SyncPager[T]]]] + has_next: bool + items: Optional[List[T]] + response: Optional[BaseHttpResponse] + + # Here we type ignore the iterator to avoid a mypy error + # caused by the type conflict with Pydanitc's __iter__ method + # brought in by extending the base model + def __iter__(self) -> Iterator[T]: # type: ignore[override] + for page in self.iter_pages(): + if page.items is not None: + yield from page.items + + def iter_pages(self) -> Iterator[SyncPager[T]]: + page: Optional[SyncPager[T]] = self + while page is not None: + yield page + + if not page.has_next or page.get_next is None: + return + + page = page.get_next() + if page is None or page.items is None or len(page.items) == 0: + return + + def next_page(self) -> Optional[SyncPager[T]]: + return self.get_next() if self.get_next is not None else None + + +@dataclass(frozen=True) +class AsyncPager(Generic[T]): + get_next: Optional[Callable[[], Awaitable[Optional[AsyncPager[T]]]]] + has_next: bool + items: Optional[List[T]] + response: Optional[BaseHttpResponse] + + async def __aiter__(self) -> AsyncIterator[T]: + async for page in self.iter_pages(): + if page.items is not None: + for item in page.items: + yield item + + async def iter_pages(self) -> AsyncIterator[AsyncPager[T]]: + page: Optional[AsyncPager[T]] = self + while page is not None: + yield page + + if not page.has_next or page.get_next is None: + return + + page = await page.get_next() + if page is None or page.items is None or len(page.items) == 0: + return + + async def next_page(self) -> Optional[AsyncPager[T]]: + return await self.get_next() if self.get_next is not None else None diff --git a/src/merge/environment.py b/src/merge/environment.py index 499dced1..40aae945 100644 --- a/src/merge/environment.py +++ b/src/merge/environment.py @@ -5,5 +5,5 @@ class MergeEnvironment(enum.Enum): PRODUCTION = "https://api.merge.dev/api" - SANDBOX = "https://api-sandbox.merge.dev/api" PRODUCTION_EU = "https://api-eu.merge.dev/api" + SANDBOX = "https://api-sandbox.merge.dev/api" diff --git a/src/merge/resources/__init__.py b/src/merge/resources/__init__.py index 7fdb8ad9..309a1344 100644 --- a/src/merge/resources/__init__.py +++ b/src/merge/resources/__init__.py @@ -6,17 +6,8 @@ from importlib import import_module if typing.TYPE_CHECKING: - from . import accounting, ats, chat, crm, filestorage, hris, knowledgebase, ticketing -_dynamic_imports: typing.Dict[str, str] = { - "accounting": ".", - "ats": ".", - "chat": ".", - "crm": ".", - "filestorage": ".", - "hris": ".", - "knowledgebase": ".", - "ticketing": ".", -} + from . import filestorage +_dynamic_imports: typing.Dict[str, str] = {"filestorage": "."} def __getattr__(attr_name: str) -> typing.Any: @@ -38,4 +29,4 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["accounting", "ats", "chat", "crm", "filestorage", "hris", "knowledgebase", "ticketing"] +__all__ = ["filestorage"] diff --git a/src/merge/resources/accounting/__init__.py b/src/merge/resources/accounting/__init__.py deleted file mode 100644 index 119d224a..00000000 --- a/src/merge/resources/accounting/__init__.py +++ /dev/null @@ -1,1867 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - Account, - AccountAccountType, - AccountAccountTypeEnum, - AccountClassification, - AccountCurrency, - AccountDetails, - AccountDetailsAndActions, - AccountDetailsAndActionsCategory, - AccountDetailsAndActionsIntegration, - AccountDetailsAndActionsStatus, - AccountDetailsAndActionsStatusEnum, - AccountDetailsCategory, - AccountIntegration, - AccountRequest, - AccountRequestAccountType, - AccountRequestClassification, - AccountRequestCurrency, - AccountRequestStatus, - AccountResponse, - AccountStatus, - AccountStatusEnum, - AccountToken, - AccountingAttachment, - AccountingAttachmentRequest, - AccountingAttachmentResponse, - AccountingPeriod, - AccountingPeriodStatus, - AccountingPhoneNumber, - AccountingPhoneNumberRequest, - Address, - AddressCountry, - AddressRequest, - AddressRequestCountry, - AddressRequestType, - AddressType, - AddressTypeEnum, - AdvancedMetadata, - AsyncPassthroughReciept, - AsyncPostTask, - AsyncPostTaskResult, - AsyncPostTaskStatus, - AsyncPostTaskStatusEnum, - AuditLogEvent, - AuditLogEventEventType, - AuditLogEventRole, - AvailableActions, - BalanceSheet, - BalanceSheetCompany, - BalanceSheetCurrency, - BankFeedAccount, - BankFeedAccountAccountType, - BankFeedAccountAccountTypeEnum, - BankFeedAccountCurrency, - BankFeedAccountFeedStatus, - BankFeedAccountRequest, - BankFeedAccountRequestAccountType, - BankFeedAccountRequestCurrency, - BankFeedAccountRequestFeedStatus, - BankFeedAccountResponse, - BankFeedTransaction, - BankFeedTransactionBankFeedAccount, - BankFeedTransactionCreditOrDebit, - BankFeedTransactionRequestRequest, - BankFeedTransactionRequestRequestBankFeedAccount, - BankFeedTransactionRequestRequestCreditOrDebit, - BankFeedTransactionResponse, - CashFlowStatement, - CashFlowStatementCompany, - CashFlowStatementCurrency, - CategoriesEnum, - CategoryEnum, - CategoryTypeEnum, - ClassificationEnum, - CommonModelScopeApi, - CommonModelScopesBodyRequest, - CompanyInfo, - CompanyInfoCurrency, - ComponentTypeEnum, - Contact, - ContactAddressesItem, - ContactRequest, - ContactRequestAddressesItem, - ContactRequestStatus, - ContactResponse, - ContactStatus, - CountryEnum, - CreditNote, - CreditNoteAccountingPeriod, - CreditNoteAppliedPaymentsItem, - CreditNoteApplyLineForCreditNote, - CreditNoteApplyLineForCreditNoteInvoice, - CreditNoteApplyLineForCreditNoteRequest, - CreditNoteApplyLineForCreditNoteRequestInvoice, - CreditNoteApplyLineForInvoice, - CreditNoteApplyLineForInvoiceCreditNote, - CreditNoteCompany, - CreditNoteContact, - CreditNoteCurrency, - CreditNoteLineItem, - CreditNoteLineItemCompany, - CreditNoteLineItemContact, - CreditNoteLineItemItem, - CreditNoteLineItemProject, - CreditNoteLineItemRequest, - CreditNoteLineItemRequestCompany, - CreditNoteLineItemRequestContact, - CreditNoteLineItemRequestItem, - CreditNoteLineItemRequestProject, - CreditNotePaymentsItem, - CreditNoteRequest, - CreditNoteRequestAccountingPeriod, - CreditNoteRequestAppliedPaymentsItem, - CreditNoteRequestCompany, - CreditNoteRequestContact, - CreditNoteRequestCurrency, - CreditNoteRequestLineItemsItem, - CreditNoteRequestPaymentsItem, - CreditNoteRequestStatus, - CreditNoteRequestTrackingCategoriesItem, - CreditNoteResponse, - CreditNoteStatus, - CreditNoteStatusEnum, - CreditNoteTrackingCategoriesItem, - CreditOrDebitEnum, - DataPassthroughRequest, - DataPassthroughRequestMethod, - DebugModeLog, - DebugModelLogSummary, - Employee, - EmployeeCompany, - EmployeeStatus, - EnabledActionsEnum, - EncodingEnum, - ErrorValidationProblem, - EventTypeEnum, - Expense, - ExpenseAccount, - ExpenseAccountingPeriod, - ExpenseCompany, - ExpenseContact, - ExpenseCurrency, - ExpenseEmployee, - ExpenseLine, - ExpenseLineAccount, - ExpenseLineContact, - ExpenseLineCurrency, - ExpenseLineEmployee, - ExpenseLineItem, - ExpenseLineProject, - ExpenseLineRequest, - ExpenseLineRequestAccount, - ExpenseLineRequestContact, - ExpenseLineRequestCurrency, - ExpenseLineRequestEmployee, - ExpenseLineRequestItem, - ExpenseLineRequestProject, - ExpenseLineRequestTrackingCategoriesItem, - ExpenseLineRequestTrackingCategory, - ExpenseLineTrackingCategoriesItem, - ExpenseLineTrackingCategory, - ExpenseReport, - ExpenseReportCompany, - ExpenseReportLine, - ExpenseReportLineAccount, - ExpenseReportLineCompany, - ExpenseReportLineContact, - ExpenseReportLineEmployee, - ExpenseReportLineProject, - ExpenseReportLineRequest, - ExpenseReportLineRequestAccount, - ExpenseReportLineRequestCompany, - ExpenseReportLineRequestContact, - ExpenseReportLineRequestEmployee, - ExpenseReportLineRequestProject, - ExpenseReportLineRequestTaxRate, - ExpenseReportLineTaxRate, - ExpenseReportRequest, - ExpenseReportRequestAccountingPeriod, - ExpenseReportRequestCompany, - ExpenseReportRequestEmployee, - ExpenseReportResponse, - ExpenseReportStatus, - ExpenseReportStatusEnum, - ExpenseRequest, - ExpenseRequestAccount, - ExpenseRequestAccountingPeriod, - ExpenseRequestCompany, - ExpenseRequestContact, - ExpenseRequestCurrency, - ExpenseRequestEmployee, - ExpenseRequestTrackingCategoriesItem, - ExpenseResponse, - ExpenseTrackingCategoriesItem, - ExternalTargetFieldApi, - ExternalTargetFieldApiResponse, - FeedStatusEnum, - FieldFormatEnum, - FieldMappingApiInstance, - FieldMappingApiInstanceRemoteField, - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - FieldMappingApiInstanceResponse, - FieldMappingApiInstanceTargetField, - FieldMappingInstanceResponse, - FieldPermissionDeserializer, - FieldPermissionDeserializerRequest, - FieldTypeEnum, - GeneralLedgerTransaction, - GeneralLedgerTransactionAccountingPeriod, - GeneralLedgerTransactionCompany, - GeneralLedgerTransactionGeneralLedgerTransactionLinesItem, - GeneralLedgerTransactionLine, - GeneralLedgerTransactionLineAccount, - GeneralLedgerTransactionLineBaseCurrency, - GeneralLedgerTransactionLineCompany, - GeneralLedgerTransactionLineContact, - GeneralLedgerTransactionLineEmployee, - GeneralLedgerTransactionLineItem, - GeneralLedgerTransactionLineProject, - GeneralLedgerTransactionLineTrackingCategoriesItem, - GeneralLedgerTransactionLineTransactionCurrency, - GeneralLedgerTransactionTrackingCategoriesItem, - GeneralLedgerTransactionUnderlyingTransactionType, - IncomeStatement, - IncomeStatementCompany, - IncomeStatementCurrency, - IndividualCommonModelScopeDeserializer, - IndividualCommonModelScopeDeserializerRequest, - Invoice, - InvoiceAccountingPeriod, - InvoiceAppliedCreditNotesItem, - InvoiceAppliedPaymentsItem, - InvoiceAppliedVendorCreditsItem, - InvoiceCompany, - InvoiceContact, - InvoiceCurrency, - InvoiceEmployee, - InvoiceLineItem, - InvoiceLineItemAccount, - InvoiceLineItemContact, - InvoiceLineItemCurrency, - InvoiceLineItemEmployee, - InvoiceLineItemItem, - InvoiceLineItemProject, - InvoiceLineItemRequest, - InvoiceLineItemRequestAccount, - InvoiceLineItemRequestContact, - InvoiceLineItemRequestCurrency, - InvoiceLineItemRequestEmployee, - InvoiceLineItemRequestItem, - InvoiceLineItemRequestProject, - InvoiceLineItemRequestTrackingCategoriesItem, - InvoiceLineItemRequestTrackingCategory, - InvoiceLineItemTrackingCategoriesItem, - InvoiceLineItemTrackingCategory, - InvoicePaymentTerm, - InvoicePaymentsItem, - InvoicePurchaseOrdersItem, - InvoiceRequest, - InvoiceRequestCompany, - InvoiceRequestContact, - InvoiceRequestCurrency, - InvoiceRequestEmployee, - InvoiceRequestPaymentTerm, - InvoiceRequestPaymentsItem, - InvoiceRequestPurchaseOrdersItem, - InvoiceRequestStatus, - InvoiceRequestTrackingCategoriesItem, - InvoiceRequestType, - InvoiceResponse, - InvoiceStatus, - InvoiceStatusEnum, - InvoiceTrackingCategoriesItem, - InvoiceType, - InvoiceTypeEnum, - Issue, - IssueStatus, - IssueStatusEnum, - Item, - ItemCompany, - ItemFormatEnum, - ItemPurchaseAccount, - ItemPurchaseTaxRate, - ItemRequestRequest, - ItemRequestRequestCompany, - ItemRequestRequestPurchaseAccount, - ItemRequestRequestPurchaseTaxRate, - ItemRequestRequestSalesAccount, - ItemRequestRequestSalesTaxRate, - ItemRequestRequestStatus, - ItemRequestRequestType, - ItemResponse, - ItemSalesAccount, - ItemSalesTaxRate, - ItemSchema, - ItemStatus, - ItemType, - ItemTypeEnum, - JournalEntry, - JournalEntryAccountingPeriod, - JournalEntryAppliedPaymentsItem, - JournalEntryCompany, - JournalEntryCurrency, - JournalEntryPaymentsItem, - JournalEntryPostingStatus, - JournalEntryRequest, - JournalEntryRequestCompany, - JournalEntryRequestCurrency, - JournalEntryRequestPaymentsItem, - JournalEntryRequestPostingStatus, - JournalEntryRequestTrackingCategoriesItem, - JournalEntryResponse, - JournalEntryTrackingCategoriesItem, - JournalLine, - JournalLineAccount, - JournalLineCurrency, - JournalLineProject, - JournalLineRequest, - JournalLineRequestAccount, - JournalLineRequestCurrency, - JournalLineRequestProject, - JournalLineRequestTrackingCategoriesItem, - JournalLineRequestTrackingCategory, - JournalLineTrackingCategoriesItem, - JournalLineTrackingCategory, - LanguageEnum, - LastSyncResultEnum, - LinkToken, - LinkedAccountStatus, - MetaResponse, - MethodEnum, - MethodTypeEnum, - ModelOperation, - ModelPermissionDeserializer, - ModelPermissionDeserializerRequest, - MultipartFormFieldRequest, - MultipartFormFieldRequestEncoding, - PaginatedAccountDetailsAndActionsList, - PaginatedAccountList, - PaginatedAccountingAttachmentList, - PaginatedAccountingPeriodList, - PaginatedAuditLogEventList, - PaginatedBalanceSheetList, - PaginatedBankFeedAccountList, - PaginatedBankFeedTransactionList, - PaginatedCashFlowStatementList, - PaginatedCompanyInfoList, - PaginatedContactList, - PaginatedCreditNoteList, - PaginatedEmployeeList, - PaginatedExpenseList, - PaginatedExpenseReportLineList, - PaginatedExpenseReportList, - PaginatedGeneralLedgerTransactionList, - PaginatedIncomeStatementList, - PaginatedInvoiceList, - PaginatedIssueList, - PaginatedItemList, - PaginatedJournalEntryList, - PaginatedPaymentList, - PaginatedPaymentMethodList, - PaginatedPaymentTermList, - PaginatedProjectList, - PaginatedPurchaseOrderList, - PaginatedRemoteFieldClassList, - PaginatedSyncStatusList, - PaginatedTaxRateList, - PaginatedTrackingCategoryList, - PaginatedTransactionList, - PaginatedVendorCreditList, - PatchedContactRequest, - PatchedContactRequestAddressesItem, - PatchedItemRequestRequest, - PatchedItemRequestRequestStatus, - PatchedItemRequestRequestType, - PatchedPaymentRequest, - PatchedPaymentRequestAccount, - PatchedPaymentRequestAccountingPeriod, - PatchedPaymentRequestAppliedToLinesItem, - PatchedPaymentRequestCompany, - PatchedPaymentRequestContact, - PatchedPaymentRequestCurrency, - PatchedPaymentRequestPaymentMethod, - PatchedPaymentRequestTrackingCategoriesItem, - PatchedPaymentRequestType, - Payment, - PaymentAccount, - PaymentAccountingPeriod, - PaymentAppliedToLinesItem, - PaymentCompany, - PaymentContact, - PaymentCurrency, - PaymentLineItem, - PaymentLineItemRequest, - PaymentMethod, - PaymentMethodMethodType, - PaymentPaymentMethod, - PaymentRequest, - PaymentRequestAccount, - PaymentRequestAccountingPeriod, - PaymentRequestAppliedToLinesItem, - PaymentRequestCompany, - PaymentRequestContact, - PaymentRequestCurrency, - PaymentRequestPaymentMethod, - PaymentRequestTrackingCategoriesItem, - PaymentRequestType, - PaymentResponse, - PaymentTerm, - PaymentTermCompany, - PaymentTrackingCategoriesItem, - PaymentType, - PaymentTypeEnum, - PostingStatusEnum, - Project, - ProjectCompany, - ProjectContact, - PurchaseOrder, - PurchaseOrderAccountingPeriod, - PurchaseOrderCompany, - PurchaseOrderCurrency, - PurchaseOrderDeliveryAddress, - PurchaseOrderLineItem, - PurchaseOrderLineItemCurrency, - PurchaseOrderLineItemItem, - PurchaseOrderLineItemRequest, - PurchaseOrderLineItemRequestCurrency, - PurchaseOrderLineItemRequestItem, - PurchaseOrderPaymentTerm, - PurchaseOrderRequest, - PurchaseOrderRequestCompany, - PurchaseOrderRequestCurrency, - PurchaseOrderRequestDeliveryAddress, - PurchaseOrderRequestPaymentTerm, - PurchaseOrderRequestStatus, - PurchaseOrderRequestTrackingCategoriesItem, - PurchaseOrderRequestVendor, - PurchaseOrderResponse, - PurchaseOrderStatus, - PurchaseOrderStatusEnum, - PurchaseOrderTrackingCategoriesItem, - PurchaseOrderVendor, - RemoteData, - RemoteEndpointInfo, - RemoteField, - RemoteFieldApi, - RemoteFieldApiCoverage, - RemoteFieldApiResponse, - RemoteFieldClass, - RemoteFieldRemoteFieldClass, - RemoteFieldRequest, - RemoteFieldRequestRemoteFieldClass, - RemoteKey, - RemoteResponse, - ReportItem, - RequestFormatEnum, - ResponseTypeEnum, - RoleEnum, - SelectiveSyncConfigurationsUsageEnum, - Status7D1Enum, - Status895Enum, - StatusFd5Enum, - SyncStatus, - SyncStatusStatus, - TaxComponent, - TaxComponentComponentType, - TaxRate, - TaxRateCompany, - TaxRateStatus, - TaxRateTaxComponentsItem, - TrackingCategory, - TrackingCategoryCategoryType, - TrackingCategoryCompany, - TrackingCategoryStatus, - Transaction, - TransactionAccount, - TransactionAccountingPeriod, - TransactionContact, - TransactionCurrency, - TransactionCurrencyEnum, - TransactionLineItem, - TransactionLineItemCurrency, - TransactionLineItemItem, - TransactionTrackingCategoriesItem, - Type2BbEnum, - UnderlyingTransactionTypeEnum, - ValidationProblemSource, - VendorCredit, - VendorCreditAccountingPeriod, - VendorCreditApplyLineForInvoice, - VendorCreditApplyLineForInvoiceVendorCredit, - VendorCreditApplyLineForVendorCredit, - VendorCreditApplyLineForVendorCreditInvoice, - VendorCreditApplyLineForVendorCreditRequest, - VendorCreditApplyLineForVendorCreditRequestInvoice, - VendorCreditCompany, - VendorCreditCurrency, - VendorCreditLine, - VendorCreditLineAccount, - VendorCreditLineContact, - VendorCreditLineProject, - VendorCreditLineRequest, - VendorCreditLineRequestAccount, - VendorCreditLineRequestContact, - VendorCreditLineRequestProject, - VendorCreditRequest, - VendorCreditRequestAccountingPeriod, - VendorCreditRequestCompany, - VendorCreditRequestCurrency, - VendorCreditRequestTrackingCategoriesItem, - VendorCreditRequestVendor, - VendorCreditResponse, - VendorCreditTrackingCategoriesItem, - VendorCreditVendor, - WarningValidationProblem, - WebhookReceiver, - ) - from .resources import ( - AccountsListRequestClassification, - AccountsListRequestRemoteFields, - AccountsListRequestShowEnumOrigins, - AccountsListRequestStatus, - AccountsRetrieveRequestRemoteFields, - AccountsRetrieveRequestShowEnumOrigins, - AsyncPassthroughRetrieveResponse, - CompanyInfoListRequestExpand, - CompanyInfoRetrieveRequestExpand, - ContactsListRequestExpand, - ContactsListRequestStatus, - ContactsRetrieveRequestExpand, - CreditNotesListRequestExpand, - CreditNotesListRequestRemoteFields, - CreditNotesListRequestShowEnumOrigins, - CreditNotesRetrieveRequestExpand, - CreditNotesRetrieveRequestRemoteFields, - CreditNotesRetrieveRequestShowEnumOrigins, - EndUserDetailsRequestLanguage, - ExpenseReportsLinesListRequestExpand, - ExpenseReportsListRequestExpand, - ExpenseReportsRetrieveRequestExpand, - ExpensesListRequestExpand, - ExpensesRetrieveRequestExpand, - GeneralLedgerTransactionsListRequestExpand, - GeneralLedgerTransactionsRetrieveRequestExpand, - InvoicesListRequestExpand, - InvoicesListRequestStatus, - InvoicesListRequestType, - InvoicesRetrieveRequestExpand, - IssuesListRequestStatus, - ItemsListRequestExpand, - ItemsRetrieveRequestExpand, - JournalEntriesListRequestExpand, - JournalEntriesRetrieveRequestExpand, - LinkedAccountsListRequestCategory, - PaymentsListRequestExpand, - PaymentsRetrieveRequestExpand, - ProjectsListRequestExpand, - ProjectsRetrieveRequestExpand, - PurchaseOrdersListRequestExpand, - PurchaseOrdersRetrieveRequestExpand, - TrackingCategoriesListRequestCategoryType, - TrackingCategoriesListRequestStatus, - TransactionsListRequestExpand, - TransactionsRetrieveRequestExpand, - VendorCreditsListRequestExpand, - VendorCreditsRetrieveRequestExpand, - account_details, - account_token, - accounting_periods, - accounts, - addresses, - async_passthrough, - async_tasks, - attachments, - audit_trail, - available_actions, - balance_sheets, - bank_feed_accounts, - bank_feed_transactions, - cash_flow_statements, - company_info, - contacts, - credit_notes, - delete_account, - employees, - expense_reports, - expenses, - field_mapping, - force_resync, - general_ledger_transactions, - generate_key, - income_statements, - invoices, - issues, - items, - journal_entries, - link_token, - linked_accounts, - passthrough, - payment_methods, - payment_terms, - payments, - phone_numbers, - projects, - purchase_orders, - regenerate_key, - scopes, - sync_status, - tax_rates, - tracking_categories, - transactions, - vendor_credits, - webhook_receivers, - ) -_dynamic_imports: typing.Dict[str, str] = { - "Account": ".types", - "AccountAccountType": ".types", - "AccountAccountTypeEnum": ".types", - "AccountClassification": ".types", - "AccountCurrency": ".types", - "AccountDetails": ".types", - "AccountDetailsAndActions": ".types", - "AccountDetailsAndActionsCategory": ".types", - "AccountDetailsAndActionsIntegration": ".types", - "AccountDetailsAndActionsStatus": ".types", - "AccountDetailsAndActionsStatusEnum": ".types", - "AccountDetailsCategory": ".types", - "AccountIntegration": ".types", - "AccountRequest": ".types", - "AccountRequestAccountType": ".types", - "AccountRequestClassification": ".types", - "AccountRequestCurrency": ".types", - "AccountRequestStatus": ".types", - "AccountResponse": ".types", - "AccountStatus": ".types", - "AccountStatusEnum": ".types", - "AccountToken": ".types", - "AccountingAttachment": ".types", - "AccountingAttachmentRequest": ".types", - "AccountingAttachmentResponse": ".types", - "AccountingPeriod": ".types", - "AccountingPeriodStatus": ".types", - "AccountingPhoneNumber": ".types", - "AccountingPhoneNumberRequest": ".types", - "AccountsListRequestClassification": ".resources", - "AccountsListRequestRemoteFields": ".resources", - "AccountsListRequestShowEnumOrigins": ".resources", - "AccountsListRequestStatus": ".resources", - "AccountsRetrieveRequestRemoteFields": ".resources", - "AccountsRetrieveRequestShowEnumOrigins": ".resources", - "Address": ".types", - "AddressCountry": ".types", - "AddressRequest": ".types", - "AddressRequestCountry": ".types", - "AddressRequestType": ".types", - "AddressType": ".types", - "AddressTypeEnum": ".types", - "AdvancedMetadata": ".types", - "AsyncPassthroughReciept": ".types", - "AsyncPassthroughRetrieveResponse": ".resources", - "AsyncPostTask": ".types", - "AsyncPostTaskResult": ".types", - "AsyncPostTaskStatus": ".types", - "AsyncPostTaskStatusEnum": ".types", - "AuditLogEvent": ".types", - "AuditLogEventEventType": ".types", - "AuditLogEventRole": ".types", - "AvailableActions": ".types", - "BalanceSheet": ".types", - "BalanceSheetCompany": ".types", - "BalanceSheetCurrency": ".types", - "BankFeedAccount": ".types", - "BankFeedAccountAccountType": ".types", - "BankFeedAccountAccountTypeEnum": ".types", - "BankFeedAccountCurrency": ".types", - "BankFeedAccountFeedStatus": ".types", - "BankFeedAccountRequest": ".types", - "BankFeedAccountRequestAccountType": ".types", - "BankFeedAccountRequestCurrency": ".types", - "BankFeedAccountRequestFeedStatus": ".types", - "BankFeedAccountResponse": ".types", - "BankFeedTransaction": ".types", - "BankFeedTransactionBankFeedAccount": ".types", - "BankFeedTransactionCreditOrDebit": ".types", - "BankFeedTransactionRequestRequest": ".types", - "BankFeedTransactionRequestRequestBankFeedAccount": ".types", - "BankFeedTransactionRequestRequestCreditOrDebit": ".types", - "BankFeedTransactionResponse": ".types", - "CashFlowStatement": ".types", - "CashFlowStatementCompany": ".types", - "CashFlowStatementCurrency": ".types", - "CategoriesEnum": ".types", - "CategoryEnum": ".types", - "CategoryTypeEnum": ".types", - "ClassificationEnum": ".types", - "CommonModelScopeApi": ".types", - "CommonModelScopesBodyRequest": ".types", - "CompanyInfo": ".types", - "CompanyInfoCurrency": ".types", - "CompanyInfoListRequestExpand": ".resources", - "CompanyInfoRetrieveRequestExpand": ".resources", - "ComponentTypeEnum": ".types", - "Contact": ".types", - "ContactAddressesItem": ".types", - "ContactRequest": ".types", - "ContactRequestAddressesItem": ".types", - "ContactRequestStatus": ".types", - "ContactResponse": ".types", - "ContactStatus": ".types", - "ContactsListRequestExpand": ".resources", - "ContactsListRequestStatus": ".resources", - "ContactsRetrieveRequestExpand": ".resources", - "CountryEnum": ".types", - "CreditNote": ".types", - "CreditNoteAccountingPeriod": ".types", - "CreditNoteAppliedPaymentsItem": ".types", - "CreditNoteApplyLineForCreditNote": ".types", - "CreditNoteApplyLineForCreditNoteInvoice": ".types", - "CreditNoteApplyLineForCreditNoteRequest": ".types", - "CreditNoteApplyLineForCreditNoteRequestInvoice": ".types", - "CreditNoteApplyLineForInvoice": ".types", - "CreditNoteApplyLineForInvoiceCreditNote": ".types", - "CreditNoteCompany": ".types", - "CreditNoteContact": ".types", - "CreditNoteCurrency": ".types", - "CreditNoteLineItem": ".types", - "CreditNoteLineItemCompany": ".types", - "CreditNoteLineItemContact": ".types", - "CreditNoteLineItemItem": ".types", - "CreditNoteLineItemProject": ".types", - "CreditNoteLineItemRequest": ".types", - "CreditNoteLineItemRequestCompany": ".types", - "CreditNoteLineItemRequestContact": ".types", - "CreditNoteLineItemRequestItem": ".types", - "CreditNoteLineItemRequestProject": ".types", - "CreditNotePaymentsItem": ".types", - "CreditNoteRequest": ".types", - "CreditNoteRequestAccountingPeriod": ".types", - "CreditNoteRequestAppliedPaymentsItem": ".types", - "CreditNoteRequestCompany": ".types", - "CreditNoteRequestContact": ".types", - "CreditNoteRequestCurrency": ".types", - "CreditNoteRequestLineItemsItem": ".types", - "CreditNoteRequestPaymentsItem": ".types", - "CreditNoteRequestStatus": ".types", - "CreditNoteRequestTrackingCategoriesItem": ".types", - "CreditNoteResponse": ".types", - "CreditNoteStatus": ".types", - "CreditNoteStatusEnum": ".types", - "CreditNoteTrackingCategoriesItem": ".types", - "CreditNotesListRequestExpand": ".resources", - "CreditNotesListRequestRemoteFields": ".resources", - "CreditNotesListRequestShowEnumOrigins": ".resources", - "CreditNotesRetrieveRequestExpand": ".resources", - "CreditNotesRetrieveRequestRemoteFields": ".resources", - "CreditNotesRetrieveRequestShowEnumOrigins": ".resources", - "CreditOrDebitEnum": ".types", - "DataPassthroughRequest": ".types", - "DataPassthroughRequestMethod": ".types", - "DebugModeLog": ".types", - "DebugModelLogSummary": ".types", - "Employee": ".types", - "EmployeeCompany": ".types", - "EmployeeStatus": ".types", - "EnabledActionsEnum": ".types", - "EncodingEnum": ".types", - "EndUserDetailsRequestLanguage": ".resources", - "ErrorValidationProblem": ".types", - "EventTypeEnum": ".types", - "Expense": ".types", - "ExpenseAccount": ".types", - "ExpenseAccountingPeriod": ".types", - "ExpenseCompany": ".types", - "ExpenseContact": ".types", - "ExpenseCurrency": ".types", - "ExpenseEmployee": ".types", - "ExpenseLine": ".types", - "ExpenseLineAccount": ".types", - "ExpenseLineContact": ".types", - "ExpenseLineCurrency": ".types", - "ExpenseLineEmployee": ".types", - "ExpenseLineItem": ".types", - "ExpenseLineProject": ".types", - "ExpenseLineRequest": ".types", - "ExpenseLineRequestAccount": ".types", - "ExpenseLineRequestContact": ".types", - "ExpenseLineRequestCurrency": ".types", - "ExpenseLineRequestEmployee": ".types", - "ExpenseLineRequestItem": ".types", - "ExpenseLineRequestProject": ".types", - "ExpenseLineRequestTrackingCategoriesItem": ".types", - "ExpenseLineRequestTrackingCategory": ".types", - "ExpenseLineTrackingCategoriesItem": ".types", - "ExpenseLineTrackingCategory": ".types", - "ExpenseReport": ".types", - "ExpenseReportCompany": ".types", - "ExpenseReportLine": ".types", - "ExpenseReportLineAccount": ".types", - "ExpenseReportLineCompany": ".types", - "ExpenseReportLineContact": ".types", - "ExpenseReportLineEmployee": ".types", - "ExpenseReportLineProject": ".types", - "ExpenseReportLineRequest": ".types", - "ExpenseReportLineRequestAccount": ".types", - "ExpenseReportLineRequestCompany": ".types", - "ExpenseReportLineRequestContact": ".types", - "ExpenseReportLineRequestEmployee": ".types", - "ExpenseReportLineRequestProject": ".types", - "ExpenseReportLineRequestTaxRate": ".types", - "ExpenseReportLineTaxRate": ".types", - "ExpenseReportRequest": ".types", - "ExpenseReportRequestAccountingPeriod": ".types", - "ExpenseReportRequestCompany": ".types", - "ExpenseReportRequestEmployee": ".types", - "ExpenseReportResponse": ".types", - "ExpenseReportStatus": ".types", - "ExpenseReportStatusEnum": ".types", - "ExpenseReportsLinesListRequestExpand": ".resources", - "ExpenseReportsListRequestExpand": ".resources", - "ExpenseReportsRetrieveRequestExpand": ".resources", - "ExpenseRequest": ".types", - "ExpenseRequestAccount": ".types", - "ExpenseRequestAccountingPeriod": ".types", - "ExpenseRequestCompany": ".types", - "ExpenseRequestContact": ".types", - "ExpenseRequestCurrency": ".types", - "ExpenseRequestEmployee": ".types", - "ExpenseRequestTrackingCategoriesItem": ".types", - "ExpenseResponse": ".types", - "ExpenseTrackingCategoriesItem": ".types", - "ExpensesListRequestExpand": ".resources", - "ExpensesRetrieveRequestExpand": ".resources", - "ExternalTargetFieldApi": ".types", - "ExternalTargetFieldApiResponse": ".types", - "FeedStatusEnum": ".types", - "FieldFormatEnum": ".types", - "FieldMappingApiInstance": ".types", - "FieldMappingApiInstanceRemoteField": ".types", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".types", - "FieldMappingApiInstanceResponse": ".types", - "FieldMappingApiInstanceTargetField": ".types", - "FieldMappingInstanceResponse": ".types", - "FieldPermissionDeserializer": ".types", - "FieldPermissionDeserializerRequest": ".types", - "FieldTypeEnum": ".types", - "GeneralLedgerTransaction": ".types", - "GeneralLedgerTransactionAccountingPeriod": ".types", - "GeneralLedgerTransactionCompany": ".types", - "GeneralLedgerTransactionGeneralLedgerTransactionLinesItem": ".types", - "GeneralLedgerTransactionLine": ".types", - "GeneralLedgerTransactionLineAccount": ".types", - "GeneralLedgerTransactionLineBaseCurrency": ".types", - "GeneralLedgerTransactionLineCompany": ".types", - "GeneralLedgerTransactionLineContact": ".types", - "GeneralLedgerTransactionLineEmployee": ".types", - "GeneralLedgerTransactionLineItem": ".types", - "GeneralLedgerTransactionLineProject": ".types", - "GeneralLedgerTransactionLineTrackingCategoriesItem": ".types", - "GeneralLedgerTransactionLineTransactionCurrency": ".types", - "GeneralLedgerTransactionTrackingCategoriesItem": ".types", - "GeneralLedgerTransactionUnderlyingTransactionType": ".types", - "GeneralLedgerTransactionsListRequestExpand": ".resources", - "GeneralLedgerTransactionsRetrieveRequestExpand": ".resources", - "IncomeStatement": ".types", - "IncomeStatementCompany": ".types", - "IncomeStatementCurrency": ".types", - "IndividualCommonModelScopeDeserializer": ".types", - "IndividualCommonModelScopeDeserializerRequest": ".types", - "Invoice": ".types", - "InvoiceAccountingPeriod": ".types", - "InvoiceAppliedCreditNotesItem": ".types", - "InvoiceAppliedPaymentsItem": ".types", - "InvoiceAppliedVendorCreditsItem": ".types", - "InvoiceCompany": ".types", - "InvoiceContact": ".types", - "InvoiceCurrency": ".types", - "InvoiceEmployee": ".types", - "InvoiceLineItem": ".types", - "InvoiceLineItemAccount": ".types", - "InvoiceLineItemContact": ".types", - "InvoiceLineItemCurrency": ".types", - "InvoiceLineItemEmployee": ".types", - "InvoiceLineItemItem": ".types", - "InvoiceLineItemProject": ".types", - "InvoiceLineItemRequest": ".types", - "InvoiceLineItemRequestAccount": ".types", - "InvoiceLineItemRequestContact": ".types", - "InvoiceLineItemRequestCurrency": ".types", - "InvoiceLineItemRequestEmployee": ".types", - "InvoiceLineItemRequestItem": ".types", - "InvoiceLineItemRequestProject": ".types", - "InvoiceLineItemRequestTrackingCategoriesItem": ".types", - "InvoiceLineItemRequestTrackingCategory": ".types", - "InvoiceLineItemTrackingCategoriesItem": ".types", - "InvoiceLineItemTrackingCategory": ".types", - "InvoicePaymentTerm": ".types", - "InvoicePaymentsItem": ".types", - "InvoicePurchaseOrdersItem": ".types", - "InvoiceRequest": ".types", - "InvoiceRequestCompany": ".types", - "InvoiceRequestContact": ".types", - "InvoiceRequestCurrency": ".types", - "InvoiceRequestEmployee": ".types", - "InvoiceRequestPaymentTerm": ".types", - "InvoiceRequestPaymentsItem": ".types", - "InvoiceRequestPurchaseOrdersItem": ".types", - "InvoiceRequestStatus": ".types", - "InvoiceRequestTrackingCategoriesItem": ".types", - "InvoiceRequestType": ".types", - "InvoiceResponse": ".types", - "InvoiceStatus": ".types", - "InvoiceStatusEnum": ".types", - "InvoiceTrackingCategoriesItem": ".types", - "InvoiceType": ".types", - "InvoiceTypeEnum": ".types", - "InvoicesListRequestExpand": ".resources", - "InvoicesListRequestStatus": ".resources", - "InvoicesListRequestType": ".resources", - "InvoicesRetrieveRequestExpand": ".resources", - "Issue": ".types", - "IssueStatus": ".types", - "IssueStatusEnum": ".types", - "IssuesListRequestStatus": ".resources", - "Item": ".types", - "ItemCompany": ".types", - "ItemFormatEnum": ".types", - "ItemPurchaseAccount": ".types", - "ItemPurchaseTaxRate": ".types", - "ItemRequestRequest": ".types", - "ItemRequestRequestCompany": ".types", - "ItemRequestRequestPurchaseAccount": ".types", - "ItemRequestRequestPurchaseTaxRate": ".types", - "ItemRequestRequestSalesAccount": ".types", - "ItemRequestRequestSalesTaxRate": ".types", - "ItemRequestRequestStatus": ".types", - "ItemRequestRequestType": ".types", - "ItemResponse": ".types", - "ItemSalesAccount": ".types", - "ItemSalesTaxRate": ".types", - "ItemSchema": ".types", - "ItemStatus": ".types", - "ItemType": ".types", - "ItemTypeEnum": ".types", - "ItemsListRequestExpand": ".resources", - "ItemsRetrieveRequestExpand": ".resources", - "JournalEntriesListRequestExpand": ".resources", - "JournalEntriesRetrieveRequestExpand": ".resources", - "JournalEntry": ".types", - "JournalEntryAccountingPeriod": ".types", - "JournalEntryAppliedPaymentsItem": ".types", - "JournalEntryCompany": ".types", - "JournalEntryCurrency": ".types", - "JournalEntryPaymentsItem": ".types", - "JournalEntryPostingStatus": ".types", - "JournalEntryRequest": ".types", - "JournalEntryRequestCompany": ".types", - "JournalEntryRequestCurrency": ".types", - "JournalEntryRequestPaymentsItem": ".types", - "JournalEntryRequestPostingStatus": ".types", - "JournalEntryRequestTrackingCategoriesItem": ".types", - "JournalEntryResponse": ".types", - "JournalEntryTrackingCategoriesItem": ".types", - "JournalLine": ".types", - "JournalLineAccount": ".types", - "JournalLineCurrency": ".types", - "JournalLineProject": ".types", - "JournalLineRequest": ".types", - "JournalLineRequestAccount": ".types", - "JournalLineRequestCurrency": ".types", - "JournalLineRequestProject": ".types", - "JournalLineRequestTrackingCategoriesItem": ".types", - "JournalLineRequestTrackingCategory": ".types", - "JournalLineTrackingCategoriesItem": ".types", - "JournalLineTrackingCategory": ".types", - "LanguageEnum": ".types", - "LastSyncResultEnum": ".types", - "LinkToken": ".types", - "LinkedAccountStatus": ".types", - "LinkedAccountsListRequestCategory": ".resources", - "MetaResponse": ".types", - "MethodEnum": ".types", - "MethodTypeEnum": ".types", - "ModelOperation": ".types", - "ModelPermissionDeserializer": ".types", - "ModelPermissionDeserializerRequest": ".types", - "MultipartFormFieldRequest": ".types", - "MultipartFormFieldRequestEncoding": ".types", - "PaginatedAccountDetailsAndActionsList": ".types", - "PaginatedAccountList": ".types", - "PaginatedAccountingAttachmentList": ".types", - "PaginatedAccountingPeriodList": ".types", - "PaginatedAuditLogEventList": ".types", - "PaginatedBalanceSheetList": ".types", - "PaginatedBankFeedAccountList": ".types", - "PaginatedBankFeedTransactionList": ".types", - "PaginatedCashFlowStatementList": ".types", - "PaginatedCompanyInfoList": ".types", - "PaginatedContactList": ".types", - "PaginatedCreditNoteList": ".types", - "PaginatedEmployeeList": ".types", - "PaginatedExpenseList": ".types", - "PaginatedExpenseReportLineList": ".types", - "PaginatedExpenseReportList": ".types", - "PaginatedGeneralLedgerTransactionList": ".types", - "PaginatedIncomeStatementList": ".types", - "PaginatedInvoiceList": ".types", - "PaginatedIssueList": ".types", - "PaginatedItemList": ".types", - "PaginatedJournalEntryList": ".types", - "PaginatedPaymentList": ".types", - "PaginatedPaymentMethodList": ".types", - "PaginatedPaymentTermList": ".types", - "PaginatedProjectList": ".types", - "PaginatedPurchaseOrderList": ".types", - "PaginatedRemoteFieldClassList": ".types", - "PaginatedSyncStatusList": ".types", - "PaginatedTaxRateList": ".types", - "PaginatedTrackingCategoryList": ".types", - "PaginatedTransactionList": ".types", - "PaginatedVendorCreditList": ".types", - "PatchedContactRequest": ".types", - "PatchedContactRequestAddressesItem": ".types", - "PatchedItemRequestRequest": ".types", - "PatchedItemRequestRequestStatus": ".types", - "PatchedItemRequestRequestType": ".types", - "PatchedPaymentRequest": ".types", - "PatchedPaymentRequestAccount": ".types", - "PatchedPaymentRequestAccountingPeriod": ".types", - "PatchedPaymentRequestAppliedToLinesItem": ".types", - "PatchedPaymentRequestCompany": ".types", - "PatchedPaymentRequestContact": ".types", - "PatchedPaymentRequestCurrency": ".types", - "PatchedPaymentRequestPaymentMethod": ".types", - "PatchedPaymentRequestTrackingCategoriesItem": ".types", - "PatchedPaymentRequestType": ".types", - "Payment": ".types", - "PaymentAccount": ".types", - "PaymentAccountingPeriod": ".types", - "PaymentAppliedToLinesItem": ".types", - "PaymentCompany": ".types", - "PaymentContact": ".types", - "PaymentCurrency": ".types", - "PaymentLineItem": ".types", - "PaymentLineItemRequest": ".types", - "PaymentMethod": ".types", - "PaymentMethodMethodType": ".types", - "PaymentPaymentMethod": ".types", - "PaymentRequest": ".types", - "PaymentRequestAccount": ".types", - "PaymentRequestAccountingPeriod": ".types", - "PaymentRequestAppliedToLinesItem": ".types", - "PaymentRequestCompany": ".types", - "PaymentRequestContact": ".types", - "PaymentRequestCurrency": ".types", - "PaymentRequestPaymentMethod": ".types", - "PaymentRequestTrackingCategoriesItem": ".types", - "PaymentRequestType": ".types", - "PaymentResponse": ".types", - "PaymentTerm": ".types", - "PaymentTermCompany": ".types", - "PaymentTrackingCategoriesItem": ".types", - "PaymentType": ".types", - "PaymentTypeEnum": ".types", - "PaymentsListRequestExpand": ".resources", - "PaymentsRetrieveRequestExpand": ".resources", - "PostingStatusEnum": ".types", - "Project": ".types", - "ProjectCompany": ".types", - "ProjectContact": ".types", - "ProjectsListRequestExpand": ".resources", - "ProjectsRetrieveRequestExpand": ".resources", - "PurchaseOrder": ".types", - "PurchaseOrderAccountingPeriod": ".types", - "PurchaseOrderCompany": ".types", - "PurchaseOrderCurrency": ".types", - "PurchaseOrderDeliveryAddress": ".types", - "PurchaseOrderLineItem": ".types", - "PurchaseOrderLineItemCurrency": ".types", - "PurchaseOrderLineItemItem": ".types", - "PurchaseOrderLineItemRequest": ".types", - "PurchaseOrderLineItemRequestCurrency": ".types", - "PurchaseOrderLineItemRequestItem": ".types", - "PurchaseOrderPaymentTerm": ".types", - "PurchaseOrderRequest": ".types", - "PurchaseOrderRequestCompany": ".types", - "PurchaseOrderRequestCurrency": ".types", - "PurchaseOrderRequestDeliveryAddress": ".types", - "PurchaseOrderRequestPaymentTerm": ".types", - "PurchaseOrderRequestStatus": ".types", - "PurchaseOrderRequestTrackingCategoriesItem": ".types", - "PurchaseOrderRequestVendor": ".types", - "PurchaseOrderResponse": ".types", - "PurchaseOrderStatus": ".types", - "PurchaseOrderStatusEnum": ".types", - "PurchaseOrderTrackingCategoriesItem": ".types", - "PurchaseOrderVendor": ".types", - "PurchaseOrdersListRequestExpand": ".resources", - "PurchaseOrdersRetrieveRequestExpand": ".resources", - "RemoteData": ".types", - "RemoteEndpointInfo": ".types", - "RemoteField": ".types", - "RemoteFieldApi": ".types", - "RemoteFieldApiCoverage": ".types", - "RemoteFieldApiResponse": ".types", - "RemoteFieldClass": ".types", - "RemoteFieldRemoteFieldClass": ".types", - "RemoteFieldRequest": ".types", - "RemoteFieldRequestRemoteFieldClass": ".types", - "RemoteKey": ".types", - "RemoteResponse": ".types", - "ReportItem": ".types", - "RequestFormatEnum": ".types", - "ResponseTypeEnum": ".types", - "RoleEnum": ".types", - "SelectiveSyncConfigurationsUsageEnum": ".types", - "Status7D1Enum": ".types", - "Status895Enum": ".types", - "StatusFd5Enum": ".types", - "SyncStatus": ".types", - "SyncStatusStatus": ".types", - "TaxComponent": ".types", - "TaxComponentComponentType": ".types", - "TaxRate": ".types", - "TaxRateCompany": ".types", - "TaxRateStatus": ".types", - "TaxRateTaxComponentsItem": ".types", - "TrackingCategoriesListRequestCategoryType": ".resources", - "TrackingCategoriesListRequestStatus": ".resources", - "TrackingCategory": ".types", - "TrackingCategoryCategoryType": ".types", - "TrackingCategoryCompany": ".types", - "TrackingCategoryStatus": ".types", - "Transaction": ".types", - "TransactionAccount": ".types", - "TransactionAccountingPeriod": ".types", - "TransactionContact": ".types", - "TransactionCurrency": ".types", - "TransactionCurrencyEnum": ".types", - "TransactionLineItem": ".types", - "TransactionLineItemCurrency": ".types", - "TransactionLineItemItem": ".types", - "TransactionTrackingCategoriesItem": ".types", - "TransactionsListRequestExpand": ".resources", - "TransactionsRetrieveRequestExpand": ".resources", - "Type2BbEnum": ".types", - "UnderlyingTransactionTypeEnum": ".types", - "ValidationProblemSource": ".types", - "VendorCredit": ".types", - "VendorCreditAccountingPeriod": ".types", - "VendorCreditApplyLineForInvoice": ".types", - "VendorCreditApplyLineForInvoiceVendorCredit": ".types", - "VendorCreditApplyLineForVendorCredit": ".types", - "VendorCreditApplyLineForVendorCreditInvoice": ".types", - "VendorCreditApplyLineForVendorCreditRequest": ".types", - "VendorCreditApplyLineForVendorCreditRequestInvoice": ".types", - "VendorCreditCompany": ".types", - "VendorCreditCurrency": ".types", - "VendorCreditLine": ".types", - "VendorCreditLineAccount": ".types", - "VendorCreditLineContact": ".types", - "VendorCreditLineProject": ".types", - "VendorCreditLineRequest": ".types", - "VendorCreditLineRequestAccount": ".types", - "VendorCreditLineRequestContact": ".types", - "VendorCreditLineRequestProject": ".types", - "VendorCreditRequest": ".types", - "VendorCreditRequestAccountingPeriod": ".types", - "VendorCreditRequestCompany": ".types", - "VendorCreditRequestCurrency": ".types", - "VendorCreditRequestTrackingCategoriesItem": ".types", - "VendorCreditRequestVendor": ".types", - "VendorCreditResponse": ".types", - "VendorCreditTrackingCategoriesItem": ".types", - "VendorCreditVendor": ".types", - "VendorCreditsListRequestExpand": ".resources", - "VendorCreditsRetrieveRequestExpand": ".resources", - "WarningValidationProblem": ".types", - "WebhookReceiver": ".types", - "account_details": ".resources", - "account_token": ".resources", - "accounting_periods": ".resources", - "accounts": ".resources", - "addresses": ".resources", - "async_passthrough": ".resources", - "async_tasks": ".resources", - "attachments": ".resources", - "audit_trail": ".resources", - "available_actions": ".resources", - "balance_sheets": ".resources", - "bank_feed_accounts": ".resources", - "bank_feed_transactions": ".resources", - "cash_flow_statements": ".resources", - "company_info": ".resources", - "contacts": ".resources", - "credit_notes": ".resources", - "delete_account": ".resources", - "employees": ".resources", - "expense_reports": ".resources", - "expenses": ".resources", - "field_mapping": ".resources", - "force_resync": ".resources", - "general_ledger_transactions": ".resources", - "generate_key": ".resources", - "income_statements": ".resources", - "invoices": ".resources", - "issues": ".resources", - "items": ".resources", - "journal_entries": ".resources", - "link_token": ".resources", - "linked_accounts": ".resources", - "passthrough": ".resources", - "payment_methods": ".resources", - "payment_terms": ".resources", - "payments": ".resources", - "phone_numbers": ".resources", - "projects": ".resources", - "purchase_orders": ".resources", - "regenerate_key": ".resources", - "scopes": ".resources", - "sync_status": ".resources", - "tax_rates": ".resources", - "tracking_categories": ".resources", - "transactions": ".resources", - "vendor_credits": ".resources", - "webhook_receivers": ".resources", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "Account", - "AccountAccountType", - "AccountAccountTypeEnum", - "AccountClassification", - "AccountCurrency", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountRequest", - "AccountRequestAccountType", - "AccountRequestClassification", - "AccountRequestCurrency", - "AccountRequestStatus", - "AccountResponse", - "AccountStatus", - "AccountStatusEnum", - "AccountToken", - "AccountingAttachment", - "AccountingAttachmentRequest", - "AccountingAttachmentResponse", - "AccountingPeriod", - "AccountingPeriodStatus", - "AccountingPhoneNumber", - "AccountingPhoneNumberRequest", - "AccountsListRequestClassification", - "AccountsListRequestRemoteFields", - "AccountsListRequestShowEnumOrigins", - "AccountsListRequestStatus", - "AccountsRetrieveRequestRemoteFields", - "AccountsRetrieveRequestShowEnumOrigins", - "Address", - "AddressCountry", - "AddressRequest", - "AddressRequestCountry", - "AddressRequestType", - "AddressType", - "AddressTypeEnum", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "AsyncPassthroughRetrieveResponse", - "AsyncPostTask", - "AsyncPostTaskResult", - "AsyncPostTaskStatus", - "AsyncPostTaskStatusEnum", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "BalanceSheet", - "BalanceSheetCompany", - "BalanceSheetCurrency", - "BankFeedAccount", - "BankFeedAccountAccountType", - "BankFeedAccountAccountTypeEnum", - "BankFeedAccountCurrency", - "BankFeedAccountFeedStatus", - "BankFeedAccountRequest", - "BankFeedAccountRequestAccountType", - "BankFeedAccountRequestCurrency", - "BankFeedAccountRequestFeedStatus", - "BankFeedAccountResponse", - "BankFeedTransaction", - "BankFeedTransactionBankFeedAccount", - "BankFeedTransactionCreditOrDebit", - "BankFeedTransactionRequestRequest", - "BankFeedTransactionRequestRequestBankFeedAccount", - "BankFeedTransactionRequestRequestCreditOrDebit", - "BankFeedTransactionResponse", - "CashFlowStatement", - "CashFlowStatementCompany", - "CashFlowStatementCurrency", - "CategoriesEnum", - "CategoryEnum", - "CategoryTypeEnum", - "ClassificationEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompanyInfo", - "CompanyInfoCurrency", - "CompanyInfoListRequestExpand", - "CompanyInfoRetrieveRequestExpand", - "ComponentTypeEnum", - "Contact", - "ContactAddressesItem", - "ContactRequest", - "ContactRequestAddressesItem", - "ContactRequestStatus", - "ContactResponse", - "ContactStatus", - "ContactsListRequestExpand", - "ContactsListRequestStatus", - "ContactsRetrieveRequestExpand", - "CountryEnum", - "CreditNote", - "CreditNoteAccountingPeriod", - "CreditNoteAppliedPaymentsItem", - "CreditNoteApplyLineForCreditNote", - "CreditNoteApplyLineForCreditNoteInvoice", - "CreditNoteApplyLineForCreditNoteRequest", - "CreditNoteApplyLineForCreditNoteRequestInvoice", - "CreditNoteApplyLineForInvoice", - "CreditNoteApplyLineForInvoiceCreditNote", - "CreditNoteCompany", - "CreditNoteContact", - "CreditNoteCurrency", - "CreditNoteLineItem", - "CreditNoteLineItemCompany", - "CreditNoteLineItemContact", - "CreditNoteLineItemItem", - "CreditNoteLineItemProject", - "CreditNoteLineItemRequest", - "CreditNoteLineItemRequestCompany", - "CreditNoteLineItemRequestContact", - "CreditNoteLineItemRequestItem", - "CreditNoteLineItemRequestProject", - "CreditNotePaymentsItem", - "CreditNoteRequest", - "CreditNoteRequestAccountingPeriod", - "CreditNoteRequestAppliedPaymentsItem", - "CreditNoteRequestCompany", - "CreditNoteRequestContact", - "CreditNoteRequestCurrency", - "CreditNoteRequestLineItemsItem", - "CreditNoteRequestPaymentsItem", - "CreditNoteRequestStatus", - "CreditNoteRequestTrackingCategoriesItem", - "CreditNoteResponse", - "CreditNoteStatus", - "CreditNoteStatusEnum", - "CreditNoteTrackingCategoriesItem", - "CreditNotesListRequestExpand", - "CreditNotesListRequestRemoteFields", - "CreditNotesListRequestShowEnumOrigins", - "CreditNotesRetrieveRequestExpand", - "CreditNotesRetrieveRequestRemoteFields", - "CreditNotesRetrieveRequestShowEnumOrigins", - "CreditOrDebitEnum", - "DataPassthroughRequest", - "DataPassthroughRequestMethod", - "DebugModeLog", - "DebugModelLogSummary", - "Employee", - "EmployeeCompany", - "EmployeeStatus", - "EnabledActionsEnum", - "EncodingEnum", - "EndUserDetailsRequestLanguage", - "ErrorValidationProblem", - "EventTypeEnum", - "Expense", - "ExpenseAccount", - "ExpenseAccountingPeriod", - "ExpenseCompany", - "ExpenseContact", - "ExpenseCurrency", - "ExpenseEmployee", - "ExpenseLine", - "ExpenseLineAccount", - "ExpenseLineContact", - "ExpenseLineCurrency", - "ExpenseLineEmployee", - "ExpenseLineItem", - "ExpenseLineProject", - "ExpenseLineRequest", - "ExpenseLineRequestAccount", - "ExpenseLineRequestContact", - "ExpenseLineRequestCurrency", - "ExpenseLineRequestEmployee", - "ExpenseLineRequestItem", - "ExpenseLineRequestProject", - "ExpenseLineRequestTrackingCategoriesItem", - "ExpenseLineRequestTrackingCategory", - "ExpenseLineTrackingCategoriesItem", - "ExpenseLineTrackingCategory", - "ExpenseReport", - "ExpenseReportCompany", - "ExpenseReportLine", - "ExpenseReportLineAccount", - "ExpenseReportLineCompany", - "ExpenseReportLineContact", - "ExpenseReportLineEmployee", - "ExpenseReportLineProject", - "ExpenseReportLineRequest", - "ExpenseReportLineRequestAccount", - "ExpenseReportLineRequestCompany", - "ExpenseReportLineRequestContact", - "ExpenseReportLineRequestEmployee", - "ExpenseReportLineRequestProject", - "ExpenseReportLineRequestTaxRate", - "ExpenseReportLineTaxRate", - "ExpenseReportRequest", - "ExpenseReportRequestAccountingPeriod", - "ExpenseReportRequestCompany", - "ExpenseReportRequestEmployee", - "ExpenseReportResponse", - "ExpenseReportStatus", - "ExpenseReportStatusEnum", - "ExpenseReportsLinesListRequestExpand", - "ExpenseReportsListRequestExpand", - "ExpenseReportsRetrieveRequestExpand", - "ExpenseRequest", - "ExpenseRequestAccount", - "ExpenseRequestAccountingPeriod", - "ExpenseRequestCompany", - "ExpenseRequestContact", - "ExpenseRequestCurrency", - "ExpenseRequestEmployee", - "ExpenseRequestTrackingCategoriesItem", - "ExpenseResponse", - "ExpenseTrackingCategoriesItem", - "ExpensesListRequestExpand", - "ExpensesRetrieveRequestExpand", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FeedStatusEnum", - "FieldFormatEnum", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FieldTypeEnum", - "GeneralLedgerTransaction", - "GeneralLedgerTransactionAccountingPeriod", - "GeneralLedgerTransactionCompany", - "GeneralLedgerTransactionGeneralLedgerTransactionLinesItem", - "GeneralLedgerTransactionLine", - "GeneralLedgerTransactionLineAccount", - "GeneralLedgerTransactionLineBaseCurrency", - "GeneralLedgerTransactionLineCompany", - "GeneralLedgerTransactionLineContact", - "GeneralLedgerTransactionLineEmployee", - "GeneralLedgerTransactionLineItem", - "GeneralLedgerTransactionLineProject", - "GeneralLedgerTransactionLineTrackingCategoriesItem", - "GeneralLedgerTransactionLineTransactionCurrency", - "GeneralLedgerTransactionTrackingCategoriesItem", - "GeneralLedgerTransactionUnderlyingTransactionType", - "GeneralLedgerTransactionsListRequestExpand", - "GeneralLedgerTransactionsRetrieveRequestExpand", - "IncomeStatement", - "IncomeStatementCompany", - "IncomeStatementCurrency", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Invoice", - "InvoiceAccountingPeriod", - "InvoiceAppliedCreditNotesItem", - "InvoiceAppliedPaymentsItem", - "InvoiceAppliedVendorCreditsItem", - "InvoiceCompany", - "InvoiceContact", - "InvoiceCurrency", - "InvoiceEmployee", - "InvoiceLineItem", - "InvoiceLineItemAccount", - "InvoiceLineItemContact", - "InvoiceLineItemCurrency", - "InvoiceLineItemEmployee", - "InvoiceLineItemItem", - "InvoiceLineItemProject", - "InvoiceLineItemRequest", - "InvoiceLineItemRequestAccount", - "InvoiceLineItemRequestContact", - "InvoiceLineItemRequestCurrency", - "InvoiceLineItemRequestEmployee", - "InvoiceLineItemRequestItem", - "InvoiceLineItemRequestProject", - "InvoiceLineItemRequestTrackingCategoriesItem", - "InvoiceLineItemRequestTrackingCategory", - "InvoiceLineItemTrackingCategoriesItem", - "InvoiceLineItemTrackingCategory", - "InvoicePaymentTerm", - "InvoicePaymentsItem", - "InvoicePurchaseOrdersItem", - "InvoiceRequest", - "InvoiceRequestCompany", - "InvoiceRequestContact", - "InvoiceRequestCurrency", - "InvoiceRequestEmployee", - "InvoiceRequestPaymentTerm", - "InvoiceRequestPaymentsItem", - "InvoiceRequestPurchaseOrdersItem", - "InvoiceRequestStatus", - "InvoiceRequestTrackingCategoriesItem", - "InvoiceRequestType", - "InvoiceResponse", - "InvoiceStatus", - "InvoiceStatusEnum", - "InvoiceTrackingCategoriesItem", - "InvoiceType", - "InvoiceTypeEnum", - "InvoicesListRequestExpand", - "InvoicesListRequestStatus", - "InvoicesListRequestType", - "InvoicesRetrieveRequestExpand", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "IssuesListRequestStatus", - "Item", - "ItemCompany", - "ItemFormatEnum", - "ItemPurchaseAccount", - "ItemPurchaseTaxRate", - "ItemRequestRequest", - "ItemRequestRequestCompany", - "ItemRequestRequestPurchaseAccount", - "ItemRequestRequestPurchaseTaxRate", - "ItemRequestRequestSalesAccount", - "ItemRequestRequestSalesTaxRate", - "ItemRequestRequestStatus", - "ItemRequestRequestType", - "ItemResponse", - "ItemSalesAccount", - "ItemSalesTaxRate", - "ItemSchema", - "ItemStatus", - "ItemType", - "ItemTypeEnum", - "ItemsListRequestExpand", - "ItemsRetrieveRequestExpand", - "JournalEntriesListRequestExpand", - "JournalEntriesRetrieveRequestExpand", - "JournalEntry", - "JournalEntryAccountingPeriod", - "JournalEntryAppliedPaymentsItem", - "JournalEntryCompany", - "JournalEntryCurrency", - "JournalEntryPaymentsItem", - "JournalEntryPostingStatus", - "JournalEntryRequest", - "JournalEntryRequestCompany", - "JournalEntryRequestCurrency", - "JournalEntryRequestPaymentsItem", - "JournalEntryRequestPostingStatus", - "JournalEntryRequestTrackingCategoriesItem", - "JournalEntryResponse", - "JournalEntryTrackingCategoriesItem", - "JournalLine", - "JournalLineAccount", - "JournalLineCurrency", - "JournalLineProject", - "JournalLineRequest", - "JournalLineRequestAccount", - "JournalLineRequestCurrency", - "JournalLineRequestProject", - "JournalLineRequestTrackingCategoriesItem", - "JournalLineRequestTrackingCategory", - "JournalLineTrackingCategoriesItem", - "JournalLineTrackingCategory", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "LinkedAccountsListRequestCategory", - "MetaResponse", - "MethodEnum", - "MethodTypeEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAccountList", - "PaginatedAccountingAttachmentList", - "PaginatedAccountingPeriodList", - "PaginatedAuditLogEventList", - "PaginatedBalanceSheetList", - "PaginatedBankFeedAccountList", - "PaginatedBankFeedTransactionList", - "PaginatedCashFlowStatementList", - "PaginatedCompanyInfoList", - "PaginatedContactList", - "PaginatedCreditNoteList", - "PaginatedEmployeeList", - "PaginatedExpenseList", - "PaginatedExpenseReportLineList", - "PaginatedExpenseReportList", - "PaginatedGeneralLedgerTransactionList", - "PaginatedIncomeStatementList", - "PaginatedInvoiceList", - "PaginatedIssueList", - "PaginatedItemList", - "PaginatedJournalEntryList", - "PaginatedPaymentList", - "PaginatedPaymentMethodList", - "PaginatedPaymentTermList", - "PaginatedProjectList", - "PaginatedPurchaseOrderList", - "PaginatedRemoteFieldClassList", - "PaginatedSyncStatusList", - "PaginatedTaxRateList", - "PaginatedTrackingCategoryList", - "PaginatedTransactionList", - "PaginatedVendorCreditList", - "PatchedContactRequest", - "PatchedContactRequestAddressesItem", - "PatchedItemRequestRequest", - "PatchedItemRequestRequestStatus", - "PatchedItemRequestRequestType", - "PatchedPaymentRequest", - "PatchedPaymentRequestAccount", - "PatchedPaymentRequestAccountingPeriod", - "PatchedPaymentRequestAppliedToLinesItem", - "PatchedPaymentRequestCompany", - "PatchedPaymentRequestContact", - "PatchedPaymentRequestCurrency", - "PatchedPaymentRequestPaymentMethod", - "PatchedPaymentRequestTrackingCategoriesItem", - "PatchedPaymentRequestType", - "Payment", - "PaymentAccount", - "PaymentAccountingPeriod", - "PaymentAppliedToLinesItem", - "PaymentCompany", - "PaymentContact", - "PaymentCurrency", - "PaymentLineItem", - "PaymentLineItemRequest", - "PaymentMethod", - "PaymentMethodMethodType", - "PaymentPaymentMethod", - "PaymentRequest", - "PaymentRequestAccount", - "PaymentRequestAccountingPeriod", - "PaymentRequestAppliedToLinesItem", - "PaymentRequestCompany", - "PaymentRequestContact", - "PaymentRequestCurrency", - "PaymentRequestPaymentMethod", - "PaymentRequestTrackingCategoriesItem", - "PaymentRequestType", - "PaymentResponse", - "PaymentTerm", - "PaymentTermCompany", - "PaymentTrackingCategoriesItem", - "PaymentType", - "PaymentTypeEnum", - "PaymentsListRequestExpand", - "PaymentsRetrieveRequestExpand", - "PostingStatusEnum", - "Project", - "ProjectCompany", - "ProjectContact", - "ProjectsListRequestExpand", - "ProjectsRetrieveRequestExpand", - "PurchaseOrder", - "PurchaseOrderAccountingPeriod", - "PurchaseOrderCompany", - "PurchaseOrderCurrency", - "PurchaseOrderDeliveryAddress", - "PurchaseOrderLineItem", - "PurchaseOrderLineItemCurrency", - "PurchaseOrderLineItemItem", - "PurchaseOrderLineItemRequest", - "PurchaseOrderLineItemRequestCurrency", - "PurchaseOrderLineItemRequestItem", - "PurchaseOrderPaymentTerm", - "PurchaseOrderRequest", - "PurchaseOrderRequestCompany", - "PurchaseOrderRequestCurrency", - "PurchaseOrderRequestDeliveryAddress", - "PurchaseOrderRequestPaymentTerm", - "PurchaseOrderRequestStatus", - "PurchaseOrderRequestTrackingCategoriesItem", - "PurchaseOrderRequestVendor", - "PurchaseOrderResponse", - "PurchaseOrderStatus", - "PurchaseOrderStatusEnum", - "PurchaseOrderTrackingCategoriesItem", - "PurchaseOrderVendor", - "PurchaseOrdersListRequestExpand", - "PurchaseOrdersRetrieveRequestExpand", - "RemoteData", - "RemoteEndpointInfo", - "RemoteField", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteFieldClass", - "RemoteFieldRemoteFieldClass", - "RemoteFieldRequest", - "RemoteFieldRequestRemoteFieldClass", - "RemoteKey", - "RemoteResponse", - "ReportItem", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "SelectiveSyncConfigurationsUsageEnum", - "Status7D1Enum", - "Status895Enum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusStatus", - "TaxComponent", - "TaxComponentComponentType", - "TaxRate", - "TaxRateCompany", - "TaxRateStatus", - "TaxRateTaxComponentsItem", - "TrackingCategoriesListRequestCategoryType", - "TrackingCategoriesListRequestStatus", - "TrackingCategory", - "TrackingCategoryCategoryType", - "TrackingCategoryCompany", - "TrackingCategoryStatus", - "Transaction", - "TransactionAccount", - "TransactionAccountingPeriod", - "TransactionContact", - "TransactionCurrency", - "TransactionCurrencyEnum", - "TransactionLineItem", - "TransactionLineItemCurrency", - "TransactionLineItemItem", - "TransactionTrackingCategoriesItem", - "TransactionsListRequestExpand", - "TransactionsRetrieveRequestExpand", - "Type2BbEnum", - "UnderlyingTransactionTypeEnum", - "ValidationProblemSource", - "VendorCredit", - "VendorCreditAccountingPeriod", - "VendorCreditApplyLineForInvoice", - "VendorCreditApplyLineForInvoiceVendorCredit", - "VendorCreditApplyLineForVendorCredit", - "VendorCreditApplyLineForVendorCreditInvoice", - "VendorCreditApplyLineForVendorCreditRequest", - "VendorCreditApplyLineForVendorCreditRequestInvoice", - "VendorCreditCompany", - "VendorCreditCurrency", - "VendorCreditLine", - "VendorCreditLineAccount", - "VendorCreditLineContact", - "VendorCreditLineProject", - "VendorCreditLineRequest", - "VendorCreditLineRequestAccount", - "VendorCreditLineRequestContact", - "VendorCreditLineRequestProject", - "VendorCreditRequest", - "VendorCreditRequestAccountingPeriod", - "VendorCreditRequestCompany", - "VendorCreditRequestCurrency", - "VendorCreditRequestTrackingCategoriesItem", - "VendorCreditRequestVendor", - "VendorCreditResponse", - "VendorCreditTrackingCategoriesItem", - "VendorCreditVendor", - "VendorCreditsListRequestExpand", - "VendorCreditsRetrieveRequestExpand", - "WarningValidationProblem", - "WebhookReceiver", - "account_details", - "account_token", - "accounting_periods", - "accounts", - "addresses", - "async_passthrough", - "async_tasks", - "attachments", - "audit_trail", - "available_actions", - "balance_sheets", - "bank_feed_accounts", - "bank_feed_transactions", - "cash_flow_statements", - "company_info", - "contacts", - "credit_notes", - "delete_account", - "employees", - "expense_reports", - "expenses", - "field_mapping", - "force_resync", - "general_ledger_transactions", - "generate_key", - "income_statements", - "invoices", - "issues", - "items", - "journal_entries", - "link_token", - "linked_accounts", - "passthrough", - "payment_methods", - "payment_terms", - "payments", - "phone_numbers", - "projects", - "purchase_orders", - "regenerate_key", - "scopes", - "sync_status", - "tax_rates", - "tracking_categories", - "transactions", - "vendor_credits", - "webhook_receivers", -] diff --git a/src/merge/resources/accounting/client.py b/src/merge/resources/accounting/client.py deleted file mode 100644 index fcf4a37c..00000000 --- a/src/merge/resources/accounting/client.py +++ /dev/null @@ -1,960 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawAccountingClient, RawAccountingClient - -if typing.TYPE_CHECKING: - from .resources.account_details.client import AccountDetailsClient, AsyncAccountDetailsClient - from .resources.account_token.client import AccountTokenClient, AsyncAccountTokenClient - from .resources.accounting_periods.client import AccountingPeriodsClient, AsyncAccountingPeriodsClient - from .resources.accounts.client import AccountsClient, AsyncAccountsClient - from .resources.addresses.client import AddressesClient, AsyncAddressesClient - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_accounting_resources_async_passthrough_client_AsyncPassthroughClient, - ) - from .resources.async_tasks.client import AsyncAsyncTasksClient, AsyncTasksClient - from .resources.attachments.client import AsyncAttachmentsClient, AttachmentsClient - from .resources.audit_trail.client import AsyncAuditTrailClient, AuditTrailClient - from .resources.available_actions.client import AsyncAvailableActionsClient, AvailableActionsClient - from .resources.balance_sheets.client import AsyncBalanceSheetsClient, BalanceSheetsClient - from .resources.bank_feed_accounts.client import AsyncBankFeedAccountsClient, BankFeedAccountsClient - from .resources.bank_feed_transactions.client import AsyncBankFeedTransactionsClient, BankFeedTransactionsClient - from .resources.cash_flow_statements.client import AsyncCashFlowStatementsClient, CashFlowStatementsClient - from .resources.company_info.client import AsyncCompanyInfoClient, CompanyInfoClient - from .resources.contacts.client import AsyncContactsClient, ContactsClient - from .resources.credit_notes.client import AsyncCreditNotesClient, CreditNotesClient - from .resources.delete_account.client import AsyncDeleteAccountClient, DeleteAccountClient - from .resources.employees.client import AsyncEmployeesClient, EmployeesClient - from .resources.expense_reports.client import AsyncExpenseReportsClient, ExpenseReportsClient - from .resources.expenses.client import AsyncExpensesClient, ExpensesClient - from .resources.field_mapping.client import AsyncFieldMappingClient, FieldMappingClient - from .resources.force_resync.client import AsyncForceResyncClient, ForceResyncClient - from .resources.general_ledger_transactions.client import ( - AsyncGeneralLedgerTransactionsClient, - GeneralLedgerTransactionsClient, - ) - from .resources.generate_key.client import AsyncGenerateKeyClient, GenerateKeyClient - from .resources.income_statements.client import AsyncIncomeStatementsClient, IncomeStatementsClient - from .resources.invoices.client import AsyncInvoicesClient, InvoicesClient - from .resources.issues.client import AsyncIssuesClient, IssuesClient - from .resources.items.client import AsyncItemsClient, ItemsClient - from .resources.journal_entries.client import AsyncJournalEntriesClient, JournalEntriesClient - from .resources.link_token.client import AsyncLinkTokenClient, LinkTokenClient - from .resources.linked_accounts.client import AsyncLinkedAccountsClient, LinkedAccountsClient - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_accounting_resources_passthrough_client_AsyncPassthroughClient, - ) - from .resources.passthrough.client import PassthroughClient - from .resources.payment_methods.client import AsyncPaymentMethodsClient, PaymentMethodsClient - from .resources.payment_terms.client import AsyncPaymentTermsClient, PaymentTermsClient - from .resources.payments.client import AsyncPaymentsClient, PaymentsClient - from .resources.phone_numbers.client import AsyncPhoneNumbersClient, PhoneNumbersClient - from .resources.projects.client import AsyncProjectsClient, ProjectsClient - from .resources.purchase_orders.client import AsyncPurchaseOrdersClient, PurchaseOrdersClient - from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient - from .resources.scopes.client import AsyncScopesClient, ScopesClient - from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient - from .resources.tax_rates.client import AsyncTaxRatesClient, TaxRatesClient - from .resources.tracking_categories.client import AsyncTrackingCategoriesClient, TrackingCategoriesClient - from .resources.transactions.client import AsyncTransactionsClient, TransactionsClient - from .resources.vendor_credits.client import AsyncVendorCreditsClient, VendorCreditsClient - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient - - -class AccountingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountingClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AccountDetailsClient] = None - self._account_token: typing.Optional[AccountTokenClient] = None - self._accounting_periods: typing.Optional[AccountingPeriodsClient] = None - self._accounts: typing.Optional[AccountsClient] = None - self._addresses: typing.Optional[AddressesClient] = None - self._async_passthrough: typing.Optional[ - resources_accounting_resources_async_passthrough_client_AsyncPassthroughClient - ] = None - self._async_tasks: typing.Optional[AsyncTasksClient] = None - self._attachments: typing.Optional[AttachmentsClient] = None - self._audit_trail: typing.Optional[AuditTrailClient] = None - self._available_actions: typing.Optional[AvailableActionsClient] = None - self._balance_sheets: typing.Optional[BalanceSheetsClient] = None - self._bank_feed_accounts: typing.Optional[BankFeedAccountsClient] = None - self._bank_feed_transactions: typing.Optional[BankFeedTransactionsClient] = None - self._cash_flow_statements: typing.Optional[CashFlowStatementsClient] = None - self._company_info: typing.Optional[CompanyInfoClient] = None - self._contacts: typing.Optional[ContactsClient] = None - self._credit_notes: typing.Optional[CreditNotesClient] = None - self._scopes: typing.Optional[ScopesClient] = None - self._delete_account: typing.Optional[DeleteAccountClient] = None - self._employees: typing.Optional[EmployeesClient] = None - self._expense_reports: typing.Optional[ExpenseReportsClient] = None - self._expenses: typing.Optional[ExpensesClient] = None - self._field_mapping: typing.Optional[FieldMappingClient] = None - self._general_ledger_transactions: typing.Optional[GeneralLedgerTransactionsClient] = None - self._generate_key: typing.Optional[GenerateKeyClient] = None - self._income_statements: typing.Optional[IncomeStatementsClient] = None - self._invoices: typing.Optional[InvoicesClient] = None - self._issues: typing.Optional[IssuesClient] = None - self._items: typing.Optional[ItemsClient] = None - self._journal_entries: typing.Optional[JournalEntriesClient] = None - self._link_token: typing.Optional[LinkTokenClient] = None - self._linked_accounts: typing.Optional[LinkedAccountsClient] = None - self._passthrough: typing.Optional[PassthroughClient] = None - self._payment_methods: typing.Optional[PaymentMethodsClient] = None - self._payment_terms: typing.Optional[PaymentTermsClient] = None - self._payments: typing.Optional[PaymentsClient] = None - self._phone_numbers: typing.Optional[PhoneNumbersClient] = None - self._projects: typing.Optional[ProjectsClient] = None - self._purchase_orders: typing.Optional[PurchaseOrdersClient] = None - self._regenerate_key: typing.Optional[RegenerateKeyClient] = None - self._sync_status: typing.Optional[SyncStatusClient] = None - self._force_resync: typing.Optional[ForceResyncClient] = None - self._tax_rates: typing.Optional[TaxRatesClient] = None - self._tracking_categories: typing.Optional[TrackingCategoriesClient] = None - self._transactions: typing.Optional[TransactionsClient] = None - self._vendor_credits: typing.Optional[VendorCreditsClient] = None - self._webhook_receivers: typing.Optional[WebhookReceiversClient] = None - - @property - def with_raw_response(self) -> RawAccountingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountingClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AccountDetailsClient # noqa: E402 - - self._account_details = AccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AccountTokenClient # noqa: E402 - - self._account_token = AccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def accounting_periods(self): - if self._accounting_periods is None: - from .resources.accounting_periods.client import AccountingPeriodsClient # noqa: E402 - - self._accounting_periods = AccountingPeriodsClient(client_wrapper=self._client_wrapper) - return self._accounting_periods - - @property - def accounts(self): - if self._accounts is None: - from .resources.accounts.client import AccountsClient # noqa: E402 - - self._accounts = AccountsClient(client_wrapper=self._client_wrapper) - return self._accounts - - @property - def addresses(self): - if self._addresses is None: - from .resources.addresses.client import AddressesClient # noqa: E402 - - self._addresses = AddressesClient(client_wrapper=self._client_wrapper) - return self._addresses - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_accounting_resources_async_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._async_passthrough = resources_accounting_resources_async_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._async_passthrough - - @property - def async_tasks(self): - if self._async_tasks is None: - from .resources.async_tasks.client import AsyncTasksClient # noqa: E402 - - self._async_tasks = AsyncTasksClient(client_wrapper=self._client_wrapper) - return self._async_tasks - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AttachmentsClient # noqa: E402 - - self._attachments = AttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AuditTrailClient # noqa: E402 - - self._audit_trail = AuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AvailableActionsClient # noqa: E402 - - self._available_actions = AvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def balance_sheets(self): - if self._balance_sheets is None: - from .resources.balance_sheets.client import BalanceSheetsClient # noqa: E402 - - self._balance_sheets = BalanceSheetsClient(client_wrapper=self._client_wrapper) - return self._balance_sheets - - @property - def bank_feed_accounts(self): - if self._bank_feed_accounts is None: - from .resources.bank_feed_accounts.client import BankFeedAccountsClient # noqa: E402 - - self._bank_feed_accounts = BankFeedAccountsClient(client_wrapper=self._client_wrapper) - return self._bank_feed_accounts - - @property - def bank_feed_transactions(self): - if self._bank_feed_transactions is None: - from .resources.bank_feed_transactions.client import BankFeedTransactionsClient # noqa: E402 - - self._bank_feed_transactions = BankFeedTransactionsClient(client_wrapper=self._client_wrapper) - return self._bank_feed_transactions - - @property - def cash_flow_statements(self): - if self._cash_flow_statements is None: - from .resources.cash_flow_statements.client import CashFlowStatementsClient # noqa: E402 - - self._cash_flow_statements = CashFlowStatementsClient(client_wrapper=self._client_wrapper) - return self._cash_flow_statements - - @property - def company_info(self): - if self._company_info is None: - from .resources.company_info.client import CompanyInfoClient # noqa: E402 - - self._company_info = CompanyInfoClient(client_wrapper=self._client_wrapper) - return self._company_info - - @property - def contacts(self): - if self._contacts is None: - from .resources.contacts.client import ContactsClient # noqa: E402 - - self._contacts = ContactsClient(client_wrapper=self._client_wrapper) - return self._contacts - - @property - def credit_notes(self): - if self._credit_notes is None: - from .resources.credit_notes.client import CreditNotesClient # noqa: E402 - - self._credit_notes = CreditNotesClient(client_wrapper=self._client_wrapper) - return self._credit_notes - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import ScopesClient # noqa: E402 - - self._scopes = ScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import DeleteAccountClient # noqa: E402 - - self._delete_account = DeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def employees(self): - if self._employees is None: - from .resources.employees.client import EmployeesClient # noqa: E402 - - self._employees = EmployeesClient(client_wrapper=self._client_wrapper) - return self._employees - - @property - def expense_reports(self): - if self._expense_reports is None: - from .resources.expense_reports.client import ExpenseReportsClient # noqa: E402 - - self._expense_reports = ExpenseReportsClient(client_wrapper=self._client_wrapper) - return self._expense_reports - - @property - def expenses(self): - if self._expenses is None: - from .resources.expenses.client import ExpensesClient # noqa: E402 - - self._expenses = ExpensesClient(client_wrapper=self._client_wrapper) - return self._expenses - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import FieldMappingClient # noqa: E402 - - self._field_mapping = FieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def general_ledger_transactions(self): - if self._general_ledger_transactions is None: - from .resources.general_ledger_transactions.client import GeneralLedgerTransactionsClient # noqa: E402 - - self._general_ledger_transactions = GeneralLedgerTransactionsClient(client_wrapper=self._client_wrapper) - return self._general_ledger_transactions - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import GenerateKeyClient # noqa: E402 - - self._generate_key = GenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def income_statements(self): - if self._income_statements is None: - from .resources.income_statements.client import IncomeStatementsClient # noqa: E402 - - self._income_statements = IncomeStatementsClient(client_wrapper=self._client_wrapper) - return self._income_statements - - @property - def invoices(self): - if self._invoices is None: - from .resources.invoices.client import InvoicesClient # noqa: E402 - - self._invoices = InvoicesClient(client_wrapper=self._client_wrapper) - return self._invoices - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import IssuesClient # noqa: E402 - - self._issues = IssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def items(self): - if self._items is None: - from .resources.items.client import ItemsClient # noqa: E402 - - self._items = ItemsClient(client_wrapper=self._client_wrapper) - return self._items - - @property - def journal_entries(self): - if self._journal_entries is None: - from .resources.journal_entries.client import JournalEntriesClient # noqa: E402 - - self._journal_entries = JournalEntriesClient(client_wrapper=self._client_wrapper) - return self._journal_entries - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import LinkTokenClient # noqa: E402 - - self._link_token = LinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import LinkedAccountsClient # noqa: E402 - - self._linked_accounts = LinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import PassthroughClient # noqa: E402 - - self._passthrough = PassthroughClient(client_wrapper=self._client_wrapper) - return self._passthrough - - @property - def payment_methods(self): - if self._payment_methods is None: - from .resources.payment_methods.client import PaymentMethodsClient # noqa: E402 - - self._payment_methods = PaymentMethodsClient(client_wrapper=self._client_wrapper) - return self._payment_methods - - @property - def payment_terms(self): - if self._payment_terms is None: - from .resources.payment_terms.client import PaymentTermsClient # noqa: E402 - - self._payment_terms = PaymentTermsClient(client_wrapper=self._client_wrapper) - return self._payment_terms - - @property - def payments(self): - if self._payments is None: - from .resources.payments.client import PaymentsClient # noqa: E402 - - self._payments = PaymentsClient(client_wrapper=self._client_wrapper) - return self._payments - - @property - def phone_numbers(self): - if self._phone_numbers is None: - from .resources.phone_numbers.client import PhoneNumbersClient # noqa: E402 - - self._phone_numbers = PhoneNumbersClient(client_wrapper=self._client_wrapper) - return self._phone_numbers - - @property - def projects(self): - if self._projects is None: - from .resources.projects.client import ProjectsClient # noqa: E402 - - self._projects = ProjectsClient(client_wrapper=self._client_wrapper) - return self._projects - - @property - def purchase_orders(self): - if self._purchase_orders is None: - from .resources.purchase_orders.client import PurchaseOrdersClient # noqa: E402 - - self._purchase_orders = PurchaseOrdersClient(client_wrapper=self._client_wrapper) - return self._purchase_orders - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import RegenerateKeyClient # noqa: E402 - - self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import SyncStatusClient # noqa: E402 - - self._sync_status = SyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import ForceResyncClient # noqa: E402 - - self._force_resync = ForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tax_rates(self): - if self._tax_rates is None: - from .resources.tax_rates.client import TaxRatesClient # noqa: E402 - - self._tax_rates = TaxRatesClient(client_wrapper=self._client_wrapper) - return self._tax_rates - - @property - def tracking_categories(self): - if self._tracking_categories is None: - from .resources.tracking_categories.client import TrackingCategoriesClient # noqa: E402 - - self._tracking_categories = TrackingCategoriesClient(client_wrapper=self._client_wrapper) - return self._tracking_categories - - @property - def transactions(self): - if self._transactions is None: - from .resources.transactions.client import TransactionsClient # noqa: E402 - - self._transactions = TransactionsClient(client_wrapper=self._client_wrapper) - return self._transactions - - @property - def vendor_credits(self): - if self._vendor_credits is None: - from .resources.vendor_credits.client import VendorCreditsClient # noqa: E402 - - self._vendor_credits = VendorCreditsClient(client_wrapper=self._client_wrapper) - return self._vendor_credits - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import WebhookReceiversClient # noqa: E402 - - self._webhook_receivers = WebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers - - -class AsyncAccountingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountingClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AsyncAccountDetailsClient] = None - self._account_token: typing.Optional[AsyncAccountTokenClient] = None - self._accounting_periods: typing.Optional[AsyncAccountingPeriodsClient] = None - self._accounts: typing.Optional[AsyncAccountsClient] = None - self._addresses: typing.Optional[AsyncAddressesClient] = None - self._async_passthrough: typing.Optional[AsyncAsyncPassthroughClient] = None - self._async_tasks: typing.Optional[AsyncAsyncTasksClient] = None - self._attachments: typing.Optional[AsyncAttachmentsClient] = None - self._audit_trail: typing.Optional[AsyncAuditTrailClient] = None - self._available_actions: typing.Optional[AsyncAvailableActionsClient] = None - self._balance_sheets: typing.Optional[AsyncBalanceSheetsClient] = None - self._bank_feed_accounts: typing.Optional[AsyncBankFeedAccountsClient] = None - self._bank_feed_transactions: typing.Optional[AsyncBankFeedTransactionsClient] = None - self._cash_flow_statements: typing.Optional[AsyncCashFlowStatementsClient] = None - self._company_info: typing.Optional[AsyncCompanyInfoClient] = None - self._contacts: typing.Optional[AsyncContactsClient] = None - self._credit_notes: typing.Optional[AsyncCreditNotesClient] = None - self._scopes: typing.Optional[AsyncScopesClient] = None - self._delete_account: typing.Optional[AsyncDeleteAccountClient] = None - self._employees: typing.Optional[AsyncEmployeesClient] = None - self._expense_reports: typing.Optional[AsyncExpenseReportsClient] = None - self._expenses: typing.Optional[AsyncExpensesClient] = None - self._field_mapping: typing.Optional[AsyncFieldMappingClient] = None - self._general_ledger_transactions: typing.Optional[AsyncGeneralLedgerTransactionsClient] = None - self._generate_key: typing.Optional[AsyncGenerateKeyClient] = None - self._income_statements: typing.Optional[AsyncIncomeStatementsClient] = None - self._invoices: typing.Optional[AsyncInvoicesClient] = None - self._issues: typing.Optional[AsyncIssuesClient] = None - self._items: typing.Optional[AsyncItemsClient] = None - self._journal_entries: typing.Optional[AsyncJournalEntriesClient] = None - self._link_token: typing.Optional[AsyncLinkTokenClient] = None - self._linked_accounts: typing.Optional[AsyncLinkedAccountsClient] = None - self._passthrough: typing.Optional[resources_accounting_resources_passthrough_client_AsyncPassthroughClient] = ( - None - ) - self._payment_methods: typing.Optional[AsyncPaymentMethodsClient] = None - self._payment_terms: typing.Optional[AsyncPaymentTermsClient] = None - self._payments: typing.Optional[AsyncPaymentsClient] = None - self._phone_numbers: typing.Optional[AsyncPhoneNumbersClient] = None - self._projects: typing.Optional[AsyncProjectsClient] = None - self._purchase_orders: typing.Optional[AsyncPurchaseOrdersClient] = None - self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None - self._sync_status: typing.Optional[AsyncSyncStatusClient] = None - self._force_resync: typing.Optional[AsyncForceResyncClient] = None - self._tax_rates: typing.Optional[AsyncTaxRatesClient] = None - self._tracking_categories: typing.Optional[AsyncTrackingCategoriesClient] = None - self._transactions: typing.Optional[AsyncTransactionsClient] = None - self._vendor_credits: typing.Optional[AsyncVendorCreditsClient] = None - self._webhook_receivers: typing.Optional[AsyncWebhookReceiversClient] = None - - @property - def with_raw_response(self) -> AsyncRawAccountingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountingClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AsyncAccountDetailsClient # noqa: E402 - - self._account_details = AsyncAccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AsyncAccountTokenClient # noqa: E402 - - self._account_token = AsyncAccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def accounting_periods(self): - if self._accounting_periods is None: - from .resources.accounting_periods.client import AsyncAccountingPeriodsClient # noqa: E402 - - self._accounting_periods = AsyncAccountingPeriodsClient(client_wrapper=self._client_wrapper) - return self._accounting_periods - - @property - def accounts(self): - if self._accounts is None: - from .resources.accounts.client import AsyncAccountsClient # noqa: E402 - - self._accounts = AsyncAccountsClient(client_wrapper=self._client_wrapper) - return self._accounts - - @property - def addresses(self): - if self._addresses is None: - from .resources.addresses.client import AsyncAddressesClient # noqa: E402 - - self._addresses = AsyncAddressesClient(client_wrapper=self._client_wrapper) - return self._addresses - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient # noqa: E402 - - self._async_passthrough = AsyncAsyncPassthroughClient(client_wrapper=self._client_wrapper) - return self._async_passthrough - - @property - def async_tasks(self): - if self._async_tasks is None: - from .resources.async_tasks.client import AsyncAsyncTasksClient # noqa: E402 - - self._async_tasks = AsyncAsyncTasksClient(client_wrapper=self._client_wrapper) - return self._async_tasks - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AsyncAttachmentsClient # noqa: E402 - - self._attachments = AsyncAttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AsyncAuditTrailClient # noqa: E402 - - self._audit_trail = AsyncAuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AsyncAvailableActionsClient # noqa: E402 - - self._available_actions = AsyncAvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def balance_sheets(self): - if self._balance_sheets is None: - from .resources.balance_sheets.client import AsyncBalanceSheetsClient # noqa: E402 - - self._balance_sheets = AsyncBalanceSheetsClient(client_wrapper=self._client_wrapper) - return self._balance_sheets - - @property - def bank_feed_accounts(self): - if self._bank_feed_accounts is None: - from .resources.bank_feed_accounts.client import AsyncBankFeedAccountsClient # noqa: E402 - - self._bank_feed_accounts = AsyncBankFeedAccountsClient(client_wrapper=self._client_wrapper) - return self._bank_feed_accounts - - @property - def bank_feed_transactions(self): - if self._bank_feed_transactions is None: - from .resources.bank_feed_transactions.client import AsyncBankFeedTransactionsClient # noqa: E402 - - self._bank_feed_transactions = AsyncBankFeedTransactionsClient(client_wrapper=self._client_wrapper) - return self._bank_feed_transactions - - @property - def cash_flow_statements(self): - if self._cash_flow_statements is None: - from .resources.cash_flow_statements.client import AsyncCashFlowStatementsClient # noqa: E402 - - self._cash_flow_statements = AsyncCashFlowStatementsClient(client_wrapper=self._client_wrapper) - return self._cash_flow_statements - - @property - def company_info(self): - if self._company_info is None: - from .resources.company_info.client import AsyncCompanyInfoClient # noqa: E402 - - self._company_info = AsyncCompanyInfoClient(client_wrapper=self._client_wrapper) - return self._company_info - - @property - def contacts(self): - if self._contacts is None: - from .resources.contacts.client import AsyncContactsClient # noqa: E402 - - self._contacts = AsyncContactsClient(client_wrapper=self._client_wrapper) - return self._contacts - - @property - def credit_notes(self): - if self._credit_notes is None: - from .resources.credit_notes.client import AsyncCreditNotesClient # noqa: E402 - - self._credit_notes = AsyncCreditNotesClient(client_wrapper=self._client_wrapper) - return self._credit_notes - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import AsyncScopesClient # noqa: E402 - - self._scopes = AsyncScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import AsyncDeleteAccountClient # noqa: E402 - - self._delete_account = AsyncDeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def employees(self): - if self._employees is None: - from .resources.employees.client import AsyncEmployeesClient # noqa: E402 - - self._employees = AsyncEmployeesClient(client_wrapper=self._client_wrapper) - return self._employees - - @property - def expense_reports(self): - if self._expense_reports is None: - from .resources.expense_reports.client import AsyncExpenseReportsClient # noqa: E402 - - self._expense_reports = AsyncExpenseReportsClient(client_wrapper=self._client_wrapper) - return self._expense_reports - - @property - def expenses(self): - if self._expenses is None: - from .resources.expenses.client import AsyncExpensesClient # noqa: E402 - - self._expenses = AsyncExpensesClient(client_wrapper=self._client_wrapper) - return self._expenses - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import AsyncFieldMappingClient # noqa: E402 - - self._field_mapping = AsyncFieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def general_ledger_transactions(self): - if self._general_ledger_transactions is None: - from .resources.general_ledger_transactions.client import AsyncGeneralLedgerTransactionsClient # noqa: E402 - - self._general_ledger_transactions = AsyncGeneralLedgerTransactionsClient( - client_wrapper=self._client_wrapper - ) - return self._general_ledger_transactions - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import AsyncGenerateKeyClient # noqa: E402 - - self._generate_key = AsyncGenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def income_statements(self): - if self._income_statements is None: - from .resources.income_statements.client import AsyncIncomeStatementsClient # noqa: E402 - - self._income_statements = AsyncIncomeStatementsClient(client_wrapper=self._client_wrapper) - return self._income_statements - - @property - def invoices(self): - if self._invoices is None: - from .resources.invoices.client import AsyncInvoicesClient # noqa: E402 - - self._invoices = AsyncInvoicesClient(client_wrapper=self._client_wrapper) - return self._invoices - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import AsyncIssuesClient # noqa: E402 - - self._issues = AsyncIssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def items(self): - if self._items is None: - from .resources.items.client import AsyncItemsClient # noqa: E402 - - self._items = AsyncItemsClient(client_wrapper=self._client_wrapper) - return self._items - - @property - def journal_entries(self): - if self._journal_entries is None: - from .resources.journal_entries.client import AsyncJournalEntriesClient # noqa: E402 - - self._journal_entries = AsyncJournalEntriesClient(client_wrapper=self._client_wrapper) - return self._journal_entries - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import AsyncLinkTokenClient # noqa: E402 - - self._link_token = AsyncLinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import AsyncLinkedAccountsClient # noqa: E402 - - self._linked_accounts = AsyncLinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_accounting_resources_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._passthrough = resources_accounting_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._passthrough - - @property - def payment_methods(self): - if self._payment_methods is None: - from .resources.payment_methods.client import AsyncPaymentMethodsClient # noqa: E402 - - self._payment_methods = AsyncPaymentMethodsClient(client_wrapper=self._client_wrapper) - return self._payment_methods - - @property - def payment_terms(self): - if self._payment_terms is None: - from .resources.payment_terms.client import AsyncPaymentTermsClient # noqa: E402 - - self._payment_terms = AsyncPaymentTermsClient(client_wrapper=self._client_wrapper) - return self._payment_terms - - @property - def payments(self): - if self._payments is None: - from .resources.payments.client import AsyncPaymentsClient # noqa: E402 - - self._payments = AsyncPaymentsClient(client_wrapper=self._client_wrapper) - return self._payments - - @property - def phone_numbers(self): - if self._phone_numbers is None: - from .resources.phone_numbers.client import AsyncPhoneNumbersClient # noqa: E402 - - self._phone_numbers = AsyncPhoneNumbersClient(client_wrapper=self._client_wrapper) - return self._phone_numbers - - @property - def projects(self): - if self._projects is None: - from .resources.projects.client import AsyncProjectsClient # noqa: E402 - - self._projects = AsyncProjectsClient(client_wrapper=self._client_wrapper) - return self._projects - - @property - def purchase_orders(self): - if self._purchase_orders is None: - from .resources.purchase_orders.client import AsyncPurchaseOrdersClient # noqa: E402 - - self._purchase_orders = AsyncPurchaseOrdersClient(client_wrapper=self._client_wrapper) - return self._purchase_orders - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import AsyncRegenerateKeyClient # noqa: E402 - - self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import AsyncSyncStatusClient # noqa: E402 - - self._sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import AsyncForceResyncClient # noqa: E402 - - self._force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tax_rates(self): - if self._tax_rates is None: - from .resources.tax_rates.client import AsyncTaxRatesClient # noqa: E402 - - self._tax_rates = AsyncTaxRatesClient(client_wrapper=self._client_wrapper) - return self._tax_rates - - @property - def tracking_categories(self): - if self._tracking_categories is None: - from .resources.tracking_categories.client import AsyncTrackingCategoriesClient # noqa: E402 - - self._tracking_categories = AsyncTrackingCategoriesClient(client_wrapper=self._client_wrapper) - return self._tracking_categories - - @property - def transactions(self): - if self._transactions is None: - from .resources.transactions.client import AsyncTransactionsClient # noqa: E402 - - self._transactions = AsyncTransactionsClient(client_wrapper=self._client_wrapper) - return self._transactions - - @property - def vendor_credits(self): - if self._vendor_credits is None: - from .resources.vendor_credits.client import AsyncVendorCreditsClient # noqa: E402 - - self._vendor_credits = AsyncVendorCreditsClient(client_wrapper=self._client_wrapper) - return self._vendor_credits - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient # noqa: E402 - - self._webhook_receivers = AsyncWebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers diff --git a/src/merge/resources/accounting/raw_client.py b/src/merge/resources/accounting/raw_client.py deleted file mode 100644 index 2922a11c..00000000 --- a/src/merge/resources/accounting/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawAccountingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawAccountingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/merge/resources/accounting/resources/__init__.py b/src/merge/resources/accounting/resources/__init__.py deleted file mode 100644 index 46b82e29..00000000 --- a/src/merge/resources/accounting/resources/__init__.py +++ /dev/null @@ -1,318 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - account_details, - account_token, - accounting_periods, - accounts, - addresses, - async_passthrough, - async_tasks, - attachments, - audit_trail, - available_actions, - balance_sheets, - bank_feed_accounts, - bank_feed_transactions, - cash_flow_statements, - company_info, - contacts, - credit_notes, - delete_account, - employees, - expense_reports, - expenses, - field_mapping, - force_resync, - general_ledger_transactions, - generate_key, - income_statements, - invoices, - issues, - items, - journal_entries, - link_token, - linked_accounts, - passthrough, - payment_methods, - payment_terms, - payments, - phone_numbers, - projects, - purchase_orders, - regenerate_key, - scopes, - sync_status, - tax_rates, - tracking_categories, - transactions, - vendor_credits, - webhook_receivers, - ) - from .accounts import ( - AccountsListRequestClassification, - AccountsListRequestRemoteFields, - AccountsListRequestShowEnumOrigins, - AccountsListRequestStatus, - AccountsRetrieveRequestRemoteFields, - AccountsRetrieveRequestShowEnumOrigins, - ) - from .async_passthrough import AsyncPassthroughRetrieveResponse - from .company_info import CompanyInfoListRequestExpand, CompanyInfoRetrieveRequestExpand - from .contacts import ContactsListRequestExpand, ContactsListRequestStatus, ContactsRetrieveRequestExpand - from .credit_notes import ( - CreditNotesListRequestExpand, - CreditNotesListRequestRemoteFields, - CreditNotesListRequestShowEnumOrigins, - CreditNotesRetrieveRequestExpand, - CreditNotesRetrieveRequestRemoteFields, - CreditNotesRetrieveRequestShowEnumOrigins, - ) - from .expense_reports import ( - ExpenseReportsLinesListRequestExpand, - ExpenseReportsListRequestExpand, - ExpenseReportsRetrieveRequestExpand, - ) - from .expenses import ExpensesListRequestExpand, ExpensesRetrieveRequestExpand - from .general_ledger_transactions import ( - GeneralLedgerTransactionsListRequestExpand, - GeneralLedgerTransactionsRetrieveRequestExpand, - ) - from .invoices import ( - InvoicesListRequestExpand, - InvoicesListRequestStatus, - InvoicesListRequestType, - InvoicesRetrieveRequestExpand, - ) - from .issues import IssuesListRequestStatus - from .items import ItemsListRequestExpand, ItemsRetrieveRequestExpand - from .journal_entries import JournalEntriesListRequestExpand, JournalEntriesRetrieveRequestExpand - from .link_token import EndUserDetailsRequestLanguage - from .linked_accounts import LinkedAccountsListRequestCategory - from .payments import PaymentsListRequestExpand, PaymentsRetrieveRequestExpand - from .projects import ProjectsListRequestExpand, ProjectsRetrieveRequestExpand - from .purchase_orders import PurchaseOrdersListRequestExpand, PurchaseOrdersRetrieveRequestExpand - from .tracking_categories import TrackingCategoriesListRequestCategoryType, TrackingCategoriesListRequestStatus - from .transactions import TransactionsListRequestExpand, TransactionsRetrieveRequestExpand - from .vendor_credits import VendorCreditsListRequestExpand, VendorCreditsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "AccountsListRequestClassification": ".accounts", - "AccountsListRequestRemoteFields": ".accounts", - "AccountsListRequestShowEnumOrigins": ".accounts", - "AccountsListRequestStatus": ".accounts", - "AccountsRetrieveRequestRemoteFields": ".accounts", - "AccountsRetrieveRequestShowEnumOrigins": ".accounts", - "AsyncPassthroughRetrieveResponse": ".async_passthrough", - "CompanyInfoListRequestExpand": ".company_info", - "CompanyInfoRetrieveRequestExpand": ".company_info", - "ContactsListRequestExpand": ".contacts", - "ContactsListRequestStatus": ".contacts", - "ContactsRetrieveRequestExpand": ".contacts", - "CreditNotesListRequestExpand": ".credit_notes", - "CreditNotesListRequestRemoteFields": ".credit_notes", - "CreditNotesListRequestShowEnumOrigins": ".credit_notes", - "CreditNotesRetrieveRequestExpand": ".credit_notes", - "CreditNotesRetrieveRequestRemoteFields": ".credit_notes", - "CreditNotesRetrieveRequestShowEnumOrigins": ".credit_notes", - "EndUserDetailsRequestLanguage": ".link_token", - "ExpenseReportsLinesListRequestExpand": ".expense_reports", - "ExpenseReportsListRequestExpand": ".expense_reports", - "ExpenseReportsRetrieveRequestExpand": ".expense_reports", - "ExpensesListRequestExpand": ".expenses", - "ExpensesRetrieveRequestExpand": ".expenses", - "GeneralLedgerTransactionsListRequestExpand": ".general_ledger_transactions", - "GeneralLedgerTransactionsRetrieveRequestExpand": ".general_ledger_transactions", - "InvoicesListRequestExpand": ".invoices", - "InvoicesListRequestStatus": ".invoices", - "InvoicesListRequestType": ".invoices", - "InvoicesRetrieveRequestExpand": ".invoices", - "IssuesListRequestStatus": ".issues", - "ItemsListRequestExpand": ".items", - "ItemsRetrieveRequestExpand": ".items", - "JournalEntriesListRequestExpand": ".journal_entries", - "JournalEntriesRetrieveRequestExpand": ".journal_entries", - "LinkedAccountsListRequestCategory": ".linked_accounts", - "PaymentsListRequestExpand": ".payments", - "PaymentsRetrieveRequestExpand": ".payments", - "ProjectsListRequestExpand": ".projects", - "ProjectsRetrieveRequestExpand": ".projects", - "PurchaseOrdersListRequestExpand": ".purchase_orders", - "PurchaseOrdersRetrieveRequestExpand": ".purchase_orders", - "TrackingCategoriesListRequestCategoryType": ".tracking_categories", - "TrackingCategoriesListRequestStatus": ".tracking_categories", - "TransactionsListRequestExpand": ".transactions", - "TransactionsRetrieveRequestExpand": ".transactions", - "VendorCreditsListRequestExpand": ".vendor_credits", - "VendorCreditsRetrieveRequestExpand": ".vendor_credits", - "account_details": ".", - "account_token": ".", - "accounting_periods": ".", - "accounts": ".", - "addresses": ".", - "async_passthrough": ".", - "async_tasks": ".", - "attachments": ".", - "audit_trail": ".", - "available_actions": ".", - "balance_sheets": ".", - "bank_feed_accounts": ".", - "bank_feed_transactions": ".", - "cash_flow_statements": ".", - "company_info": ".", - "contacts": ".", - "credit_notes": ".", - "delete_account": ".", - "employees": ".", - "expense_reports": ".", - "expenses": ".", - "field_mapping": ".", - "force_resync": ".", - "general_ledger_transactions": ".", - "generate_key": ".", - "income_statements": ".", - "invoices": ".", - "issues": ".", - "items": ".", - "journal_entries": ".", - "link_token": ".", - "linked_accounts": ".", - "passthrough": ".", - "payment_methods": ".", - "payment_terms": ".", - "payments": ".", - "phone_numbers": ".", - "projects": ".", - "purchase_orders": ".", - "regenerate_key": ".", - "scopes": ".", - "sync_status": ".", - "tax_rates": ".", - "tracking_categories": ".", - "transactions": ".", - "vendor_credits": ".", - "webhook_receivers": ".", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountsListRequestClassification", - "AccountsListRequestRemoteFields", - "AccountsListRequestShowEnumOrigins", - "AccountsListRequestStatus", - "AccountsRetrieveRequestRemoteFields", - "AccountsRetrieveRequestShowEnumOrigins", - "AsyncPassthroughRetrieveResponse", - "CompanyInfoListRequestExpand", - "CompanyInfoRetrieveRequestExpand", - "ContactsListRequestExpand", - "ContactsListRequestStatus", - "ContactsRetrieveRequestExpand", - "CreditNotesListRequestExpand", - "CreditNotesListRequestRemoteFields", - "CreditNotesListRequestShowEnumOrigins", - "CreditNotesRetrieveRequestExpand", - "CreditNotesRetrieveRequestRemoteFields", - "CreditNotesRetrieveRequestShowEnumOrigins", - "EndUserDetailsRequestLanguage", - "ExpenseReportsLinesListRequestExpand", - "ExpenseReportsListRequestExpand", - "ExpenseReportsRetrieveRequestExpand", - "ExpensesListRequestExpand", - "ExpensesRetrieveRequestExpand", - "GeneralLedgerTransactionsListRequestExpand", - "GeneralLedgerTransactionsRetrieveRequestExpand", - "InvoicesListRequestExpand", - "InvoicesListRequestStatus", - "InvoicesListRequestType", - "InvoicesRetrieveRequestExpand", - "IssuesListRequestStatus", - "ItemsListRequestExpand", - "ItemsRetrieveRequestExpand", - "JournalEntriesListRequestExpand", - "JournalEntriesRetrieveRequestExpand", - "LinkedAccountsListRequestCategory", - "PaymentsListRequestExpand", - "PaymentsRetrieveRequestExpand", - "ProjectsListRequestExpand", - "ProjectsRetrieveRequestExpand", - "PurchaseOrdersListRequestExpand", - "PurchaseOrdersRetrieveRequestExpand", - "TrackingCategoriesListRequestCategoryType", - "TrackingCategoriesListRequestStatus", - "TransactionsListRequestExpand", - "TransactionsRetrieveRequestExpand", - "VendorCreditsListRequestExpand", - "VendorCreditsRetrieveRequestExpand", - "account_details", - "account_token", - "accounting_periods", - "accounts", - "addresses", - "async_passthrough", - "async_tasks", - "attachments", - "audit_trail", - "available_actions", - "balance_sheets", - "bank_feed_accounts", - "bank_feed_transactions", - "cash_flow_statements", - "company_info", - "contacts", - "credit_notes", - "delete_account", - "employees", - "expense_reports", - "expenses", - "field_mapping", - "force_resync", - "general_ledger_transactions", - "generate_key", - "income_statements", - "invoices", - "issues", - "items", - "journal_entries", - "link_token", - "linked_accounts", - "passthrough", - "payment_methods", - "payment_terms", - "payments", - "phone_numbers", - "projects", - "purchase_orders", - "regenerate_key", - "scopes", - "sync_status", - "tax_rates", - "tracking_categories", - "transactions", - "vendor_credits", - "webhook_receivers", -] diff --git a/src/merge/resources/accounting/resources/account_details/__init__.py b/src/merge/resources/accounting/resources/account_details/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/account_details/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/account_details/client.py b/src/merge/resources/accounting/resources/account_details/client.py deleted file mode 100644 index ea5a309a..00000000 --- a/src/merge/resources/accounting/resources/account_details/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_details import AccountDetails -from .raw_client import AsyncRawAccountDetailsClient, RawAccountDetailsClient - - -class AccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountDetailsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.account_details.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountDetailsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.account_details.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/account_details/raw_client.py b/src/merge/resources/accounting/resources/account_details/raw_client.py deleted file mode 100644 index 8545113d..00000000 --- a/src/merge/resources/accounting/resources/account_details/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_details import AccountDetails - - -class RawAccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountDetails] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountDetails] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/account_token/__init__.py b/src/merge/resources/accounting/resources/account_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/account_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/account_token/client.py b/src/merge/resources/accounting/resources/account_token/client.py deleted file mode 100644 index d48bdcfd..00000000 --- a/src/merge/resources/accounting/resources/account_token/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_token import AccountToken -from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient - - -class AccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountTokenClient - """ - return self._raw_client - - def retrieve(self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.account_token.retrieve( - public_token="public_token", - ) - """ - _response = self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data - - -class AsyncAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountTokenClient - """ - return self._raw_client - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.account_token.retrieve( - public_token="public_token", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/account_token/raw_client.py b/src/merge/resources/accounting/resources/account_token/raw_client.py deleted file mode 100644 index a788d970..00000000 --- a/src/merge/resources/accounting/resources/account_token/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_token import AccountToken - - -class RawAccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountToken] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/accounting_periods/__init__.py b/src/merge/resources/accounting/resources/accounting_periods/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/accounting_periods/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/accounting_periods/client.py b/src/merge/resources/accounting/resources/accounting_periods/client.py deleted file mode 100644 index 6bf4adb9..00000000 --- a/src/merge/resources/accounting/resources/accounting_periods/client.py +++ /dev/null @@ -1,287 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.accounting_period import AccountingPeriod -from ...types.paginated_accounting_period_list import PaginatedAccountingPeriodList -from .raw_client import AsyncRawAccountingPeriodsClient, RawAccountingPeriodsClient - - -class AccountingPeriodsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountingPeriodsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountingPeriodsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountingPeriodsClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountingPeriodList: - """ - Returns a list of `AccountingPeriod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountingPeriodList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.accounting_periods.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingPeriod: - """ - Returns an `AccountingPeriod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingPeriod - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.accounting_periods.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncAccountingPeriodsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountingPeriodsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountingPeriodsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountingPeriodsClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountingPeriodList: - """ - Returns a list of `AccountingPeriod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountingPeriodList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.accounting_periods.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingPeriod: - """ - Returns an `AccountingPeriod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingPeriod - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.accounting_periods.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/accounting_periods/raw_client.py b/src/merge/resources/accounting/resources/accounting_periods/raw_client.py deleted file mode 100644 index 08e2b4e3..00000000 --- a/src/merge/resources/accounting/resources/accounting_periods/raw_client.py +++ /dev/null @@ -1,259 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.accounting_period import AccountingPeriod -from ...types.paginated_accounting_period_list import PaginatedAccountingPeriodList - - -class RawAccountingPeriodsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountingPeriodList]: - """ - Returns a list of `AccountingPeriod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountingPeriodList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/accounting-periods", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountingPeriodList, - construct_type( - type_=PaginatedAccountingPeriodList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AccountingPeriod]: - """ - Returns an `AccountingPeriod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountingPeriod] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/accounting-periods/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingPeriod, - construct_type( - type_=AccountingPeriod, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountingPeriodsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountingPeriodList]: - """ - Returns a list of `AccountingPeriod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountingPeriodList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/accounting-periods", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountingPeriodList, - construct_type( - type_=PaginatedAccountingPeriodList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AccountingPeriod]: - """ - Returns an `AccountingPeriod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountingPeriod] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/accounting-periods/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingPeriod, - construct_type( - type_=AccountingPeriod, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/accounts/__init__.py b/src/merge/resources/accounting/resources/accounts/__init__.py deleted file mode 100644 index bee926eb..00000000 --- a/src/merge/resources/accounting/resources/accounts/__init__.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - AccountsListRequestClassification, - AccountsListRequestRemoteFields, - AccountsListRequestShowEnumOrigins, - AccountsListRequestStatus, - AccountsRetrieveRequestRemoteFields, - AccountsRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "AccountsListRequestClassification": ".types", - "AccountsListRequestRemoteFields": ".types", - "AccountsListRequestShowEnumOrigins": ".types", - "AccountsListRequestStatus": ".types", - "AccountsRetrieveRequestRemoteFields": ".types", - "AccountsRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountsListRequestClassification", - "AccountsListRequestRemoteFields", - "AccountsListRequestShowEnumOrigins", - "AccountsListRequestStatus", - "AccountsRetrieveRequestRemoteFields", - "AccountsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/accounting/resources/accounts/client.py b/src/merge/resources/accounting/resources/accounts/client.py deleted file mode 100644 index e0354f59..00000000 --- a/src/merge/resources/accounting/resources/accounts/client.py +++ /dev/null @@ -1,695 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account import Account -from ...types.account_request import AccountRequest -from ...types.account_response import AccountResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_account_list import PaginatedAccountList -from .raw_client import AsyncRawAccountsClient, RawAccountsClient -from .types.accounts_list_request_classification import AccountsListRequestClassification -from .types.accounts_list_request_remote_fields import AccountsListRequestRemoteFields -from .types.accounts_list_request_show_enum_origins import AccountsListRequestShowEnumOrigins -from .types.accounts_list_request_status import AccountsListRequestStatus -from .types.accounts_retrieve_request_remote_fields import AccountsRetrieveRequestRemoteFields -from .types.accounts_retrieve_request_show_enum_origins import AccountsRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountsClient - """ - return self._raw_client - - def list( - self, - *, - account_type: typing.Optional[str] = None, - classification: typing.Optional[AccountsListRequestClassification] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None, - status: typing.Optional[AccountsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountList: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - account_type : typing.Optional[str] - If provided, will only return accounts with the passed in enum. - - classification : typing.Optional[AccountsListRequestClassification] - If provided, will only return accounts with this classification. - - company_id : typing.Optional[str] - If provided, will only return accounts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Accounts with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[AccountsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[AccountsListRequestStatus] - If provided, will only return accounts with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.accounts import ( - AccountsListRequestClassification, - AccountsListRequestRemoteFields, - AccountsListRequestShowEnumOrigins, - AccountsListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.accounts.list( - account_type="account_type", - classification=AccountsListRequestClassification.EMPTY, - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_fields=AccountsListRequestRemoteFields.CLASSIFICATION, - remote_id="remote_id", - show_enum_origins=AccountsListRequestShowEnumOrigins.CLASSIFICATION, - status=AccountsListRequestStatus.EMPTY, - ) - """ - _response = self._raw_client.list( - account_type=account_type, - classification=classification, - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountResponse: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import AccountRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.accounts.create( - is_debug_mode=True, - run_async=True, - model=AccountRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[AccountsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[AccountsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Account: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[AccountsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[AccountsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Account - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.accounts import ( - AccountsRetrieveRequestRemoteFields, - AccountsRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=AccountsRetrieveRequestRemoteFields.CLASSIFICATION, - show_enum_origins=AccountsRetrieveRequestShowEnumOrigins.CLASSIFICATION, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Account` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.accounts.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - account_type: typing.Optional[str] = None, - classification: typing.Optional[AccountsListRequestClassification] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None, - status: typing.Optional[AccountsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountList: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - account_type : typing.Optional[str] - If provided, will only return accounts with the passed in enum. - - classification : typing.Optional[AccountsListRequestClassification] - If provided, will only return accounts with this classification. - - company_id : typing.Optional[str] - If provided, will only return accounts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Accounts with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[AccountsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[AccountsListRequestStatus] - If provided, will only return accounts with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.accounts import ( - AccountsListRequestClassification, - AccountsListRequestRemoteFields, - AccountsListRequestShowEnumOrigins, - AccountsListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.accounts.list( - account_type="account_type", - classification=AccountsListRequestClassification.EMPTY, - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_fields=AccountsListRequestRemoteFields.CLASSIFICATION, - remote_id="remote_id", - show_enum_origins=AccountsListRequestShowEnumOrigins.CLASSIFICATION, - status=AccountsListRequestStatus.EMPTY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_type=account_type, - classification=classification, - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountResponse: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import AccountRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.accounts.create( - is_debug_mode=True, - run_async=True, - model=AccountRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[AccountsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[AccountsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Account: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[AccountsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[AccountsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Account - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.accounts import ( - AccountsRetrieveRequestRemoteFields, - AccountsRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=AccountsRetrieveRequestRemoteFields.CLASSIFICATION, - show_enum_origins=AccountsRetrieveRequestShowEnumOrigins.CLASSIFICATION, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Account` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.accounts.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/accounts/raw_client.py b/src/merge/resources/accounting/resources/accounts/raw_client.py deleted file mode 100644 index a2b127ea..00000000 --- a/src/merge/resources/accounting/resources/accounts/raw_client.py +++ /dev/null @@ -1,625 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account import Account -from ...types.account_request import AccountRequest -from ...types.account_response import AccountResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_account_list import PaginatedAccountList -from .types.accounts_list_request_classification import AccountsListRequestClassification -from .types.accounts_list_request_remote_fields import AccountsListRequestRemoteFields -from .types.accounts_list_request_show_enum_origins import AccountsListRequestShowEnumOrigins -from .types.accounts_list_request_status import AccountsListRequestStatus -from .types.accounts_retrieve_request_remote_fields import AccountsRetrieveRequestRemoteFields -from .types.accounts_retrieve_request_show_enum_origins import AccountsRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_type: typing.Optional[str] = None, - classification: typing.Optional[AccountsListRequestClassification] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None, - status: typing.Optional[AccountsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountList]: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - account_type : typing.Optional[str] - If provided, will only return accounts with the passed in enum. - - classification : typing.Optional[AccountsListRequestClassification] - If provided, will only return accounts with this classification. - - company_id : typing.Optional[str] - If provided, will only return accounts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Accounts with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[AccountsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[AccountsListRequestStatus] - If provided, will only return accounts with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/accounts", - method="GET", - params={ - "account_type": account_type, - "classification": classification, - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountList, - construct_type( - type_=PaginatedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AccountResponse]: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/accounts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountResponse, - construct_type( - type_=AccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[AccountsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[AccountsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Account]: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[AccountsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[AccountsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Account] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Account, - construct_type( - type_=Account, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Account` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/accounts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_type: typing.Optional[str] = None, - classification: typing.Optional[AccountsListRequestClassification] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[AccountsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[AccountsListRequestShowEnumOrigins] = None, - status: typing.Optional[AccountsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountList]: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - account_type : typing.Optional[str] - If provided, will only return accounts with the passed in enum. - - classification : typing.Optional[AccountsListRequestClassification] - If provided, will only return accounts with this classification. - - company_id : typing.Optional[str] - If provided, will only return accounts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Accounts with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[AccountsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[AccountsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[AccountsListRequestStatus] - If provided, will only return accounts with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/accounts", - method="GET", - params={ - "account_type": account_type, - "classification": classification, - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountList, - construct_type( - type_=PaginatedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AccountResponse]: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/accounts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountResponse, - construct_type( - type_=AccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[AccountsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[AccountsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Account]: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[AccountsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[AccountsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Account] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Account, - construct_type( - type_=Account, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Account` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/accounts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/accounts/types/__init__.py b/src/merge/resources/accounting/resources/accounts/types/__init__.py deleted file mode 100644 index 61dd5434..00000000 --- a/src/merge/resources/accounting/resources/accounts/types/__init__.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .accounts_list_request_classification import AccountsListRequestClassification - from .accounts_list_request_remote_fields import AccountsListRequestRemoteFields - from .accounts_list_request_show_enum_origins import AccountsListRequestShowEnumOrigins - from .accounts_list_request_status import AccountsListRequestStatus - from .accounts_retrieve_request_remote_fields import AccountsRetrieveRequestRemoteFields - from .accounts_retrieve_request_show_enum_origins import AccountsRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "AccountsListRequestClassification": ".accounts_list_request_classification", - "AccountsListRequestRemoteFields": ".accounts_list_request_remote_fields", - "AccountsListRequestShowEnumOrigins": ".accounts_list_request_show_enum_origins", - "AccountsListRequestStatus": ".accounts_list_request_status", - "AccountsRetrieveRequestRemoteFields": ".accounts_retrieve_request_remote_fields", - "AccountsRetrieveRequestShowEnumOrigins": ".accounts_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountsListRequestClassification", - "AccountsListRequestRemoteFields", - "AccountsListRequestShowEnumOrigins", - "AccountsListRequestStatus", - "AccountsRetrieveRequestRemoteFields", - "AccountsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_classification.py b/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_classification.py deleted file mode 100644 index dd3eac4b..00000000 --- a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_classification.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountsListRequestClassification(str, enum.Enum): - EMPTY = "" - ASSET = "ASSET" - EQUITY = "EQUITY" - EXPENSE = "EXPENSE" - LIABILITY = "LIABILITY" - REVENUE = "REVENUE" - - def visit( - self, - empty: typing.Callable[[], T_Result], - asset: typing.Callable[[], T_Result], - equity: typing.Callable[[], T_Result], - expense: typing.Callable[[], T_Result], - liability: typing.Callable[[], T_Result], - revenue: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountsListRequestClassification.EMPTY: - return empty() - if self is AccountsListRequestClassification.ASSET: - return asset() - if self is AccountsListRequestClassification.EQUITY: - return equity() - if self is AccountsListRequestClassification.EXPENSE: - return expense() - if self is AccountsListRequestClassification.LIABILITY: - return liability() - if self is AccountsListRequestClassification.REVENUE: - return revenue() diff --git a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_remote_fields.py b/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_remote_fields.py deleted file mode 100644 index a7bcc53e..00000000 --- a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountsListRequestRemoteFields(str, enum.Enum): - CLASSIFICATION = "classification" - CLASSIFICATION_STATUS = "classification,status" - STATUS = "status" - - def visit( - self, - classification: typing.Callable[[], T_Result], - classification_status: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountsListRequestRemoteFields.CLASSIFICATION: - return classification() - if self is AccountsListRequestRemoteFields.CLASSIFICATION_STATUS: - return classification_status() - if self is AccountsListRequestRemoteFields.STATUS: - return status() diff --git a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_show_enum_origins.py b/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_show_enum_origins.py deleted file mode 100644 index 16e8bba6..00000000 --- a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountsListRequestShowEnumOrigins(str, enum.Enum): - CLASSIFICATION = "classification" - CLASSIFICATION_STATUS = "classification,status" - STATUS = "status" - - def visit( - self, - classification: typing.Callable[[], T_Result], - classification_status: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountsListRequestShowEnumOrigins.CLASSIFICATION: - return classification() - if self is AccountsListRequestShowEnumOrigins.CLASSIFICATION_STATUS: - return classification_status() - if self is AccountsListRequestShowEnumOrigins.STATUS: - return status() diff --git a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_status.py b/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_status.py deleted file mode 100644 index ddaed77c..00000000 --- a/src/merge/resources/accounting/resources/accounts/types/accounts_list_request_status.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountsListRequestStatus(str, enum.Enum): - EMPTY = "" - ACTIVE = "ACTIVE" - INACTIVE = "INACTIVE" - PENDING = "PENDING" - - def visit( - self, - empty: typing.Callable[[], T_Result], - active: typing.Callable[[], T_Result], - inactive: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountsListRequestStatus.EMPTY: - return empty() - if self is AccountsListRequestStatus.ACTIVE: - return active() - if self is AccountsListRequestStatus.INACTIVE: - return inactive() - if self is AccountsListRequestStatus.PENDING: - return pending() diff --git a/src/merge/resources/accounting/resources/accounts/types/accounts_retrieve_request_remote_fields.py b/src/merge/resources/accounting/resources/accounts/types/accounts_retrieve_request_remote_fields.py deleted file mode 100644 index 9ed86394..00000000 --- a/src/merge/resources/accounting/resources/accounts/types/accounts_retrieve_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountsRetrieveRequestRemoteFields(str, enum.Enum): - CLASSIFICATION = "classification" - CLASSIFICATION_STATUS = "classification,status" - STATUS = "status" - - def visit( - self, - classification: typing.Callable[[], T_Result], - classification_status: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountsRetrieveRequestRemoteFields.CLASSIFICATION: - return classification() - if self is AccountsRetrieveRequestRemoteFields.CLASSIFICATION_STATUS: - return classification_status() - if self is AccountsRetrieveRequestRemoteFields.STATUS: - return status() diff --git a/src/merge/resources/accounting/resources/accounts/types/accounts_retrieve_request_show_enum_origins.py b/src/merge/resources/accounting/resources/accounts/types/accounts_retrieve_request_show_enum_origins.py deleted file mode 100644 index 7ebeb5b8..00000000 --- a/src/merge/resources/accounting/resources/accounts/types/accounts_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountsRetrieveRequestShowEnumOrigins(str, enum.Enum): - CLASSIFICATION = "classification" - CLASSIFICATION_STATUS = "classification,status" - STATUS = "status" - - def visit( - self, - classification: typing.Callable[[], T_Result], - classification_status: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountsRetrieveRequestShowEnumOrigins.CLASSIFICATION: - return classification() - if self is AccountsRetrieveRequestShowEnumOrigins.CLASSIFICATION_STATUS: - return classification_status() - if self is AccountsRetrieveRequestShowEnumOrigins.STATUS: - return status() diff --git a/src/merge/resources/accounting/resources/addresses/__init__.py b/src/merge/resources/accounting/resources/addresses/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/addresses/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/addresses/client.py b/src/merge/resources/accounting/resources/addresses/client.py deleted file mode 100644 index aa72613d..00000000 --- a/src/merge/resources/accounting/resources/addresses/client.py +++ /dev/null @@ -1,170 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.address import Address -from .raw_client import AsyncRawAddressesClient, RawAddressesClient - - -class AddressesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAddressesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAddressesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAddressesClient - """ - return self._raw_client - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Address: - """ - Returns an `Address` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Address - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.addresses.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncAddressesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAddressesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAddressesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAddressesClient - """ - return self._raw_client - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Address: - """ - Returns an `Address` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Address - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.addresses.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/addresses/raw_client.py b/src/merge/resources/accounting/resources/addresses/raw_client.py deleted file mode 100644 index 1c6fc0b8..00000000 --- a/src/merge/resources/accounting/resources/addresses/raw_client.py +++ /dev/null @@ -1,148 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.address import Address - - -class RawAddressesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Address]: - """ - Returns an `Address` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Address] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/addresses/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Address, - construct_type( - type_=Address, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAddressesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Address]: - """ - Returns an `Address` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Address] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/addresses/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Address, - construct_type( - type_=Address, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/async_passthrough/__init__.py b/src/merge/resources/accounting/resources/async_passthrough/__init__.py deleted file mode 100644 index 375c7953..00000000 --- a/src/merge/resources/accounting/resources/async_passthrough/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/accounting/resources/async_passthrough/client.py b/src/merge/resources/accounting/resources/async_passthrough/client.py deleted file mode 100644 index 224d35b8..00000000 --- a/src/merge/resources/accounting/resources/async_passthrough/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .raw_client import AsyncRawAsyncPassthroughClient, RawAsyncPassthroughClient -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - """ - _response = self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data - - -class AsyncAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/async_passthrough/raw_client.py b/src/merge/resources/accounting/resources/async_passthrough/raw_client.py deleted file mode 100644 index 18375f3b..00000000 --- a/src/merge/resources/accounting/resources/async_passthrough/raw_client.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughReciept] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughReciept] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/async_passthrough/types/__init__.py b/src/merge/resources/accounting/resources/async_passthrough/types/__init__.py deleted file mode 100644 index f6e9bec9..00000000 --- a/src/merge/resources/accounting/resources/async_passthrough/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".async_passthrough_retrieve_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/accounting/resources/async_passthrough/types/async_passthrough_retrieve_response.py b/src/merge/resources/accounting/resources/async_passthrough/types/async_passthrough_retrieve_response.py deleted file mode 100644 index f8f87c18..00000000 --- a/src/merge/resources/accounting/resources/async_passthrough/types/async_passthrough_retrieve_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.remote_response import RemoteResponse - -AsyncPassthroughRetrieveResponse = typing.Union[RemoteResponse, str] diff --git a/src/merge/resources/accounting/resources/async_tasks/__init__.py b/src/merge/resources/accounting/resources/async_tasks/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/async_tasks/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/async_tasks/client.py b/src/merge/resources/accounting/resources/async_tasks/client.py deleted file mode 100644 index 5bfcc07e..00000000 --- a/src/merge/resources/accounting/resources/async_tasks/client.py +++ /dev/null @@ -1,110 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_post_task import AsyncPostTask -from .raw_client import AsyncRawAsyncTasksClient, RawAsyncTasksClient - - -class AsyncTasksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncTasksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncTasksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncTasksClient - """ - return self._raw_client - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncPostTask: - """ - Returns an `AsyncPostTask` object with the given `id`. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPostTask - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.async_tasks.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncAsyncTasksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncTasksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncTasksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncTasksClient - """ - return self._raw_client - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncPostTask: - """ - Returns an `AsyncPostTask` object with the given `id`. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPostTask - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.async_tasks.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/async_tasks/raw_client.py b/src/merge/resources/accounting/resources/async_tasks/raw_client.py deleted file mode 100644 index 593d5a4f..00000000 --- a/src/merge/resources/accounting/resources/async_tasks/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_post_task import AsyncPostTask - - -class RawAsyncTasksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPostTask]: - """ - Returns an `AsyncPostTask` object with the given `id`. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPostTask] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/async-tasks/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPostTask, - construct_type( - type_=AsyncPostTask, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncTasksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPostTask]: - """ - Returns an `AsyncPostTask` object with the given `id`. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPostTask] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/async-tasks/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPostTask, - construct_type( - type_=AsyncPostTask, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/attachments/__init__.py b/src/merge/resources/accounting/resources/attachments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/attachments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/attachments/client.py b/src/merge/resources/accounting/resources/attachments/client.py deleted file mode 100644 index 15c46c56..00000000 --- a/src/merge/resources/accounting/resources/attachments/client.py +++ /dev/null @@ -1,553 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.accounting_attachment import AccountingAttachment -from ...types.accounting_attachment_request import AccountingAttachmentRequest -from ...types.accounting_attachment_response import AccountingAttachmentResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_accounting_attachment_list import PaginatedAccountingAttachmentList -from .raw_client import AsyncRawAttachmentsClient, RawAttachmentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAttachmentsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountingAttachmentList: - """ - Returns a list of `AccountingAttachment` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting attachments for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountingAttachmentList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.attachments.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: AccountingAttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingAttachmentResponse: - """ - Creates an `AccountingAttachment` object with the given values. - - Parameters - ---------- - model : AccountingAttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingAttachmentResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import AccountingAttachmentRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.attachments.create( - is_debug_mode=True, - run_async=True, - model=AccountingAttachmentRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingAttachment: - """ - Returns an `AccountingAttachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingAttachment - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `AccountingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.attachments.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAttachmentsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountingAttachmentList: - """ - Returns a list of `AccountingAttachment` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting attachments for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountingAttachmentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.attachments.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: AccountingAttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingAttachmentResponse: - """ - Creates an `AccountingAttachment` object with the given values. - - Parameters - ---------- - model : AccountingAttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingAttachmentResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import AccountingAttachmentRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.attachments.create( - is_debug_mode=True, - run_async=True, - model=AccountingAttachmentRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingAttachment: - """ - Returns an `AccountingAttachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingAttachment - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `AccountingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.attachments.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/attachments/raw_client.py b/src/merge/resources/accounting/resources/attachments/raw_client.py deleted file mode 100644 index cd3fc403..00000000 --- a/src/merge/resources/accounting/resources/attachments/raw_client.py +++ /dev/null @@ -1,519 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.accounting_attachment import AccountingAttachment -from ...types.accounting_attachment_request import AccountingAttachmentRequest -from ...types.accounting_attachment_response import AccountingAttachmentResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_accounting_attachment_list import PaginatedAccountingAttachmentList - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountingAttachmentList]: - """ - Returns a list of `AccountingAttachment` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting attachments for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountingAttachmentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/attachments", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountingAttachmentList, - construct_type( - type_=PaginatedAccountingAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: AccountingAttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AccountingAttachmentResponse]: - """ - Creates an `AccountingAttachment` object with the given values. - - Parameters - ---------- - model : AccountingAttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountingAttachmentResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/attachments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingAttachmentResponse, - construct_type( - type_=AccountingAttachmentResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AccountingAttachment]: - """ - Returns an `AccountingAttachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountingAttachment] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingAttachment, - construct_type( - type_=AccountingAttachment, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `AccountingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/attachments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountingAttachmentList]: - """ - Returns a list of `AccountingAttachment` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting attachments for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountingAttachmentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/attachments", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountingAttachmentList, - construct_type( - type_=PaginatedAccountingAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: AccountingAttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AccountingAttachmentResponse]: - """ - Creates an `AccountingAttachment` object with the given values. - - Parameters - ---------- - model : AccountingAttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountingAttachmentResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/attachments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingAttachmentResponse, - construct_type( - type_=AccountingAttachmentResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AccountingAttachment]: - """ - Returns an `AccountingAttachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountingAttachment] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingAttachment, - construct_type( - type_=AccountingAttachment, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `AccountingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/attachments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/audit_trail/__init__.py b/src/merge/resources/accounting/resources/audit_trail/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/audit_trail/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/audit_trail/client.py b/src/merge/resources/accounting/resources/audit_trail/client.py deleted file mode 100644 index 71f803da..00000000 --- a/src/merge/resources/accounting/resources/audit_trail/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList -from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient - - -class AuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuditTrailClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - """ - _response = self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data - - -class AsyncAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuditTrailClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/audit_trail/raw_client.py b/src/merge/resources/accounting/resources/audit_trail/raw_client.py deleted file mode 100644 index 02021d7c..00000000 --- a/src/merge/resources/accounting/resources/audit_trail/raw_client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList - - -class RawAuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAuditLogEventList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAuditLogEventList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/available_actions/__init__.py b/src/merge/resources/accounting/resources/available_actions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/available_actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/available_actions/client.py b/src/merge/resources/accounting/resources/available_actions/client.py deleted file mode 100644 index e1f79dd6..00000000 --- a/src/merge/resources/accounting/resources/available_actions/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.available_actions import AvailableActions -from .raw_client import AsyncRawAvailableActionsClient, RawAvailableActionsClient - - -class AvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAvailableActionsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.available_actions.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAvailableActionsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.available_actions.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/available_actions/raw_client.py b/src/merge/resources/accounting/resources/available_actions/raw_client.py deleted file mode 100644 index 03a2f720..00000000 --- a/src/merge/resources/accounting/resources/available_actions/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.available_actions import AvailableActions - - -class RawAvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AvailableActions] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AvailableActions] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/balance_sheets/__init__.py b/src/merge/resources/accounting/resources/balance_sheets/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/balance_sheets/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/balance_sheets/client.py b/src/merge/resources/accounting/resources/balance_sheets/client.py deleted file mode 100644 index 61fbf4a3..00000000 --- a/src/merge/resources/accounting/resources/balance_sheets/client.py +++ /dev/null @@ -1,399 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.balance_sheet import BalanceSheet -from ...types.paginated_balance_sheet_list import PaginatedBalanceSheetList -from .raw_client import AsyncRawBalanceSheetsClient, RawBalanceSheetsClient - - -class BalanceSheetsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBalanceSheetsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBalanceSheetsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBalanceSheetsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBalanceSheetList: - """ - Returns a list of `BalanceSheet` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return balance sheets for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBalanceSheetList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.balance_sheets.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BalanceSheet: - """ - Returns a `BalanceSheet` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BalanceSheet - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.balance_sheets.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncBalanceSheetsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBalanceSheetsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBalanceSheetsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBalanceSheetsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBalanceSheetList: - """ - Returns a list of `BalanceSheet` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return balance sheets for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBalanceSheetList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.balance_sheets.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BalanceSheet: - """ - Returns a `BalanceSheet` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BalanceSheet - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.balance_sheets.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/balance_sheets/raw_client.py b/src/merge/resources/accounting/resources/balance_sheets/raw_client.py deleted file mode 100644 index b634d8d5..00000000 --- a/src/merge/resources/accounting/resources/balance_sheets/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.balance_sheet import BalanceSheet -from ...types.paginated_balance_sheet_list import PaginatedBalanceSheetList - - -class RawBalanceSheetsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedBalanceSheetList]: - """ - Returns a list of `BalanceSheet` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return balance sheets for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedBalanceSheetList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/balance-sheets", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBalanceSheetList, - construct_type( - type_=PaginatedBalanceSheetList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[BalanceSheet]: - """ - Returns a `BalanceSheet` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BalanceSheet] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/balance-sheets/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BalanceSheet, - construct_type( - type_=BalanceSheet, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBalanceSheetsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedBalanceSheetList]: - """ - Returns a list of `BalanceSheet` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return balance sheets for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedBalanceSheetList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/balance-sheets", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBalanceSheetList, - construct_type( - type_=PaginatedBalanceSheetList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[BalanceSheet]: - """ - Returns a `BalanceSheet` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BalanceSheet] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/balance-sheets/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BalanceSheet, - construct_type( - type_=BalanceSheet, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/bank_feed_accounts/__init__.py b/src/merge/resources/accounting/resources/bank_feed_accounts/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/bank_feed_accounts/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/bank_feed_accounts/client.py b/src/merge/resources/accounting/resources/bank_feed_accounts/client.py deleted file mode 100644 index 5fa70be3..00000000 --- a/src/merge/resources/accounting/resources/bank_feed_accounts/client.py +++ /dev/null @@ -1,461 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.bank_feed_account import BankFeedAccount -from ...types.bank_feed_account_request import BankFeedAccountRequest -from ...types.bank_feed_account_response import BankFeedAccountResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_bank_feed_account_list import PaginatedBankFeedAccountList -from .raw_client import AsyncRawBankFeedAccountsClient, RawBankFeedAccountsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class BankFeedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBankFeedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBankFeedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBankFeedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBankFeedAccountList: - """ - Returns a list of `BankFeedAccount` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBankFeedAccountList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_accounts.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: BankFeedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedAccountResponse: - """ - Creates a `BankFeedAccount` object with the given values. - - Parameters - ---------- - model : BankFeedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedAccountResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import BankFeedAccountRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_accounts.create( - is_debug_mode=True, - run_async=True, - model=BankFeedAccountRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedAccount: - """ - Returns a `BankFeedAccount` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedAccount - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `BankFeedAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_accounts.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncBankFeedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBankFeedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBankFeedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBankFeedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBankFeedAccountList: - """ - Returns a list of `BankFeedAccount` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBankFeedAccountList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_accounts.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: BankFeedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedAccountResponse: - """ - Creates a `BankFeedAccount` object with the given values. - - Parameters - ---------- - model : BankFeedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedAccountResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import BankFeedAccountRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_accounts.create( - is_debug_mode=True, - run_async=True, - model=BankFeedAccountRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedAccount: - """ - Returns a `BankFeedAccount` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedAccount - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `BankFeedAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_accounts.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/bank_feed_accounts/raw_client.py b/src/merge/resources/accounting/resources/bank_feed_accounts/raw_client.py deleted file mode 100644 index 38da42e1..00000000 --- a/src/merge/resources/accounting/resources/bank_feed_accounts/raw_client.py +++ /dev/null @@ -1,457 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.bank_feed_account import BankFeedAccount -from ...types.bank_feed_account_request import BankFeedAccountRequest -from ...types.bank_feed_account_response import BankFeedAccountResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_bank_feed_account_list import PaginatedBankFeedAccountList - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawBankFeedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedBankFeedAccountList]: - """ - Returns a list of `BankFeedAccount` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedBankFeedAccountList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-accounts", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBankFeedAccountList, - construct_type( - type_=PaginatedBankFeedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: BankFeedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[BankFeedAccountResponse]: - """ - Creates a `BankFeedAccount` object with the given values. - - Parameters - ---------- - model : BankFeedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BankFeedAccountResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-accounts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedAccountResponse, - construct_type( - type_=BankFeedAccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[BankFeedAccount]: - """ - Returns a `BankFeedAccount` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BankFeedAccount] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/bank-feed-accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedAccount, - construct_type( - type_=BankFeedAccount, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `BankFeedAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-accounts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBankFeedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedBankFeedAccountList]: - """ - Returns a list of `BankFeedAccount` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedBankFeedAccountList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-accounts", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBankFeedAccountList, - construct_type( - type_=PaginatedBankFeedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: BankFeedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[BankFeedAccountResponse]: - """ - Creates a `BankFeedAccount` object with the given values. - - Parameters - ---------- - model : BankFeedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BankFeedAccountResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-accounts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedAccountResponse, - construct_type( - type_=BankFeedAccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[BankFeedAccount]: - """ - Returns a `BankFeedAccount` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BankFeedAccount] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/bank-feed-accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedAccount, - construct_type( - type_=BankFeedAccount, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `BankFeedAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-accounts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/bank_feed_transactions/__init__.py b/src/merge/resources/accounting/resources/bank_feed_transactions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/bank_feed_transactions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/bank_feed_transactions/client.py b/src/merge/resources/accounting/resources/bank_feed_transactions/client.py deleted file mode 100644 index 479ad363..00000000 --- a/src/merge/resources/accounting/resources/bank_feed_transactions/client.py +++ /dev/null @@ -1,573 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.bank_feed_transaction import BankFeedTransaction -from ...types.bank_feed_transaction_request_request import BankFeedTransactionRequestRequest -from ...types.bank_feed_transaction_response import BankFeedTransactionResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_bank_feed_transaction_list import PaginatedBankFeedTransactionList -from .raw_client import AsyncRawBankFeedTransactionsClient, RawBankFeedTransactionsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class BankFeedTransactionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBankFeedTransactionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBankFeedTransactionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBankFeedTransactionsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_processed: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBankFeedTransactionList: - """ - Returns a list of `BankFeedTransaction` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_processed : typing.Optional[bool] - If provided, will only return bank feed transactions with this is_processed value - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBankFeedTransactionList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_transactions.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_processed=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_processed=is_processed, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: BankFeedTransactionRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedTransactionResponse: - """ - Creates a `BankFeedTransaction` object with the given values. - - Parameters - ---------- - model : BankFeedTransactionRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedTransactionResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import BankFeedTransactionRequestRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_transactions.create( - is_debug_mode=True, - run_async=True, - model=BankFeedTransactionRequestRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedTransaction: - """ - Returns a `BankFeedTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedTransaction - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_transactions.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `BankFeedTransaction` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.bank_feed_transactions.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncBankFeedTransactionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBankFeedTransactionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBankFeedTransactionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBankFeedTransactionsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_processed: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBankFeedTransactionList: - """ - Returns a list of `BankFeedTransaction` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_processed : typing.Optional[bool] - If provided, will only return bank feed transactions with this is_processed value - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBankFeedTransactionList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_transactions.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_processed=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_processed=is_processed, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: BankFeedTransactionRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedTransactionResponse: - """ - Creates a `BankFeedTransaction` object with the given values. - - Parameters - ---------- - model : BankFeedTransactionRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedTransactionResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import BankFeedTransactionRequestRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_transactions.create( - is_debug_mode=True, - run_async=True, - model=BankFeedTransactionRequestRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankFeedTransaction: - """ - Returns a `BankFeedTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankFeedTransaction - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_transactions.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `BankFeedTransaction` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.bank_feed_transactions.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/bank_feed_transactions/raw_client.py b/src/merge/resources/accounting/resources/bank_feed_transactions/raw_client.py deleted file mode 100644 index f10236a8..00000000 --- a/src/merge/resources/accounting/resources/bank_feed_transactions/raw_client.py +++ /dev/null @@ -1,539 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.bank_feed_transaction import BankFeedTransaction -from ...types.bank_feed_transaction_request_request import BankFeedTransactionRequestRequest -from ...types.bank_feed_transaction_response import BankFeedTransactionResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_bank_feed_transaction_list import PaginatedBankFeedTransactionList - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawBankFeedTransactionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_processed: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedBankFeedTransactionList]: - """ - Returns a list of `BankFeedTransaction` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_processed : typing.Optional[bool] - If provided, will only return bank feed transactions with this is_processed value - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedBankFeedTransactionList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-transactions", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_processed": is_processed, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBankFeedTransactionList, - construct_type( - type_=PaginatedBankFeedTransactionList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: BankFeedTransactionRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[BankFeedTransactionResponse]: - """ - Creates a `BankFeedTransaction` object with the given values. - - Parameters - ---------- - model : BankFeedTransactionRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BankFeedTransactionResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-transactions", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedTransactionResponse, - construct_type( - type_=BankFeedTransactionResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[BankFeedTransaction]: - """ - Returns a `BankFeedTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BankFeedTransaction] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/bank-feed-transactions/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedTransaction, - construct_type( - type_=BankFeedTransaction, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `BankFeedTransaction` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-transactions/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBankFeedTransactionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_processed: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedBankFeedTransactionList]: - """ - Returns a list of `BankFeedTransaction` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_processed : typing.Optional[bool] - If provided, will only return bank feed transactions with this is_processed value - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedBankFeedTransactionList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-transactions", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_processed": is_processed, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBankFeedTransactionList, - construct_type( - type_=PaginatedBankFeedTransactionList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: BankFeedTransactionRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[BankFeedTransactionResponse]: - """ - Creates a `BankFeedTransaction` object with the given values. - - Parameters - ---------- - model : BankFeedTransactionRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BankFeedTransactionResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-transactions", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedTransactionResponse, - construct_type( - type_=BankFeedTransactionResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["bank_feed_account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[BankFeedTransaction]: - """ - Returns a `BankFeedTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["bank_feed_account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BankFeedTransaction] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/bank-feed-transactions/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankFeedTransaction, - construct_type( - type_=BankFeedTransaction, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `BankFeedTransaction` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/bank-feed-transactions/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/cash_flow_statements/__init__.py b/src/merge/resources/accounting/resources/cash_flow_statements/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/cash_flow_statements/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/cash_flow_statements/client.py b/src/merge/resources/accounting/resources/cash_flow_statements/client.py deleted file mode 100644 index c9d0f6d1..00000000 --- a/src/merge/resources/accounting/resources/cash_flow_statements/client.py +++ /dev/null @@ -1,399 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.cash_flow_statement import CashFlowStatement -from ...types.paginated_cash_flow_statement_list import PaginatedCashFlowStatementList -from .raw_client import AsyncRawCashFlowStatementsClient, RawCashFlowStatementsClient - - -class CashFlowStatementsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCashFlowStatementsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCashFlowStatementsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCashFlowStatementsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCashFlowStatementList: - """ - Returns a list of `CashFlowStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return cash flow statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCashFlowStatementList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.cash_flow_statements.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CashFlowStatement: - """ - Returns a `CashFlowStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CashFlowStatement - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.cash_flow_statements.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncCashFlowStatementsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCashFlowStatementsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCashFlowStatementsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCashFlowStatementsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCashFlowStatementList: - """ - Returns a list of `CashFlowStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return cash flow statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCashFlowStatementList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.cash_flow_statements.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CashFlowStatement: - """ - Returns a `CashFlowStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CashFlowStatement - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.cash_flow_statements.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/cash_flow_statements/raw_client.py b/src/merge/resources/accounting/resources/cash_flow_statements/raw_client.py deleted file mode 100644 index e5a9c0b6..00000000 --- a/src/merge/resources/accounting/resources/cash_flow_statements/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.cash_flow_statement import CashFlowStatement -from ...types.paginated_cash_flow_statement_list import PaginatedCashFlowStatementList - - -class RawCashFlowStatementsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCashFlowStatementList]: - """ - Returns a list of `CashFlowStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return cash flow statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCashFlowStatementList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/cash-flow-statements", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCashFlowStatementList, - construct_type( - type_=PaginatedCashFlowStatementList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CashFlowStatement]: - """ - Returns a `CashFlowStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CashFlowStatement] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/cash-flow-statements/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CashFlowStatement, - construct_type( - type_=CashFlowStatement, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCashFlowStatementsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCashFlowStatementList]: - """ - Returns a list of `CashFlowStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return cash flow statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCashFlowStatementList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/cash-flow-statements", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCashFlowStatementList, - construct_type( - type_=PaginatedCashFlowStatementList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CashFlowStatement]: - """ - Returns a `CashFlowStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CashFlowStatement] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/cash-flow-statements/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CashFlowStatement, - construct_type( - type_=CashFlowStatement, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/company_info/__init__.py b/src/merge/resources/accounting/resources/company_info/__init__.py deleted file mode 100644 index 5c52d18a..00000000 --- a/src/merge/resources/accounting/resources/company_info/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import CompanyInfoListRequestExpand, CompanyInfoRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "CompanyInfoListRequestExpand": ".types", - "CompanyInfoRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CompanyInfoListRequestExpand", "CompanyInfoRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/company_info/client.py b/src/merge/resources/accounting/resources/company_info/client.py deleted file mode 100644 index bdf7dc90..00000000 --- a/src/merge/resources/accounting/resources/company_info/client.py +++ /dev/null @@ -1,405 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.company_info import CompanyInfo -from ...types.paginated_company_info_list import PaginatedCompanyInfoList -from .raw_client import AsyncRawCompanyInfoClient, RawCompanyInfoClient -from .types.company_info_list_request_expand import CompanyInfoListRequestExpand -from .types.company_info_retrieve_request_expand import CompanyInfoRetrieveRequestExpand - - -class CompanyInfoClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCompanyInfoClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCompanyInfoClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCompanyInfoClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CompanyInfoListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCompanyInfoList: - """ - Returns a list of `CompanyInfo` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CompanyInfoListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCompanyInfoList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.company_info import ( - CompanyInfoListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.company_info.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CompanyInfoListRequestExpand.ADDRESSES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CompanyInfoRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CompanyInfo: - """ - Returns a `CompanyInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CompanyInfoRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CompanyInfo - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.company_info import ( - CompanyInfoRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.company_info.retrieve( - id="id", - expand=CompanyInfoRetrieveRequestExpand.ADDRESSES, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncCompanyInfoClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCompanyInfoClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCompanyInfoClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCompanyInfoClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CompanyInfoListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCompanyInfoList: - """ - Returns a list of `CompanyInfo` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CompanyInfoListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCompanyInfoList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.company_info import ( - CompanyInfoListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.company_info.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CompanyInfoListRequestExpand.ADDRESSES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CompanyInfoRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CompanyInfo: - """ - Returns a `CompanyInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CompanyInfoRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CompanyInfo - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.company_info import ( - CompanyInfoRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.company_info.retrieve( - id="id", - expand=CompanyInfoRetrieveRequestExpand.ADDRESSES, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/company_info/raw_client.py b/src/merge/resources/accounting/resources/company_info/raw_client.py deleted file mode 100644 index 4b04df8c..00000000 --- a/src/merge/resources/accounting/resources/company_info/raw_client.py +++ /dev/null @@ -1,333 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.company_info import CompanyInfo -from ...types.paginated_company_info_list import PaginatedCompanyInfoList -from .types.company_info_list_request_expand import CompanyInfoListRequestExpand -from .types.company_info_retrieve_request_expand import CompanyInfoRetrieveRequestExpand - - -class RawCompanyInfoClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CompanyInfoListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCompanyInfoList]: - """ - Returns a list of `CompanyInfo` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CompanyInfoListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCompanyInfoList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/company-info", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCompanyInfoList, - construct_type( - type_=PaginatedCompanyInfoList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CompanyInfoRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CompanyInfo]: - """ - Returns a `CompanyInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CompanyInfoRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CompanyInfo] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/company-info/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CompanyInfo, - construct_type( - type_=CompanyInfo, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCompanyInfoClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CompanyInfoListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCompanyInfoList]: - """ - Returns a list of `CompanyInfo` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CompanyInfoListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCompanyInfoList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/company-info", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCompanyInfoList, - construct_type( - type_=PaginatedCompanyInfoList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CompanyInfoRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CompanyInfo]: - """ - Returns a `CompanyInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CompanyInfoRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CompanyInfo] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/company-info/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CompanyInfo, - construct_type( - type_=CompanyInfo, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/company_info/types/__init__.py b/src/merge/resources/accounting/resources/company_info/types/__init__.py deleted file mode 100644 index 838814e1..00000000 --- a/src/merge/resources/accounting/resources/company_info/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .company_info_list_request_expand import CompanyInfoListRequestExpand - from .company_info_retrieve_request_expand import CompanyInfoRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "CompanyInfoListRequestExpand": ".company_info_list_request_expand", - "CompanyInfoRetrieveRequestExpand": ".company_info_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CompanyInfoListRequestExpand", "CompanyInfoRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/company_info/types/company_info_list_request_expand.py b/src/merge/resources/accounting/resources/company_info/types/company_info_list_request_expand.py deleted file mode 100644 index 302a55cf..00000000 --- a/src/merge/resources/accounting/resources/company_info/types/company_info_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CompanyInfoListRequestExpand(str, enum.Enum): - ADDRESSES = "addresses" - ADDRESSES_PHONE_NUMBERS = "addresses,phone_numbers" - PHONE_NUMBERS = "phone_numbers" - - def visit( - self, - addresses: typing.Callable[[], T_Result], - addresses_phone_numbers: typing.Callable[[], T_Result], - phone_numbers: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CompanyInfoListRequestExpand.ADDRESSES: - return addresses() - if self is CompanyInfoListRequestExpand.ADDRESSES_PHONE_NUMBERS: - return addresses_phone_numbers() - if self is CompanyInfoListRequestExpand.PHONE_NUMBERS: - return phone_numbers() diff --git a/src/merge/resources/accounting/resources/company_info/types/company_info_retrieve_request_expand.py b/src/merge/resources/accounting/resources/company_info/types/company_info_retrieve_request_expand.py deleted file mode 100644 index 07a88c17..00000000 --- a/src/merge/resources/accounting/resources/company_info/types/company_info_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CompanyInfoRetrieveRequestExpand(str, enum.Enum): - ADDRESSES = "addresses" - ADDRESSES_PHONE_NUMBERS = "addresses,phone_numbers" - PHONE_NUMBERS = "phone_numbers" - - def visit( - self, - addresses: typing.Callable[[], T_Result], - addresses_phone_numbers: typing.Callable[[], T_Result], - phone_numbers: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CompanyInfoRetrieveRequestExpand.ADDRESSES: - return addresses() - if self is CompanyInfoRetrieveRequestExpand.ADDRESSES_PHONE_NUMBERS: - return addresses_phone_numbers() - if self is CompanyInfoRetrieveRequestExpand.PHONE_NUMBERS: - return phone_numbers() diff --git a/src/merge/resources/accounting/resources/contacts/__init__.py b/src/merge/resources/accounting/resources/contacts/__init__.py deleted file mode 100644 index 192f6977..00000000 --- a/src/merge/resources/accounting/resources/contacts/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ContactsListRequestExpand, ContactsListRequestStatus, ContactsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ContactsListRequestExpand": ".types", - "ContactsListRequestStatus": ".types", - "ContactsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ContactsListRequestExpand", "ContactsListRequestStatus", "ContactsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/contacts/client.py b/src/merge/resources/accounting/resources/contacts/client.py deleted file mode 100644 index b0c75ce4..00000000 --- a/src/merge/resources/accounting/resources/contacts/client.py +++ /dev/null @@ -1,1066 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.contact import Contact -from ...types.contact_request import ContactRequest -from ...types.contact_response import ContactResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_contact_list import PaginatedContactList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_contact_request import PatchedContactRequest -from .raw_client import AsyncRawContactsClient, RawContactsClient -from .types.contacts_list_request_expand import ContactsListRequestExpand -from .types.contacts_list_request_status import ContactsListRequestStatus -from .types.contacts_retrieve_request_expand import ContactsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ContactsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawContactsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawContactsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawContactsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_customer: typing.Optional[str] = None, - is_supplier: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[ContactsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContactList: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return contacts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_customer : typing.Optional[str] - If provided, will only return Contacts that are denoted as customers. - - is_supplier : typing.Optional[str] - If provided, will only return Contacts that are denoted as suppliers. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Contacts that match this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[ContactsListRequestStatus] - If provided, will only return Contacts that match this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContactList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.contacts import ( - ContactsListRequestExpand, - ContactsListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.contacts.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - expand=ContactsListRequestExpand.ADDRESSES, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_customer="is_customer", - is_supplier="is_supplier", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - status=ContactsListRequestStatus.EMPTY, - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_address=email_address, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_customer=is_customer, - is_supplier=is_supplier, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ContactResponse: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ContactResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import ContactRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Contact: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Contact - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.contacts import ( - ContactsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.contacts.retrieve( - id="id", - expand=ContactsRetrieveRequestExpand.ADDRESSES, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ContactResponse: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ContactResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import PatchedContactRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.contacts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedContactRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Contact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.contacts.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Contact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.contacts.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.contacts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncContactsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawContactsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawContactsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawContactsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_customer: typing.Optional[str] = None, - is_supplier: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[ContactsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContactList: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return contacts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_customer : typing.Optional[str] - If provided, will only return Contacts that are denoted as customers. - - is_supplier : typing.Optional[str] - If provided, will only return Contacts that are denoted as suppliers. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Contacts that match this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[ContactsListRequestStatus] - If provided, will only return Contacts that match this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContactList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.contacts import ( - ContactsListRequestExpand, - ContactsListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.contacts.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - expand=ContactsListRequestExpand.ADDRESSES, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_customer="is_customer", - is_supplier="is_supplier", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - status=ContactsListRequestStatus.EMPTY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_address=email_address, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_customer=is_customer, - is_supplier=is_supplier, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ContactResponse: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ContactResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import ContactRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Contact: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Contact - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.contacts import ( - ContactsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.contacts.retrieve( - id="id", - expand=ContactsRetrieveRequestExpand.ADDRESSES, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ContactResponse: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ContactResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import PatchedContactRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.contacts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedContactRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Contact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.contacts.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Contact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.contacts.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.contacts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/contacts/raw_client.py b/src/merge/resources/accounting/resources/contacts/raw_client.py deleted file mode 100644 index e27d1a5b..00000000 --- a/src/merge/resources/accounting/resources/contacts/raw_client.py +++ /dev/null @@ -1,1006 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.contact import Contact -from ...types.contact_request import ContactRequest -from ...types.contact_response import ContactResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_contact_list import PaginatedContactList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_contact_request import PatchedContactRequest -from .types.contacts_list_request_expand import ContactsListRequestExpand -from .types.contacts_list_request_status import ContactsListRequestStatus -from .types.contacts_retrieve_request_expand import ContactsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawContactsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_customer: typing.Optional[str] = None, - is_supplier: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[ContactsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedContactList]: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return contacts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_customer : typing.Optional[str] - If provided, will only return Contacts that are denoted as customers. - - is_supplier : typing.Optional[str] - If provided, will only return Contacts that are denoted as suppliers. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Contacts that match this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[ContactsListRequestStatus] - If provided, will only return Contacts that match this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedContactList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/contacts", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_address": email_address, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_customer": is_customer, - "is_supplier": is_supplier, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContactList, - construct_type( - type_=PaginatedContactList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ContactResponse]: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ContactResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/contacts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ContactResponse, - construct_type( - type_=ContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Contact]: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Contact] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/contacts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Contact, - construct_type( - type_=Contact, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ContactResponse]: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ContactResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/contacts/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ContactResponse, - construct_type( - type_=ContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Contact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/contacts/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Contact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/contacts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/contacts/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawContactsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_customer: typing.Optional[str] = None, - is_supplier: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[ContactsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedContactList]: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return contacts for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_customer : typing.Optional[str] - If provided, will only return Contacts that are denoted as customers. - - is_supplier : typing.Optional[str] - If provided, will only return Contacts that are denoted as suppliers. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return Contacts that match this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[ContactsListRequestStatus] - If provided, will only return Contacts that match this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedContactList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/contacts", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_address": email_address, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_customer": is_customer, - "is_supplier": is_supplier, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContactList, - construct_type( - type_=PaginatedContactList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ContactResponse]: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ContactResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/contacts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ContactResponse, - construct_type( - type_=ContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Contact]: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Contact] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/contacts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Contact, - construct_type( - type_=Contact, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ContactResponse]: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ContactResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/contacts/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ContactResponse, - construct_type( - type_=ContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Contact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/contacts/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Contact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/contacts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/contacts/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/contacts/types/__init__.py b/src/merge/resources/accounting/resources/contacts/types/__init__.py deleted file mode 100644 index adab250c..00000000 --- a/src/merge/resources/accounting/resources/contacts/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .contacts_list_request_expand import ContactsListRequestExpand - from .contacts_list_request_status import ContactsListRequestStatus - from .contacts_retrieve_request_expand import ContactsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ContactsListRequestExpand": ".contacts_list_request_expand", - "ContactsListRequestStatus": ".contacts_list_request_status", - "ContactsRetrieveRequestExpand": ".contacts_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ContactsListRequestExpand", "ContactsListRequestStatus", "ContactsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/contacts/types/contacts_list_request_expand.py b/src/merge/resources/accounting/resources/contacts/types/contacts_list_request_expand.py deleted file mode 100644 index 3d54ecdf..00000000 --- a/src/merge/resources/accounting/resources/contacts/types/contacts_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContactsListRequestExpand(str, enum.Enum): - ADDRESSES = "addresses" - ADDRESSES_COMPANY = "addresses,company" - ADDRESSES_PHONE_NUMBERS = "addresses,phone_numbers" - ADDRESSES_PHONE_NUMBERS_COMPANY = "addresses,phone_numbers,company" - COMPANY = "company" - PHONE_NUMBERS = "phone_numbers" - PHONE_NUMBERS_COMPANY = "phone_numbers,company" - - def visit( - self, - addresses: typing.Callable[[], T_Result], - addresses_company: typing.Callable[[], T_Result], - addresses_phone_numbers: typing.Callable[[], T_Result], - addresses_phone_numbers_company: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - phone_numbers: typing.Callable[[], T_Result], - phone_numbers_company: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContactsListRequestExpand.ADDRESSES: - return addresses() - if self is ContactsListRequestExpand.ADDRESSES_COMPANY: - return addresses_company() - if self is ContactsListRequestExpand.ADDRESSES_PHONE_NUMBERS: - return addresses_phone_numbers() - if self is ContactsListRequestExpand.ADDRESSES_PHONE_NUMBERS_COMPANY: - return addresses_phone_numbers_company() - if self is ContactsListRequestExpand.COMPANY: - return company() - if self is ContactsListRequestExpand.PHONE_NUMBERS: - return phone_numbers() - if self is ContactsListRequestExpand.PHONE_NUMBERS_COMPANY: - return phone_numbers_company() diff --git a/src/merge/resources/accounting/resources/contacts/types/contacts_list_request_status.py b/src/merge/resources/accounting/resources/contacts/types/contacts_list_request_status.py deleted file mode 100644 index fa950926..00000000 --- a/src/merge/resources/accounting/resources/contacts/types/contacts_list_request_status.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContactsListRequestStatus(str, enum.Enum): - EMPTY = "" - ACTIVE = "ACTIVE" - ARCHIVED = "ARCHIVED" - - def visit( - self, - empty: typing.Callable[[], T_Result], - active: typing.Callable[[], T_Result], - archived: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContactsListRequestStatus.EMPTY: - return empty() - if self is ContactsListRequestStatus.ACTIVE: - return active() - if self is ContactsListRequestStatus.ARCHIVED: - return archived() diff --git a/src/merge/resources/accounting/resources/contacts/types/contacts_retrieve_request_expand.py b/src/merge/resources/accounting/resources/contacts/types/contacts_retrieve_request_expand.py deleted file mode 100644 index 5725a706..00000000 --- a/src/merge/resources/accounting/resources/contacts/types/contacts_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContactsRetrieveRequestExpand(str, enum.Enum): - ADDRESSES = "addresses" - ADDRESSES_COMPANY = "addresses,company" - ADDRESSES_PHONE_NUMBERS = "addresses,phone_numbers" - ADDRESSES_PHONE_NUMBERS_COMPANY = "addresses,phone_numbers,company" - COMPANY = "company" - PHONE_NUMBERS = "phone_numbers" - PHONE_NUMBERS_COMPANY = "phone_numbers,company" - - def visit( - self, - addresses: typing.Callable[[], T_Result], - addresses_company: typing.Callable[[], T_Result], - addresses_phone_numbers: typing.Callable[[], T_Result], - addresses_phone_numbers_company: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - phone_numbers: typing.Callable[[], T_Result], - phone_numbers_company: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContactsRetrieveRequestExpand.ADDRESSES: - return addresses() - if self is ContactsRetrieveRequestExpand.ADDRESSES_COMPANY: - return addresses_company() - if self is ContactsRetrieveRequestExpand.ADDRESSES_PHONE_NUMBERS: - return addresses_phone_numbers() - if self is ContactsRetrieveRequestExpand.ADDRESSES_PHONE_NUMBERS_COMPANY: - return addresses_phone_numbers_company() - if self is ContactsRetrieveRequestExpand.COMPANY: - return company() - if self is ContactsRetrieveRequestExpand.PHONE_NUMBERS: - return phone_numbers() - if self is ContactsRetrieveRequestExpand.PHONE_NUMBERS_COMPANY: - return phone_numbers_company() diff --git a/src/merge/resources/accounting/resources/credit_notes/__init__.py b/src/merge/resources/accounting/resources/credit_notes/__init__.py deleted file mode 100644 index 09968bb0..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/__init__.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - CreditNotesListRequestExpand, - CreditNotesListRequestRemoteFields, - CreditNotesListRequestShowEnumOrigins, - CreditNotesRetrieveRequestExpand, - CreditNotesRetrieveRequestRemoteFields, - CreditNotesRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "CreditNotesListRequestExpand": ".types", - "CreditNotesListRequestRemoteFields": ".types", - "CreditNotesListRequestShowEnumOrigins": ".types", - "CreditNotesRetrieveRequestExpand": ".types", - "CreditNotesRetrieveRequestRemoteFields": ".types", - "CreditNotesRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "CreditNotesListRequestExpand", - "CreditNotesListRequestRemoteFields", - "CreditNotesListRequestShowEnumOrigins", - "CreditNotesRetrieveRequestExpand", - "CreditNotesRetrieveRequestRemoteFields", - "CreditNotesRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/accounting/resources/credit_notes/client.py b/src/merge/resources/accounting/resources/credit_notes/client.py deleted file mode 100644 index b31fb459..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/client.py +++ /dev/null @@ -1,683 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.credit_note import CreditNote -from ...types.credit_note_request import CreditNoteRequest -from ...types.credit_note_response import CreditNoteResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_credit_note_list import PaginatedCreditNoteList -from .raw_client import AsyncRawCreditNotesClient, RawCreditNotesClient -from .types.credit_notes_list_request_expand import CreditNotesListRequestExpand -from .types.credit_notes_list_request_remote_fields import CreditNotesListRequestRemoteFields -from .types.credit_notes_list_request_show_enum_origins import CreditNotesListRequestShowEnumOrigins -from .types.credit_notes_retrieve_request_expand import CreditNotesRetrieveRequestExpand -from .types.credit_notes_retrieve_request_remote_fields import CreditNotesRetrieveRequestRemoteFields -from .types.credit_notes_retrieve_request_show_enum_origins import CreditNotesRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CreditNotesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCreditNotesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCreditNotesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCreditNotesClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CreditNotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[CreditNotesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[CreditNotesListRequestShowEnumOrigins] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCreditNoteList: - """ - Returns a list of `CreditNote` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return credit notes for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CreditNotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[CreditNotesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[CreditNotesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCreditNoteList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.credit_notes import ( - CreditNotesListRequestExpand, - CreditNotesListRequestRemoteFields, - CreditNotesListRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.credit_notes.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CreditNotesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=CreditNotesListRequestRemoteFields.STATUS, - remote_id="remote_id", - show_enum_origins=CreditNotesListRequestShowEnumOrigins.STATUS, - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: CreditNoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreditNoteResponse: - """ - Creates a `CreditNote` object with the given values. - - Parameters - ---------- - model : CreditNoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreditNoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import CreditNoteRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.credit_notes.create( - is_debug_mode=True, - run_async=True, - model=CreditNoteRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CreditNotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[CreditNotesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreditNote: - """ - Returns a `CreditNote` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CreditNotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[CreditNotesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreditNote - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.credit_notes import ( - CreditNotesRetrieveRequestExpand, - CreditNotesRetrieveRequestRemoteFields, - CreditNotesRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.credit_notes.retrieve( - id="id", - expand=CreditNotesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, - remote_fields=CreditNotesRetrieveRequestRemoteFields.STATUS, - show_enum_origins=CreditNotesRetrieveRequestShowEnumOrigins.STATUS, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CreditNote` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.credit_notes.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncCreditNotesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCreditNotesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCreditNotesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCreditNotesClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CreditNotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[CreditNotesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[CreditNotesListRequestShowEnumOrigins] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCreditNoteList: - """ - Returns a list of `CreditNote` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return credit notes for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CreditNotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[CreditNotesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[CreditNotesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCreditNoteList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.credit_notes import ( - CreditNotesListRequestExpand, - CreditNotesListRequestRemoteFields, - CreditNotesListRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.credit_notes.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CreditNotesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=CreditNotesListRequestRemoteFields.STATUS, - remote_id="remote_id", - show_enum_origins=CreditNotesListRequestShowEnumOrigins.STATUS, - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: CreditNoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreditNoteResponse: - """ - Creates a `CreditNote` object with the given values. - - Parameters - ---------- - model : CreditNoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreditNoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import CreditNoteRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.credit_notes.create( - is_debug_mode=True, - run_async=True, - model=CreditNoteRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CreditNotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[CreditNotesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CreditNote: - """ - Returns a `CreditNote` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CreditNotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[CreditNotesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CreditNote - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.credit_notes import ( - CreditNotesRetrieveRequestExpand, - CreditNotesRetrieveRequestRemoteFields, - CreditNotesRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.credit_notes.retrieve( - id="id", - expand=CreditNotesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, - remote_fields=CreditNotesRetrieveRequestRemoteFields.STATUS, - show_enum_origins=CreditNotesRetrieveRequestShowEnumOrigins.STATUS, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CreditNote` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.credit_notes.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/credit_notes/raw_client.py b/src/merge/resources/accounting/resources/credit_notes/raw_client.py deleted file mode 100644 index b92c04cb..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/raw_client.py +++ /dev/null @@ -1,613 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.credit_note import CreditNote -from ...types.credit_note_request import CreditNoteRequest -from ...types.credit_note_response import CreditNoteResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_credit_note_list import PaginatedCreditNoteList -from .types.credit_notes_list_request_expand import CreditNotesListRequestExpand -from .types.credit_notes_list_request_remote_fields import CreditNotesListRequestRemoteFields -from .types.credit_notes_list_request_show_enum_origins import CreditNotesListRequestShowEnumOrigins -from .types.credit_notes_retrieve_request_expand import CreditNotesRetrieveRequestExpand -from .types.credit_notes_retrieve_request_remote_fields import CreditNotesRetrieveRequestRemoteFields -from .types.credit_notes_retrieve_request_show_enum_origins import CreditNotesRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCreditNotesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CreditNotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[CreditNotesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[CreditNotesListRequestShowEnumOrigins] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCreditNoteList]: - """ - Returns a list of `CreditNote` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return credit notes for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CreditNotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[CreditNotesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[CreditNotesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCreditNoteList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/credit-notes", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCreditNoteList, - construct_type( - type_=PaginatedCreditNoteList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: CreditNoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreditNoteResponse]: - """ - Creates a `CreditNote` object with the given values. - - Parameters - ---------- - model : CreditNoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreditNoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/credit-notes", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreditNoteResponse, - construct_type( - type_=CreditNoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CreditNotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[CreditNotesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CreditNote]: - """ - Returns a `CreditNote` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CreditNotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[CreditNotesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CreditNote] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/credit-notes/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreditNote, - construct_type( - type_=CreditNote, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `CreditNote` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/credit-notes/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCreditNotesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CreditNotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[CreditNotesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[CreditNotesListRequestShowEnumOrigins] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCreditNoteList]: - """ - Returns a list of `CreditNote` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return credit notes for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CreditNotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[CreditNotesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[CreditNotesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCreditNoteList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/credit-notes", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCreditNoteList, - construct_type( - type_=PaginatedCreditNoteList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: CreditNoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreditNoteResponse]: - """ - Creates a `CreditNote` object with the given values. - - Parameters - ---------- - model : CreditNoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreditNoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/credit-notes", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreditNoteResponse, - construct_type( - type_=CreditNoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CreditNotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[CreditNotesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CreditNote]: - """ - Returns a `CreditNote` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CreditNotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[CreditNotesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[CreditNotesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CreditNote] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/credit-notes/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CreditNote, - construct_type( - type_=CreditNote, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `CreditNote` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/credit-notes/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/credit_notes/types/__init__.py b/src/merge/resources/accounting/resources/credit_notes/types/__init__.py deleted file mode 100644 index 41c0ba74..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/types/__init__.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .credit_notes_list_request_expand import CreditNotesListRequestExpand - from .credit_notes_list_request_remote_fields import CreditNotesListRequestRemoteFields - from .credit_notes_list_request_show_enum_origins import CreditNotesListRequestShowEnumOrigins - from .credit_notes_retrieve_request_expand import CreditNotesRetrieveRequestExpand - from .credit_notes_retrieve_request_remote_fields import CreditNotesRetrieveRequestRemoteFields - from .credit_notes_retrieve_request_show_enum_origins import CreditNotesRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "CreditNotesListRequestExpand": ".credit_notes_list_request_expand", - "CreditNotesListRequestRemoteFields": ".credit_notes_list_request_remote_fields", - "CreditNotesListRequestShowEnumOrigins": ".credit_notes_list_request_show_enum_origins", - "CreditNotesRetrieveRequestExpand": ".credit_notes_retrieve_request_expand", - "CreditNotesRetrieveRequestRemoteFields": ".credit_notes_retrieve_request_remote_fields", - "CreditNotesRetrieveRequestShowEnumOrigins": ".credit_notes_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "CreditNotesListRequestExpand", - "CreditNotesListRequestRemoteFields", - "CreditNotesListRequestShowEnumOrigins", - "CreditNotesRetrieveRequestExpand", - "CreditNotesRetrieveRequestRemoteFields", - "CreditNotesRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_expand.py b/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_expand.py deleted file mode 100644 index 9f3c85db..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_expand.py +++ /dev/null @@ -1,627 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditNotesListRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - APPLIED_PAYMENTS = "applied_payments" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "applied_payments,accounting_period" - APPLIED_PAYMENTS_COMPANY = "applied_payments,company" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,company,accounting_period" - APPLIED_PAYMENTS_CONTACT = "applied_payments,contact" - APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,contact,accounting_period" - APPLIED_PAYMENTS_CONTACT_COMPANY = "applied_payments,contact,company" - APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS = "applied_payments,line_items" - APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "applied_payments,line_items,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "applied_payments,line_items,company" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "applied_payments,line_items,contact" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "applied_payments,line_items,contact,company" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "applied_payments,line_items,tracking_categories" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "applied_payments,line_items,tracking_categories,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "applied_payments,line_items,tracking_categories,contact" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES = "applied_payments,tracking_categories" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "applied_payments,tracking_categories,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "applied_payments,tracking_categories,contact" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "applied_payments,tracking_categories,contact,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,company,accounting_period" - ) - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - CONTACT = "contact" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_CONTACT = "line_items,contact" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" - LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS = "payments" - PAYMENTS_ACCOUNTING_PERIOD = "payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS = "payments,applied_payments" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "payments,applied_payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_COMPANY = "payments,applied_payments,company" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_CONTACT = "payments,applied_payments,contact" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY = "payments,applied_payments,contact,company" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS = "payments,applied_payments,line_items" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "payments,applied_payments,line_items,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "payments,applied_payments,line_items,contact" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,applied_payments,line_items,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = ( - "payments,applied_payments,line_items,tracking_categories" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "payments,applied_payments,tracking_categories" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,applied_payments,tracking_categories,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,applied_payments,tracking_categories,contact" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_COMPANY = "payments,company" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,company,accounting_period" - PAYMENTS_CONTACT = "payments,contact" - PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,contact,accounting_period" - PAYMENTS_CONTACT_COMPANY = "payments,contact,company" - PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS = "payments,line_items" - PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,line_items,accounting_period" - PAYMENTS_LINE_ITEMS_COMPANY = "payments,line_items,company" - PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,company,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT = "payments,line_items,contact" - PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "payments,line_items,contact,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,line_items,contact,company" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "payments,line_items,tracking_categories" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "payments,line_items,tracking_categories,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "payments,line_items,tracking_categories,contact" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,line_items,tracking_categories,contact,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES = "payments,tracking_categories" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "payments,tracking_categories,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,tracking_categories,company" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,tracking_categories,contact" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "payments,tracking_categories,contact,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,tracking_categories,contact,company" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,company,accounting_period" - ) - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - applied_payments: typing.Callable[[], T_Result], - applied_payments_accounting_period: typing.Callable[[], T_Result], - applied_payments_company: typing.Callable[[], T_Result], - applied_payments_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact: typing.Callable[[], T_Result], - applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_company: typing.Callable[[], T_Result], - applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items: typing.Callable[[], T_Result], - applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_company: typing.Callable[[], T_Result], - applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact: typing.Callable[[], T_Result], - applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact: typing.Callable[[], T_Result], - line_items_contact_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments: typing.Callable[[], T_Result], - payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact: typing.Callable[[], T_Result], - payments_applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items: typing.Callable[[], T_Result], - payments_applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_company: typing.Callable[[], T_Result], - payments_company_accounting_period: typing.Callable[[], T_Result], - payments_contact: typing.Callable[[], T_Result], - payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_contact_company: typing.Callable[[], T_Result], - payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items: typing.Callable[[], T_Result], - payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_line_items_company: typing.Callable[[], T_Result], - payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact: typing.Callable[[], T_Result], - payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CreditNotesListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS: - return applied_payments() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return applied_payments_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_COMPANY: - return applied_payments_company() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_company_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_CONTACT: - return applied_payments_contact() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_contact_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY: - return applied_payments_contact_company() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS: - return applied_payments_line_items() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return applied_payments_line_items_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return applied_payments_line_items_company() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_company_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return applied_payments_line_items_contact() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return applied_payments_line_items_contact_company() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return applied_payments_line_items_tracking_categories() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_line_items_tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_line_items_tracking_categories_company() - if ( - self - is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_line_items_tracking_categories_contact() - if ( - self - is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is CreditNotesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return applied_payments_tracking_categories() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_tracking_categories_company() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_tracking_categories_contact() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_accounting_period() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_tracking_categories_contact_company() - if self is CreditNotesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.COMPANY: - return company() - if self is CreditNotesListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is CreditNotesListRequestExpand.CONTACT: - return contact() - if self is CreditNotesListRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is CreditNotesListRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is CreditNotesListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS: - return line_items() - if self is CreditNotesListRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is CreditNotesListRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS_CONTACT: - return line_items_contact() - if self is CreditNotesListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return line_items_contact_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY: - return line_items_contact_company() - if self is CreditNotesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return line_items_tracking_categories_contact() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_accounting_period() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return line_items_tracking_categories_contact_company() - if self is CreditNotesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS: - return payments() - if self is CreditNotesListRequestExpand.PAYMENTS_ACCOUNTING_PERIOD: - return payments_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS: - return payments_applied_payments() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return payments_applied_payments_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return payments_applied_payments_company() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT: - return payments_applied_payments_contact() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY: - return payments_applied_payments_contact_company() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS: - return payments_applied_payments_line_items() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return payments_applied_payments_line_items_company() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return payments_applied_payments_line_items_contact() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_applied_payments_line_items_contact_company() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_applied_payments_line_items_tracking_categories() - if ( - self - is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_line_items_tracking_categories_company() - if ( - self - is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_line_items_tracking_categories_contact() - if ( - self - is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return payments_applied_payments_tracking_categories() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_tracking_categories_company() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_tracking_categories_contact() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_contact_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_applied_payments_tracking_categories_contact_company() - if ( - self - is CreditNotesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_COMPANY: - return payments_company() - if self is CreditNotesListRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_CONTACT: - return payments_contact() - if self is CreditNotesListRequestExpand.PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_contact_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_CONTACT_COMPANY: - return payments_contact_company() - if self is CreditNotesListRequestExpand.PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS: - return payments_line_items() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_line_items_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY: - return payments_line_items_company() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT: - return payments_line_items_contact() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_contact_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_line_items_contact_company() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_line_items_tracking_categories() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_line_items_tracking_categories_company() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_line_items_tracking_categories_contact() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_contact_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_line_items_tracking_categories_contact_company() - if ( - self - is CreditNotesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES: - return payments_tracking_categories() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_tracking_categories_company() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_tracking_categories_contact() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_accounting_period() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_tracking_categories_contact_company() - if self is CreditNotesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_company_accounting_period() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is CreditNotesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_remote_fields.py b/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_remote_fields.py deleted file mode 100644 index e881f032..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditNotesListRequestRemoteFields(str, enum.Enum): - STATUS = "status" - STATUS_TYPE = "status,type" - TYPE = "type" - - def visit( - self, - status: typing.Callable[[], T_Result], - status_type: typing.Callable[[], T_Result], - type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CreditNotesListRequestRemoteFields.STATUS: - return status() - if self is CreditNotesListRequestRemoteFields.STATUS_TYPE: - return status_type() - if self is CreditNotesListRequestRemoteFields.TYPE: - return type() diff --git a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_show_enum_origins.py b/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_show_enum_origins.py deleted file mode 100644 index e2d8982c..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_list_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditNotesListRequestShowEnumOrigins(str, enum.Enum): - STATUS = "status" - STATUS_TYPE = "status,type" - TYPE = "type" - - def visit( - self, - status: typing.Callable[[], T_Result], - status_type: typing.Callable[[], T_Result], - type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CreditNotesListRequestShowEnumOrigins.STATUS: - return status() - if self is CreditNotesListRequestShowEnumOrigins.STATUS_TYPE: - return status_type() - if self is CreditNotesListRequestShowEnumOrigins.TYPE: - return type() diff --git a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_expand.py b/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_expand.py deleted file mode 100644 index 60a5d54c..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_expand.py +++ /dev/null @@ -1,639 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditNotesRetrieveRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - APPLIED_PAYMENTS = "applied_payments" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "applied_payments,accounting_period" - APPLIED_PAYMENTS_COMPANY = "applied_payments,company" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,company,accounting_period" - APPLIED_PAYMENTS_CONTACT = "applied_payments,contact" - APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,contact,accounting_period" - APPLIED_PAYMENTS_CONTACT_COMPANY = "applied_payments,contact,company" - APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS = "applied_payments,line_items" - APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "applied_payments,line_items,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "applied_payments,line_items,company" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "applied_payments,line_items,contact" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "applied_payments,line_items,contact,company" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "applied_payments,line_items,tracking_categories" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "applied_payments,line_items,tracking_categories,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "applied_payments,line_items,tracking_categories,contact" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES = "applied_payments,tracking_categories" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "applied_payments,tracking_categories,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "applied_payments,tracking_categories,contact" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "applied_payments,tracking_categories,contact,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,company,accounting_period" - ) - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - CONTACT = "contact" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_CONTACT = "line_items,contact" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" - LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS = "payments" - PAYMENTS_ACCOUNTING_PERIOD = "payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS = "payments,applied_payments" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "payments,applied_payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_COMPANY = "payments,applied_payments,company" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_CONTACT = "payments,applied_payments,contact" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY = "payments,applied_payments,contact,company" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS = "payments,applied_payments,line_items" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "payments,applied_payments,line_items,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "payments,applied_payments,line_items,contact" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,applied_payments,line_items,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = ( - "payments,applied_payments,line_items,tracking_categories" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "payments,applied_payments,tracking_categories" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,applied_payments,tracking_categories,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,applied_payments,tracking_categories,contact" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_COMPANY = "payments,company" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,company,accounting_period" - PAYMENTS_CONTACT = "payments,contact" - PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,contact,accounting_period" - PAYMENTS_CONTACT_COMPANY = "payments,contact,company" - PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS = "payments,line_items" - PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,line_items,accounting_period" - PAYMENTS_LINE_ITEMS_COMPANY = "payments,line_items,company" - PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,company,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT = "payments,line_items,contact" - PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "payments,line_items,contact,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,line_items,contact,company" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "payments,line_items,tracking_categories" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "payments,line_items,tracking_categories,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "payments,line_items,tracking_categories,contact" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,line_items,tracking_categories,contact,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES = "payments,tracking_categories" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "payments,tracking_categories,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,tracking_categories,company" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,tracking_categories,contact" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "payments,tracking_categories,contact,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,tracking_categories,contact,company" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,company,accounting_period" - ) - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - applied_payments: typing.Callable[[], T_Result], - applied_payments_accounting_period: typing.Callable[[], T_Result], - applied_payments_company: typing.Callable[[], T_Result], - applied_payments_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact: typing.Callable[[], T_Result], - applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_company: typing.Callable[[], T_Result], - applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items: typing.Callable[[], T_Result], - applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_company: typing.Callable[[], T_Result], - applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact: typing.Callable[[], T_Result], - applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact: typing.Callable[[], T_Result], - line_items_contact_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments: typing.Callable[[], T_Result], - payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact: typing.Callable[[], T_Result], - payments_applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items: typing.Callable[[], T_Result], - payments_applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_company: typing.Callable[[], T_Result], - payments_company_accounting_period: typing.Callable[[], T_Result], - payments_contact: typing.Callable[[], T_Result], - payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_contact_company: typing.Callable[[], T_Result], - payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items: typing.Callable[[], T_Result], - payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_line_items_company: typing.Callable[[], T_Result], - payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact: typing.Callable[[], T_Result], - payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CreditNotesRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS: - return applied_payments() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return applied_payments_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY: - return applied_payments_company() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT: - return applied_payments_contact() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY: - return applied_payments_contact_company() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS: - return applied_payments_line_items() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return applied_payments_line_items_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return applied_payments_line_items_company() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return applied_payments_line_items_contact() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return applied_payments_line_items_contact_company() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return applied_payments_line_items_tracking_categories() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_line_items_tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_line_items_tracking_categories_company() - if ( - self - is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_line_items_tracking_categories_contact() - if ( - self - is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return applied_payments_tracking_categories() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_tracking_categories_company() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_tracking_categories_contact() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_tracking_categories_contact_company() - if ( - self - is CreditNotesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.COMPANY: - return company() - if self is CreditNotesRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.CONTACT: - return contact() - if self is CreditNotesRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is CreditNotesRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS: - return line_items() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_CONTACT: - return line_items_contact() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return line_items_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY: - return line_items_contact_company() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return line_items_tracking_categories_contact() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return line_items_tracking_categories_contact_company() - if self is CreditNotesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS: - return payments() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_ACCOUNTING_PERIOD: - return payments_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS: - return payments_applied_payments() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return payments_applied_payments_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return payments_applied_payments_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT: - return payments_applied_payments_contact() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY: - return payments_applied_payments_contact_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS: - return payments_applied_payments_line_items() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return payments_applied_payments_line_items_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return payments_applied_payments_line_items_contact() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_applied_payments_line_items_contact_company() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_applied_payments_line_items_tracking_categories() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_line_items_tracking_categories_company() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_line_items_tracking_categories_contact() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return payments_applied_payments_tracking_categories() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_tracking_categories_company() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_tracking_categories_contact() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_applied_payments_tracking_categories_contact_company() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_COMPANY: - return payments_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_CONTACT: - return payments_contact() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY: - return payments_contact_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS: - return payments_line_items() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_line_items_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY: - return payments_line_items_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT: - return payments_line_items_contact() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_line_items_contact_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_line_items_tracking_categories() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_line_items_tracking_categories_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_line_items_tracking_categories_contact() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_line_items_tracking_categories_contact_company() - if ( - self - is CreditNotesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES: - return payments_tracking_categories() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_tracking_categories_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_tracking_categories_contact() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_tracking_categories_contact_company() - if self is CreditNotesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is CreditNotesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_remote_fields.py b/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_remote_fields.py deleted file mode 100644 index 4c6fda3c..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditNotesRetrieveRequestRemoteFields(str, enum.Enum): - STATUS = "status" - STATUS_TYPE = "status,type" - TYPE = "type" - - def visit( - self, - status: typing.Callable[[], T_Result], - status_type: typing.Callable[[], T_Result], - type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CreditNotesRetrieveRequestRemoteFields.STATUS: - return status() - if self is CreditNotesRetrieveRequestRemoteFields.STATUS_TYPE: - return status_type() - if self is CreditNotesRetrieveRequestRemoteFields.TYPE: - return type() diff --git a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_show_enum_origins.py b/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_show_enum_origins.py deleted file mode 100644 index 108451a1..00000000 --- a/src/merge/resources/accounting/resources/credit_notes/types/credit_notes_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditNotesRetrieveRequestShowEnumOrigins(str, enum.Enum): - STATUS = "status" - STATUS_TYPE = "status,type" - TYPE = "type" - - def visit( - self, - status: typing.Callable[[], T_Result], - status_type: typing.Callable[[], T_Result], - type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CreditNotesRetrieveRequestShowEnumOrigins.STATUS: - return status() - if self is CreditNotesRetrieveRequestShowEnumOrigins.STATUS_TYPE: - return status_type() - if self is CreditNotesRetrieveRequestShowEnumOrigins.TYPE: - return type() diff --git a/src/merge/resources/accounting/resources/delete_account/__init__.py b/src/merge/resources/accounting/resources/delete_account/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/delete_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/delete_account/client.py b/src/merge/resources/accounting/resources/delete_account/client.py deleted file mode 100644 index d05716ed..00000000 --- a/src/merge/resources/accounting/resources/delete_account/client.py +++ /dev/null @@ -1,99 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .raw_client import AsyncRawDeleteAccountClient, RawDeleteAccountClient - - -class DeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeleteAccountClient - """ - return self._raw_client - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.delete_account.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeleteAccountClient - """ - return self._raw_client - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.delete_account.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/delete_account/raw_client.py b/src/merge/resources/accounting/resources/delete_account/raw_client.py deleted file mode 100644 index 5bd254b2..00000000 --- a/src/merge/resources/accounting/resources/delete_account/raw_client.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions - - -class RawDeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/employees/__init__.py b/src/merge/resources/accounting/resources/employees/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/employees/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/employees/client.py b/src/merge/resources/accounting/resources/employees/client.py deleted file mode 100644 index 113421fc..00000000 --- a/src/merge/resources/accounting/resources/employees/client.py +++ /dev/null @@ -1,399 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.employee import Employee -from ...types.paginated_employee_list import PaginatedEmployeeList -from .raw_client import AsyncRawEmployeesClient, RawEmployeesClient - - -class EmployeesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmployeesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEmployeesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmployeesClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployeeList: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployeeList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.employees.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Employee: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Employee - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.employees.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncEmployeesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmployeesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEmployeesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmployeesClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployeeList: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployeeList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.employees.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Employee: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Employee - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.employees.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/employees/raw_client.py b/src/merge/resources/accounting/resources/employees/raw_client.py deleted file mode 100644 index 65ffab63..00000000 --- a/src/merge/resources/accounting/resources/employees/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.employee import Employee -from ...types.paginated_employee_list import PaginatedEmployeeList - - -class RawEmployeesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEmployeeList]: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEmployeeList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/employees", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployeeList, - construct_type( - type_=PaginatedEmployeeList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Employee]: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Employee] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/employees/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Employee, - construct_type( - type_=Employee, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEmployeesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEmployeeList]: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEmployeeList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/employees", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployeeList, - construct_type( - type_=PaginatedEmployeeList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Employee]: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Employee] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/employees/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Employee, - construct_type( - type_=Employee, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/expense_reports/__init__.py b/src/merge/resources/accounting/resources/expense_reports/__init__.py deleted file mode 100644 index 30f8419e..00000000 --- a/src/merge/resources/accounting/resources/expense_reports/__init__.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - ExpenseReportsLinesListRequestExpand, - ExpenseReportsListRequestExpand, - ExpenseReportsRetrieveRequestExpand, - ) -_dynamic_imports: typing.Dict[str, str] = { - "ExpenseReportsLinesListRequestExpand": ".types", - "ExpenseReportsListRequestExpand": ".types", - "ExpenseReportsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "ExpenseReportsLinesListRequestExpand", - "ExpenseReportsListRequestExpand", - "ExpenseReportsRetrieveRequestExpand", -] diff --git a/src/merge/resources/accounting/resources/expense_reports/client.py b/src/merge/resources/accounting/resources/expense_reports/client.py deleted file mode 100644 index 5f440172..00000000 --- a/src/merge/resources/accounting/resources/expense_reports/client.py +++ /dev/null @@ -1,1124 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.expense_report import ExpenseReport -from ...types.expense_report_request import ExpenseReportRequest -from ...types.expense_report_response import ExpenseReportResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_expense_report_line_list import PaginatedExpenseReportLineList -from ...types.paginated_expense_report_list import PaginatedExpenseReportList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawExpenseReportsClient, RawExpenseReportsClient -from .types.expense_reports_lines_list_request_expand import ExpenseReportsLinesListRequestExpand -from .types.expense_reports_list_request_expand import ExpenseReportsListRequestExpand -from .types.expense_reports_retrieve_request_expand import ExpenseReportsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ExpenseReportsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawExpenseReportsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawExpenseReportsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawExpenseReportsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedExpenseReportList: - """ - Returns a list of `ExpenseReport` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expense reports for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedExpenseReportList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expense_reports.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpenseReportsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ExpenseReportRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ExpenseReportResponse: - """ - Creates an `ExpenseReport` object with the given values. - - Parameters - ---------- - model : ExpenseReportRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExpenseReportResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import ExpenseReportRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expense_reports.create( - is_debug_mode=True, - run_async=True, - model=ExpenseReportRequest( - tracking_categories=[ - "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", - "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", - ], - ), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def lines_list( - self, - expense_report_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsLinesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedExpenseReportLineList: - """ - Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. - - Parameters - ---------- - expense_report_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsLinesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedExpenseReportLineList - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsLinesListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expense_reports.lines_list( - expense_report_id="expense_report_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpenseReportsLinesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.lines_list( - expense_report_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpenseReportsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ExpenseReport: - """ - Returns an `ExpenseReport` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpenseReportsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExpenseReport - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expense_reports.retrieve( - id="id", - expand=ExpenseReportsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expense_reports.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.lines_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `ExpenseReport` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expense_reports.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expense_reports.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncExpenseReportsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawExpenseReportsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawExpenseReportsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawExpenseReportsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedExpenseReportList: - """ - Returns a list of `ExpenseReport` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expense reports for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedExpenseReportList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expense_reports.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpenseReportsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ExpenseReportRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ExpenseReportResponse: - """ - Creates an `ExpenseReport` object with the given values. - - Parameters - ---------- - model : ExpenseReportRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExpenseReportResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import ExpenseReportRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expense_reports.create( - is_debug_mode=True, - run_async=True, - model=ExpenseReportRequest( - tracking_categories=[ - "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", - "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", - ], - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def lines_list( - self, - expense_report_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsLinesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedExpenseReportLineList: - """ - Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. - - Parameters - ---------- - expense_report_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsLinesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedExpenseReportLineList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsLinesListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expense_reports.lines_list( - expense_report_id="expense_report_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpenseReportsLinesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.lines_list( - expense_report_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpenseReportsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ExpenseReport: - """ - Returns an `ExpenseReport` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpenseReportsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExpenseReport - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.expense_reports import ( - ExpenseReportsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expense_reports.retrieve( - id="id", - expand=ExpenseReportsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expense_reports.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.lines_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `ExpenseReport` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expense_reports.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expense_reports.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/expense_reports/raw_client.py b/src/merge/resources/accounting/resources/expense_reports/raw_client.py deleted file mode 100644 index 58bfec92..00000000 --- a/src/merge/resources/accounting/resources/expense_reports/raw_client.py +++ /dev/null @@ -1,1020 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.expense_report import ExpenseReport -from ...types.expense_report_request import ExpenseReportRequest -from ...types.expense_report_response import ExpenseReportResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_expense_report_line_list import PaginatedExpenseReportLineList -from ...types.paginated_expense_report_list import PaginatedExpenseReportList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .types.expense_reports_lines_list_request_expand import ExpenseReportsLinesListRequestExpand -from .types.expense_reports_list_request_expand import ExpenseReportsListRequestExpand -from .types.expense_reports_retrieve_request_expand import ExpenseReportsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawExpenseReportsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedExpenseReportList]: - """ - Returns a list of `ExpenseReport` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expense reports for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedExpenseReportList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedExpenseReportList, - construct_type( - type_=PaginatedExpenseReportList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ExpenseReportRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ExpenseReportResponse]: - """ - Creates an `ExpenseReport` object with the given values. - - Parameters - ---------- - model : ExpenseReportRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExpenseReportResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExpenseReportResponse, - construct_type( - type_=ExpenseReportResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def lines_list( - self, - expense_report_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsLinesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedExpenseReportLineList]: - """ - Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. - - Parameters - ---------- - expense_report_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsLinesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedExpenseReportLineList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/expense-reports/{jsonable_encoder(expense_report_id)}/lines", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedExpenseReportLineList, - construct_type( - type_=PaginatedExpenseReportLineList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpenseReportsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ExpenseReport]: - """ - Returns an `ExpenseReport` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpenseReportsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExpenseReport] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/expense-reports/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExpenseReport, - construct_type( - type_=ExpenseReport, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports/lines/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `ExpenseReport` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawExpenseReportsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedExpenseReportList]: - """ - Returns a list of `ExpenseReport` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expense reports for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedExpenseReportList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedExpenseReportList, - construct_type( - type_=PaginatedExpenseReportList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ExpenseReportRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ExpenseReportResponse]: - """ - Creates an `ExpenseReport` object with the given values. - - Parameters - ---------- - model : ExpenseReportRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExpenseReportResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExpenseReportResponse, - construct_type( - type_=ExpenseReportResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def lines_list( - self, - expense_report_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpenseReportsLinesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedExpenseReportLineList]: - """ - Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. - - Parameters - ---------- - expense_report_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpenseReportsLinesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedExpenseReportLineList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/expense-reports/{jsonable_encoder(expense_report_id)}/lines", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedExpenseReportLineList, - construct_type( - type_=PaginatedExpenseReportLineList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpenseReportsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ExpenseReport]: - """ - Returns an `ExpenseReport` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpenseReportsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExpenseReport] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/expense-reports/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExpenseReport, - construct_type( - type_=ExpenseReport, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports/lines/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `ExpenseReport` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expense-reports/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/expense_reports/types/__init__.py b/src/merge/resources/accounting/resources/expense_reports/types/__init__.py deleted file mode 100644 index 2686f197..00000000 --- a/src/merge/resources/accounting/resources/expense_reports/types/__init__.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .expense_reports_lines_list_request_expand import ExpenseReportsLinesListRequestExpand - from .expense_reports_list_request_expand import ExpenseReportsListRequestExpand - from .expense_reports_retrieve_request_expand import ExpenseReportsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ExpenseReportsLinesListRequestExpand": ".expense_reports_lines_list_request_expand", - "ExpenseReportsListRequestExpand": ".expense_reports_list_request_expand", - "ExpenseReportsRetrieveRequestExpand": ".expense_reports_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "ExpenseReportsLinesListRequestExpand", - "ExpenseReportsListRequestExpand", - "ExpenseReportsRetrieveRequestExpand", -] diff --git a/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_lines_list_request_expand.py b/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_lines_list_request_expand.py deleted file mode 100644 index 792c010b..00000000 --- a/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_lines_list_request_expand.py +++ /dev/null @@ -1,265 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ExpenseReportsLinesListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_COMPANY = "account,company" - ACCOUNT_COMPANY_CONTACT = "account,company,contact" - ACCOUNT_COMPANY_CONTACT_TAX_RATE = "account,company,contact,tax_rate" - ACCOUNT_COMPANY_TAX_RATE = "account,company,tax_rate" - ACCOUNT_CONTACT = "account,contact" - ACCOUNT_CONTACT_TAX_RATE = "account,contact,tax_rate" - ACCOUNT_EMPLOYEE = "account,employee" - ACCOUNT_EMPLOYEE_COMPANY = "account,employee,company" - ACCOUNT_EMPLOYEE_COMPANY_CONTACT = "account,employee,company,contact" - ACCOUNT_EMPLOYEE_COMPANY_CONTACT_TAX_RATE = "account,employee,company,contact,tax_rate" - ACCOUNT_EMPLOYEE_COMPANY_TAX_RATE = "account,employee,company,tax_rate" - ACCOUNT_EMPLOYEE_CONTACT = "account,employee,contact" - ACCOUNT_EMPLOYEE_CONTACT_TAX_RATE = "account,employee,contact,tax_rate" - ACCOUNT_EMPLOYEE_PROJECT = "account,employee,project" - ACCOUNT_EMPLOYEE_PROJECT_COMPANY = "account,employee,project,company" - ACCOUNT_EMPLOYEE_PROJECT_COMPANY_CONTACT = "account,employee,project,company,contact" - ACCOUNT_EMPLOYEE_PROJECT_COMPANY_CONTACT_TAX_RATE = "account,employee,project,company,contact,tax_rate" - ACCOUNT_EMPLOYEE_PROJECT_COMPANY_TAX_RATE = "account,employee,project,company,tax_rate" - ACCOUNT_EMPLOYEE_PROJECT_CONTACT = "account,employee,project,contact" - ACCOUNT_EMPLOYEE_PROJECT_CONTACT_TAX_RATE = "account,employee,project,contact,tax_rate" - ACCOUNT_EMPLOYEE_PROJECT_TAX_RATE = "account,employee,project,tax_rate" - ACCOUNT_EMPLOYEE_TAX_RATE = "account,employee,tax_rate" - ACCOUNT_PROJECT = "account,project" - ACCOUNT_PROJECT_COMPANY = "account,project,company" - ACCOUNT_PROJECT_COMPANY_CONTACT = "account,project,company,contact" - ACCOUNT_PROJECT_COMPANY_CONTACT_TAX_RATE = "account,project,company,contact,tax_rate" - ACCOUNT_PROJECT_COMPANY_TAX_RATE = "account,project,company,tax_rate" - ACCOUNT_PROJECT_CONTACT = "account,project,contact" - ACCOUNT_PROJECT_CONTACT_TAX_RATE = "account,project,contact,tax_rate" - ACCOUNT_PROJECT_TAX_RATE = "account,project,tax_rate" - ACCOUNT_TAX_RATE = "account,tax_rate" - COMPANY = "company" - COMPANY_CONTACT = "company,contact" - COMPANY_CONTACT_TAX_RATE = "company,contact,tax_rate" - COMPANY_TAX_RATE = "company,tax_rate" - CONTACT = "contact" - CONTACT_TAX_RATE = "contact,tax_rate" - EMPLOYEE = "employee" - EMPLOYEE_COMPANY = "employee,company" - EMPLOYEE_COMPANY_CONTACT = "employee,company,contact" - EMPLOYEE_COMPANY_CONTACT_TAX_RATE = "employee,company,contact,tax_rate" - EMPLOYEE_COMPANY_TAX_RATE = "employee,company,tax_rate" - EMPLOYEE_CONTACT = "employee,contact" - EMPLOYEE_CONTACT_TAX_RATE = "employee,contact,tax_rate" - EMPLOYEE_PROJECT = "employee,project" - EMPLOYEE_PROJECT_COMPANY = "employee,project,company" - EMPLOYEE_PROJECT_COMPANY_CONTACT = "employee,project,company,contact" - EMPLOYEE_PROJECT_COMPANY_CONTACT_TAX_RATE = "employee,project,company,contact,tax_rate" - EMPLOYEE_PROJECT_COMPANY_TAX_RATE = "employee,project,company,tax_rate" - EMPLOYEE_PROJECT_CONTACT = "employee,project,contact" - EMPLOYEE_PROJECT_CONTACT_TAX_RATE = "employee,project,contact,tax_rate" - EMPLOYEE_PROJECT_TAX_RATE = "employee,project,tax_rate" - EMPLOYEE_TAX_RATE = "employee,tax_rate" - PROJECT = "project" - PROJECT_COMPANY = "project,company" - PROJECT_COMPANY_CONTACT = "project,company,contact" - PROJECT_COMPANY_CONTACT_TAX_RATE = "project,company,contact,tax_rate" - PROJECT_COMPANY_TAX_RATE = "project,company,tax_rate" - PROJECT_CONTACT = "project,contact" - PROJECT_CONTACT_TAX_RATE = "project,contact,tax_rate" - PROJECT_TAX_RATE = "project,tax_rate" - TAX_RATE = "tax_rate" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_company: typing.Callable[[], T_Result], - account_company_contact: typing.Callable[[], T_Result], - account_company_contact_tax_rate: typing.Callable[[], T_Result], - account_company_tax_rate: typing.Callable[[], T_Result], - account_contact: typing.Callable[[], T_Result], - account_contact_tax_rate: typing.Callable[[], T_Result], - account_employee: typing.Callable[[], T_Result], - account_employee_company: typing.Callable[[], T_Result], - account_employee_company_contact: typing.Callable[[], T_Result], - account_employee_company_contact_tax_rate: typing.Callable[[], T_Result], - account_employee_company_tax_rate: typing.Callable[[], T_Result], - account_employee_contact: typing.Callable[[], T_Result], - account_employee_contact_tax_rate: typing.Callable[[], T_Result], - account_employee_project: typing.Callable[[], T_Result], - account_employee_project_company: typing.Callable[[], T_Result], - account_employee_project_company_contact: typing.Callable[[], T_Result], - account_employee_project_company_contact_tax_rate: typing.Callable[[], T_Result], - account_employee_project_company_tax_rate: typing.Callable[[], T_Result], - account_employee_project_contact: typing.Callable[[], T_Result], - account_employee_project_contact_tax_rate: typing.Callable[[], T_Result], - account_employee_project_tax_rate: typing.Callable[[], T_Result], - account_employee_tax_rate: typing.Callable[[], T_Result], - account_project: typing.Callable[[], T_Result], - account_project_company: typing.Callable[[], T_Result], - account_project_company_contact: typing.Callable[[], T_Result], - account_project_company_contact_tax_rate: typing.Callable[[], T_Result], - account_project_company_tax_rate: typing.Callable[[], T_Result], - account_project_contact: typing.Callable[[], T_Result], - account_project_contact_tax_rate: typing.Callable[[], T_Result], - account_project_tax_rate: typing.Callable[[], T_Result], - account_tax_rate: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_contact: typing.Callable[[], T_Result], - company_contact_tax_rate: typing.Callable[[], T_Result], - company_tax_rate: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_tax_rate: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_company: typing.Callable[[], T_Result], - employee_company_contact: typing.Callable[[], T_Result], - employee_company_contact_tax_rate: typing.Callable[[], T_Result], - employee_company_tax_rate: typing.Callable[[], T_Result], - employee_contact: typing.Callable[[], T_Result], - employee_contact_tax_rate: typing.Callable[[], T_Result], - employee_project: typing.Callable[[], T_Result], - employee_project_company: typing.Callable[[], T_Result], - employee_project_company_contact: typing.Callable[[], T_Result], - employee_project_company_contact_tax_rate: typing.Callable[[], T_Result], - employee_project_company_tax_rate: typing.Callable[[], T_Result], - employee_project_contact: typing.Callable[[], T_Result], - employee_project_contact_tax_rate: typing.Callable[[], T_Result], - employee_project_tax_rate: typing.Callable[[], T_Result], - employee_tax_rate: typing.Callable[[], T_Result], - project: typing.Callable[[], T_Result], - project_company: typing.Callable[[], T_Result], - project_company_contact: typing.Callable[[], T_Result], - project_company_contact_tax_rate: typing.Callable[[], T_Result], - project_company_tax_rate: typing.Callable[[], T_Result], - project_contact: typing.Callable[[], T_Result], - project_contact_tax_rate: typing.Callable[[], T_Result], - project_tax_rate: typing.Callable[[], T_Result], - tax_rate: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT: - return account() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_COMPANY: - return account_company() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_COMPANY_CONTACT: - return account_company_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_COMPANY_CONTACT_TAX_RATE: - return account_company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_COMPANY_TAX_RATE: - return account_company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_CONTACT: - return account_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_CONTACT_TAX_RATE: - return account_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE: - return account_employee() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_COMPANY: - return account_employee_company() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_COMPANY_CONTACT: - return account_employee_company_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_COMPANY_CONTACT_TAX_RATE: - return account_employee_company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_COMPANY_TAX_RATE: - return account_employee_company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_CONTACT: - return account_employee_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_CONTACT_TAX_RATE: - return account_employee_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT: - return account_employee_project() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT_COMPANY: - return account_employee_project_company() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT_COMPANY_CONTACT: - return account_employee_project_company_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT_COMPANY_CONTACT_TAX_RATE: - return account_employee_project_company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT_COMPANY_TAX_RATE: - return account_employee_project_company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT_CONTACT: - return account_employee_project_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT_CONTACT_TAX_RATE: - return account_employee_project_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_PROJECT_TAX_RATE: - return account_employee_project_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_EMPLOYEE_TAX_RATE: - return account_employee_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT: - return account_project() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT_COMPANY: - return account_project_company() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT_COMPANY_CONTACT: - return account_project_company_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT_COMPANY_CONTACT_TAX_RATE: - return account_project_company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT_COMPANY_TAX_RATE: - return account_project_company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT_CONTACT: - return account_project_contact() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT_CONTACT_TAX_RATE: - return account_project_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_PROJECT_TAX_RATE: - return account_project_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.ACCOUNT_TAX_RATE: - return account_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.COMPANY: - return company() - if self is ExpenseReportsLinesListRequestExpand.COMPANY_CONTACT: - return company_contact() - if self is ExpenseReportsLinesListRequestExpand.COMPANY_CONTACT_TAX_RATE: - return company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.COMPANY_TAX_RATE: - return company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.CONTACT: - return contact() - if self is ExpenseReportsLinesListRequestExpand.CONTACT_TAX_RATE: - return contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE: - return employee() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_COMPANY: - return employee_company() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_COMPANY_CONTACT: - return employee_company_contact() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_COMPANY_CONTACT_TAX_RATE: - return employee_company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_COMPANY_TAX_RATE: - return employee_company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_CONTACT: - return employee_contact() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_CONTACT_TAX_RATE: - return employee_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT: - return employee_project() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT_COMPANY: - return employee_project_company() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT_COMPANY_CONTACT: - return employee_project_company_contact() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT_COMPANY_CONTACT_TAX_RATE: - return employee_project_company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT_COMPANY_TAX_RATE: - return employee_project_company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT_CONTACT: - return employee_project_contact() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT_CONTACT_TAX_RATE: - return employee_project_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_PROJECT_TAX_RATE: - return employee_project_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.EMPLOYEE_TAX_RATE: - return employee_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.PROJECT: - return project() - if self is ExpenseReportsLinesListRequestExpand.PROJECT_COMPANY: - return project_company() - if self is ExpenseReportsLinesListRequestExpand.PROJECT_COMPANY_CONTACT: - return project_company_contact() - if self is ExpenseReportsLinesListRequestExpand.PROJECT_COMPANY_CONTACT_TAX_RATE: - return project_company_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.PROJECT_COMPANY_TAX_RATE: - return project_company_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.PROJECT_CONTACT: - return project_contact() - if self is ExpenseReportsLinesListRequestExpand.PROJECT_CONTACT_TAX_RATE: - return project_contact_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.PROJECT_TAX_RATE: - return project_tax_rate() - if self is ExpenseReportsLinesListRequestExpand.TAX_RATE: - return tax_rate() diff --git a/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_list_request_expand.py b/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_list_request_expand.py deleted file mode 100644 index fa1b24ce..00000000 --- a/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_list_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ExpenseReportsListRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_COMPANY = "accounting_period,company" - COMPANY = "company" - EMPLOYEE = "employee" - EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" - EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "employee,accounting_period,company" - EMPLOYEE_COMPANY = "employee,company" - LINES = "lines" - LINES_ACCOUNTING_PERIOD = "lines,accounting_period" - LINES_ACCOUNTING_PERIOD_COMPANY = "lines,accounting_period,company" - LINES_COMPANY = "lines,company" - LINES_EMPLOYEE = "lines,employee" - LINES_EMPLOYEE_ACCOUNTING_PERIOD = "lines,employee,accounting_period" - LINES_EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "lines,employee,accounting_period,company" - LINES_EMPLOYEE_COMPANY = "lines,employee,company" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - accounting_period_company: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_accounting_period: typing.Callable[[], T_Result], - employee_accounting_period_company: typing.Callable[[], T_Result], - employee_company: typing.Callable[[], T_Result], - lines: typing.Callable[[], T_Result], - lines_accounting_period: typing.Callable[[], T_Result], - lines_accounting_period_company: typing.Callable[[], T_Result], - lines_company: typing.Callable[[], T_Result], - lines_employee: typing.Callable[[], T_Result], - lines_employee_accounting_period: typing.Callable[[], T_Result], - lines_employee_accounting_period_company: typing.Callable[[], T_Result], - lines_employee_company: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ExpenseReportsListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is ExpenseReportsListRequestExpand.ACCOUNTING_PERIOD_COMPANY: - return accounting_period_company() - if self is ExpenseReportsListRequestExpand.COMPANY: - return company() - if self is ExpenseReportsListRequestExpand.EMPLOYEE: - return employee() - if self is ExpenseReportsListRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD: - return employee_accounting_period() - if self is ExpenseReportsListRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD_COMPANY: - return employee_accounting_period_company() - if self is ExpenseReportsListRequestExpand.EMPLOYEE_COMPANY: - return employee_company() - if self is ExpenseReportsListRequestExpand.LINES: - return lines() - if self is ExpenseReportsListRequestExpand.LINES_ACCOUNTING_PERIOD: - return lines_accounting_period() - if self is ExpenseReportsListRequestExpand.LINES_ACCOUNTING_PERIOD_COMPANY: - return lines_accounting_period_company() - if self is ExpenseReportsListRequestExpand.LINES_COMPANY: - return lines_company() - if self is ExpenseReportsListRequestExpand.LINES_EMPLOYEE: - return lines_employee() - if self is ExpenseReportsListRequestExpand.LINES_EMPLOYEE_ACCOUNTING_PERIOD: - return lines_employee_accounting_period() - if self is ExpenseReportsListRequestExpand.LINES_EMPLOYEE_ACCOUNTING_PERIOD_COMPANY: - return lines_employee_accounting_period_company() - if self is ExpenseReportsListRequestExpand.LINES_EMPLOYEE_COMPANY: - return lines_employee_company() diff --git a/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_retrieve_request_expand.py b/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_retrieve_request_expand.py deleted file mode 100644 index 5d56c2da..00000000 --- a/src/merge/resources/accounting/resources/expense_reports/types/expense_reports_retrieve_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ExpenseReportsRetrieveRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_COMPANY = "accounting_period,company" - COMPANY = "company" - EMPLOYEE = "employee" - EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" - EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "employee,accounting_period,company" - EMPLOYEE_COMPANY = "employee,company" - LINES = "lines" - LINES_ACCOUNTING_PERIOD = "lines,accounting_period" - LINES_ACCOUNTING_PERIOD_COMPANY = "lines,accounting_period,company" - LINES_COMPANY = "lines,company" - LINES_EMPLOYEE = "lines,employee" - LINES_EMPLOYEE_ACCOUNTING_PERIOD = "lines,employee,accounting_period" - LINES_EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "lines,employee,accounting_period,company" - LINES_EMPLOYEE_COMPANY = "lines,employee,company" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - accounting_period_company: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_accounting_period: typing.Callable[[], T_Result], - employee_accounting_period_company: typing.Callable[[], T_Result], - employee_company: typing.Callable[[], T_Result], - lines: typing.Callable[[], T_Result], - lines_accounting_period: typing.Callable[[], T_Result], - lines_accounting_period_company: typing.Callable[[], T_Result], - lines_company: typing.Callable[[], T_Result], - lines_employee: typing.Callable[[], T_Result], - lines_employee_accounting_period: typing.Callable[[], T_Result], - lines_employee_accounting_period_company: typing.Callable[[], T_Result], - lines_employee_company: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ExpenseReportsRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is ExpenseReportsRetrieveRequestExpand.ACCOUNTING_PERIOD_COMPANY: - return accounting_period_company() - if self is ExpenseReportsRetrieveRequestExpand.COMPANY: - return company() - if self is ExpenseReportsRetrieveRequestExpand.EMPLOYEE: - return employee() - if self is ExpenseReportsRetrieveRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD: - return employee_accounting_period() - if self is ExpenseReportsRetrieveRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD_COMPANY: - return employee_accounting_period_company() - if self is ExpenseReportsRetrieveRequestExpand.EMPLOYEE_COMPANY: - return employee_company() - if self is ExpenseReportsRetrieveRequestExpand.LINES: - return lines() - if self is ExpenseReportsRetrieveRequestExpand.LINES_ACCOUNTING_PERIOD: - return lines_accounting_period() - if self is ExpenseReportsRetrieveRequestExpand.LINES_ACCOUNTING_PERIOD_COMPANY: - return lines_accounting_period_company() - if self is ExpenseReportsRetrieveRequestExpand.LINES_COMPANY: - return lines_company() - if self is ExpenseReportsRetrieveRequestExpand.LINES_EMPLOYEE: - return lines_employee() - if self is ExpenseReportsRetrieveRequestExpand.LINES_EMPLOYEE_ACCOUNTING_PERIOD: - return lines_employee_accounting_period() - if self is ExpenseReportsRetrieveRequestExpand.LINES_EMPLOYEE_ACCOUNTING_PERIOD_COMPANY: - return lines_employee_accounting_period_company() - if self is ExpenseReportsRetrieveRequestExpand.LINES_EMPLOYEE_COMPANY: - return lines_employee_company() diff --git a/src/merge/resources/accounting/resources/expenses/__init__.py b/src/merge/resources/accounting/resources/expenses/__init__.py deleted file mode 100644 index acf1f1a7..00000000 --- a/src/merge/resources/accounting/resources/expenses/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ExpensesListRequestExpand, ExpensesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ExpensesListRequestExpand": ".types", - "ExpensesRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ExpensesListRequestExpand", "ExpensesRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/expenses/client.py b/src/merge/resources/accounting/resources/expenses/client.py deleted file mode 100644 index 8e4a205f..00000000 --- a/src/merge/resources/accounting/resources/expenses/client.py +++ /dev/null @@ -1,968 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.expense import Expense -from ...types.expense_request import ExpenseRequest -from ...types.expense_response import ExpenseResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_expense_list import PaginatedExpenseList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawExpensesClient, RawExpensesClient -from .types.expenses_list_request_expand import ExpensesListRequestExpand -from .types.expenses_retrieve_request_expand import ExpensesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ExpensesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawExpensesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawExpensesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawExpensesClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpensesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedExpenseList: - """ - Returns a list of `Expense` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expenses for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpensesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedExpenseList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.expenses import ( - ExpensesListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expenses.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpensesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ExpenseRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ExpenseResponse: - """ - Creates an `Expense` object with the given values. - - Parameters - ---------- - model : ExpenseRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExpenseResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import ExpenseRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expenses.create( - is_debug_mode=True, - run_async=True, - model=ExpenseRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpensesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Expense: - """ - Returns an `Expense` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpensesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Expense - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.expenses import ( - ExpensesRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expenses.retrieve( - id="id", - expand=ExpensesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expenses.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.lines_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Expense` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expenses.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.expenses.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncExpensesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawExpensesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawExpensesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawExpensesClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpensesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedExpenseList: - """ - Returns a list of `Expense` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expenses for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpensesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedExpenseList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.expenses import ( - ExpensesListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expenses.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ExpensesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ExpenseRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ExpenseResponse: - """ - Creates an `Expense` object with the given values. - - Parameters - ---------- - model : ExpenseRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExpenseResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import ExpenseRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expenses.create( - is_debug_mode=True, - run_async=True, - model=ExpenseRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpensesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Expense: - """ - Returns an `Expense` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpensesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Expense - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.expenses import ( - ExpensesRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expenses.retrieve( - id="id", - expand=ExpensesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expenses.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.lines_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Expense` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expenses.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.expenses.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/expenses/raw_client.py b/src/merge/resources/accounting/resources/expenses/raw_client.py deleted file mode 100644 index 6b2b2520..00000000 --- a/src/merge/resources/accounting/resources/expenses/raw_client.py +++ /dev/null @@ -1,890 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.expense import Expense -from ...types.expense_request import ExpenseRequest -from ...types.expense_response import ExpenseResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_expense_list import PaginatedExpenseList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .types.expenses_list_request_expand import ExpensesListRequestExpand -from .types.expenses_retrieve_request_expand import ExpensesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawExpensesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpensesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedExpenseList]: - """ - Returns a list of `Expense` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expenses for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpensesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedExpenseList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expenses", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedExpenseList, - construct_type( - type_=PaginatedExpenseList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ExpenseRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ExpenseResponse]: - """ - Creates an `Expense` object with the given values. - - Parameters - ---------- - model : ExpenseRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExpenseResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expenses", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExpenseResponse, - construct_type( - type_=ExpenseResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpensesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Expense]: - """ - Returns an `Expense` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpensesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Expense] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/expenses/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Expense, - construct_type( - type_=Expense, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expenses/lines/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Expense` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expenses/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/expenses/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawExpensesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ExpensesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedExpenseList]: - """ - Returns a list of `Expense` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return expenses for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ExpensesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedExpenseList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expenses", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedExpenseList, - construct_type( - type_=PaginatedExpenseList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ExpenseRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ExpenseResponse]: - """ - Creates an `Expense` object with the given values. - - Parameters - ---------- - model : ExpenseRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExpenseResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expenses", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExpenseResponse, - construct_type( - type_=ExpenseResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ExpensesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Expense]: - """ - Returns an `Expense` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ExpensesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Expense] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/expenses/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Expense, - construct_type( - type_=Expense, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expenses/lines/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Expense` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expenses/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/expenses/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/expenses/types/expenses_list_request_expand.py b/src/merge/resources/accounting/resources/expenses/types/expenses_list_request_expand.py deleted file mode 100644 index 7b56e281..00000000 --- a/src/merge/resources/accounting/resources/expenses/types/expenses_list_request_expand.py +++ /dev/null @@ -1,275 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ExpensesListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" - ACCOUNT_COMPANY = "account,company" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" - ACCOUNT_COMPANY_EMPLOYEE = "account,company,employee" - ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "account,company,employee,accounting_period" - ACCOUNT_CONTACT = "account,contact" - ACCOUNT_CONTACT_ACCOUNTING_PERIOD = "account,contact,accounting_period" - ACCOUNT_CONTACT_COMPANY = "account,contact,company" - ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD = "account,contact,company,accounting_period" - ACCOUNT_CONTACT_COMPANY_EMPLOYEE = "account,contact,company,employee" - ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "account,contact,company,employee,accounting_period" - ACCOUNT_CONTACT_EMPLOYEE = "account,contact,employee" - ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "account,contact,employee,accounting_period" - ACCOUNT_EMPLOYEE = "account,employee" - ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD = "account,employee,accounting_period" - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_EMPLOYEE = "company,employee" - COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "company,employee,accounting_period" - CONTACT = "contact" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - CONTACT_COMPANY_EMPLOYEE = "contact,company,employee" - CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "contact,company,employee,accounting_period" - CONTACT_EMPLOYEE = "contact,employee" - CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "contact,employee,accounting_period" - EMPLOYEE = "employee" - EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE = "tracking_categories,account,company,employee" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,account,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_CONTACT = "tracking_categories,account,contact" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,account,contact,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY = "tracking_categories,account,contact,company" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,account,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE = "tracking_categories,account,contact,company,employee" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,account,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE = "tracking_categories,account,contact,employee" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,account,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE = "tracking_categories,account,employee" - TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,account,employee,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "tracking_categories,company,employee" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,company,employee,accounting_period" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "tracking_categories,contact,company,employee" - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "tracking_categories,contact,employee" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,contact,employee,accounting_period" - TRACKING_CATEGORIES_EMPLOYEE = "tracking_categories,employee" - TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,employee,accounting_period" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_accounting_period: typing.Callable[[], T_Result], - account_company: typing.Callable[[], T_Result], - account_company_accounting_period: typing.Callable[[], T_Result], - account_company_employee: typing.Callable[[], T_Result], - account_company_employee_accounting_period: typing.Callable[[], T_Result], - account_contact: typing.Callable[[], T_Result], - account_contact_accounting_period: typing.Callable[[], T_Result], - account_contact_company: typing.Callable[[], T_Result], - account_contact_company_accounting_period: typing.Callable[[], T_Result], - account_contact_company_employee: typing.Callable[[], T_Result], - account_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - account_contact_employee: typing.Callable[[], T_Result], - account_contact_employee_accounting_period: typing.Callable[[], T_Result], - account_employee: typing.Callable[[], T_Result], - account_employee_accounting_period: typing.Callable[[], T_Result], - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_employee: typing.Callable[[], T_Result], - company_employee_accounting_period: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - contact_company_employee: typing.Callable[[], T_Result], - contact_company_employee_accounting_period: typing.Callable[[], T_Result], - contact_employee: typing.Callable[[], T_Result], - contact_employee_accounting_period: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_account: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company_employee: typing.Callable[[], T_Result], - tracking_categories_account_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact: typing.Callable[[], T_Result], - tracking_categories_account_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact_company: typing.Callable[[], T_Result], - tracking_categories_account_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_account_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact_employee: typing.Callable[[], T_Result], - tracking_categories_account_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_employee: typing.Callable[[], T_Result], - tracking_categories_account_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_employee: typing.Callable[[], T_Result], - tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_employee: typing.Callable[[], T_Result], - tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_employee: typing.Callable[[], T_Result], - tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ExpensesListRequestExpand.ACCOUNT: - return account() - if self is ExpensesListRequestExpand.ACCOUNT_ACCOUNTING_PERIOD: - return account_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNT_COMPANY: - return account_company() - if self is ExpensesListRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return account_company_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNT_COMPANY_EMPLOYEE: - return account_company_employee() - if self is ExpensesListRequestExpand.ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return account_company_employee_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT: - return account_contact() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT_ACCOUNTING_PERIOD: - return account_contact_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT_COMPANY: - return account_contact_company() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return account_contact_company_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT_COMPANY_EMPLOYEE: - return account_contact_company_employee() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return account_contact_company_employee_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT_EMPLOYEE: - return account_contact_employee() - if self is ExpensesListRequestExpand.ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return account_contact_employee_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNT_EMPLOYEE: - return account_employee() - if self is ExpensesListRequestExpand.ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD: - return account_employee_accounting_period() - if self is ExpensesListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is ExpensesListRequestExpand.COMPANY: - return company() - if self is ExpensesListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is ExpensesListRequestExpand.COMPANY_EMPLOYEE: - return company_employee() - if self is ExpensesListRequestExpand.COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return company_employee_accounting_period() - if self is ExpensesListRequestExpand.CONTACT: - return contact() - if self is ExpensesListRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is ExpensesListRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is ExpensesListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is ExpensesListRequestExpand.CONTACT_COMPANY_EMPLOYEE: - return contact_company_employee() - if self is ExpensesListRequestExpand.CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_company_employee_accounting_period() - if self is ExpensesListRequestExpand.CONTACT_EMPLOYEE: - return contact_employee() - if self is ExpensesListRequestExpand.CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_employee_accounting_period() - if self is ExpensesListRequestExpand.EMPLOYEE: - return employee() - if self is ExpensesListRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD: - return employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT: - return tracking_categories_account() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_account_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return tracking_categories_account_company() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_company_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE: - return tracking_categories_account_company_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_company_employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT: - return tracking_categories_account_contact() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY: - return tracking_categories_account_contact_company() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_company_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_account_contact_company_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_company_employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE: - return tracking_categories_account_contact_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE: - return tracking_categories_account_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return tracking_categories_company_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_company_employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_contact_company_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return tracking_categories_contact_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_employee_accounting_period() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_EMPLOYEE: - return tracking_categories_employee() - if self is ExpensesListRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_employee_accounting_period() diff --git a/src/merge/resources/accounting/resources/expenses/types/expenses_retrieve_request_expand.py b/src/merge/resources/accounting/resources/expenses/types/expenses_retrieve_request_expand.py deleted file mode 100644 index 32222a7a..00000000 --- a/src/merge/resources/accounting/resources/expenses/types/expenses_retrieve_request_expand.py +++ /dev/null @@ -1,275 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ExpensesRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" - ACCOUNT_COMPANY = "account,company" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" - ACCOUNT_COMPANY_EMPLOYEE = "account,company,employee" - ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "account,company,employee,accounting_period" - ACCOUNT_CONTACT = "account,contact" - ACCOUNT_CONTACT_ACCOUNTING_PERIOD = "account,contact,accounting_period" - ACCOUNT_CONTACT_COMPANY = "account,contact,company" - ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD = "account,contact,company,accounting_period" - ACCOUNT_CONTACT_COMPANY_EMPLOYEE = "account,contact,company,employee" - ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "account,contact,company,employee,accounting_period" - ACCOUNT_CONTACT_EMPLOYEE = "account,contact,employee" - ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "account,contact,employee,accounting_period" - ACCOUNT_EMPLOYEE = "account,employee" - ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD = "account,employee,accounting_period" - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_EMPLOYEE = "company,employee" - COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "company,employee,accounting_period" - CONTACT = "contact" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - CONTACT_COMPANY_EMPLOYEE = "contact,company,employee" - CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "contact,company,employee,accounting_period" - CONTACT_EMPLOYEE = "contact,employee" - CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "contact,employee,accounting_period" - EMPLOYEE = "employee" - EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE = "tracking_categories,account,company,employee" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,account,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_CONTACT = "tracking_categories,account,contact" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,account,contact,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY = "tracking_categories,account,contact,company" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,account,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE = "tracking_categories,account,contact,company,employee" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,account,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE = "tracking_categories,account,contact,employee" - TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,account,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE = "tracking_categories,account,employee" - TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,account,employee,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "tracking_categories,company,employee" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,company,employee,accounting_period" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "tracking_categories,contact,company,employee" - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "tracking_categories,contact,employee" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,contact,employee,accounting_period" - TRACKING_CATEGORIES_EMPLOYEE = "tracking_categories,employee" - TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,employee,accounting_period" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_accounting_period: typing.Callable[[], T_Result], - account_company: typing.Callable[[], T_Result], - account_company_accounting_period: typing.Callable[[], T_Result], - account_company_employee: typing.Callable[[], T_Result], - account_company_employee_accounting_period: typing.Callable[[], T_Result], - account_contact: typing.Callable[[], T_Result], - account_contact_accounting_period: typing.Callable[[], T_Result], - account_contact_company: typing.Callable[[], T_Result], - account_contact_company_accounting_period: typing.Callable[[], T_Result], - account_contact_company_employee: typing.Callable[[], T_Result], - account_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - account_contact_employee: typing.Callable[[], T_Result], - account_contact_employee_accounting_period: typing.Callable[[], T_Result], - account_employee: typing.Callable[[], T_Result], - account_employee_accounting_period: typing.Callable[[], T_Result], - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_employee: typing.Callable[[], T_Result], - company_employee_accounting_period: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - contact_company_employee: typing.Callable[[], T_Result], - contact_company_employee_accounting_period: typing.Callable[[], T_Result], - contact_employee: typing.Callable[[], T_Result], - contact_employee_accounting_period: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_account: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company_employee: typing.Callable[[], T_Result], - tracking_categories_account_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact: typing.Callable[[], T_Result], - tracking_categories_account_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact_company: typing.Callable[[], T_Result], - tracking_categories_account_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_account_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_contact_employee: typing.Callable[[], T_Result], - tracking_categories_account_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_employee: typing.Callable[[], T_Result], - tracking_categories_account_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_employee: typing.Callable[[], T_Result], - tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_employee: typing.Callable[[], T_Result], - tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_employee: typing.Callable[[], T_Result], - tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ExpensesRetrieveRequestExpand.ACCOUNT: - return account() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_ACCOUNTING_PERIOD: - return account_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_COMPANY: - return account_company() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return account_company_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_COMPANY_EMPLOYEE: - return account_company_employee() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return account_company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT: - return account_contact() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT_ACCOUNTING_PERIOD: - return account_contact_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT_COMPANY: - return account_contact_company() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return account_contact_company_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT_COMPANY_EMPLOYEE: - return account_contact_company_employee() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return account_contact_company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT_EMPLOYEE: - return account_contact_employee() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return account_contact_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_EMPLOYEE: - return account_employee() - if self is ExpensesRetrieveRequestExpand.ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD: - return account_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is ExpensesRetrieveRequestExpand.COMPANY: - return company() - if self is ExpensesRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is ExpensesRetrieveRequestExpand.COMPANY_EMPLOYEE: - return company_employee() - if self is ExpensesRetrieveRequestExpand.COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.CONTACT: - return contact() - if self is ExpensesRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is ExpensesRetrieveRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is ExpensesRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is ExpensesRetrieveRequestExpand.CONTACT_COMPANY_EMPLOYEE: - return contact_company_employee() - if self is ExpensesRetrieveRequestExpand.CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.CONTACT_EMPLOYEE: - return contact_employee() - if self is ExpensesRetrieveRequestExpand.CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.EMPLOYEE: - return employee() - if self is ExpensesRetrieveRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD: - return employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT: - return tracking_categories_account() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_account_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return tracking_categories_account_company() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_company_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE: - return tracking_categories_account_company_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT: - return tracking_categories_account_contact() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY: - return tracking_categories_account_contact_company() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_company_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_account_contact_company_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE: - return tracking_categories_account_contact_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_contact_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE: - return tracking_categories_account_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_account_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return tracking_categories_company_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_contact_company_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return tracking_categories_contact_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_employee_accounting_period() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_EMPLOYEE: - return tracking_categories_employee() - if self is ExpensesRetrieveRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_employee_accounting_period() diff --git a/src/merge/resources/accounting/resources/field_mapping/__init__.py b/src/merge/resources/accounting/resources/field_mapping/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/field_mapping/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/field_mapping/client.py b/src/merge/resources/accounting/resources/field_mapping/client.py deleted file mode 100644 index feed925c..00000000 --- a/src/merge/resources/accounting/resources/field_mapping/client.py +++ /dev/null @@ -1,644 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse -from .raw_client import AsyncRawFieldMappingClient, RawFieldMappingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFieldMappingClient - """ - return self._raw_client - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - """ - _response = self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - """ - _response = self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - request_options=request_options, - ) - return _response.data - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - request_options=request_options, - ) - return _response.data - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - """ - _response = self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.field_mapping.target_fields_retrieve() - """ - _response = self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data - - -class AsyncFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFieldMappingClient - """ - return self._raw_client - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - request_options=request_options, - ) - return _response.data - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - request_options=request_options, - ) - return _response.data - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.field_mapping.target_fields_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/field_mapping/raw_client.py b/src/merge/resources/accounting/resources/field_mapping/raw_client.py deleted file mode 100644 index 1e90a8db..00000000 --- a/src/merge/resources/accounting/resources/field_mapping/raw_client.py +++ /dev/null @@ -1,652 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/force_resync/__init__.py b/src/merge/resources/accounting/resources/force_resync/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/force_resync/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/force_resync/client.py b/src/merge/resources/accounting/resources/force_resync/client.py deleted file mode 100644 index d7b91725..00000000 --- a/src/merge/resources/accounting/resources/force_resync/client.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.sync_status import SyncStatus -from .raw_client import AsyncRawForceResyncClient, RawForceResyncClient - - -class ForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawForceResyncClient - """ - return self._raw_client - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.force_resync.sync_status_resync_create() - """ - _response = self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data - - -class AsyncForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawForceResyncClient - """ - return self._raw_client - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.force_resync.sync_status_resync_create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/force_resync/raw_client.py b/src/merge/resources/accounting/resources/force_resync/raw_client.py deleted file mode 100644 index 6a49df95..00000000 --- a/src/merge/resources/accounting/resources/force_resync/raw_client.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.sync_status import SyncStatus - - -class RawForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SyncStatus]] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SyncStatus]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/general_ledger_transactions/__init__.py b/src/merge/resources/accounting/resources/general_ledger_transactions/__init__.py deleted file mode 100644 index 9b0229cd..00000000 --- a/src/merge/resources/accounting/resources/general_ledger_transactions/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import GeneralLedgerTransactionsListRequestExpand, GeneralLedgerTransactionsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "GeneralLedgerTransactionsListRequestExpand": ".types", - "GeneralLedgerTransactionsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["GeneralLedgerTransactionsListRequestExpand", "GeneralLedgerTransactionsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/general_ledger_transactions/client.py b/src/merge/resources/accounting/resources/general_ledger_transactions/client.py deleted file mode 100644 index 377163ab..00000000 --- a/src/merge/resources/accounting/resources/general_ledger_transactions/client.py +++ /dev/null @@ -1,449 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.general_ledger_transaction import GeneralLedgerTransaction -from ...types.paginated_general_ledger_transaction_list import PaginatedGeneralLedgerTransactionList -from .raw_client import AsyncRawGeneralLedgerTransactionsClient, RawGeneralLedgerTransactionsClient -from .types.general_ledger_transactions_list_request_expand import GeneralLedgerTransactionsListRequestExpand -from .types.general_ledger_transactions_retrieve_request_expand import GeneralLedgerTransactionsRetrieveRequestExpand - - -class GeneralLedgerTransactionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGeneralLedgerTransactionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGeneralLedgerTransactionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGeneralLedgerTransactionsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GeneralLedgerTransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - posted_date_after: typing.Optional[dt.datetime] = None, - posted_date_before: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGeneralLedgerTransactionList: - """ - Returns a list of `GeneralLedgerTransaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return general ledger transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GeneralLedgerTransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - posted_date_after : typing.Optional[dt.datetime] - If provided, will only return objects posted after this datetime. - - posted_date_before : typing.Optional[dt.datetime] - If provided, will only return objects posted before this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGeneralLedgerTransactionList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.general_ledger_transactions import ( - GeneralLedgerTransactionsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.general_ledger_transactions.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=GeneralLedgerTransactionsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - posted_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - posted_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - posted_date_after=posted_date_after, - posted_date_before=posted_date_before, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GeneralLedgerTransaction: - """ - Returns a `GeneralLedgerTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GeneralLedgerTransaction - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.general_ledger_transactions import ( - GeneralLedgerTransactionsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.general_ledger_transactions.retrieve( - id="id", - expand=GeneralLedgerTransactionsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncGeneralLedgerTransactionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGeneralLedgerTransactionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGeneralLedgerTransactionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGeneralLedgerTransactionsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GeneralLedgerTransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - posted_date_after: typing.Optional[dt.datetime] = None, - posted_date_before: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGeneralLedgerTransactionList: - """ - Returns a list of `GeneralLedgerTransaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return general ledger transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GeneralLedgerTransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - posted_date_after : typing.Optional[dt.datetime] - If provided, will only return objects posted after this datetime. - - posted_date_before : typing.Optional[dt.datetime] - If provided, will only return objects posted before this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGeneralLedgerTransactionList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.general_ledger_transactions import ( - GeneralLedgerTransactionsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.general_ledger_transactions.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=GeneralLedgerTransactionsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - posted_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - posted_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - posted_date_after=posted_date_after, - posted_date_before=posted_date_before, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> GeneralLedgerTransaction: - """ - Returns a `GeneralLedgerTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GeneralLedgerTransaction - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.general_ledger_transactions import ( - GeneralLedgerTransactionsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.general_ledger_transactions.retrieve( - id="id", - expand=GeneralLedgerTransactionsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/general_ledger_transactions/raw_client.py b/src/merge/resources/accounting/resources/general_ledger_transactions/raw_client.py deleted file mode 100644 index ab2d3f28..00000000 --- a/src/merge/resources/accounting/resources/general_ledger_transactions/raw_client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.general_ledger_transaction import GeneralLedgerTransaction -from ...types.paginated_general_ledger_transaction_list import PaginatedGeneralLedgerTransactionList -from .types.general_ledger_transactions_list_request_expand import GeneralLedgerTransactionsListRequestExpand -from .types.general_ledger_transactions_retrieve_request_expand import GeneralLedgerTransactionsRetrieveRequestExpand - - -class RawGeneralLedgerTransactionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GeneralLedgerTransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - posted_date_after: typing.Optional[dt.datetime] = None, - posted_date_before: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedGeneralLedgerTransactionList]: - """ - Returns a list of `GeneralLedgerTransaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return general ledger transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GeneralLedgerTransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - posted_date_after : typing.Optional[dt.datetime] - If provided, will only return objects posted after this datetime. - - posted_date_before : typing.Optional[dt.datetime] - If provided, will only return objects posted before this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedGeneralLedgerTransactionList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/general-ledger-transactions", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "posted_date_after": serialize_datetime(posted_date_after) if posted_date_after is not None else None, - "posted_date_before": serialize_datetime(posted_date_before) - if posted_date_before is not None - else None, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGeneralLedgerTransactionList, - construct_type( - type_=PaginatedGeneralLedgerTransactionList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GeneralLedgerTransaction]: - """ - Returns a `GeneralLedgerTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GeneralLedgerTransaction] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/general-ledger-transactions/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GeneralLedgerTransaction, - construct_type( - type_=GeneralLedgerTransaction, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGeneralLedgerTransactionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GeneralLedgerTransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - posted_date_after: typing.Optional[dt.datetime] = None, - posted_date_before: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedGeneralLedgerTransactionList]: - """ - Returns a list of `GeneralLedgerTransaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return general ledger transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GeneralLedgerTransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - posted_date_after : typing.Optional[dt.datetime] - If provided, will only return objects posted after this datetime. - - posted_date_before : typing.Optional[dt.datetime] - If provided, will only return objects posted before this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedGeneralLedgerTransactionList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/general-ledger-transactions", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "posted_date_after": serialize_datetime(posted_date_after) if posted_date_after is not None else None, - "posted_date_before": serialize_datetime(posted_date_before) - if posted_date_before is not None - else None, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGeneralLedgerTransactionList, - construct_type( - type_=PaginatedGeneralLedgerTransactionList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GeneralLedgerTransaction]: - """ - Returns a `GeneralLedgerTransaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GeneralLedgerTransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GeneralLedgerTransaction] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/general-ledger-transactions/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GeneralLedgerTransaction, - construct_type( - type_=GeneralLedgerTransaction, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/general_ledger_transactions/types/__init__.py b/src/merge/resources/accounting/resources/general_ledger_transactions/types/__init__.py deleted file mode 100644 index d8499ab9..00000000 --- a/src/merge/resources/accounting/resources/general_ledger_transactions/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .general_ledger_transactions_list_request_expand import GeneralLedgerTransactionsListRequestExpand - from .general_ledger_transactions_retrieve_request_expand import GeneralLedgerTransactionsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "GeneralLedgerTransactionsListRequestExpand": ".general_ledger_transactions_list_request_expand", - "GeneralLedgerTransactionsRetrieveRequestExpand": ".general_ledger_transactions_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["GeneralLedgerTransactionsListRequestExpand", "GeneralLedgerTransactionsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/general_ledger_transactions/types/general_ledger_transactions_list_request_expand.py b/src/merge/resources/accounting/resources/general_ledger_transactions/types/general_ledger_transactions_list_request_expand.py deleted file mode 100644 index 0b85bf75..00000000 --- a/src/merge/resources/accounting/resources/general_ledger_transactions/types/general_ledger_transactions_list_request_expand.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class GeneralLedgerTransactionsListRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - GENERAL_LEDGER_TRANSACTION_LINES = "general_ledger_transaction_lines" - GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD = "general_ledger_transaction_lines,accounting_period" - GENERAL_LEDGER_TRANSACTION_LINES_COMPANY = "general_ledger_transaction_lines,company" - GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD = ( - "general_ledger_transaction_lines,company,accounting_period" - ) - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES = "tracking_categories,general_ledger_transaction_lines" - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD = ( - "tracking_categories,general_ledger_transaction_lines,accounting_period" - ) - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY = ( - "tracking_categories,general_ledger_transaction_lines,company" - ) - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,general_ledger_transaction_lines,company,accounting_period" - ) - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - general_ledger_transaction_lines: typing.Callable[[], T_Result], - general_ledger_transaction_lines_accounting_period: typing.Callable[[], T_Result], - general_ledger_transaction_lines_company: typing.Callable[[], T_Result], - general_ledger_transaction_lines_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines_accounting_period: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines_company: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is GeneralLedgerTransactionsListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is GeneralLedgerTransactionsListRequestExpand.COMPANY: - return company() - if self is GeneralLedgerTransactionsListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is GeneralLedgerTransactionsListRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES: - return general_ledger_transaction_lines() - if self is GeneralLedgerTransactionsListRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD: - return general_ledger_transaction_lines_accounting_period() - if self is GeneralLedgerTransactionsListRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES_COMPANY: - return general_ledger_transaction_lines_company() - if ( - self - is GeneralLedgerTransactionsListRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD - ): - return general_ledger_transaction_lines_company_accounting_period() - if self is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES: - return tracking_categories_general_ledger_transaction_lines() - if ( - self - is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD - ): - return tracking_categories_general_ledger_transaction_lines_accounting_period() - if ( - self - is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY - ): - return tracking_categories_general_ledger_transaction_lines_company() - if ( - self - is GeneralLedgerTransactionsListRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_general_ledger_transaction_lines_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/general_ledger_transactions/types/general_ledger_transactions_retrieve_request_expand.py b/src/merge/resources/accounting/resources/general_ledger_transactions/types/general_ledger_transactions_retrieve_request_expand.py deleted file mode 100644 index 9c1c9ecd..00000000 --- a/src/merge/resources/accounting/resources/general_ledger_transactions/types/general_ledger_transactions_retrieve_request_expand.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class GeneralLedgerTransactionsRetrieveRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - GENERAL_LEDGER_TRANSACTION_LINES = "general_ledger_transaction_lines" - GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD = "general_ledger_transaction_lines,accounting_period" - GENERAL_LEDGER_TRANSACTION_LINES_COMPANY = "general_ledger_transaction_lines,company" - GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD = ( - "general_ledger_transaction_lines,company,accounting_period" - ) - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES = "tracking_categories,general_ledger_transaction_lines" - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD = ( - "tracking_categories,general_ledger_transaction_lines,accounting_period" - ) - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY = ( - "tracking_categories,general_ledger_transaction_lines,company" - ) - TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,general_ledger_transaction_lines,company,accounting_period" - ) - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - general_ledger_transaction_lines: typing.Callable[[], T_Result], - general_ledger_transaction_lines_accounting_period: typing.Callable[[], T_Result], - general_ledger_transaction_lines_company: typing.Callable[[], T_Result], - general_ledger_transaction_lines_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines_accounting_period: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines_company: typing.Callable[[], T_Result], - tracking_categories_general_ledger_transaction_lines_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is GeneralLedgerTransactionsRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.COMPANY: - return company() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES: - return general_ledger_transaction_lines() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD: - return general_ledger_transaction_lines_accounting_period() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES_COMPANY: - return general_ledger_transaction_lines_company() - if ( - self - is GeneralLedgerTransactionsRetrieveRequestExpand.GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD - ): - return general_ledger_transaction_lines_company_accounting_period() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES: - return tracking_categories_general_ledger_transaction_lines() - if ( - self - is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_ACCOUNTING_PERIOD - ): - return tracking_categories_general_ledger_transaction_lines_accounting_period() - if ( - self - is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY - ): - return tracking_categories_general_ledger_transaction_lines_company() - if ( - self - is GeneralLedgerTransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_GENERAL_LEDGER_TRANSACTION_LINES_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_general_ledger_transaction_lines_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/generate_key/__init__.py b/src/merge/resources/accounting/resources/generate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/generate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/generate_key/client.py b/src/merge/resources/accounting/resources/generate_key/client.py deleted file mode 100644 index dc745ec3..00000000 --- a/src/merge/resources/accounting/resources/generate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawGenerateKeyClient, RawGenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.generate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.generate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/generate_key/raw_client.py b/src/merge/resources/accounting/resources/generate_key/raw_client.py deleted file mode 100644 index 558feb1d..00000000 --- a/src/merge/resources/accounting/resources/generate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/income_statements/__init__.py b/src/merge/resources/accounting/resources/income_statements/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/income_statements/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/income_statements/client.py b/src/merge/resources/accounting/resources/income_statements/client.py deleted file mode 100644 index 539bae03..00000000 --- a/src/merge/resources/accounting/resources/income_statements/client.py +++ /dev/null @@ -1,399 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.income_statement import IncomeStatement -from ...types.paginated_income_statement_list import PaginatedIncomeStatementList -from .raw_client import AsyncRawIncomeStatementsClient, RawIncomeStatementsClient - - -class IncomeStatementsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIncomeStatementsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIncomeStatementsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIncomeStatementsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIncomeStatementList: - """ - Returns a list of `IncomeStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return income statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIncomeStatementList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.income_statements.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> IncomeStatement: - """ - Returns an `IncomeStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - IncomeStatement - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.income_statements.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncIncomeStatementsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIncomeStatementsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIncomeStatementsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIncomeStatementsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIncomeStatementList: - """ - Returns a list of `IncomeStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return income statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIncomeStatementList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.income_statements.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> IncomeStatement: - """ - Returns an `IncomeStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - IncomeStatement - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.income_statements.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/income_statements/raw_client.py b/src/merge/resources/accounting/resources/income_statements/raw_client.py deleted file mode 100644 index 7bbb3315..00000000 --- a/src/merge/resources/accounting/resources/income_statements/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.income_statement import IncomeStatement -from ...types.paginated_income_statement_list import PaginatedIncomeStatementList - - -class RawIncomeStatementsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIncomeStatementList]: - """ - Returns a list of `IncomeStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return income statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIncomeStatementList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/income-statements", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIncomeStatementList, - construct_type( - type_=PaginatedIncomeStatementList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[IncomeStatement]: - """ - Returns an `IncomeStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[IncomeStatement] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/income-statements/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - IncomeStatement, - construct_type( - type_=IncomeStatement, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIncomeStatementsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIncomeStatementList]: - """ - Returns a list of `IncomeStatement` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return income statements for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIncomeStatementList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/income-statements", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIncomeStatementList, - construct_type( - type_=PaginatedIncomeStatementList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[IncomeStatement]: - """ - Returns an `IncomeStatement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[IncomeStatement] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/income-statements/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - IncomeStatement, - construct_type( - type_=IncomeStatement, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/invoices/__init__.py b/src/merge/resources/accounting/resources/invoices/__init__.py deleted file mode 100644 index 91efb449..00000000 --- a/src/merge/resources/accounting/resources/invoices/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - InvoicesListRequestExpand, - InvoicesListRequestStatus, - InvoicesListRequestType, - InvoicesRetrieveRequestExpand, - ) -_dynamic_imports: typing.Dict[str, str] = { - "InvoicesListRequestExpand": ".types", - "InvoicesListRequestStatus": ".types", - "InvoicesListRequestType": ".types", - "InvoicesRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "InvoicesListRequestExpand", - "InvoicesListRequestStatus", - "InvoicesListRequestType", - "InvoicesRetrieveRequestExpand", -] diff --git a/src/merge/resources/accounting/resources/invoices/client.py b/src/merge/resources/accounting/resources/invoices/client.py deleted file mode 100644 index 9ec8d516..00000000 --- a/src/merge/resources/accounting/resources/invoices/client.py +++ /dev/null @@ -1,1272 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.invoice import Invoice -from ...types.invoice_request import InvoiceRequest -from ...types.invoice_response import InvoiceResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_invoice_list import PaginatedInvoiceList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawInvoicesClient, RawInvoicesClient -from .types.invoices_list_request_expand import InvoicesListRequestExpand -from .types.invoices_list_request_status import InvoicesListRequestStatus -from .types.invoices_list_request_type import InvoicesListRequestType -from .types.invoices_retrieve_request_expand import InvoicesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class InvoicesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawInvoicesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawInvoicesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawInvoicesClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InvoicesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - number: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - status: typing.Optional[InvoicesListRequestStatus] = None, - type: typing.Optional[InvoicesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedInvoiceList: - """ - Returns a list of `Invoice` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return invoices for this company. - - contact_id : typing.Optional[str] - If provided, will only return invoices for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InvoicesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - number : typing.Optional[str] - If provided, will only return Invoices with this number. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[InvoicesListRequestStatus] - If provided, will only return Invoices with this status. - - * `PAID` - PAID - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `PARTIALLY_PAID` - PARTIALLY_PAID - * `OPEN` - OPEN - * `VOID` - VOID - - type : typing.Optional[InvoicesListRequestType] - If provided, will only return Invoices with this type. - - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedInvoiceList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.invoices import ( - InvoicesListRequestExpand, - InvoicesListRequestStatus, - InvoicesListRequestType, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.list( - company_id="company_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=InvoicesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - issue_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - issue_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - number="number", - page_size=1, - remote_id="remote_id", - status=InvoicesListRequestStatus.DRAFT, - type=InvoicesListRequestType.ACCOUNTS_PAYABLE, - ) - """ - _response = self._raw_client.list( - company_id=company_id, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - issue_date_after=issue_date_after, - issue_date_before=issue_date_before, - modified_after=modified_after, - modified_before=modified_before, - number=number, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - type=type, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> InvoiceResponse: - """ - Creates an `Invoice` object with the given values. - Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). - - - Parameters - ---------- - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - InvoiceResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import InvoiceRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.create( - is_debug_mode=True, - run_async=True, - model=InvoiceRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[InvoicesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Invoice: - """ - Returns an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InvoicesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Invoice - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.invoices import ( - InvoicesRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.retrieve( - id="id", - expand=InvoicesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> InvoiceResponse: - """ - Updates an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - InvoiceResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import InvoiceRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=InvoiceRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.line_items_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Invoice` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Invoice` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.invoices.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncInvoicesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawInvoicesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawInvoicesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawInvoicesClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InvoicesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - number: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - status: typing.Optional[InvoicesListRequestStatus] = None, - type: typing.Optional[InvoicesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedInvoiceList: - """ - Returns a list of `Invoice` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return invoices for this company. - - contact_id : typing.Optional[str] - If provided, will only return invoices for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InvoicesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - number : typing.Optional[str] - If provided, will only return Invoices with this number. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[InvoicesListRequestStatus] - If provided, will only return Invoices with this status. - - * `PAID` - PAID - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `PARTIALLY_PAID` - PARTIALLY_PAID - * `OPEN` - OPEN - * `VOID` - VOID - - type : typing.Optional[InvoicesListRequestType] - If provided, will only return Invoices with this type. - - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedInvoiceList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.invoices import ( - InvoicesListRequestExpand, - InvoicesListRequestStatus, - InvoicesListRequestType, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.list( - company_id="company_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=InvoicesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - issue_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - issue_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - number="number", - page_size=1, - remote_id="remote_id", - status=InvoicesListRequestStatus.DRAFT, - type=InvoicesListRequestType.ACCOUNTS_PAYABLE, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - issue_date_after=issue_date_after, - issue_date_before=issue_date_before, - modified_after=modified_after, - modified_before=modified_before, - number=number, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - type=type, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> InvoiceResponse: - """ - Creates an `Invoice` object with the given values. - Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). - - - Parameters - ---------- - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - InvoiceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import InvoiceRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.create( - is_debug_mode=True, - run_async=True, - model=InvoiceRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[InvoicesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Invoice: - """ - Returns an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InvoicesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Invoice - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.invoices import ( - InvoicesRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.retrieve( - id="id", - expand=InvoicesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> InvoiceResponse: - """ - Updates an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - InvoiceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import InvoiceRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=InvoiceRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.line_items_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Invoice` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Invoice` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.invoices.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/invoices/raw_client.py b/src/merge/resources/accounting/resources/invoices/raw_client.py deleted file mode 100644 index 8fe8ca88..00000000 --- a/src/merge/resources/accounting/resources/invoices/raw_client.py +++ /dev/null @@ -1,1190 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.invoice import Invoice -from ...types.invoice_request import InvoiceRequest -from ...types.invoice_response import InvoiceResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_invoice_list import PaginatedInvoiceList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .types.invoices_list_request_expand import InvoicesListRequestExpand -from .types.invoices_list_request_status import InvoicesListRequestStatus -from .types.invoices_list_request_type import InvoicesListRequestType -from .types.invoices_retrieve_request_expand import InvoicesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawInvoicesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InvoicesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - number: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - status: typing.Optional[InvoicesListRequestStatus] = None, - type: typing.Optional[InvoicesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedInvoiceList]: - """ - Returns a list of `Invoice` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return invoices for this company. - - contact_id : typing.Optional[str] - If provided, will only return invoices for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InvoicesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - number : typing.Optional[str] - If provided, will only return Invoices with this number. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[InvoicesListRequestStatus] - If provided, will only return Invoices with this status. - - * `PAID` - PAID - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `PARTIALLY_PAID` - PARTIALLY_PAID - * `OPEN` - OPEN - * `VOID` - VOID - - type : typing.Optional[InvoicesListRequestType] - If provided, will only return Invoices with this type. - - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedInvoiceList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/invoices", - method="GET", - params={ - "company_id": company_id, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "issue_date_after": serialize_datetime(issue_date_after) if issue_date_after is not None else None, - "issue_date_before": serialize_datetime(issue_date_before) if issue_date_before is not None else None, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "number": number, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedInvoiceList, - construct_type( - type_=PaginatedInvoiceList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[InvoiceResponse]: - """ - Creates an `Invoice` object with the given values. - Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). - - - Parameters - ---------- - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[InvoiceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/invoices", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - InvoiceResponse, - construct_type( - type_=InvoiceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[InvoicesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Invoice]: - """ - Returns an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InvoicesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Invoice] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/invoices/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Invoice, - construct_type( - type_=Invoice, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[InvoiceResponse]: - """ - Updates an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[InvoiceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/invoices/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - InvoiceResponse, - construct_type( - type_=InvoiceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/invoices/line-items/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Invoice` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/invoices/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Invoice` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/invoices/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/invoices/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawInvoicesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InvoicesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - number: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - status: typing.Optional[InvoicesListRequestStatus] = None, - type: typing.Optional[InvoicesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedInvoiceList]: - """ - Returns a list of `Invoice` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return invoices for this company. - - contact_id : typing.Optional[str] - If provided, will only return invoices for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InvoicesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - number : typing.Optional[str] - If provided, will only return Invoices with this number. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[InvoicesListRequestStatus] - If provided, will only return Invoices with this status. - - * `PAID` - PAID - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `PARTIALLY_PAID` - PARTIALLY_PAID - * `OPEN` - OPEN - * `VOID` - VOID - - type : typing.Optional[InvoicesListRequestType] - If provided, will only return Invoices with this type. - - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedInvoiceList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/invoices", - method="GET", - params={ - "company_id": company_id, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "issue_date_after": serialize_datetime(issue_date_after) if issue_date_after is not None else None, - "issue_date_before": serialize_datetime(issue_date_before) if issue_date_before is not None else None, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "number": number, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedInvoiceList, - construct_type( - type_=PaginatedInvoiceList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[InvoiceResponse]: - """ - Creates an `Invoice` object with the given values. - Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). - - - Parameters - ---------- - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[InvoiceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/invoices", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - InvoiceResponse, - construct_type( - type_=InvoiceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[InvoicesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Invoice]: - """ - Returns an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InvoicesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Invoice] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/invoices/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Invoice, - construct_type( - type_=Invoice, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: InvoiceRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[InvoiceResponse]: - """ - Updates an `Invoice` object with the given `id`. - - Parameters - ---------- - id : str - - model : InvoiceRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[InvoiceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/invoices/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - InvoiceResponse, - construct_type( - type_=InvoiceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/invoices/line-items/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Invoice` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/invoices/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Invoice` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/invoices/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/invoices/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/invoices/types/__init__.py b/src/merge/resources/accounting/resources/invoices/types/__init__.py deleted file mode 100644 index 4cfb6508..00000000 --- a/src/merge/resources/accounting/resources/invoices/types/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .invoices_list_request_expand import InvoicesListRequestExpand - from .invoices_list_request_status import InvoicesListRequestStatus - from .invoices_list_request_type import InvoicesListRequestType - from .invoices_retrieve_request_expand import InvoicesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "InvoicesListRequestExpand": ".invoices_list_request_expand", - "InvoicesListRequestStatus": ".invoices_list_request_status", - "InvoicesListRequestType": ".invoices_list_request_type", - "InvoicesRetrieveRequestExpand": ".invoices_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "InvoicesListRequestExpand", - "InvoicesListRequestStatus", - "InvoicesListRequestType", - "InvoicesRetrieveRequestExpand", -] diff --git a/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_expand.py b/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_expand.py deleted file mode 100644 index 3183fdb2..00000000 --- a/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_expand.py +++ /dev/null @@ -1,35091 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InvoicesListRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_PAYMENT_TERM = "accounting_period,payment_term" - APPLIED_CREDIT_NOTES = "applied_credit_notes" - APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "applied_credit_notes,accounting_period" - APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_credit_notes,accounting_period,payment_term" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "applied_credit_notes,applied_vendor_credits" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "applied_credit_notes,applied_vendor_credits,company" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "applied_credit_notes,applied_vendor_credits,contact" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_credit_notes,applied_vendor_credits,employee" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_CREDIT_NOTES_COMPANY = "applied_credit_notes,company" - APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = "applied_credit_notes,company,accounting_period" - APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "applied_credit_notes,company,employee" - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_credit_notes,company,employee,accounting_period" - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_credit_notes,company,employee,payment_term" - APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "applied_credit_notes,company,payment_term" - APPLIED_CREDIT_NOTES_CONTACT = "applied_credit_notes,contact" - APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = "applied_credit_notes,contact,accounting_period" - APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "applied_credit_notes,contact,company" - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_credit_notes,contact,company,accounting_period" - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = "applied_credit_notes,contact,company,employee" - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "applied_credit_notes,contact,company,payment_term" - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "applied_credit_notes,contact,employee" - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_credit_notes,contact,employee,accounting_period" - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_credit_notes,contact,employee,payment_term" - APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "applied_credit_notes,contact,payment_term" - APPLIED_CREDIT_NOTES_EMPLOYEE = "applied_credit_notes,employee" - APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = "applied_credit_notes,employee,accounting_period" - APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "applied_credit_notes,employee,payment_term" - APPLIED_CREDIT_NOTES_PAYMENT_TERM = "applied_credit_notes,payment_term" - APPLIED_PAYMENTS = "applied_payments" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "applied_payments,accounting_period" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,accounting_period,payment_term" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES = "applied_payments,applied_credit_notes" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "applied_payments,applied_credit_notes,accounting_period" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY = "applied_payments,applied_credit_notes,company" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "applied_payments,applied_credit_notes,company,employee" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT = "applied_payments,applied_credit_notes,contact" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "applied_payments,applied_credit_notes,contact,company" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "applied_payments,applied_credit_notes,contact,employee" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE = "applied_payments,applied_credit_notes,employee" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "applied_payments,applied_credit_notes,payment_term" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS = "applied_payments,applied_vendor_credits" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY = "applied_payments,applied_vendor_credits,company" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT = "applied_payments,applied_vendor_credits,contact" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_payments,applied_vendor_credits,contact,company" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_payments,applied_vendor_credits,employee" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "applied_payments,applied_vendor_credits,payment_term" - APPLIED_PAYMENTS_COMPANY = "applied_payments,company" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,company,accounting_period" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,company,accounting_period,payment_term" - APPLIED_PAYMENTS_COMPANY_EMPLOYEE = "applied_payments,company,employee" - APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,company,employee,accounting_period" - APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,company,employee,payment_term" - APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM = "applied_payments,company,payment_term" - APPLIED_PAYMENTS_CONTACT = "applied_payments,contact" - APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,contact,accounting_period" - APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_CONTACT_COMPANY = "applied_payments,contact,company" - APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,contact,company,accounting_period" - APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,contact,company,employee" - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,contact,company,employee,payment_term" - APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,contact,company,payment_term" - APPLIED_PAYMENTS_CONTACT_EMPLOYEE = "applied_payments,contact,employee" - APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,contact,employee,accounting_period" - APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,contact,employee,payment_term" - APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM = "applied_payments,contact,payment_term" - APPLIED_PAYMENTS_EMPLOYEE = "applied_payments,employee" - APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,employee,accounting_period" - APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM = "applied_payments,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS = "applied_payments,line_items" - APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "applied_payments,line_items,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES = "applied_payments,line_items,applied_credit_notes" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS = "applied_payments,line_items,applied_vendor_credits" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "applied_payments,line_items,company" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE = "applied_payments,line_items,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM = "applied_payments,line_items,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "applied_payments,line_items,contact" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "applied_payments,line_items,contact,company" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE = "applied_payments,line_items,contact,employee" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM = "applied_payments,line_items,contact,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE = "applied_payments,line_items,employee" - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM = "applied_payments,line_items,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS = "applied_payments,line_items,purchase_orders" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY = "applied_payments,line_items,purchase_orders,company" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT = "applied_payments,line_items,purchase_orders,contact" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = "applied_payments,line_items,purchase_orders,employee" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "applied_payments,line_items,tracking_categories" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "applied_payments,line_items,tracking_categories,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "applied_payments,line_items,tracking_categories,contact" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = ( - "applied_payments,line_items,tracking_categories,purchase_orders" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - ) - APPLIED_PAYMENTS_PAYMENT_TERM = "applied_payments,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS = "applied_payments,purchase_orders" - APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "applied_payments,purchase_orders,applied_credit_notes" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "applied_payments,purchase_orders,applied_vendor_credits" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY = "applied_payments,purchase_orders,company" - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "applied_payments,purchase_orders,company,employee" - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "applied_payments,purchase_orders,company,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT = "applied_payments,purchase_orders,contact" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY = "applied_payments,purchase_orders,contact,company" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "applied_payments,purchase_orders,contact,employee" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "applied_payments,purchase_orders,contact,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE = "applied_payments,purchase_orders,employee" - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "applied_payments,purchase_orders,employee,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM = "applied_payments,purchase_orders,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES = "applied_payments,tracking_categories" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "applied_payments,tracking_categories,applied_credit_notes" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,tracking_categories,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "applied_payments,tracking_categories,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "applied_payments,tracking_categories,company,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "applied_payments,tracking_categories,contact" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "applied_payments,tracking_categories,contact,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "applied_payments,tracking_categories,contact,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE = "applied_payments,tracking_categories,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM = "applied_payments,tracking_categories,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "applied_payments,tracking_categories,purchase_orders" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,payment_term" - ) - APPLIED_VENDOR_CREDITS = "applied_vendor_credits" - APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "applied_vendor_credits,accounting_period" - APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_vendor_credits,accounting_period,payment_term" - APPLIED_VENDOR_CREDITS_COMPANY = "applied_vendor_credits,company" - APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_vendor_credits,company,accounting_period" - APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "applied_vendor_credits,company,employee" - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_vendor_credits,company,employee,payment_term" - APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_vendor_credits,company,payment_term" - APPLIED_VENDOR_CREDITS_CONTACT = "applied_vendor_credits,contact" - APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_vendor_credits,contact,accounting_period" - APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_vendor_credits,contact,company" - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_vendor_credits,contact,company,employee" - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_vendor_credits,contact,company,payment_term" - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "applied_vendor_credits,contact,employee" - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_vendor_credits,contact,employee,payment_term" - APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_vendor_credits,contact,payment_term" - APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_vendor_credits,employee" - APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_vendor_credits,employee,accounting_period" - APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_vendor_credits,employee,payment_term" - APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "applied_vendor_credits,payment_term" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "company,accounting_period,payment_term" - COMPANY_EMPLOYEE = "company,employee" - COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "company,employee,accounting_period" - COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "company,employee,accounting_period,payment_term" - COMPANY_EMPLOYEE_PAYMENT_TERM = "company,employee,payment_term" - COMPANY_PAYMENT_TERM = "company,payment_term" - CONTACT = "contact" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,accounting_period,payment_term" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,company,accounting_period,payment_term" - CONTACT_COMPANY_EMPLOYEE = "contact,company,employee" - CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "contact,company,employee,accounting_period" - CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,company,employee,accounting_period,payment_term" - CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "contact,company,employee,payment_term" - CONTACT_COMPANY_PAYMENT_TERM = "contact,company,payment_term" - CONTACT_EMPLOYEE = "contact,employee" - CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "contact,employee,accounting_period" - CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,employee,accounting_period,payment_term" - CONTACT_EMPLOYEE_PAYMENT_TERM = "contact,employee,payment_term" - CONTACT_PAYMENT_TERM = "contact,payment_term" - EMPLOYEE = "employee" - EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" - EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "employee,accounting_period,payment_term" - EMPLOYEE_PAYMENT_TERM = "employee,payment_term" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,accounting_period,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES = "line_items,applied_credit_notes" - LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "line_items,applied_credit_notes,accounting_period" - LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "line_items,applied_credit_notes,applied_vendor_credits" - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = "line_items,applied_credit_notes,company" - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "line_items,applied_credit_notes,company,employee" - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "line_items,applied_credit_notes,company,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = "line_items,applied_credit_notes,contact" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "line_items,applied_credit_notes,contact,company" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "line_items,applied_credit_notes,contact,employee" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "line_items,applied_credit_notes,contact,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = "line_items,applied_credit_notes,employee" - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "line_items,applied_credit_notes,employee,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "line_items,applied_credit_notes,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS = "line_items,applied_vendor_credits" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "line_items,applied_vendor_credits,accounting_period" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = "line_items,applied_vendor_credits,company" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "line_items,applied_vendor_credits,company,employee" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "line_items,applied_vendor_credits,company,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = "line_items,applied_vendor_credits,contact" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "line_items,applied_vendor_credits,contact,company" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "line_items,applied_vendor_credits,contact,employee" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "line_items,applied_vendor_credits,contact,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "line_items,applied_vendor_credits,employee" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "line_items,applied_vendor_credits,employee,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "line_items,applied_vendor_credits,payment_term" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,company,accounting_period,payment_term" - LINE_ITEMS_COMPANY_EMPLOYEE = "line_items,company,employee" - LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,company,employee,accounting_period" - LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,company,employee,payment_term" - LINE_ITEMS_COMPANY_PAYMENT_TERM = "line_items,company,payment_term" - LINE_ITEMS_CONTACT = "line_items,contact" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,contact,accounting_period,payment_term" - LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = "line_items,contact,company,employee" - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,contact,company,employee,accounting_period" - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,contact,company,employee,payment_term" - LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = "line_items,contact,company,payment_term" - LINE_ITEMS_CONTACT_EMPLOYEE = "line_items,contact,employee" - LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,contact,employee,accounting_period" - LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = "line_items,contact,employee,payment_term" - LINE_ITEMS_CONTACT_PAYMENT_TERM = "line_items,contact,payment_term" - LINE_ITEMS_EMPLOYEE = "line_items,employee" - LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,employee,accounting_period" - LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,employee,accounting_period,payment_term" - LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = "line_items,employee,payment_term" - LINE_ITEMS_PAYMENT_TERM = "line_items,payment_term" - LINE_ITEMS_PURCHASE_ORDERS = "line_items,purchase_orders" - LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "line_items,purchase_orders,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "line_items,purchase_orders,applied_credit_notes" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = "line_items,purchase_orders,applied_credit_notes,company" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = "line_items,purchase_orders,applied_credit_notes,contact" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "line_items,purchase_orders,applied_credit_notes,contact,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "line_items,purchase_orders,applied_vendor_credits" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,purchase_orders,applied_vendor_credits,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,purchase_orders,applied_vendor_credits,contact" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY = "line_items,purchase_orders,company" - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = "line_items,purchase_orders,company,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "line_items,purchase_orders,company,employee" - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "line_items,purchase_orders,company,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT = "line_items,purchase_orders,contact" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = "line_items,purchase_orders,contact,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = "line_items,purchase_orders,contact,company" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = "line_items,purchase_orders,contact,company,employee" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,contact,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = "line_items,purchase_orders,contact,company,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "line_items,purchase_orders,contact,employee" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "line_items,purchase_orders,contact,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = "line_items,purchase_orders,employee" - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,purchase_orders,employee,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "line_items,purchase_orders,employee,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = "line_items,purchase_orders,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = "line_items,tracking_categories,applied_credit_notes" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "line_items,tracking_categories,applied_credit_notes,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = "line_items,tracking_categories,applied_vendor_credits" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "line_items,tracking_categories,company,employee" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "line_items,tracking_categories,contact,company,employee" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "line_items,tracking_categories,contact,employee" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = "line_items,tracking_categories,contact,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = "line_items,tracking_categories,employee" - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = "line_items,tracking_categories,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "line_items,tracking_categories,purchase_orders" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = "line_items,tracking_categories,purchase_orders,company" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = "line_items,tracking_categories,purchase_orders,contact" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = "line_items,tracking_categories,purchase_orders,employee" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,payment_term" - ) - PAYMENT_TERM = "payment_term" - PAYMENTS = "payments" - PAYMENTS_ACCOUNTING_PERIOD = "payments,accounting_period" - PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,accounting_period,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES = "payments,applied_credit_notes" - PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "payments,applied_credit_notes,accounting_period" - PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "payments,applied_credit_notes,applied_vendor_credits" - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY = "payments,applied_credit_notes,company" - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = "payments,applied_credit_notes,company,accounting_period" - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "payments,applied_credit_notes,company,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "payments,applied_credit_notes,company,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT = "payments,applied_credit_notes,contact" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = "payments,applied_credit_notes,contact,accounting_period" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "payments,applied_credit_notes,contact,company" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = "payments,applied_credit_notes,contact,company,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "payments,applied_credit_notes,contact,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "payments,applied_credit_notes,contact,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,applied_credit_notes,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "payments,applied_credit_notes,employee,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "payments,applied_credit_notes,payment_term" - PAYMENTS_APPLIED_PAYMENTS = "payments,applied_payments" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "payments,applied_payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES = "payments,applied_payments,applied_credit_notes" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY = "payments,applied_payments,applied_credit_notes,company" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT = "payments,applied_payments,applied_credit_notes,contact" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,applied_payments,applied_credit_notes,employee" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS = "payments,applied_payments,applied_vendor_credits" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY = "payments,applied_payments,company" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE = "payments,applied_payments,company,employee" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM = "payments,applied_payments,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_CONTACT = "payments,applied_payments,contact" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY = "payments,applied_payments,contact,company" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE = "payments,applied_payments,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM = "payments,applied_payments,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE = "payments,applied_payments,employee" - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS = "payments,applied_payments,line_items" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "payments,applied_payments,line_items,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "payments,applied_payments,line_items,contact" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,applied_payments,line_items,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE = "payments,applied_payments,line_items,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM = "payments,applied_payments,line_items,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS = "payments,applied_payments,line_items,purchase_orders" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = ( - "payments,applied_payments,line_items,tracking_categories" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PAYMENT_TERM = "payments,applied_payments,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS = "payments,applied_payments,purchase_orders" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY = "payments,applied_payments,purchase_orders,company" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT = "payments,applied_payments,purchase_orders,contact" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE = "payments,applied_payments,purchase_orders,employee" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM = "payments,applied_payments,purchase_orders,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "payments,applied_payments,tracking_categories" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,tracking_categories,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,applied_payments,tracking_categories,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,applied_payments,tracking_categories,contact" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE = "payments,applied_payments,tracking_categories,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS = ( - "payments,applied_payments,tracking_categories,purchase_orders" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS = "payments,applied_vendor_credits" - PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY = "payments,applied_vendor_credits,company" - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT = "payments,applied_vendor_credits,contact" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,applied_vendor_credits,employee" - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_vendor_credits,payment_term" - PAYMENTS_COMPANY = "payments,company" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,company,accounting_period" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,company,accounting_period,payment_term" - PAYMENTS_COMPANY_EMPLOYEE = "payments,company,employee" - PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,company,employee,accounting_period" - PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,company,employee,accounting_period,payment_term" - ) - PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,company,employee,payment_term" - PAYMENTS_COMPANY_PAYMENT_TERM = "payments,company,payment_term" - PAYMENTS_CONTACT = "payments,contact" - PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,contact,accounting_period" - PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,contact,accounting_period,payment_term" - PAYMENTS_CONTACT_COMPANY = "payments,contact,company" - PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,contact,company,accounting_period" - PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,contact,company,accounting_period,payment_term" - PAYMENTS_CONTACT_COMPANY_EMPLOYEE = "payments,contact,company,employee" - PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,contact,company,employee,accounting_period" - PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,contact,company,employee,payment_term" - PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM = "payments,contact,company,payment_term" - PAYMENTS_CONTACT_EMPLOYEE = "payments,contact,employee" - PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,contact,employee,accounting_period" - PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,contact,employee,payment_term" - PAYMENTS_CONTACT_PAYMENT_TERM = "payments,contact,payment_term" - PAYMENTS_EMPLOYEE = "payments,employee" - PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,employee,accounting_period" - PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,employee,accounting_period,payment_term" - PAYMENTS_EMPLOYEE_PAYMENT_TERM = "payments,employee,payment_term" - PAYMENTS_LINE_ITEMS = "payments,line_items" - PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,line_items,accounting_period" - PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES = "payments,line_items,applied_credit_notes" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = "payments,line_items,applied_credit_notes,company" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = "payments,line_items,applied_credit_notes,contact" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,line_items,applied_credit_notes,employee" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "payments,line_items,applied_credit_notes,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS = "payments,line_items,applied_vendor_credits" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = "payments,line_items,applied_vendor_credits,company" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = "payments,line_items,applied_vendor_credits,contact" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,line_items,applied_vendor_credits,employee" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,line_items,applied_vendor_credits,payment_term" - PAYMENTS_LINE_ITEMS_COMPANY = "payments,line_items,company" - PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,company,accounting_period" - PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE = "payments,line_items,company,employee" - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM = "payments,line_items,company,payment_term" - PAYMENTS_LINE_ITEMS_CONTACT = "payments,line_items,contact" - PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "payments,line_items,contact,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,line_items,contact,company" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = "payments,line_items,contact,company,employee" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = "payments,line_items,contact,company,payment_term" - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE = "payments,line_items,contact,employee" - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,line_items,contact,employee,payment_term" - PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM = "payments,line_items,contact,payment_term" - PAYMENTS_LINE_ITEMS_EMPLOYEE = "payments,line_items,employee" - PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,employee,accounting_period" - PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = "payments,line_items,employee,payment_term" - PAYMENTS_LINE_ITEMS_PAYMENT_TERM = "payments,line_items,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS = "payments,line_items,purchase_orders" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,line_items,purchase_orders,applied_credit_notes" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY = "payments,line_items,purchase_orders,company" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "payments,line_items,purchase_orders,company,employee" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT = "payments,line_items,purchase_orders,contact" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = "payments,line_items,purchase_orders,contact,company" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "payments,line_items,purchase_orders,contact,employee" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = "payments,line_items,purchase_orders,employee" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = "payments,line_items,purchase_orders,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "payments,line_items,tracking_categories" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "payments,line_items,tracking_categories,applied_credit_notes" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "payments,line_items,tracking_categories,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "payments,line_items,tracking_categories,contact" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,line_items,tracking_categories,contact,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = "payments,line_items,tracking_categories,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = "payments,line_items,tracking_categories,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "payments,line_items,tracking_categories,purchase_orders" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,payment_term" - ) - PAYMENTS_PAYMENT_TERM = "payments,payment_term" - PAYMENTS_PURCHASE_ORDERS = "payments,purchase_orders" - PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "payments,purchase_orders,accounting_period" - PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "payments,purchase_orders,applied_credit_notes" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = "payments,purchase_orders,applied_credit_notes,company" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = "payments,purchase_orders,applied_credit_notes,contact" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,purchase_orders,applied_credit_notes,employee" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "payments,purchase_orders,applied_vendor_credits" - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = "payments,purchase_orders,applied_vendor_credits,company" - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = "payments,purchase_orders,applied_vendor_credits,contact" - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY = "payments,purchase_orders,company" - PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = "payments,purchase_orders,company,accounting_period" - PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "payments,purchase_orders,company,employee" - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,purchase_orders,company,employee,payment_term" - PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "payments,purchase_orders,company,payment_term" - PAYMENTS_PURCHASE_ORDERS_CONTACT = "payments,purchase_orders,contact" - PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = "payments,purchase_orders,contact,accounting_period" - PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY = "payments,purchase_orders,contact,company" - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = "payments,purchase_orders,contact,company,employee" - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = "payments,purchase_orders,contact,company,payment_term" - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "payments,purchase_orders,contact,employee" - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,purchase_orders,contact,employee,payment_term" - PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "payments,purchase_orders,contact,payment_term" - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE = "payments,purchase_orders,employee" - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,purchase_orders,employee,accounting_period" - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "payments,purchase_orders,employee,payment_term" - PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM = "payments,purchase_orders,payment_term" - PAYMENTS_TRACKING_CATEGORIES = "payments,tracking_categories" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "payments,tracking_categories,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = "payments,tracking_categories,applied_credit_notes" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = "payments,tracking_categories,applied_vendor_credits" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,tracking_categories,company" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "payments,tracking_categories,company,employee" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "payments,tracking_categories,company,payment_term" - PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,tracking_categories,contact" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "payments,tracking_categories,contact,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,tracking_categories,contact,company" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "payments,tracking_categories,contact,company,employee" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "payments,tracking_categories,contact,employee" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = "payments,tracking_categories,contact,payment_term" - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE = "payments,tracking_categories,employee" - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM = "payments,tracking_categories,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "payments,tracking_categories,purchase_orders" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = "payments,tracking_categories,purchase_orders,company" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = "payments,tracking_categories,purchase_orders,contact" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = "payments,tracking_categories,purchase_orders,employee" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,payment_term" - ) - PURCHASE_ORDERS = "purchase_orders" - PURCHASE_ORDERS_ACCOUNTING_PERIOD = "purchase_orders,accounting_period" - PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,accounting_period,payment_term" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "purchase_orders,applied_credit_notes" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "purchase_orders,applied_credit_notes,accounting_period" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = "purchase_orders,applied_credit_notes,company" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "purchase_orders,applied_credit_notes,company,employee" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = "purchase_orders,applied_credit_notes,contact" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "purchase_orders,applied_credit_notes,contact,company" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,contact,company,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "purchase_orders,applied_credit_notes,contact,employee" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = "purchase_orders,applied_credit_notes,employee" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "purchase_orders,applied_credit_notes,payment_term" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "purchase_orders,applied_vendor_credits" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = "purchase_orders,applied_vendor_credits,company" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "purchase_orders,applied_vendor_credits,company,employee" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = "purchase_orders,applied_vendor_credits,contact" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "purchase_orders,applied_vendor_credits,contact,company" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "purchase_orders,applied_vendor_credits,contact,employee" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "purchase_orders,applied_vendor_credits,employee" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "purchase_orders,applied_vendor_credits,payment_term" - PURCHASE_ORDERS_COMPANY = "purchase_orders,company" - PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = "purchase_orders,company,accounting_period" - PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,company,accounting_period,payment_term" - PURCHASE_ORDERS_COMPANY_EMPLOYEE = "purchase_orders,company,employee" - PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "purchase_orders,company,employee,accounting_period" - PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = "purchase_orders,company,employee,payment_term" - PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "purchase_orders,company,payment_term" - PURCHASE_ORDERS_CONTACT = "purchase_orders,contact" - PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = "purchase_orders,contact,accounting_period" - PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,contact,accounting_period,payment_term" - PURCHASE_ORDERS_CONTACT_COMPANY = "purchase_orders,contact,company" - PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "purchase_orders,contact,company,accounting_period" - PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = "purchase_orders,contact,company,employee" - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "purchase_orders,contact,company,employee,payment_term" - PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = "purchase_orders,contact,company,payment_term" - PURCHASE_ORDERS_CONTACT_EMPLOYEE = "purchase_orders,contact,employee" - PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "purchase_orders,contact,employee,accounting_period" - PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = "purchase_orders,contact,employee,payment_term" - PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "purchase_orders,contact,payment_term" - PURCHASE_ORDERS_EMPLOYEE = "purchase_orders,employee" - PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = "purchase_orders,employee,accounting_period" - PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,employee,accounting_period,payment_term" - PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "purchase_orders,employee,payment_term" - PURCHASE_ORDERS_PAYMENT_TERM = "purchase_orders,payment_term" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = "tracking_categories,applied_credit_notes" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = "tracking_categories,applied_credit_notes,company" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = "tracking_categories,applied_credit_notes,contact" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "tracking_categories,applied_credit_notes,contact,company" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,contact,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,contact,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = "tracking_categories,applied_credit_notes,employee" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "tracking_categories,applied_credit_notes,payment_term" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = "tracking_categories,applied_vendor_credits" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = "tracking_categories,applied_vendor_credits,company" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = "tracking_categories,applied_vendor_credits,contact" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "tracking_categories,applied_vendor_credits,employee" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "tracking_categories,applied_vendor_credits,payment_term" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "tracking_categories,company,employee" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,company,employee,accounting_period" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = "tracking_categories,company,employee,payment_term" - TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "tracking_categories,company,payment_term" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "tracking_categories,contact,company,employee" - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = "tracking_categories,contact,company,payment_term" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "tracking_categories,contact,employee" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,contact,employee,accounting_period" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = "tracking_categories,contact,employee,payment_term" - TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = "tracking_categories,contact,payment_term" - TRACKING_CATEGORIES_EMPLOYEE = "tracking_categories,employee" - TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,employee,accounting_period" - TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = "tracking_categories,employee,payment_term" - TRACKING_CATEGORIES_PAYMENT_TERM = "tracking_categories,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS = "tracking_categories,purchase_orders" - TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "tracking_categories,purchase_orders,applied_credit_notes" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "tracking_categories,purchase_orders,applied_vendor_credits" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = "tracking_categories,purchase_orders,company" - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "tracking_categories,purchase_orders,company,employee" - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = "tracking_categories,purchase_orders,contact" - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = "tracking_categories,purchase_orders,contact,company" - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "tracking_categories,purchase_orders,contact,employee" - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = "tracking_categories,purchase_orders,employee" - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = "tracking_categories,purchase_orders,payment_term" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes: typing.Callable[[], T_Result], - applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company: typing.Callable[[], T_Result], - applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments: typing.Callable[[], T_Result], - applied_payments_accounting_period: typing.Callable[[], T_Result], - applied_payments_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_company: typing.Callable[[], T_Result], - applied_payments_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_company_employee: typing.Callable[[], T_Result], - applied_payments_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_company_payment_term: typing.Callable[[], T_Result], - applied_payments_contact: typing.Callable[[], T_Result], - applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company: typing.Callable[[], T_Result], - applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_employee: typing.Callable[[], T_Result], - applied_payments_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_employee: typing.Callable[[], T_Result], - applied_payments_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items: typing.Callable[[], T_Result], - applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company: typing.Callable[[], T_Result], - applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact: typing.Callable[[], T_Result], - applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_employee: typing.Callable[[], T_Result], - applied_payments_line_items_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_payments_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders: typing.Callable[[], T_Result], - applied_payments_purchase_orders_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits: typing.Callable[[], T_Result], - applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_accounting_period_payment_term: typing.Callable[[], T_Result], - company_employee: typing.Callable[[], T_Result], - company_employee_accounting_period: typing.Callable[[], T_Result], - company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - company_employee_payment_term: typing.Callable[[], T_Result], - company_payment_term: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_company_employee: typing.Callable[[], T_Result], - contact_company_employee_accounting_period: typing.Callable[[], T_Result], - contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_company_employee_payment_term: typing.Callable[[], T_Result], - contact_company_payment_term: typing.Callable[[], T_Result], - contact_employee: typing.Callable[[], T_Result], - contact_employee_accounting_period: typing.Callable[[], T_Result], - contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_employee_payment_term: typing.Callable[[], T_Result], - contact_payment_term: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_accounting_period: typing.Callable[[], T_Result], - employee_accounting_period_payment_term: typing.Callable[[], T_Result], - employee_payment_term: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes: typing.Callable[[], T_Result], - line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company_employee: typing.Callable[[], T_Result], - line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_company_payment_term: typing.Callable[[], T_Result], - line_items_contact: typing.Callable[[], T_Result], - line_items_contact_accounting_period: typing.Callable[[], T_Result], - line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_company: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_company_employee: typing.Callable[[], T_Result], - line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_contact_employee: typing.Callable[[], T_Result], - line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_contact_payment_term: typing.Callable[[], T_Result], - line_items_employee: typing.Callable[[], T_Result], - line_items_employee_accounting_period: typing.Callable[[], T_Result], - line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_employee_payment_term: typing.Callable[[], T_Result], - line_items_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders: typing.Callable[[], T_Result], - line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company: typing.Callable[[], T_Result], - line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - payment_term: typing.Callable[[], T_Result], - payments: typing.Callable[[], T_Result], - payments_accounting_period: typing.Callable[[], T_Result], - payments_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact: typing.Callable[[], T_Result], - payments_applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_employee: typing.Callable[[], T_Result], - payments_applied_payments_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items: typing.Callable[[], T_Result], - payments_applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_company: typing.Callable[[], T_Result], - payments_company_accounting_period: typing.Callable[[], T_Result], - payments_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_company_employee: typing.Callable[[], T_Result], - payments_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_company_employee_payment_term: typing.Callable[[], T_Result], - payments_company_payment_term: typing.Callable[[], T_Result], - payments_contact: typing.Callable[[], T_Result], - payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_company: typing.Callable[[], T_Result], - payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_company_employee: typing.Callable[[], T_Result], - payments_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_contact_company_payment_term: typing.Callable[[], T_Result], - payments_contact_employee: typing.Callable[[], T_Result], - payments_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_contact_payment_term: typing.Callable[[], T_Result], - payments_employee: typing.Callable[[], T_Result], - payments_employee_accounting_period: typing.Callable[[], T_Result], - payments_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items: typing.Callable[[], T_Result], - payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_company: typing.Callable[[], T_Result], - payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_company_employee: typing.Callable[[], T_Result], - payments_line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact: typing.Callable[[], T_Result], - payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_employee: typing.Callable[[], T_Result], - payments_line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_employee: typing.Callable[[], T_Result], - payments_line_items_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders: typing.Callable[[], T_Result], - payments_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company: typing.Callable[[], T_Result], - payments_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact: typing.Callable[[], T_Result], - payments_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_employee: typing.Callable[[], T_Result], - payments_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_employee: typing.Callable[[], T_Result], - payments_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - purchase_orders: typing.Callable[[], T_Result], - purchase_orders_accounting_period: typing.Callable[[], T_Result], - purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - purchase_orders_company: typing.Callable[[], T_Result], - purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_company_employee: typing.Callable[[], T_Result], - purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact: typing.Callable[[], T_Result], - purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company: typing.Callable[[], T_Result], - purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_employee: typing.Callable[[], T_Result], - purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_employee: typing.Callable[[], T_Result], - purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_payment_term: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_employee: typing.Callable[[], T_Result], - tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_employee: typing.Callable[[], T_Result], - tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_employee: typing.Callable[[], T_Result], - tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - ) -> T_Result: - if self is InvoicesListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is InvoicesListRequestExpand.ACCOUNTING_PERIOD_PAYMENT_TERM: - return accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES: - return applied_credit_notes() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return applied_credit_notes_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return applied_credit_notes_applied_vendor_credits() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_credit_notes_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_credit_notes_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY: - return applied_credit_notes_company() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return applied_credit_notes_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_credit_notes_company_employee() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_company_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT: - return applied_credit_notes_contact() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_credit_notes_contact_company() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return applied_credit_notes_contact_company_employee() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_credit_notes_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_credit_notes_employee() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS: - return applied_payments() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return applied_payments_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES: - return applied_payments_applied_credit_notes() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return applied_payments_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_applied_credit_notes_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_payments_applied_credit_notes_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return applied_payments_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_payments_applied_credit_notes_contact_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_payments_applied_credit_notes_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return applied_payments_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS: - return applied_payments_applied_vendor_credits() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_payments_applied_vendor_credits_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_payments_applied_vendor_credits_contact_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_payments_applied_vendor_credits_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY: - return applied_payments_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE: - return applied_payments_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_company_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM: - return applied_payments_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT: - return applied_payments_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_contact_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY: - return applied_payments_contact_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_contact_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_contact_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_contact_company_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE: - return applied_payments_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM: - return applied_payments_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_EMPLOYEE: - return applied_payments_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS: - return applied_payments_line_items() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return applied_payments_line_items_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES: - return applied_payments_line_items_applied_credit_notes() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return applied_payments_line_items_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_line_items_applied_credit_notes_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_payments_line_items_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_line_items_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_payments_line_items_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_line_items_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_payments_line_items_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_line_items_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return applied_payments_line_items_applied_vendor_credits() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_payments_line_items_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_line_items_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_payments_line_items_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_line_items_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_payments_line_items_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_payments_line_items_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_line_items_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_line_items_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return applied_payments_line_items_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE: - return applied_payments_line_items_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return applied_payments_line_items_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return applied_payments_line_items_contact_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_line_items_contact_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE: - return applied_payments_line_items_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE: - return applied_payments_line_items_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM: - return applied_payments_line_items_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS: - return applied_payments_line_items_purchase_orders() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return applied_payments_line_items_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return ( - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - ) - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_line_items_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return applied_payments_line_items_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return applied_payments_line_items_purchase_orders_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return applied_payments_line_items_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return applied_payments_line_items_purchase_orders_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return applied_payments_line_items_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_line_items_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return applied_payments_line_items_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return applied_payments_line_items_purchase_orders_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return applied_payments_line_items_tracking_categories() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_line_items_tracking_categories_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return applied_payments_line_items_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return ( - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return applied_payments_line_items_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_line_items_tracking_categories_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_tracking_categories_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return applied_payments_line_items_tracking_categories_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_line_items_tracking_categories_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_line_items_tracking_categories_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return applied_payments_line_items_tracking_categories_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return applied_payments_line_items_tracking_categories_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return applied_payments_line_items_tracking_categories_purchase_orders() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return applied_payments_line_items_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return applied_payments_line_items_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return applied_payments_line_items_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PAYMENT_TERM: - return applied_payments_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS: - return applied_payments_purchase_orders() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return applied_payments_purchase_orders_applied_credit_notes() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_payments_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return applied_payments_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_payments_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_payments_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return applied_payments_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return applied_payments_purchase_orders_applied_vendor_credits() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_payments_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_payments_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY: - return applied_payments_purchase_orders_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return applied_payments_purchase_orders_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return applied_payments_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT: - return applied_payments_purchase_orders_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_contact_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY: - return applied_payments_purchase_orders_contact_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return applied_payments_purchase_orders_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE: - return applied_payments_purchase_orders_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM: - return applied_payments_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return applied_payments_tracking_categories() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_tracking_categories_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return applied_payments_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_payments_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_payments_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_payments_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return applied_payments_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_tracking_categories_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return applied_payments_tracking_categories_company_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return applied_payments_tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_tracking_categories_contact() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_tracking_categories_contact_company() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_tracking_categories_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return applied_payments_tracking_categories_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return applied_payments_tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE: - return applied_payments_tracking_categories_employee() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM: - return applied_payments_tracking_categories_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return applied_payments_tracking_categories_purchase_orders() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return applied_payments_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return applied_payments_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return applied_payments_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return applied_payments_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return applied_payments_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return applied_payments_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return applied_payments_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return applied_payments_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return applied_payments_tracking_categories_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS: - return applied_vendor_credits() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY: - return applied_vendor_credits_company() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return applied_vendor_credits_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_vendor_credits_company_employee() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_company_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT: - return applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_vendor_credits_contact_company() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_company_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return applied_vendor_credits_contact_company_employee() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_vendor_credits_contact_employee() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_employee_accounting_period() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.COMPANY: - return company() - if self is InvoicesListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is InvoicesListRequestExpand.COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.COMPANY_EMPLOYEE: - return company_employee() - if self is InvoicesListRequestExpand.COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return company_employee_accounting_period() - if self is InvoicesListRequestExpand.COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.COMPANY_EMPLOYEE_PAYMENT_TERM: - return company_employee_payment_term() - if self is InvoicesListRequestExpand.COMPANY_PAYMENT_TERM: - return company_payment_term() - if self is InvoicesListRequestExpand.CONTACT: - return contact() - if self is InvoicesListRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is InvoicesListRequestExpand.CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is InvoicesListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is InvoicesListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.CONTACT_COMPANY_EMPLOYEE: - return contact_company_employee() - if self is InvoicesListRequestExpand.CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_company_employee_accounting_period() - if self is InvoicesListRequestExpand.CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.CONTACT_COMPANY_PAYMENT_TERM: - return contact_company_payment_term() - if self is InvoicesListRequestExpand.CONTACT_EMPLOYEE: - return contact_employee() - if self is InvoicesListRequestExpand.CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_employee_accounting_period() - if self is InvoicesListRequestExpand.CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.CONTACT_EMPLOYEE_PAYMENT_TERM: - return contact_employee_payment_term() - if self is InvoicesListRequestExpand.CONTACT_PAYMENT_TERM: - return contact_payment_term() - if self is InvoicesListRequestExpand.EMPLOYEE: - return employee() - if self is InvoicesListRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD: - return employee_accounting_period() - if self is InvoicesListRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.EMPLOYEE_PAYMENT_TERM: - return employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS: - return line_items() - if self is InvoicesListRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES: - return line_items_applied_credit_notes() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return line_items_applied_credit_notes_applied_vendor_credits() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return line_items_applied_credit_notes_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_company_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return line_items_applied_credit_notes_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return line_items_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return line_items_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_contact_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return line_items_applied_credit_notes_contact_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return line_items_applied_credit_notes_contact_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return line_items_applied_credit_notes_contact_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return line_items_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return line_items_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return line_items_applied_vendor_credits() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_company_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return line_items_applied_vendor_credits_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_contact_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_applied_vendor_credits_contact_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return line_items_applied_vendor_credits_contact_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE: - return line_items_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_company_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_COMPANY_PAYMENT_TERM: - return line_items_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT: - return line_items_contact() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return line_items_contact_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY: - return line_items_contact_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_company_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return line_items_contact_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_contact_company_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE: - return line_items_contact_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_CONTACT_PAYMENT_TERM: - return line_items_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_EMPLOYEE: - return line_items_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return line_items_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PAYMENT_TERM: - return line_items_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS: - return line_items_purchase_orders() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return line_items_purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return line_items_purchase_orders_applied_credit_notes() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return line_items_purchase_orders_applied_credit_notes_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return line_items_purchase_orders_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return line_items_purchase_orders_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return line_items_purchase_orders_applied_vendor_credits() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return line_items_purchase_orders_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return line_items_purchase_orders_company_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return line_items_purchase_orders_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_company_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return line_items_purchase_orders_contact() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return line_items_purchase_orders_contact_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_company_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return line_items_purchase_orders_contact_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return line_items_purchase_orders_contact_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return line_items_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return line_items_purchase_orders_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return line_items_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return line_items_tracking_categories_applied_credit_notes() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return line_items_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return line_items_tracking_categories_applied_vendor_credits() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return line_items_tracking_categories_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return line_items_tracking_categories_contact() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return line_items_tracking_categories_contact_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return line_items_tracking_categories_contact_company_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return line_items_tracking_categories_contact_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return line_items_tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return line_items_tracking_categories_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_employee_accounting_period() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return line_items_tracking_categories_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return line_items_tracking_categories_purchase_orders() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return line_items_tracking_categories_purchase_orders_company() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return line_items_tracking_categories_purchase_orders_contact() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return line_items_tracking_categories_purchase_orders_employee() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENT_TERM: - return payment_term() - if self is InvoicesListRequestExpand.PAYMENTS: - return payments() - if self is InvoicesListRequestExpand.PAYMENTS_ACCOUNTING_PERIOD: - return payments_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES: - return payments_applied_credit_notes() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_applied_credit_notes_applied_vendor_credits() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_credit_notes_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_applied_credit_notes_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_applied_credit_notes_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_credit_notes_contact_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_applied_credit_notes_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS: - return payments_applied_payments() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return payments_applied_payments_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES: - return payments_applied_payments_applied_credit_notes() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_payments_applied_credit_notes_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_applied_payments_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_payments_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_applied_payments_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_applied_payments_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_applied_payments_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_applied_vendor_credits() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_payments_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_applied_payments_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_payments_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_applied_payments_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_applied_payments_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_payments_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return payments_applied_payments_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE: - return payments_applied_payments_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_company_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT: - return payments_applied_payments_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY: - return payments_applied_payments_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_contact_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_payments_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE: - return payments_applied_payments_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE: - return payments_applied_payments_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS: - return payments_applied_payments_line_items() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_line_items_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES: - return payments_applied_payments_line_items_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_payments_line_items_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_payments_line_items_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_applied_payments_line_items_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_applied_payments_line_items_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_applied_payments_line_items_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_applied_payments_line_items_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_line_items_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_payments_line_items_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_payments_line_items_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_payments_line_items_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_applied_payments_line_items_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return payments_applied_payments_line_items_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_line_items_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return payments_applied_payments_line_items_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_applied_payments_line_items_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_payments_line_items_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE: - return payments_applied_payments_line_items_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_line_items_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE: - return payments_applied_payments_line_items_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM: - return payments_applied_payments_line_items_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS: - return payments_applied_payments_line_items_purchase_orders() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return payments_applied_payments_line_items_purchase_orders_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_line_items_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return payments_applied_payments_line_items_purchase_orders_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_applied_payments_line_items_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_applied_payments_line_items_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_line_items_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return payments_applied_payments_line_items_purchase_orders_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_applied_payments_line_items_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_applied_payments_line_items_tracking_categories() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_tracking_categories_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_line_items_tracking_categories_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_tracking_categories_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_line_items_tracking_categories_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return payments_applied_payments_line_items_tracking_categories_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_applied_payments_line_items_tracking_categories_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_applied_payments_line_items_tracking_categories_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return payments_applied_payments_line_items_tracking_categories_purchase_orders() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PAYMENT_TERM: - return payments_applied_payments_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS: - return payments_applied_payments_purchase_orders() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_applied_payments_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_payments_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_payments_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_applied_payments_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_payments_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY: - return payments_applied_payments_purchase_orders_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_applied_payments_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT: - return payments_applied_payments_purchase_orders_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_applied_payments_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_applied_payments_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE: - return payments_applied_payments_purchase_orders_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return payments_applied_payments_tracking_categories() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return payments_applied_payments_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - ) - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_payments_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_payments_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_tracking_categories_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return payments_applied_payments_tracking_categories_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_tracking_categories_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_applied_payments_tracking_categories_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_tracking_categories_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return payments_applied_payments_tracking_categories_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_applied_payments_tracking_categories_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return payments_applied_payments_tracking_categories_purchase_orders() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return payments_applied_payments_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return payments_applied_payments_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return payments_applied_payments_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS: - return payments_applied_vendor_credits() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_applied_vendor_credits_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_applied_vendor_credits_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_vendor_credits_contact_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_applied_vendor_credits_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY: - return payments_company() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY_EMPLOYEE: - return payments_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_company_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_COMPANY_PAYMENT_TERM: - return payments_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT: - return payments_contact() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY: - return payments_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_contact_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE: - return payments_contact_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_contact_company_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_EMPLOYEE: - return payments_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_CONTACT_PAYMENT_TERM: - return payments_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_EMPLOYEE: - return payments_employee() - if self is InvoicesListRequestExpand.PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_EMPLOYEE_PAYMENT_TERM: - return payments_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS: - return payments_line_items() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_line_items_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES: - return payments_line_items_applied_credit_notes() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_line_items_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_line_items_applied_credit_notes_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_line_items_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_line_items_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_line_items_applied_credit_notes_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_line_items_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_line_items_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return payments_line_items_applied_vendor_credits() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_line_items_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_line_items_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_line_items_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_line_items_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_line_items_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_line_items_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY: - return payments_line_items_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE: - return payments_line_items_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_company_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM: - return payments_line_items_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT: - return payments_line_items_contact() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_line_items_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_contact_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_contact_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE: - return payments_line_items_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM: - return payments_line_items_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE: - return payments_line_items_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PAYMENT_TERM: - return payments_line_items_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS: - return payments_line_items_purchase_orders() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_line_items_purchase_orders_applied_credit_notes() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_line_items_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_line_items_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_line_items_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_line_items_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_line_items_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return payments_line_items_purchase_orders_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_line_items_purchase_orders_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_line_items_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return payments_line_items_purchase_orders_contact() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_line_items_purchase_orders_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_line_items_purchase_orders_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return payments_line_items_purchase_orders_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_line_items_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_line_items_tracking_categories() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_tracking_categories_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return payments_line_items_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return payments_line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return payments_line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_line_items_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return payments_line_items_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_line_items_tracking_categories_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return payments_line_items_tracking_categories_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_tracking_categories_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return payments_line_items_tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_line_items_tracking_categories_contact() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_line_items_tracking_categories_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_tracking_categories_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return payments_line_items_tracking_categories_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_tracking_categories_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return payments_line_items_tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_line_items_tracking_categories_employee() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_line_items_tracking_categories_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return payments_line_items_tracking_categories_purchase_orders() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return payments_line_items_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return payments_line_items_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return payments_line_items_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PAYMENT_TERM: - return payments_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS: - return payments_purchase_orders() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_purchase_orders_applied_credit_notes() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_purchase_orders_applied_credit_notes_company() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_purchase_orders_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_purchase_orders_applied_vendor_credits() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_purchase_orders_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_purchase_orders_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return payments_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_purchase_orders_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY: - return payments_purchase_orders_company() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_purchase_orders_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_purchase_orders_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_company_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT: - return payments_purchase_orders_contact() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_purchase_orders_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_purchase_orders_contact_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_purchase_orders_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE: - return payments_purchase_orders_employee() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES: - return payments_tracking_categories() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_tracking_categories_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return payments_tracking_categories_applied_credit_notes() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return payments_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return payments_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return payments_tracking_categories_applied_vendor_credits() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_tracking_categories_company() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return payments_tracking_categories_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_tracking_categories_contact() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_tracking_categories_contact_company() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return payments_tracking_categories_contact_company_employee() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return payments_tracking_categories_contact_employee() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return payments_tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_tracking_categories_employee() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_employee_accounting_period() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_tracking_categories_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return payments_tracking_categories_purchase_orders() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return ( - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - ) - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return payments_tracking_categories_purchase_orders_company() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return payments_tracking_categories_purchase_orders_contact() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return payments_tracking_categories_purchase_orders_employee() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS: - return purchase_orders() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return purchase_orders_applied_credit_notes() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return purchase_orders_applied_credit_notes_company() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return purchase_orders_applied_credit_notes_company_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return purchase_orders_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return purchase_orders_applied_credit_notes_contact_company() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return purchase_orders_applied_credit_notes_contact_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return purchase_orders_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return purchase_orders_applied_vendor_credits() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return purchase_orders_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return purchase_orders_applied_vendor_credits_company_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return purchase_orders_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return purchase_orders_applied_vendor_credits_contact_company() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return purchase_orders_applied_vendor_credits_contact_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return purchase_orders_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY: - return purchase_orders_company() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_company_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return purchase_orders_company_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_company_employee_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT: - return purchase_orders_contact() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return purchase_orders_contact_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY: - return purchase_orders_contact_company() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_contact_company_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return purchase_orders_contact_company_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_contact_company_employee_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return purchase_orders_contact_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_EMPLOYEE: - return purchase_orders_employee() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_employee_accounting_period() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.PURCHASE_ORDERS_PAYMENT_TERM: - return purchase_orders_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return tracking_categories_applied_credit_notes() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return tracking_categories_applied_credit_notes_company() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return tracking_categories_applied_credit_notes_contact() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return tracking_categories_applied_credit_notes_contact_company() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return tracking_categories_applied_credit_notes_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return tracking_categories_applied_vendor_credits() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return tracking_categories_applied_vendor_credits_company() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return tracking_categories_applied_vendor_credits_contact() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return tracking_categories_applied_vendor_credits_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return tracking_categories_company_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_company_employee_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return tracking_categories_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_contact_company_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return tracking_categories_contact_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return tracking_categories_contact_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_employee_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_contact_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return tracking_categories_contact_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_EMPLOYEE: - return tracking_categories_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_employee_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PAYMENT_TERM: - return tracking_categories_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS: - return tracking_categories_purchase_orders() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_purchase_orders_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return tracking_categories_purchase_orders_applied_credit_notes() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return tracking_categories_purchase_orders_company() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_company_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return tracking_categories_purchase_orders_company_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_purchase_orders_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return tracking_categories_purchase_orders_contact() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_contact_accounting_period() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return tracking_categories_purchase_orders_contact_company() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return tracking_categories_purchase_orders_contact_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return tracking_categories_purchase_orders_employee() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesListRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return tracking_categories_purchase_orders_payment_term() diff --git a/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_status.py b/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_status.py deleted file mode 100644 index c4f5a109..00000000 --- a/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_status.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InvoicesListRequestStatus(str, enum.Enum): - DRAFT = "DRAFT" - OPEN = "OPEN" - PAID = "PAID" - PARTIALLY_PAID = "PARTIALLY_PAID" - SUBMITTED = "SUBMITTED" - VOID = "VOID" - - def visit( - self, - draft: typing.Callable[[], T_Result], - open: typing.Callable[[], T_Result], - paid: typing.Callable[[], T_Result], - partially_paid: typing.Callable[[], T_Result], - submitted: typing.Callable[[], T_Result], - void: typing.Callable[[], T_Result], - ) -> T_Result: - if self is InvoicesListRequestStatus.DRAFT: - return draft() - if self is InvoicesListRequestStatus.OPEN: - return open() - if self is InvoicesListRequestStatus.PAID: - return paid() - if self is InvoicesListRequestStatus.PARTIALLY_PAID: - return partially_paid() - if self is InvoicesListRequestStatus.SUBMITTED: - return submitted() - if self is InvoicesListRequestStatus.VOID: - return void() diff --git a/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_type.py b/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_type.py deleted file mode 100644 index 549c7844..00000000 --- a/src/merge/resources/accounting/resources/invoices/types/invoices_list_request_type.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InvoicesListRequestType(str, enum.Enum): - ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE" - ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE" - - def visit( - self, accounts_payable: typing.Callable[[], T_Result], accounts_receivable: typing.Callable[[], T_Result] - ) -> T_Result: - if self is InvoicesListRequestType.ACCOUNTS_PAYABLE: - return accounts_payable() - if self is InvoicesListRequestType.ACCOUNTS_RECEIVABLE: - return accounts_receivable() diff --git a/src/merge/resources/accounting/resources/invoices/types/invoices_retrieve_request_expand.py b/src/merge/resources/accounting/resources/invoices/types/invoices_retrieve_request_expand.py deleted file mode 100644 index 94eda58f..00000000 --- a/src/merge/resources/accounting/resources/invoices/types/invoices_retrieve_request_expand.py +++ /dev/null @@ -1,35724 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InvoicesRetrieveRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_PAYMENT_TERM = "accounting_period,payment_term" - APPLIED_CREDIT_NOTES = "applied_credit_notes" - APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "applied_credit_notes,accounting_period" - APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_credit_notes,accounting_period,payment_term" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "applied_credit_notes,applied_vendor_credits" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "applied_credit_notes,applied_vendor_credits,company" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "applied_credit_notes,applied_vendor_credits,contact" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_credit_notes,applied_vendor_credits,employee" - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_CREDIT_NOTES_COMPANY = "applied_credit_notes,company" - APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = "applied_credit_notes,company,accounting_period" - APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "applied_credit_notes,company,employee" - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_credit_notes,company,employee,accounting_period" - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_credit_notes,company,employee,payment_term" - APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "applied_credit_notes,company,payment_term" - APPLIED_CREDIT_NOTES_CONTACT = "applied_credit_notes,contact" - APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = "applied_credit_notes,contact,accounting_period" - APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "applied_credit_notes,contact,company" - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_credit_notes,contact,company,accounting_period" - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = "applied_credit_notes,contact,company,employee" - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "applied_credit_notes,contact,company,payment_term" - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "applied_credit_notes,contact,employee" - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_credit_notes,contact,employee,accounting_period" - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_credit_notes,contact,employee,payment_term" - APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "applied_credit_notes,contact,payment_term" - APPLIED_CREDIT_NOTES_EMPLOYEE = "applied_credit_notes,employee" - APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = "applied_credit_notes,employee,accounting_period" - APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "applied_credit_notes,employee,payment_term" - APPLIED_CREDIT_NOTES_PAYMENT_TERM = "applied_credit_notes,payment_term" - APPLIED_PAYMENTS = "applied_payments" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "applied_payments,accounting_period" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,accounting_period,payment_term" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES = "applied_payments,applied_credit_notes" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "applied_payments,applied_credit_notes,accounting_period" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY = "applied_payments,applied_credit_notes,company" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "applied_payments,applied_credit_notes,company,employee" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT = "applied_payments,applied_credit_notes,contact" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "applied_payments,applied_credit_notes,contact,company" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "applied_payments,applied_credit_notes,contact,employee" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE = "applied_payments,applied_credit_notes,employee" - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "applied_payments,applied_credit_notes,payment_term" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS = "applied_payments,applied_vendor_credits" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY = "applied_payments,applied_vendor_credits,company" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT = "applied_payments,applied_vendor_credits,contact" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_payments,applied_vendor_credits,contact,company" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_payments,applied_vendor_credits,employee" - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "applied_payments,applied_vendor_credits,payment_term" - APPLIED_PAYMENTS_COMPANY = "applied_payments,company" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,company,accounting_period" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,company,accounting_period,payment_term" - APPLIED_PAYMENTS_COMPANY_EMPLOYEE = "applied_payments,company,employee" - APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,company,employee,accounting_period" - APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,company,employee,payment_term" - APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM = "applied_payments,company,payment_term" - APPLIED_PAYMENTS_CONTACT = "applied_payments,contact" - APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,contact,accounting_period" - APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_CONTACT_COMPANY = "applied_payments,contact,company" - APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,contact,company,accounting_period" - APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,contact,company,employee" - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,contact,company,employee,payment_term" - APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,contact,company,payment_term" - APPLIED_PAYMENTS_CONTACT_EMPLOYEE = "applied_payments,contact,employee" - APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,contact,employee,accounting_period" - APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,contact,employee,payment_term" - APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM = "applied_payments,contact,payment_term" - APPLIED_PAYMENTS_EMPLOYEE = "applied_payments,employee" - APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,employee,accounting_period" - APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM = "applied_payments,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS = "applied_payments,line_items" - APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "applied_payments,line_items,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES = "applied_payments,line_items,applied_credit_notes" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS = "applied_payments,line_items,applied_vendor_credits" - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "applied_payments,line_items,company" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE = "applied_payments,line_items,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM = "applied_payments,line_items,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "applied_payments,line_items,contact" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "applied_payments,line_items,contact,company" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE = "applied_payments,line_items,contact,employee" - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM = "applied_payments,line_items,contact,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE = "applied_payments,line_items,employee" - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM = "applied_payments,line_items,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS = "applied_payments,line_items,purchase_orders" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY = "applied_payments,line_items,purchase_orders,company" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT = "applied_payments,line_items,purchase_orders,contact" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "applied_payments,line_items,purchase_orders,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,purchase_orders,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = "applied_payments,line_items,purchase_orders,employee" - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = ( - "applied_payments,line_items,purchase_orders,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "applied_payments,line_items,tracking_categories" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "applied_payments,line_items,tracking_categories,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "applied_payments,line_items,tracking_categories,contact" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = ( - "applied_payments,line_items,tracking_categories,purchase_orders" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - ) - APPLIED_PAYMENTS_PAYMENT_TERM = "applied_payments,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS = "applied_payments,purchase_orders" - APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "applied_payments,purchase_orders,applied_credit_notes" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "applied_payments,purchase_orders,applied_vendor_credits" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY = "applied_payments,purchase_orders,company" - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "applied_payments,purchase_orders,company,employee" - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "applied_payments,purchase_orders,company,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT = "applied_payments,purchase_orders,contact" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY = "applied_payments,purchase_orders,contact,company" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "applied_payments,purchase_orders,contact,employee" - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "applied_payments,purchase_orders,contact,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE = "applied_payments,purchase_orders,employee" - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "applied_payments,purchase_orders,employee,payment_term" - APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM = "applied_payments,purchase_orders,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES = "applied_payments,tracking_categories" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "applied_payments,tracking_categories,applied_credit_notes" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,tracking_categories,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "applied_payments,tracking_categories,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "applied_payments,tracking_categories,company,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "applied_payments,tracking_categories,contact" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "applied_payments,tracking_categories,contact,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "applied_payments,tracking_categories,contact,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE = "applied_payments,tracking_categories,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM = "applied_payments,tracking_categories,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "applied_payments,tracking_categories,purchase_orders" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "applied_payments,tracking_categories,purchase_orders,contact" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "applied_payments,tracking_categories,purchase_orders,contact,company" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,contact,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "applied_payments,tracking_categories,purchase_orders,employee" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,employee,payment_term" - ) - APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "applied_payments,tracking_categories,purchase_orders,payment_term" - ) - APPLIED_VENDOR_CREDITS = "applied_vendor_credits" - APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "applied_vendor_credits,accounting_period" - APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "applied_vendor_credits,accounting_period,payment_term" - APPLIED_VENDOR_CREDITS_COMPANY = "applied_vendor_credits,company" - APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "applied_vendor_credits,company,accounting_period" - APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,company,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "applied_vendor_credits,company,employee" - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,company,employee,accounting_period" - ) - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "applied_vendor_credits,company,employee,payment_term" - APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "applied_vendor_credits,company,payment_term" - APPLIED_VENDOR_CREDITS_CONTACT = "applied_vendor_credits,contact" - APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "applied_vendor_credits,contact,accounting_period" - APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "applied_vendor_credits,contact,company" - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,contact,company,accounting_period" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "applied_vendor_credits,contact,company,employee" - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,contact,company,employee,accounting_period" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "applied_vendor_credits,contact,company,employee,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "applied_vendor_credits,contact,company,payment_term" - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "applied_vendor_credits,contact,employee" - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "applied_vendor_credits,contact,employee,accounting_period" - ) - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "applied_vendor_credits,contact,employee,payment_term" - APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "applied_vendor_credits,contact,payment_term" - APPLIED_VENDOR_CREDITS_EMPLOYEE = "applied_vendor_credits,employee" - APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "applied_vendor_credits,employee,accounting_period" - APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "applied_vendor_credits,employee,accounting_period,payment_term" - ) - APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "applied_vendor_credits,employee,payment_term" - APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "applied_vendor_credits,payment_term" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "company,accounting_period,payment_term" - COMPANY_EMPLOYEE = "company,employee" - COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "company,employee,accounting_period" - COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "company,employee,accounting_period,payment_term" - COMPANY_EMPLOYEE_PAYMENT_TERM = "company,employee,payment_term" - COMPANY_PAYMENT_TERM = "company,payment_term" - CONTACT = "contact" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,accounting_period,payment_term" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,company,accounting_period,payment_term" - CONTACT_COMPANY_EMPLOYEE = "contact,company,employee" - CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "contact,company,employee,accounting_period" - CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,company,employee,accounting_period,payment_term" - CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "contact,company,employee,payment_term" - CONTACT_COMPANY_PAYMENT_TERM = "contact,company,payment_term" - CONTACT_EMPLOYEE = "contact,employee" - CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "contact,employee,accounting_period" - CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "contact,employee,accounting_period,payment_term" - CONTACT_EMPLOYEE_PAYMENT_TERM = "contact,employee,payment_term" - CONTACT_PAYMENT_TERM = "contact,payment_term" - EMPLOYEE = "employee" - EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" - EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "employee,accounting_period,payment_term" - EMPLOYEE_PAYMENT_TERM = "employee,payment_term" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,accounting_period,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES = "line_items,applied_credit_notes" - LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "line_items,applied_credit_notes,accounting_period" - LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "line_items,applied_credit_notes,applied_vendor_credits" - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = "line_items,applied_credit_notes,company" - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "line_items,applied_credit_notes,company,employee" - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "line_items,applied_credit_notes,company,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = "line_items,applied_credit_notes,contact" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "line_items,applied_credit_notes,contact,company" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "line_items,applied_credit_notes,contact,employee" - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "line_items,applied_credit_notes,contact,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = "line_items,applied_credit_notes,employee" - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "line_items,applied_credit_notes,employee,payment_term" - LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "line_items,applied_credit_notes,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS = "line_items,applied_vendor_credits" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "line_items,applied_vendor_credits,accounting_period" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = "line_items,applied_vendor_credits,company" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "line_items,applied_vendor_credits,company,employee" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "line_items,applied_vendor_credits,company,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = "line_items,applied_vendor_credits,contact" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "line_items,applied_vendor_credits,contact,company" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "line_items,applied_vendor_credits,contact,employee" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "line_items,applied_vendor_credits,contact,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "line_items,applied_vendor_credits,employee" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "line_items,applied_vendor_credits,employee,payment_term" - LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "line_items,applied_vendor_credits,payment_term" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,company,accounting_period,payment_term" - LINE_ITEMS_COMPANY_EMPLOYEE = "line_items,company,employee" - LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,company,employee,accounting_period" - LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,company,employee,payment_term" - LINE_ITEMS_COMPANY_PAYMENT_TERM = "line_items,company,payment_term" - LINE_ITEMS_CONTACT = "line_items,contact" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,contact,accounting_period,payment_term" - LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = "line_items,contact,company,employee" - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,contact,company,employee,accounting_period" - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,contact,company,employee,payment_term" - LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = "line_items,contact,company,payment_term" - LINE_ITEMS_CONTACT_EMPLOYEE = "line_items,contact,employee" - LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,contact,employee,accounting_period" - LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = "line_items,contact,employee,payment_term" - LINE_ITEMS_CONTACT_PAYMENT_TERM = "line_items,contact,payment_term" - LINE_ITEMS_EMPLOYEE = "line_items,employee" - LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,employee,accounting_period" - LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,employee,accounting_period,payment_term" - LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = "line_items,employee,payment_term" - LINE_ITEMS_PAYMENT_TERM = "line_items,payment_term" - LINE_ITEMS_PURCHASE_ORDERS = "line_items,purchase_orders" - LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "line_items,purchase_orders,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "line_items,purchase_orders,applied_credit_notes" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = "line_items,purchase_orders,applied_credit_notes,company" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = "line_items,purchase_orders,applied_credit_notes,contact" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "line_items,purchase_orders,applied_credit_notes,contact,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "line_items,purchase_orders,applied_credit_notes,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_credit_notes,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "line_items,purchase_orders,applied_vendor_credits" - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,purchase_orders,applied_vendor_credits,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,purchase_orders,applied_vendor_credits,contact" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,purchase_orders,applied_vendor_credits,employee" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY = "line_items,purchase_orders,company" - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = "line_items,purchase_orders,company,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "line_items,purchase_orders,company,employee" - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "line_items,purchase_orders,company,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT = "line_items,purchase_orders,contact" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = "line_items,purchase_orders,contact,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = "line_items,purchase_orders,contact,company" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,contact,company,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = "line_items,purchase_orders,contact,company,employee" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,contact,company,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,company,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = "line_items,purchase_orders,contact,company,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "line_items,purchase_orders,contact,employee" - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,purchase_orders,contact,employee,accounting_period" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,purchase_orders,contact,employee,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "line_items,purchase_orders,contact,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = "line_items,purchase_orders,employee" - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,purchase_orders,employee,accounting_period" - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,purchase_orders,employee,accounting_period,payment_term" - ) - LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "line_items,purchase_orders,employee,payment_term" - LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = "line_items,purchase_orders,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = "line_items,tracking_categories,applied_credit_notes" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "line_items,tracking_categories,applied_credit_notes,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "line_items,tracking_categories,applied_credit_notes,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "line_items,tracking_categories,applied_credit_notes,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_credit_notes,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = "line_items,tracking_categories,applied_vendor_credits" - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "line_items,tracking_categories,company,employee" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "line_items,tracking_categories,contact,company,employee" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "line_items,tracking_categories,contact,employee" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = "line_items,tracking_categories,contact,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = "line_items,tracking_categories,employee" - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = "line_items,tracking_categories,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "line_items,tracking_categories,purchase_orders" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = "line_items,tracking_categories,purchase_orders,company" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = "line_items,tracking_categories,purchase_orders,contact" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "line_items,tracking_categories,purchase_orders,contact,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "line_items,tracking_categories,purchase_orders,contact,employee" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = "line_items,tracking_categories,purchase_orders,employee" - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "line_items,tracking_categories,purchase_orders,payment_term" - ) - PAYMENT_TERM = "payment_term" - PAYMENTS = "payments" - PAYMENTS_ACCOUNTING_PERIOD = "payments,accounting_period" - PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,accounting_period,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES = "payments,applied_credit_notes" - PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "payments,applied_credit_notes,accounting_period" - PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "payments,applied_credit_notes,applied_vendor_credits" - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY = "payments,applied_credit_notes,company" - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = "payments,applied_credit_notes,company,accounting_period" - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "payments,applied_credit_notes,company,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "payments,applied_credit_notes,company,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT = "payments,applied_credit_notes,contact" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = "payments,applied_credit_notes,contact,accounting_period" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "payments,applied_credit_notes,contact,company" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = "payments,applied_credit_notes,contact,company,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "payments,applied_credit_notes,contact,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "payments,applied_credit_notes,contact,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,applied_credit_notes,employee" - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "payments,applied_credit_notes,employee,payment_term" - PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "payments,applied_credit_notes,payment_term" - PAYMENTS_APPLIED_PAYMENTS = "payments,applied_payments" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "payments,applied_payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES = "payments,applied_payments,applied_credit_notes" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY = "payments,applied_payments,applied_credit_notes,company" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT = "payments,applied_payments,applied_credit_notes,contact" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,applied_payments,applied_credit_notes,employee" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS = "payments,applied_payments,applied_vendor_credits" - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY = "payments,applied_payments,company" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE = "payments,applied_payments,company,employee" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM = "payments,applied_payments,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_CONTACT = "payments,applied_payments,contact" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY = "payments,applied_payments,contact,company" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE = "payments,applied_payments,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM = "payments,applied_payments,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE = "payments,applied_payments,employee" - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS = "payments,applied_payments,line_items" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY = "payments,applied_payments,line_items,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT = "payments,applied_payments,line_items,contact" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,applied_payments,line_items,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE = "payments,applied_payments,line_items,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM = "payments,applied_payments,line_items,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS = "payments,applied_payments,line_items,purchase_orders" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT = ( - "payments,applied_payments,line_items,purchase_orders,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,applied_payments,line_items,purchase_orders,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,purchase_orders,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = ( - "payments,applied_payments,line_items,tracking_categories" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PAYMENT_TERM = "payments,applied_payments,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS = "payments,applied_payments,purchase_orders" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY = "payments,applied_payments,purchase_orders,company" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT = "payments,applied_payments,purchase_orders,contact" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE = "payments,applied_payments,purchase_orders,employee" - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM = "payments,applied_payments,purchase_orders,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "payments,applied_payments,tracking_categories" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,tracking_categories,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,applied_payments,tracking_categories,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,applied_payments,tracking_categories,contact" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE = "payments,applied_payments,tracking_categories,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS = ( - "payments,applied_payments,tracking_categories,purchase_orders" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,applied_payments,tracking_categories,purchase_orders,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS = "payments,applied_vendor_credits" - PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,applied_vendor_credits,accounting_period" - PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY = "payments,applied_vendor_credits,company" - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,applied_vendor_credits,company,employee" - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,applied_vendor_credits,company,payment_term" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT = "payments,applied_vendor_credits,contact" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,applied_vendor_credits,contact,company" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,applied_vendor_credits,contact,employee" - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,applied_vendor_credits,contact,payment_term" - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,applied_vendor_credits,employee" - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,applied_vendor_credits,employee,payment_term" - PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,applied_vendor_credits,payment_term" - PAYMENTS_COMPANY = "payments,company" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,company,accounting_period" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,company,accounting_period,payment_term" - PAYMENTS_COMPANY_EMPLOYEE = "payments,company,employee" - PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,company,employee,accounting_period" - PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,company,employee,accounting_period,payment_term" - ) - PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,company,employee,payment_term" - PAYMENTS_COMPANY_PAYMENT_TERM = "payments,company,payment_term" - PAYMENTS_CONTACT = "payments,contact" - PAYMENTS_CONTACT_ACCOUNTING_PERIOD = "payments,contact,accounting_period" - PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,contact,accounting_period,payment_term" - PAYMENTS_CONTACT_COMPANY = "payments,contact,company" - PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,contact,company,accounting_period" - PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,contact,company,accounting_period,payment_term" - PAYMENTS_CONTACT_COMPANY_EMPLOYEE = "payments,contact,company,employee" - PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,contact,company,employee,accounting_period" - PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,contact,company,employee,payment_term" - PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM = "payments,contact,company,payment_term" - PAYMENTS_CONTACT_EMPLOYEE = "payments,contact,employee" - PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,contact,employee,accounting_period" - PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,contact,employee,payment_term" - PAYMENTS_CONTACT_PAYMENT_TERM = "payments,contact,payment_term" - PAYMENTS_EMPLOYEE = "payments,employee" - PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,employee,accounting_period" - PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,employee,accounting_period,payment_term" - PAYMENTS_EMPLOYEE_PAYMENT_TERM = "payments,employee,payment_term" - PAYMENTS_LINE_ITEMS = "payments,line_items" - PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD = "payments,line_items,accounting_period" - PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES = "payments,line_items,applied_credit_notes" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY = "payments,line_items,applied_credit_notes,company" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT = "payments,line_items,applied_credit_notes,contact" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,line_items,applied_credit_notes,employee" - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "payments,line_items,applied_credit_notes,payment_term" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS = "payments,line_items,applied_vendor_credits" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY = "payments,line_items,applied_vendor_credits,company" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT = "payments,line_items,applied_vendor_credits,contact" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "payments,line_items,applied_vendor_credits,employee" - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,line_items,applied_vendor_credits,payment_term" - PAYMENTS_LINE_ITEMS_COMPANY = "payments,line_items,company" - PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,company,accounting_period" - PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE = "payments,line_items,company,employee" - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM = "payments,line_items,company,payment_term" - PAYMENTS_LINE_ITEMS_CONTACT = "payments,line_items,contact" - PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "payments,line_items,contact,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY = "payments,line_items,contact,company" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE = "payments,line_items,contact,company,employee" - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM = "payments,line_items,contact,company,payment_term" - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE = "payments,line_items,contact,employee" - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,line_items,contact,employee,payment_term" - PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM = "payments,line_items,contact,payment_term" - PAYMENTS_LINE_ITEMS_EMPLOYEE = "payments,line_items,employee" - PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,employee,accounting_period" - PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM = "payments,line_items,employee,payment_term" - PAYMENTS_LINE_ITEMS_PAYMENT_TERM = "payments,line_items,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS = "payments,line_items,purchase_orders" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,line_items,purchase_orders,applied_credit_notes" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY = "payments,line_items,purchase_orders,company" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "payments,line_items,purchase_orders,company,employee" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT = "payments,line_items,purchase_orders,contact" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY = "payments,line_items,purchase_orders,contact,company" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,purchase_orders,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "payments,line_items,purchase_orders,contact,employee" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE = "payments,line_items,purchase_orders,employee" - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,purchase_orders,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,purchase_orders,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM = "payments,line_items,purchase_orders,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES = "payments,line_items,tracking_categories" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = ( - "payments,line_items,tracking_categories,applied_credit_notes" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "payments,line_items,tracking_categories,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "payments,line_items,tracking_categories,contact" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,line_items,tracking_categories,contact,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE = "payments,line_items,tracking_categories,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = "payments,line_items,tracking_categories,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "payments,line_items,tracking_categories,purchase_orders" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = ( - "payments,line_items,tracking_categories,purchase_orders,contact" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = ( - "payments,line_items,tracking_categories,purchase_orders,employee" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,line_items,tracking_categories,purchase_orders,payment_term" - ) - PAYMENTS_PAYMENT_TERM = "payments,payment_term" - PAYMENTS_PURCHASE_ORDERS = "payments,purchase_orders" - PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "payments,purchase_orders,accounting_period" - PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "payments,purchase_orders,applied_credit_notes" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = "payments,purchase_orders,applied_credit_notes,company" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = "payments,purchase_orders,applied_credit_notes,contact" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = "payments,purchase_orders,applied_credit_notes,employee" - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "payments,purchase_orders,applied_vendor_credits" - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = "payments,purchase_orders,applied_vendor_credits,company" - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = "payments,purchase_orders,applied_vendor_credits,contact" - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY = "payments,purchase_orders,company" - PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = "payments,purchase_orders,company,accounting_period" - PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "payments,purchase_orders,company,employee" - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,purchase_orders,company,employee,payment_term" - PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "payments,purchase_orders,company,payment_term" - PAYMENTS_PURCHASE_ORDERS_CONTACT = "payments,purchase_orders,contact" - PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = "payments,purchase_orders,contact,accounting_period" - PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY = "payments,purchase_orders,contact,company" - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = "payments,purchase_orders,contact,company,employee" - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = "payments,purchase_orders,contact,company,payment_term" - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "payments,purchase_orders,contact,employee" - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,purchase_orders,contact,employee,payment_term" - PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "payments,purchase_orders,contact,payment_term" - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE = "payments,purchase_orders,employee" - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,purchase_orders,employee,accounting_period" - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "payments,purchase_orders,employee,payment_term" - PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM = "payments,purchase_orders,payment_term" - PAYMENTS_TRACKING_CATEGORIES = "payments,tracking_categories" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "payments,tracking_categories,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = "payments,tracking_categories,applied_credit_notes" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,tracking_categories,applied_credit_notes,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,tracking_categories,applied_credit_notes,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,tracking_categories,applied_credit_notes,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,tracking_categories,applied_credit_notes,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = "payments,tracking_categories,applied_vendor_credits" - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,tracking_categories,company" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "payments,tracking_categories,company,employee" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "payments,tracking_categories,company,payment_term" - PAYMENTS_TRACKING_CATEGORIES_CONTACT = "payments,tracking_categories,contact" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "payments,tracking_categories,contact,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY = "payments,tracking_categories,contact,company" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "payments,tracking_categories,contact,company,employee" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "payments,tracking_categories,contact,employee" - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = "payments,tracking_categories,contact,payment_term" - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE = "payments,tracking_categories,employee" - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM = "payments,tracking_categories,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS = "payments,tracking_categories,purchase_orders" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = "payments,tracking_categories,purchase_orders,company" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = "payments,tracking_categories,purchase_orders,contact" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = ( - "payments,tracking_categories,purchase_orders,contact,company" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,company,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,contact,company,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,company,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = ( - "payments,tracking_categories,purchase_orders,contact,employee" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,contact,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = "payments,tracking_categories,purchase_orders,employee" - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "payments,tracking_categories,purchase_orders,employee,accounting_period" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,employee,payment_term" - ) - PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = ( - "payments,tracking_categories,purchase_orders,payment_term" - ) - PURCHASE_ORDERS = "purchase_orders" - PURCHASE_ORDERS_ACCOUNTING_PERIOD = "purchase_orders,accounting_period" - PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,accounting_period,payment_term" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = "purchase_orders,applied_credit_notes" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = "purchase_orders,applied_credit_notes,accounting_period" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = "purchase_orders,applied_credit_notes,company" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = "purchase_orders,applied_credit_notes,company,employee" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = "purchase_orders,applied_credit_notes,contact" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = "purchase_orders,applied_credit_notes,contact,company" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_credit_notes,contact,company,employee" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = "purchase_orders,applied_credit_notes,contact,employee" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,contact,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = "purchase_orders,applied_credit_notes,employee" - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_credit_notes,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_credit_notes,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "purchase_orders,applied_credit_notes,payment_term" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = "purchase_orders,applied_vendor_credits" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = "purchase_orders,applied_vendor_credits,company" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = "purchase_orders,applied_vendor_credits,company,employee" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = "purchase_orders,applied_vendor_credits,contact" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = "purchase_orders,applied_vendor_credits,contact,company" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "purchase_orders,applied_vendor_credits,contact,company,employee" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = "purchase_orders,applied_vendor_credits,contact,employee" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,contact,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = "purchase_orders,applied_vendor_credits,employee" - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "purchase_orders,applied_vendor_credits,employee,payment_term" - ) - PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "purchase_orders,applied_vendor_credits,payment_term" - PURCHASE_ORDERS_COMPANY = "purchase_orders,company" - PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = "purchase_orders,company,accounting_period" - PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,company,accounting_period,payment_term" - PURCHASE_ORDERS_COMPANY_EMPLOYEE = "purchase_orders,company,employee" - PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "purchase_orders,company,employee,accounting_period" - PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = "purchase_orders,company,employee,payment_term" - PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = "purchase_orders,company,payment_term" - PURCHASE_ORDERS_CONTACT = "purchase_orders,contact" - PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = "purchase_orders,contact,accounting_period" - PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,contact,accounting_period,payment_term" - PURCHASE_ORDERS_CONTACT_COMPANY = "purchase_orders,contact,company" - PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "purchase_orders,contact,company,accounting_period" - PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,contact,company,accounting_period,payment_term" - ) - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = "purchase_orders,contact,company,employee" - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "purchase_orders,contact,company,employee,accounting_period" - ) - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "purchase_orders,contact,company,employee,payment_term" - PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = "purchase_orders,contact,company,payment_term" - PURCHASE_ORDERS_CONTACT_EMPLOYEE = "purchase_orders,contact,employee" - PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "purchase_orders,contact,employee,accounting_period" - PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "purchase_orders,contact,employee,accounting_period,payment_term" - ) - PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = "purchase_orders,contact,employee,payment_term" - PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = "purchase_orders,contact,payment_term" - PURCHASE_ORDERS_EMPLOYEE = "purchase_orders,employee" - PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = "purchase_orders,employee,accounting_period" - PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "purchase_orders,employee,accounting_period,payment_term" - PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = "purchase_orders,employee,payment_term" - PURCHASE_ORDERS_PAYMENT_TERM = "purchase_orders,payment_term" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES = "tracking_categories,applied_credit_notes" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY = "tracking_categories,applied_credit_notes,company" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT = "tracking_categories,applied_credit_notes,contact" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "tracking_categories,applied_credit_notes,contact,company" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,contact,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "tracking_categories,applied_credit_notes,contact,employee" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,contact,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE = "tracking_categories,applied_credit_notes,employee" - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_credit_notes,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_credit_notes,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM = "tracking_categories,applied_credit_notes,payment_term" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS = "tracking_categories,applied_vendor_credits" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY = "tracking_categories,applied_vendor_credits,company" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT = "tracking_categories,applied_vendor_credits,contact" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE = "tracking_categories,applied_vendor_credits,employee" - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = "tracking_categories,applied_vendor_credits,payment_term" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_COMPANY_EMPLOYEE = "tracking_categories,company,employee" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,company,employee,accounting_period" - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM = "tracking_categories,company,employee,payment_term" - TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "tracking_categories,company,payment_term" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE = "tracking_categories,contact,company,employee" - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM = "tracking_categories,contact,company,payment_term" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE = "tracking_categories,contact,employee" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,contact,employee,accounting_period" - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM = "tracking_categories,contact,employee,payment_term" - TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM = "tracking_categories,contact,payment_term" - TRACKING_CATEGORIES_EMPLOYEE = "tracking_categories,employee" - TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,employee,accounting_period" - TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM = "tracking_categories,employee,payment_term" - TRACKING_CATEGORIES_PAYMENT_TERM = "tracking_categories,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS = "tracking_categories,purchase_orders" - TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES = ( - "tracking_categories,purchase_orders,applied_credit_notes" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_credit_notes,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS = ( - "tracking_categories,purchase_orders,applied_vendor_credits" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY = "tracking_categories,purchase_orders,company" - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE = "tracking_categories,purchase_orders,company,employee" - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT = "tracking_categories,purchase_orders,contact" - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY = "tracking_categories,purchase_orders,contact,company" - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE = ( - "tracking_categories,purchase_orders,contact,company,employee" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,company,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,company,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE = "tracking_categories,purchase_orders,contact,employee" - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,contact,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,contact,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE = "tracking_categories,purchase_orders,employee" - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD = ( - "tracking_categories,purchase_orders,employee,accounting_period" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,employee,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM = ( - "tracking_categories,purchase_orders,employee,payment_term" - ) - TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM = "tracking_categories,purchase_orders,payment_term" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes: typing.Callable[[], T_Result], - applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company: typing.Callable[[], T_Result], - applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments: typing.Callable[[], T_Result], - applied_payments_accounting_period: typing.Callable[[], T_Result], - applied_payments_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_company: typing.Callable[[], T_Result], - applied_payments_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_company_employee: typing.Callable[[], T_Result], - applied_payments_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_company_payment_term: typing.Callable[[], T_Result], - applied_payments_contact: typing.Callable[[], T_Result], - applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company: typing.Callable[[], T_Result], - applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_employee: typing.Callable[[], T_Result], - applied_payments_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_employee: typing.Callable[[], T_Result], - applied_payments_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items: typing.Callable[[], T_Result], - applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company: typing.Callable[[], T_Result], - applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact: typing.Callable[[], T_Result], - applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_employee: typing.Callable[[], T_Result], - applied_payments_line_items_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_payments_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders: typing.Callable[[], T_Result], - applied_payments_purchase_orders_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - applied_payments_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - applied_payments_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits: typing.Callable[[], T_Result], - applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company: typing.Callable[[], T_Result], - applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact: typing.Callable[[], T_Result], - applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_employee: typing.Callable[[], T_Result], - applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_accounting_period_payment_term: typing.Callable[[], T_Result], - company_employee: typing.Callable[[], T_Result], - company_employee_accounting_period: typing.Callable[[], T_Result], - company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - company_employee_payment_term: typing.Callable[[], T_Result], - company_payment_term: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_company_employee: typing.Callable[[], T_Result], - contact_company_employee_accounting_period: typing.Callable[[], T_Result], - contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_company_employee_payment_term: typing.Callable[[], T_Result], - contact_company_payment_term: typing.Callable[[], T_Result], - contact_employee: typing.Callable[[], T_Result], - contact_employee_accounting_period: typing.Callable[[], T_Result], - contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - contact_employee_payment_term: typing.Callable[[], T_Result], - contact_payment_term: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_accounting_period: typing.Callable[[], T_Result], - employee_accounting_period_payment_term: typing.Callable[[], T_Result], - employee_payment_term: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes: typing.Callable[[], T_Result], - line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company_employee: typing.Callable[[], T_Result], - line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_company_payment_term: typing.Callable[[], T_Result], - line_items_contact: typing.Callable[[], T_Result], - line_items_contact_accounting_period: typing.Callable[[], T_Result], - line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_company: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_company_employee: typing.Callable[[], T_Result], - line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_contact_employee: typing.Callable[[], T_Result], - line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_contact_payment_term: typing.Callable[[], T_Result], - line_items_employee: typing.Callable[[], T_Result], - line_items_employee_accounting_period: typing.Callable[[], T_Result], - line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_employee_payment_term: typing.Callable[[], T_Result], - line_items_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders: typing.Callable[[], T_Result], - line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company: typing.Callable[[], T_Result], - line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_employee: typing.Callable[[], T_Result], - line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - payment_term: typing.Callable[[], T_Result], - payments: typing.Callable[[], T_Result], - payments_accounting_period: typing.Callable[[], T_Result], - payments_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact: typing.Callable[[], T_Result], - payments_applied_payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_employee: typing.Callable[[], T_Result], - payments_applied_payments_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items: typing.Callable[[], T_Result], - payments_applied_payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_employee: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_employee: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_payments_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits: typing.Callable[[], T_Result], - payments_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_company: typing.Callable[[], T_Result], - payments_company_accounting_period: typing.Callable[[], T_Result], - payments_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_company_employee: typing.Callable[[], T_Result], - payments_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_company_employee_payment_term: typing.Callable[[], T_Result], - payments_company_payment_term: typing.Callable[[], T_Result], - payments_contact: typing.Callable[[], T_Result], - payments_contact_accounting_period: typing.Callable[[], T_Result], - payments_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_company: typing.Callable[[], T_Result], - payments_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_company_employee: typing.Callable[[], T_Result], - payments_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_contact_company_payment_term: typing.Callable[[], T_Result], - payments_contact_employee: typing.Callable[[], T_Result], - payments_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_contact_payment_term: typing.Callable[[], T_Result], - payments_employee: typing.Callable[[], T_Result], - payments_employee_accounting_period: typing.Callable[[], T_Result], - payments_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items: typing.Callable[[], T_Result], - payments_line_items_accounting_period: typing.Callable[[], T_Result], - payments_line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_company: typing.Callable[[], T_Result], - payments_line_items_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_company_employee: typing.Callable[[], T_Result], - payments_line_items_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact: typing.Callable[[], T_Result], - payments_line_items_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company: typing.Callable[[], T_Result], - payments_line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_employee: typing.Callable[[], T_Result], - payments_line_items_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_employee: typing.Callable[[], T_Result], - payments_line_items_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_line_items_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_line_items_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders: typing.Callable[[], T_Result], - payments_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company: typing.Callable[[], T_Result], - payments_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact: typing.Callable[[], T_Result], - payments_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_employee: typing.Callable[[], T_Result], - payments_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_purchase_orders_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact: typing.Callable[[], T_Result], - payments_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_employee: typing.Callable[[], T_Result], - payments_tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - payments_tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - payments_tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - purchase_orders: typing.Callable[[], T_Result], - purchase_orders_accounting_period: typing.Callable[[], T_Result], - purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - purchase_orders_company: typing.Callable[[], T_Result], - purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_company_employee: typing.Callable[[], T_Result], - purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact: typing.Callable[[], T_Result], - purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company: typing.Callable[[], T_Result], - purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_employee: typing.Callable[[], T_Result], - purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - purchase_orders_employee: typing.Callable[[], T_Result], - purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - purchase_orders_payment_term: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_credit_notes_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_employee: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_employee: typing.Callable[[], T_Result], - tracking_categories_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_employee: typing.Callable[[], T_Result], - tracking_categories_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_employee: typing.Callable[[], T_Result], - tracking_categories_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_credit_notes_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_applied_vendor_credits_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_contact_company_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_contact_company_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_purchase_orders_contact_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_contact_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee_accounting_period: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_employee_payment_term: typing.Callable[[], T_Result], - tracking_categories_purchase_orders_payment_term: typing.Callable[[], T_Result], - ) -> T_Result: - if self is InvoicesRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is InvoicesRetrieveRequestExpand.ACCOUNTING_PERIOD_PAYMENT_TERM: - return accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES: - return applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return applied_credit_notes_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return applied_credit_notes_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_credit_notes_applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_credit_notes_applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_credit_notes_applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY: - return applied_credit_notes_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return applied_credit_notes_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_credit_notes_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT: - return applied_credit_notes_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_credit_notes_contact_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return applied_credit_notes_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_credit_notes_contact_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_credit_notes_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_credit_notes_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS: - return applied_payments() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return applied_payments_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES: - return applied_payments_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return applied_payments_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_applied_credit_notes_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_payments_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return applied_payments_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_applied_credit_notes_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_payments_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_payments_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return applied_payments_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_applied_credit_notes_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS: - return applied_payments_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_payments_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_payments_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_payments_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY: - return applied_payments_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE: - return applied_payments_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM: - return applied_payments_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT: - return applied_payments_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY: - return applied_payments_contact_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE: - return applied_payments_contact_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM: - return applied_payments_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_EMPLOYEE: - return applied_payments_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS: - return applied_payments_line_items() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return applied_payments_line_items_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES: - return applied_payments_line_items_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return applied_payments_line_items_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_line_items_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_payments_line_items_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_line_items_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_payments_line_items_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_payments_line_items_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_line_items_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_line_items_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return applied_payments_line_items_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_payments_line_items_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_line_items_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_payments_line_items_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_line_items_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_payments_line_items_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_payments_line_items_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_line_items_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_line_items_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return applied_payments_line_items_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE: - return applied_payments_line_items_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return applied_payments_line_items_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return applied_payments_line_items_contact_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_line_items_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE: - return applied_payments_line_items_contact_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE: - return applied_payments_line_items_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_line_items_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM: - return applied_payments_line_items_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS: - return applied_payments_line_items_purchase_orders() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return applied_payments_line_items_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return ( - applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return applied_payments_line_items_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return applied_payments_line_items_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return applied_payments_line_items_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return applied_payments_line_items_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return applied_payments_line_items_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_line_items_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return applied_payments_line_items_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return applied_payments_line_items_purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_line_items_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return applied_payments_line_items_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return applied_payments_line_items_tracking_categories() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_line_items_tracking_categories_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return applied_payments_line_items_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return ( - applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return applied_payments_line_items_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_line_items_tracking_categories_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return applied_payments_line_items_tracking_categories_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_line_items_tracking_categories_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return applied_payments_line_items_tracking_categories_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return applied_payments_line_items_tracking_categories_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return applied_payments_line_items_tracking_categories_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return applied_payments_line_items_tracking_categories_purchase_orders() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE - ): - return applied_payments_line_items_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM - ): - return applied_payments_line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PAYMENT_TERM: - return applied_payments_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS: - return applied_payments_purchase_orders() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return applied_payments_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return applied_payments_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return applied_payments_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return applied_payments_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return applied_payments_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_payments_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY: - return applied_payments_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return applied_payments_purchase_orders_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return applied_payments_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT: - return applied_payments_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY: - return applied_payments_purchase_orders_contact_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return applied_payments_purchase_orders_contact_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return applied_payments_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE: - return applied_payments_purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return applied_payments_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM: - return applied_payments_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return applied_payments_tracking_categories() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_payments_tracking_categories_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return applied_payments_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return applied_payments_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return applied_payments_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return applied_payments_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return applied_payments_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return applied_payments_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return applied_payments_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return applied_payments_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_payments_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_tracking_categories_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return applied_payments_tracking_categories_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return applied_payments_tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return applied_payments_tracking_categories_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return applied_payments_tracking_categories_contact_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return applied_payments_tracking_categories_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return applied_payments_tracking_categories_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return applied_payments_tracking_categories_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return applied_payments_tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE: - return applied_payments_tracking_categories_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return applied_payments_tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM: - return applied_payments_tracking_categories_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return applied_payments_tracking_categories_purchase_orders() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return applied_payments_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return applied_payments_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return applied_payments_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return applied_payments_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return applied_payments_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return applied_payments_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return applied_payments_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return applied_payments_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return applied_payments_tracking_categories_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS: - return applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return applied_vendor_credits_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY: - return applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return applied_vendor_credits_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return applied_vendor_credits_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT: - return applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return applied_vendor_credits_contact_company() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return applied_vendor_credits_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return applied_vendor_credits_contact_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE: - return applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return applied_vendor_credits_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.COMPANY: - return company() - if self is InvoicesRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is InvoicesRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.COMPANY_EMPLOYEE: - return company_employee() - if self is InvoicesRetrieveRequestExpand.COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.COMPANY_EMPLOYEE_PAYMENT_TERM: - return company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.COMPANY_PAYMENT_TERM: - return company_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT: - return contact() - if self is InvoicesRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY_EMPLOYEE: - return contact_company_employee() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT_COMPANY_PAYMENT_TERM: - return contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT_EMPLOYEE: - return contact_employee() - if self is InvoicesRetrieveRequestExpand.CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT_EMPLOYEE_PAYMENT_TERM: - return contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.CONTACT_PAYMENT_TERM: - return contact_payment_term() - if self is InvoicesRetrieveRequestExpand.EMPLOYEE: - return employee() - if self is InvoicesRetrieveRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD: - return employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.EMPLOYEE_PAYMENT_TERM: - return employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS: - return line_items() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES: - return line_items_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return line_items_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return line_items_applied_credit_notes_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return line_items_applied_credit_notes_company_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return line_items_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return line_items_applied_credit_notes_contact() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return line_items_applied_credit_notes_contact_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return line_items_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return line_items_applied_credit_notes_contact_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return line_items_applied_credit_notes_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return line_items_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return line_items_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return line_items_applied_vendor_credits_company_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_applied_vendor_credits_contact_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return line_items_applied_vendor_credits_contact_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return line_items_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE: - return line_items_company_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_COMPANY_PAYMENT_TERM: - return line_items_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT: - return line_items_contact() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return line_items_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY: - return line_items_contact_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return line_items_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_contact_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE: - return line_items_contact_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_CONTACT_PAYMENT_TERM: - return line_items_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_EMPLOYEE: - return line_items_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return line_items_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PAYMENT_TERM: - return line_items_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS: - return line_items_purchase_orders() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return line_items_purchase_orders_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return line_items_purchase_orders_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return line_items_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return line_items_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return line_items_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return line_items_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return line_items_purchase_orders_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return line_items_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return line_items_purchase_orders_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return line_items_purchase_orders_company_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return line_items_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return line_items_purchase_orders_contact_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return line_items_purchase_orders_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return line_items_purchase_orders_contact_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return line_items_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return line_items_purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_purchase_orders_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return line_items_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return line_items_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return line_items_tracking_categories_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return line_items_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return line_items_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return line_items_tracking_categories_company_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return line_items_tracking_categories_contact() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return line_items_tracking_categories_contact_company() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return line_items_tracking_categories_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return line_items_tracking_categories_contact_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return line_items_tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return line_items_tracking_categories_employee() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return line_items_tracking_categories_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return line_items_tracking_categories_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return line_items_tracking_categories_purchase_orders() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return line_items_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return line_items_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return line_items_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENT_TERM: - return payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS: - return payments() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_ACCOUNTING_PERIOD: - return payments_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES: - return payments_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_applied_credit_notes_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_credit_notes_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_applied_credit_notes_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_credit_notes_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_applied_credit_notes_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_applied_credit_notes_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_applied_credit_notes_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_credit_notes_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS: - return payments_applied_payments() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return payments_applied_payments_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES: - return payments_applied_payments_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_payments_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_applied_payments_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_payments_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_applied_payments_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_applied_payments_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_applied_payments_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_applied_payments_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_applied_payments_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_payments_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_applied_payments_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_payments_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_applied_payments_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_applied_payments_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_payments_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_applied_payments_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return payments_applied_payments_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE: - return payments_applied_payments_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT: - return payments_applied_payments_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY: - return payments_applied_payments_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_payments_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE: - return payments_applied_payments_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE: - return payments_applied_payments_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS: - return payments_applied_payments_line_items() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_payments_line_items_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES: - return payments_applied_payments_line_items_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_payments_line_items_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_payments_line_items_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_applied_payments_line_items_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_applied_payments_line_items_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_line_items_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_payments_line_items_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_payments_line_items_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_payments_line_items_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY: - return payments_applied_payments_line_items_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_line_items_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT: - return payments_applied_payments_line_items_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_applied_payments_line_items_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_payments_line_items_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE: - return payments_applied_payments_line_items_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_line_items_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE: - return payments_applied_payments_line_items_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_line_items_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PAYMENT_TERM: - return payments_applied_payments_line_items_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS: - return payments_applied_payments_line_items_purchase_orders() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_applied_payments_line_items_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return payments_applied_payments_line_items_purchase_orders_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_applied_payments_line_items_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_purchase_orders_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return payments_applied_payments_line_items_purchase_orders_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_applied_payments_line_items_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_applied_payments_line_items_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return payments_applied_payments_line_items_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_applied_payments_line_items_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_applied_payments_line_items_tracking_categories() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_credit_notes_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_line_items_tracking_categories_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_line_items_tracking_categories_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_applied_payments_line_items_tracking_categories_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_applied_payments_line_items_tracking_categories_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM - ): - return payments_applied_payments_line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PAYMENT_TERM: - return payments_applied_payments_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS: - return payments_applied_payments_purchase_orders() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_applied_payments_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_applied_payments_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_applied_payments_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY: - return payments_applied_payments_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_applied_payments_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT: - return payments_applied_payments_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_applied_payments_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_applied_payments_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE: - return payments_applied_payments_purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_payments_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_applied_payments_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return payments_applied_payments_tracking_categories() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return payments_applied_payments_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return payments_applied_payments_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_tracking_categories_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return payments_applied_payments_tracking_categories_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_applied_payments_tracking_categories_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_applied_payments_tracking_categories_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_payments_tracking_categories_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return payments_applied_payments_tracking_categories_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_applied_payments_tracking_categories_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_applied_payments_tracking_categories_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return payments_applied_payments_tracking_categories_purchase_orders() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return payments_applied_payments_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return payments_applied_payments_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return payments_applied_payments_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_applied_payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM - ): - return payments_applied_payments_tracking_categories_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS: - return payments_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_applied_vendor_credits_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_applied_vendor_credits_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return payments_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_applied_vendor_credits_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY: - return payments_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY_EMPLOYEE: - return payments_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_COMPANY_PAYMENT_TERM: - return payments_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT: - return payments_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_ACCOUNTING_PERIOD: - return payments_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY: - return payments_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE: - return payments_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_contact_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_EMPLOYEE: - return payments_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_CONTACT_PAYMENT_TERM: - return payments_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_EMPLOYEE: - return payments_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_EMPLOYEE_PAYMENT_TERM: - return payments_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS: - return payments_line_items() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD: - return payments_line_items_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES: - return payments_line_items_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_line_items_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_line_items_applied_credit_notes_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_line_items_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_line_items_applied_credit_notes_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_line_items_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_line_items_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_line_items_applied_credit_notes_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_line_items_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS: - return payments_line_items_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_line_items_applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_line_items_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_line_items_applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_line_items_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_line_items_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_line_items_applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_line_items_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY: - return payments_line_items_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE: - return payments_line_items_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_COMPANY_PAYMENT_TERM: - return payments_line_items_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT: - return payments_line_items_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY: - return payments_line_items_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE: - return payments_line_items_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_CONTACT_PAYMENT_TERM: - return payments_line_items_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE: - return payments_line_items_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PAYMENT_TERM: - return payments_line_items_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS: - return payments_line_items_purchase_orders() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_line_items_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_line_items_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_line_items_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_line_items_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_line_items_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_line_items_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_line_items_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_line_items_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_line_items_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY: - return payments_line_items_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_line_items_purchase_orders_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_line_items_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT: - return payments_line_items_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_line_items_purchase_orders_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_line_items_purchase_orders_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_line_items_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE: - return payments_line_items_purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_line_items_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES: - return payments_line_items_tracking_categories() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_line_items_tracking_categories_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return payments_line_items_tracking_categories_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return payments_line_items_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return payments_line_items_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_line_items_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return payments_line_items_tracking_categories_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_line_items_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_line_items_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return payments_line_items_tracking_categories_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return payments_line_items_tracking_categories_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_tracking_categories_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return payments_line_items_tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return payments_line_items_tracking_categories_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_line_items_tracking_categories_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return payments_line_items_tracking_categories_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_line_items_tracking_categories_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return payments_line_items_tracking_categories_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_tracking_categories_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return payments_line_items_tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_line_items_tracking_categories_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_line_items_tracking_categories_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return payments_line_items_tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_line_items_tracking_categories_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return payments_line_items_tracking_categories_purchase_orders() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return payments_line_items_tracking_categories_purchase_orders_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return payments_line_items_tracking_categories_purchase_orders_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_line_items_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE - ): - return payments_line_items_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return payments_line_items_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_line_items_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM - ): - return payments_line_items_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_LINE_ITEMS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_line_items_tracking_categories_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PAYMENT_TERM: - return payments_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS: - return payments_purchase_orders() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_purchase_orders_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_purchase_orders_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return payments_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return payments_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_purchase_orders_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY: - return payments_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_purchase_orders_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_purchase_orders_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT: - return payments_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_purchase_orders_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_purchase_orders_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return payments_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_purchase_orders_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE: - return payments_purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_purchase_orders_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES: - return payments_tracking_categories() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_tracking_categories_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return payments_tracking_categories_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return payments_tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return ( - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return ( - payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return payments_tracking_categories_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return payments_tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return payments_tracking_categories_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return payments_tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return payments_tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return payments_tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return payments_tracking_categories_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return payments_tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return payments_tracking_categories_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return payments_tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return payments_tracking_categories_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return payments_tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return payments_tracking_categories_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return payments_tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return payments_tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return payments_tracking_categories_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return payments_tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_tracking_categories_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return payments_tracking_categories_company_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT: - return payments_tracking_categories_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return payments_tracking_categories_contact_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return payments_tracking_categories_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return payments_tracking_categories_contact_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return payments_tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE: - return payments_tracking_categories_employee() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return payments_tracking_categories_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return payments_tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PAYMENT_TERM: - return payments_tracking_categories_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS: - return payments_tracking_categories_purchase_orders() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return payments_tracking_categories_purchase_orders_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return payments_tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return ( - payments_tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return payments_tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return payments_tracking_categories_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return payments_tracking_categories_purchase_orders_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return payments_tracking_categories_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return payments_tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return payments_tracking_categories_purchase_orders_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return payments_tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - payments_tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return payments_tracking_categories_purchase_orders_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return payments_tracking_categories_purchase_orders_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return payments_tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return payments_tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return payments_tracking_categories_purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS: - return purchase_orders() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return purchase_orders_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return purchase_orders_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY: - return purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT: - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return purchase_orders_applied_credit_notes_company() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return purchase_orders_applied_credit_notes_contact() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return purchase_orders_applied_credit_notes_contact_company() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return purchase_orders_applied_credit_notes_employee() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return purchase_orders_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return purchase_orders_applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return purchase_orders_applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return purchase_orders_applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY: - return purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return purchase_orders_company_employee() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT: - return purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return purchase_orders_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY: - return purchase_orders_contact_company() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return purchase_orders_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return purchase_orders_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return purchase_orders_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return purchase_orders_contact_employee() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_EMPLOYEE: - return purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return purchase_orders_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.PURCHASE_ORDERS_PAYMENT_TERM: - return purchase_orders_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES: - return tracking_categories_applied_credit_notes() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS: - return tracking_categories_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - tracking_categories_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return ( - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return ( - tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_contact_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY: - return tracking_categories_applied_credit_notes_company() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE: - return tracking_categories_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT: - return tracking_categories_applied_credit_notes_contact() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY: - return tracking_categories_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE: - return tracking_categories_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE: - return tracking_categories_applied_credit_notes_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_credit_notes_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return tracking_categories_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS: - return tracking_categories_applied_vendor_credits() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY: - return tracking_categories_applied_vendor_credits_company() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE: - return tracking_categories_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT: - return tracking_categories_applied_vendor_credits_contact() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY: - return tracking_categories_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE: - return tracking_categories_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return tracking_categories_applied_vendor_credits_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_applied_vendor_credits_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM: - return tracking_categories_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE: - return tracking_categories_company_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_company_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return tracking_categories_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_contact_company_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_contact_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_TERM: - return tracking_categories_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE: - return tracking_categories_contact_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_contact_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_PAYMENT_TERM: - return tracking_categories_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_EMPLOYEE: - return tracking_categories_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_employee_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PAYMENT_TERM: - return tracking_categories_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS: - return tracking_categories_purchase_orders() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_accounting_period() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_purchase_orders_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES: - return tracking_categories_purchase_orders_applied_credit_notes() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return ( - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_company_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return ( - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_contact_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return ( - tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_employee_payment_term() - ) - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY: - return tracking_categories_purchase_orders_applied_credit_notes_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT: - return tracking_categories_purchase_orders_applied_credit_notes_contact() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_CONTACT_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE: - return tracking_categories_purchase_orders_applied_credit_notes_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_credit_notes_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_CREDIT_NOTES_PAYMENT_TERM: - return tracking_categories_purchase_orders_applied_credit_notes_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS: - return tracking_categories_purchase_orders_applied_vendor_credits() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY: - return tracking_categories_purchase_orders_applied_vendor_credits_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT: - return tracking_categories_purchase_orders_applied_vendor_credits_contact() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return ( - tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period() - ) - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_COMPANY_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_company_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_CONTACT_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE: - return tracking_categories_purchase_orders_applied_vendor_credits_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_employee_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_APPLIED_VENDOR_CREDITS_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_applied_vendor_credits_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY: - return tracking_categories_purchase_orders_company() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE: - return tracking_categories_purchase_orders_company_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_company_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_purchase_orders_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_COMPANY_PAYMENT_TERM: - return tracking_categories_purchase_orders_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT: - return tracking_categories_purchase_orders_contact() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_contact_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY: - return tracking_categories_purchase_orders_contact_company() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_contact_company_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_company_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE: - return tracking_categories_purchase_orders_contact_company_employee() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD - ): - return tracking_categories_purchase_orders_contact_company_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_company_employee_accounting_period_payment_term() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_EMPLOYEE_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_company_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_COMPANY_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_company_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE: - return tracking_categories_purchase_orders_contact_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_contact_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_contact_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_CONTACT_PAYMENT_TERM: - return tracking_categories_purchase_orders_contact_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE: - return tracking_categories_purchase_orders_employee() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD: - return tracking_categories_purchase_orders_employee_accounting_period() - if ( - self - is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_purchase_orders_employee_accounting_period_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_EMPLOYEE_PAYMENT_TERM: - return tracking_categories_purchase_orders_employee_payment_term() - if self is InvoicesRetrieveRequestExpand.TRACKING_CATEGORIES_PURCHASE_ORDERS_PAYMENT_TERM: - return tracking_categories_purchase_orders_payment_term() diff --git a/src/merge/resources/accounting/resources/issues/__init__.py b/src/merge/resources/accounting/resources/issues/__init__.py deleted file mode 100644 index 3ca1094b..00000000 --- a/src/merge/resources/accounting/resources/issues/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/accounting/resources/issues/client.py b/src/merge/resources/accounting/resources/issues/client.py deleted file mode 100644 index b4469343..00000000 --- a/src/merge/resources/accounting/resources/issues/client.py +++ /dev/null @@ -1,378 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .raw_client import AsyncRawIssuesClient, RawIssuesClient -from .types.issues_list_request_status import IssuesListRequestStatus - - -class IssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIssuesClient - """ - return self._raw_client - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.issues import IssuesListRequestStatus - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - """ - _response = self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.issues.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIssuesClient - """ - return self._raw_client - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.issues import IssuesListRequestStatus - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.issues.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/issues/raw_client.py b/src/merge/resources/accounting/resources/issues/raw_client.py deleted file mode 100644 index a44fb598..00000000 --- a/src/merge/resources/accounting/resources/issues/raw_client.py +++ /dev/null @@ -1,336 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .types.issues_list_request_status import IssuesListRequestStatus - - -class RawIssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIssueList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Issue] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIssueList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Issue] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/issues/types/__init__.py b/src/merge/resources/accounting/resources/issues/types/__init__.py deleted file mode 100644 index 88fbf977..00000000 --- a/src/merge/resources/accounting/resources/issues/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .issues_list_request_status import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/accounting/resources/issues/types/issues_list_request_status.py b/src/merge/resources/accounting/resources/issues/types/issues_list_request_status.py deleted file mode 100644 index 2bd3521e..00000000 --- a/src/merge/resources/accounting/resources/issues/types/issues_list_request_status.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssuesListRequestStatus(str, enum.Enum): - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssuesListRequestStatus.ONGOING: - return ongoing() - if self is IssuesListRequestStatus.RESOLVED: - return resolved() diff --git a/src/merge/resources/accounting/resources/items/__init__.py b/src/merge/resources/accounting/resources/items/__init__.py deleted file mode 100644 index f805d534..00000000 --- a/src/merge/resources/accounting/resources/items/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ItemsListRequestExpand, ItemsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"ItemsListRequestExpand": ".types", "ItemsRetrieveRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ItemsListRequestExpand", "ItemsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/items/client.py b/src/merge/resources/accounting/resources/items/client.py deleted file mode 100644 index 6e6f4b14..00000000 --- a/src/merge/resources/accounting/resources/items/client.py +++ /dev/null @@ -1,814 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.item import Item -from ...types.item_request_request import ItemRequestRequest -from ...types.item_response import ItemResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_item_list import PaginatedItemList -from ...types.patched_item_request_request import PatchedItemRequestRequest -from .raw_client import AsyncRawItemsClient, RawItemsClient -from .types.items_list_request_expand import ItemsListRequestExpand -from .types.items_retrieve_request_expand import ItemsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ItemsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawItemsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawItemsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawItemsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ItemsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedItemList: - """ - Returns a list of `Item` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return items for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ItemsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedItemList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.items import ItemsListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.items.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ItemsListRequestExpand.COMPANY, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ItemResponse: - """ - Creates an `Item` object with the given values. - - Parameters - ---------- - model : ItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ItemResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import ItemRequestRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.items.create( - is_debug_mode=True, - run_async=True, - model=ItemRequestRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ItemsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Item: - """ - Returns an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ItemsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Item - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.items import ( - ItemsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.items.retrieve( - id="id", - expand=ItemsRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ItemResponse: - """ - Updates an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ItemResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import PatchedItemRequestRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.items.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedItemRequestRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Item` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.items.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Item` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.items.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncItemsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawItemsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawItemsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawItemsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ItemsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedItemList: - """ - Returns a list of `Item` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return items for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ItemsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedItemList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.items import ItemsListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.items.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ItemsListRequestExpand.COMPANY, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ItemResponse: - """ - Creates an `Item` object with the given values. - - Parameters - ---------- - model : ItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ItemResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import ItemRequestRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.items.create( - is_debug_mode=True, - run_async=True, - model=ItemRequestRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ItemsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Item: - """ - Returns an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ItemsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Item - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.items import ( - ItemsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.items.retrieve( - id="id", - expand=ItemsRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ItemResponse: - """ - Updates an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ItemResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import PatchedItemRequestRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.items.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedItemRequestRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Item` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.items.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Item` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.items.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/items/raw_client.py b/src/merge/resources/accounting/resources/items/raw_client.py deleted file mode 100644 index ab7550e3..00000000 --- a/src/merge/resources/accounting/resources/items/raw_client.py +++ /dev/null @@ -1,784 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.item import Item -from ...types.item_request_request import ItemRequestRequest -from ...types.item_response import ItemResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_item_list import PaginatedItemList -from ...types.patched_item_request_request import PatchedItemRequestRequest -from .types.items_list_request_expand import ItemsListRequestExpand -from .types.items_retrieve_request_expand import ItemsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawItemsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ItemsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedItemList]: - """ - Returns a list of `Item` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return items for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ItemsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedItemList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/items", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedItemList, - construct_type( - type_=PaginatedItemList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ItemResponse]: - """ - Creates an `Item` object with the given values. - - Parameters - ---------- - model : ItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ItemResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/items", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ItemResponse, - construct_type( - type_=ItemResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ItemsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Item]: - """ - Returns an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ItemsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Item] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/items/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Item, - construct_type( - type_=Item, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ItemResponse]: - """ - Updates an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ItemResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/items/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ItemResponse, - construct_type( - type_=ItemResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Item` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/items/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Item` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/items/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawItemsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ItemsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedItemList]: - """ - Returns a list of `Item` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return items for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ItemsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedItemList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/items", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedItemList, - construct_type( - type_=PaginatedItemList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ItemResponse]: - """ - Creates an `Item` object with the given values. - - Parameters - ---------- - model : ItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ItemResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/items", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ItemResponse, - construct_type( - type_=ItemResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ItemsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Item]: - """ - Returns an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ItemsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Item] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/items/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Item, - construct_type( - type_=Item, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedItemRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ItemResponse]: - """ - Updates an `Item` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedItemRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ItemResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/items/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ItemResponse, - construct_type( - type_=ItemResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Item` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/items/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Item` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/items/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/items/types/__init__.py b/src/merge/resources/accounting/resources/items/types/__init__.py deleted file mode 100644 index e3602950..00000000 --- a/src/merge/resources/accounting/resources/items/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .items_list_request_expand import ItemsListRequestExpand - from .items_retrieve_request_expand import ItemsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ItemsListRequestExpand": ".items_list_request_expand", - "ItemsRetrieveRequestExpand": ".items_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ItemsListRequestExpand", "ItemsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/items/types/items_list_request_expand.py b/src/merge/resources/accounting/resources/items/types/items_list_request_expand.py deleted file mode 100644 index c5a6ca95..00000000 --- a/src/merge/resources/accounting/resources/items/types/items_list_request_expand.py +++ /dev/null @@ -1,145 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemsListRequestExpand(str, enum.Enum): - COMPANY = "company" - COMPANY_PURCHASE_TAX_RATE = "company,purchase_tax_rate" - COMPANY_SALES_TAX_RATE = "company,sales_tax_rate" - COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = "company,sales_tax_rate,purchase_tax_rate" - PURCHASE_ACCOUNT = "purchase_account" - PURCHASE_ACCOUNT_COMPANY = "purchase_account,company" - PURCHASE_ACCOUNT_COMPANY_PURCHASE_TAX_RATE = "purchase_account,company,purchase_tax_rate" - PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE = "purchase_account,company,sales_tax_rate" - PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = ( - "purchase_account,company,sales_tax_rate,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_PURCHASE_TAX_RATE = "purchase_account,purchase_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT = "purchase_account,sales_account" - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY = "purchase_account,sales_account,company" - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE = ( - "purchase_account,sales_account,company,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE = "purchase_account,sales_account,company,sales_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = ( - "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_SALES_ACCOUNT_PURCHASE_TAX_RATE = "purchase_account,sales_account,purchase_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE = "purchase_account,sales_account,sales_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE = ( - "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_SALES_TAX_RATE = "purchase_account,sales_tax_rate" - PURCHASE_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE = "purchase_account,sales_tax_rate,purchase_tax_rate" - PURCHASE_TAX_RATE = "purchase_tax_rate" - SALES_ACCOUNT = "sales_account" - SALES_ACCOUNT_COMPANY = "sales_account,company" - SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE = "sales_account,company,purchase_tax_rate" - SALES_ACCOUNT_COMPANY_SALES_TAX_RATE = "sales_account,company,sales_tax_rate" - SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = "sales_account,company,sales_tax_rate,purchase_tax_rate" - SALES_ACCOUNT_PURCHASE_TAX_RATE = "sales_account,purchase_tax_rate" - SALES_ACCOUNT_SALES_TAX_RATE = "sales_account,sales_tax_rate" - SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE = "sales_account,sales_tax_rate,purchase_tax_rate" - SALES_TAX_RATE = "sales_tax_rate" - SALES_TAX_RATE_PURCHASE_TAX_RATE = "sales_tax_rate,purchase_tax_rate" - - def visit( - self, - company: typing.Callable[[], T_Result], - company_purchase_tax_rate: typing.Callable[[], T_Result], - company_sales_tax_rate: typing.Callable[[], T_Result], - company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account: typing.Callable[[], T_Result], - purchase_account_company: typing.Callable[[], T_Result], - purchase_account_company_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_company_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account: typing.Callable[[], T_Result], - purchase_account_sales_account_company: typing.Callable[[], T_Result], - purchase_account_sales_account_company_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_company_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_tax_rate: typing.Callable[[], T_Result], - sales_account: typing.Callable[[], T_Result], - sales_account_company: typing.Callable[[], T_Result], - sales_account_company_purchase_tax_rate: typing.Callable[[], T_Result], - sales_account_company_sales_tax_rate: typing.Callable[[], T_Result], - sales_account_company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - sales_account_purchase_tax_rate: typing.Callable[[], T_Result], - sales_account_sales_tax_rate: typing.Callable[[], T_Result], - sales_account_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - sales_tax_rate: typing.Callable[[], T_Result], - sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemsListRequestExpand.COMPANY: - return company() - if self is ItemsListRequestExpand.COMPANY_PURCHASE_TAX_RATE: - return company_purchase_tax_rate() - if self is ItemsListRequestExpand.COMPANY_SALES_TAX_RATE: - return company_sales_tax_rate() - if self is ItemsListRequestExpand.COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return company_sales_tax_rate_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT: - return purchase_account() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_COMPANY: - return purchase_account_company() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_COMPANY_PURCHASE_TAX_RATE: - return purchase_account_company_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE: - return purchase_account_company_sales_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_company_sales_tax_rate_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_PURCHASE_TAX_RATE: - return purchase_account_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT: - return purchase_account_sales_account() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY: - return purchase_account_sales_account_company() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE: - return purchase_account_sales_account_company_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE: - return purchase_account_sales_account_company_sales_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_sales_account_company_sales_tax_rate_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_PURCHASE_TAX_RATE: - return purchase_account_sales_account_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE: - return purchase_account_sales_account_sales_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_sales_account_sales_tax_rate_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_TAX_RATE: - return purchase_account_sales_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_sales_tax_rate_purchase_tax_rate() - if self is ItemsListRequestExpand.PURCHASE_TAX_RATE: - return purchase_tax_rate() - if self is ItemsListRequestExpand.SALES_ACCOUNT: - return sales_account() - if self is ItemsListRequestExpand.SALES_ACCOUNT_COMPANY: - return sales_account_company() - if self is ItemsListRequestExpand.SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE: - return sales_account_company_purchase_tax_rate() - if self is ItemsListRequestExpand.SALES_ACCOUNT_COMPANY_SALES_TAX_RATE: - return sales_account_company_sales_tax_rate() - if self is ItemsListRequestExpand.SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return sales_account_company_sales_tax_rate_purchase_tax_rate() - if self is ItemsListRequestExpand.SALES_ACCOUNT_PURCHASE_TAX_RATE: - return sales_account_purchase_tax_rate() - if self is ItemsListRequestExpand.SALES_ACCOUNT_SALES_TAX_RATE: - return sales_account_sales_tax_rate() - if self is ItemsListRequestExpand.SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return sales_account_sales_tax_rate_purchase_tax_rate() - if self is ItemsListRequestExpand.SALES_TAX_RATE: - return sales_tax_rate() - if self is ItemsListRequestExpand.SALES_TAX_RATE_PURCHASE_TAX_RATE: - return sales_tax_rate_purchase_tax_rate() diff --git a/src/merge/resources/accounting/resources/items/types/items_retrieve_request_expand.py b/src/merge/resources/accounting/resources/items/types/items_retrieve_request_expand.py deleted file mode 100644 index a0331335..00000000 --- a/src/merge/resources/accounting/resources/items/types/items_retrieve_request_expand.py +++ /dev/null @@ -1,145 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemsRetrieveRequestExpand(str, enum.Enum): - COMPANY = "company" - COMPANY_PURCHASE_TAX_RATE = "company,purchase_tax_rate" - COMPANY_SALES_TAX_RATE = "company,sales_tax_rate" - COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = "company,sales_tax_rate,purchase_tax_rate" - PURCHASE_ACCOUNT = "purchase_account" - PURCHASE_ACCOUNT_COMPANY = "purchase_account,company" - PURCHASE_ACCOUNT_COMPANY_PURCHASE_TAX_RATE = "purchase_account,company,purchase_tax_rate" - PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE = "purchase_account,company,sales_tax_rate" - PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = ( - "purchase_account,company,sales_tax_rate,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_PURCHASE_TAX_RATE = "purchase_account,purchase_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT = "purchase_account,sales_account" - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY = "purchase_account,sales_account,company" - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE = ( - "purchase_account,sales_account,company,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE = "purchase_account,sales_account,company,sales_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = ( - "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_SALES_ACCOUNT_PURCHASE_TAX_RATE = "purchase_account,sales_account,purchase_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE = "purchase_account,sales_account,sales_tax_rate" - PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE = ( - "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate" - ) - PURCHASE_ACCOUNT_SALES_TAX_RATE = "purchase_account,sales_tax_rate" - PURCHASE_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE = "purchase_account,sales_tax_rate,purchase_tax_rate" - PURCHASE_TAX_RATE = "purchase_tax_rate" - SALES_ACCOUNT = "sales_account" - SALES_ACCOUNT_COMPANY = "sales_account,company" - SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE = "sales_account,company,purchase_tax_rate" - SALES_ACCOUNT_COMPANY_SALES_TAX_RATE = "sales_account,company,sales_tax_rate" - SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE = "sales_account,company,sales_tax_rate,purchase_tax_rate" - SALES_ACCOUNT_PURCHASE_TAX_RATE = "sales_account,purchase_tax_rate" - SALES_ACCOUNT_SALES_TAX_RATE = "sales_account,sales_tax_rate" - SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE = "sales_account,sales_tax_rate,purchase_tax_rate" - SALES_TAX_RATE = "sales_tax_rate" - SALES_TAX_RATE_PURCHASE_TAX_RATE = "sales_tax_rate,purchase_tax_rate" - - def visit( - self, - company: typing.Callable[[], T_Result], - company_purchase_tax_rate: typing.Callable[[], T_Result], - company_sales_tax_rate: typing.Callable[[], T_Result], - company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account: typing.Callable[[], T_Result], - purchase_account_company: typing.Callable[[], T_Result], - purchase_account_company_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_company_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account: typing.Callable[[], T_Result], - purchase_account_sales_account_company: typing.Callable[[], T_Result], - purchase_account_sales_account_company_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_company_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_account_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_tax_rate: typing.Callable[[], T_Result], - purchase_account_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - purchase_tax_rate: typing.Callable[[], T_Result], - sales_account: typing.Callable[[], T_Result], - sales_account_company: typing.Callable[[], T_Result], - sales_account_company_purchase_tax_rate: typing.Callable[[], T_Result], - sales_account_company_sales_tax_rate: typing.Callable[[], T_Result], - sales_account_company_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - sales_account_purchase_tax_rate: typing.Callable[[], T_Result], - sales_account_sales_tax_rate: typing.Callable[[], T_Result], - sales_account_sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - sales_tax_rate: typing.Callable[[], T_Result], - sales_tax_rate_purchase_tax_rate: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemsRetrieveRequestExpand.COMPANY: - return company() - if self is ItemsRetrieveRequestExpand.COMPANY_PURCHASE_TAX_RATE: - return company_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.COMPANY_SALES_TAX_RATE: - return company_sales_tax_rate() - if self is ItemsRetrieveRequestExpand.COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return company_sales_tax_rate_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT: - return purchase_account() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_COMPANY: - return purchase_account_company() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_COMPANY_PURCHASE_TAX_RATE: - return purchase_account_company_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE: - return purchase_account_company_sales_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_company_sales_tax_rate_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_PURCHASE_TAX_RATE: - return purchase_account_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT: - return purchase_account_sales_account() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY: - return purchase_account_sales_account_company() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE: - return purchase_account_sales_account_company_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE: - return purchase_account_sales_account_company_sales_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_sales_account_company_sales_tax_rate_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_PURCHASE_TAX_RATE: - return purchase_account_sales_account_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE: - return purchase_account_sales_account_sales_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_sales_account_sales_tax_rate_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_TAX_RATE: - return purchase_account_sales_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return purchase_account_sales_tax_rate_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.PURCHASE_TAX_RATE: - return purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT: - return sales_account() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT_COMPANY: - return sales_account_company() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT_COMPANY_PURCHASE_TAX_RATE: - return sales_account_company_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT_COMPANY_SALES_TAX_RATE: - return sales_account_company_sales_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT_COMPANY_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return sales_account_company_sales_tax_rate_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT_PURCHASE_TAX_RATE: - return sales_account_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT_SALES_TAX_RATE: - return sales_account_sales_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_ACCOUNT_SALES_TAX_RATE_PURCHASE_TAX_RATE: - return sales_account_sales_tax_rate_purchase_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_TAX_RATE: - return sales_tax_rate() - if self is ItemsRetrieveRequestExpand.SALES_TAX_RATE_PURCHASE_TAX_RATE: - return sales_tax_rate_purchase_tax_rate() diff --git a/src/merge/resources/accounting/resources/journal_entries/__init__.py b/src/merge/resources/accounting/resources/journal_entries/__init__.py deleted file mode 100644 index a104fe9f..00000000 --- a/src/merge/resources/accounting/resources/journal_entries/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import JournalEntriesListRequestExpand, JournalEntriesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "JournalEntriesListRequestExpand": ".types", - "JournalEntriesRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["JournalEntriesListRequestExpand", "JournalEntriesRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/journal_entries/client.py b/src/merge/resources/accounting/resources/journal_entries/client.py deleted file mode 100644 index 43249ba4..00000000 --- a/src/merge/resources/accounting/resources/journal_entries/client.py +++ /dev/null @@ -1,968 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.journal_entry import JournalEntry -from ...types.journal_entry_request import JournalEntryRequest -from ...types.journal_entry_response import JournalEntryResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_journal_entry_list import PaginatedJournalEntryList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawJournalEntriesClient, RawJournalEntriesClient -from .types.journal_entries_list_request_expand import JournalEntriesListRequestExpand -from .types.journal_entries_retrieve_request_expand import JournalEntriesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class JournalEntriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawJournalEntriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawJournalEntriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawJournalEntriesClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JournalEntriesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJournalEntryList: - """ - Returns a list of `JournalEntry` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return journal entries for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JournalEntriesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJournalEntryList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.journal_entries import ( - JournalEntriesListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.journal_entries.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JournalEntriesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: JournalEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JournalEntryResponse: - """ - Creates a `JournalEntry` object with the given values. - - Parameters - ---------- - model : JournalEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JournalEntryResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import JournalEntryRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.journal_entries.create( - is_debug_mode=True, - run_async=True, - model=JournalEntryRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[JournalEntriesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JournalEntry: - """ - Returns a `JournalEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JournalEntriesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JournalEntry - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.journal_entries import ( - JournalEntriesRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.journal_entries.retrieve( - id="id", - expand=JournalEntriesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.journal_entries.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.lines_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `JournalEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.journal_entries.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.journal_entries.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncJournalEntriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawJournalEntriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawJournalEntriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawJournalEntriesClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JournalEntriesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJournalEntryList: - """ - Returns a list of `JournalEntry` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return journal entries for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JournalEntriesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJournalEntryList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.journal_entries import ( - JournalEntriesListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.journal_entries.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JournalEntriesListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: JournalEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JournalEntryResponse: - """ - Creates a `JournalEntry` object with the given values. - - Parameters - ---------- - model : JournalEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JournalEntryResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import JournalEntryRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.journal_entries.create( - is_debug_mode=True, - run_async=True, - model=JournalEntryRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[JournalEntriesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JournalEntry: - """ - Returns a `JournalEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JournalEntriesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JournalEntry - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.journal_entries import ( - JournalEntriesRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.journal_entries.retrieve( - id="id", - expand=JournalEntriesRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.journal_entries.lines_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.lines_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `JournalEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.journal_entries.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.journal_entries.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/journal_entries/raw_client.py b/src/merge/resources/accounting/resources/journal_entries/raw_client.py deleted file mode 100644 index 622bede3..00000000 --- a/src/merge/resources/accounting/resources/journal_entries/raw_client.py +++ /dev/null @@ -1,890 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.journal_entry import JournalEntry -from ...types.journal_entry_request import JournalEntryRequest -from ...types.journal_entry_response import JournalEntryResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_journal_entry_list import PaginatedJournalEntryList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .types.journal_entries_list_request_expand import JournalEntriesListRequestExpand -from .types.journal_entries_retrieve_request_expand import JournalEntriesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawJournalEntriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JournalEntriesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedJournalEntryList]: - """ - Returns a list of `JournalEntry` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return journal entries for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JournalEntriesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedJournalEntryList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJournalEntryList, - construct_type( - type_=PaginatedJournalEntryList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: JournalEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[JournalEntryResponse]: - """ - Creates a `JournalEntry` object with the given values. - - Parameters - ---------- - model : JournalEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[JournalEntryResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JournalEntryResponse, - construct_type( - type_=JournalEntryResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[JournalEntriesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[JournalEntry]: - """ - Returns a `JournalEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JournalEntriesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[JournalEntry] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/journal-entries/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JournalEntry, - construct_type( - type_=JournalEntry, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries/lines/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `JournalEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawJournalEntriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JournalEntriesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedJournalEntryList]: - """ - Returns a list of `JournalEntry` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return journal entries for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JournalEntriesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedJournalEntryList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJournalEntryList, - construct_type( - type_=PaginatedJournalEntryList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: JournalEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[JournalEntryResponse]: - """ - Creates a `JournalEntry` object with the given values. - - Parameters - ---------- - model : JournalEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[JournalEntryResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JournalEntryResponse, - construct_type( - type_=JournalEntryResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[JournalEntriesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[JournalEntry]: - """ - Returns a `JournalEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JournalEntriesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[JournalEntry] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/journal-entries/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JournalEntry, - construct_type( - type_=JournalEntry, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def lines_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries/lines/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `JournalEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/journal-entries/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/journal_entries/types/__init__.py b/src/merge/resources/accounting/resources/journal_entries/types/__init__.py deleted file mode 100644 index 3b9f1aaf..00000000 --- a/src/merge/resources/accounting/resources/journal_entries/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .journal_entries_list_request_expand import JournalEntriesListRequestExpand - from .journal_entries_retrieve_request_expand import JournalEntriesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "JournalEntriesListRequestExpand": ".journal_entries_list_request_expand", - "JournalEntriesRetrieveRequestExpand": ".journal_entries_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["JournalEntriesListRequestExpand", "JournalEntriesRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/journal_entries/types/journal_entries_list_request_expand.py b/src/merge/resources/accounting/resources/journal_entries/types/journal_entries_list_request_expand.py deleted file mode 100644 index d5a47081..00000000 --- a/src/merge/resources/accounting/resources/journal_entries/types/journal_entries_list_request_expand.py +++ /dev/null @@ -1,294 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JournalEntriesListRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - APPLIED_PAYMENTS = "applied_payments" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "applied_payments,accounting_period" - APPLIED_PAYMENTS_COMPANY = "applied_payments,company" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES = "applied_payments,tracking_categories" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "applied_payments,tracking_categories,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,accounting_period" - ) - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - LINES = "lines" - LINES_ACCOUNTING_PERIOD = "lines,accounting_period" - LINES_APPLIED_PAYMENTS = "lines,applied_payments" - LINES_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "lines,applied_payments,accounting_period" - LINES_APPLIED_PAYMENTS_COMPANY = "lines,applied_payments,company" - LINES_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "lines,applied_payments,company,accounting_period" - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "lines,applied_payments,tracking_categories" - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "lines,applied_payments,tracking_categories,accounting_period" - ) - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "lines,applied_payments,tracking_categories,company" - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "lines,applied_payments,tracking_categories,company,accounting_period" - ) - LINES_COMPANY = "lines,company" - LINES_COMPANY_ACCOUNTING_PERIOD = "lines,company,accounting_period" - LINES_PAYMENTS = "lines,payments" - LINES_PAYMENTS_ACCOUNTING_PERIOD = "lines,payments,accounting_period" - LINES_PAYMENTS_APPLIED_PAYMENTS = "lines,payments,applied_payments" - LINES_PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "lines,payments,applied_payments,accounting_period" - LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY = "lines,payments,applied_payments,company" - LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = ( - "lines,payments,applied_payments,company,accounting_period" - ) - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "lines,payments,applied_payments,tracking_categories" - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "lines,payments,applied_payments,tracking_categories,accounting_period" - ) - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = ( - "lines,payments,applied_payments,tracking_categories,company" - ) - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "lines,payments,applied_payments,tracking_categories,company,accounting_period" - ) - LINES_PAYMENTS_COMPANY = "lines,payments,company" - LINES_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "lines,payments,company,accounting_period" - LINES_PAYMENTS_TRACKING_CATEGORIES = "lines,payments,tracking_categories" - LINES_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "lines,payments,tracking_categories,accounting_period" - LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "lines,payments,tracking_categories,company" - LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "lines,payments,tracking_categories,company,accounting_period" - ) - LINES_TRACKING_CATEGORIES = "lines,tracking_categories" - LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "lines,tracking_categories,accounting_period" - LINES_TRACKING_CATEGORIES_COMPANY = "lines,tracking_categories,company" - LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "lines,tracking_categories,company,accounting_period" - PAYMENTS = "payments" - PAYMENTS_ACCOUNTING_PERIOD = "payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS = "payments,applied_payments" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "payments,applied_payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_COMPANY = "payments,applied_payments,company" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "payments,applied_payments,tracking_categories" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,applied_payments,tracking_categories,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,accounting_period" - ) - PAYMENTS_COMPANY = "payments,company" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES = "payments,tracking_categories" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "payments,tracking_categories,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,tracking_categories,company" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,company,accounting_period" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - applied_payments: typing.Callable[[], T_Result], - applied_payments_accounting_period: typing.Callable[[], T_Result], - applied_payments_company: typing.Callable[[], T_Result], - applied_payments_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - lines: typing.Callable[[], T_Result], - lines_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments: typing.Callable[[], T_Result], - lines_applied_payments_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments_company: typing.Callable[[], T_Result], - lines_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_company: typing.Callable[[], T_Result], - lines_company_accounting_period: typing.Callable[[], T_Result], - lines_payments: typing.Callable[[], T_Result], - lines_payments_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments: typing.Callable[[], T_Result], - lines_payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments_company: typing.Callable[[], T_Result], - lines_payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_payments_company: typing.Callable[[], T_Result], - lines_payments_company_accounting_period: typing.Callable[[], T_Result], - lines_payments_tracking_categories: typing.Callable[[], T_Result], - lines_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_payments_tracking_categories_company: typing.Callable[[], T_Result], - lines_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories: typing.Callable[[], T_Result], - lines_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_company: typing.Callable[[], T_Result], - lines_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments: typing.Callable[[], T_Result], - payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_company: typing.Callable[[], T_Result], - payments_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JournalEntriesListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS: - return applied_payments() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return applied_payments_accounting_period() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS_COMPANY: - return applied_payments_company() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_company_accounting_period() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return applied_payments_tracking_categories() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_tracking_categories_company() - if self is JournalEntriesListRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesListRequestExpand.COMPANY: - return company() - if self is JournalEntriesListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES: - return lines() - if self is JournalEntriesListRequestExpand.LINES_ACCOUNTING_PERIOD: - return lines_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS: - return lines_applied_payments() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return lines_applied_payments_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS_COMPANY: - return lines_applied_payments_company() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return lines_applied_payments_company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return lines_applied_payments_tracking_categories() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return lines_applied_payments_tracking_categories_company() - if self is JournalEntriesListRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return lines_applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_COMPANY: - return lines_company() - if self is JournalEntriesListRequestExpand.LINES_COMPANY_ACCOUNTING_PERIOD: - return lines_company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS: - return lines_payments() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_ACCOUNTING_PERIOD: - return lines_payments_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS: - return lines_payments_applied_payments() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return lines_payments_applied_payments_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return lines_payments_applied_payments_company() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return lines_payments_applied_payments_company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return lines_payments_applied_payments_tracking_categories() - if ( - self - is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD - ): - return lines_payments_applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return lines_payments_applied_payments_tracking_categories_company() - if ( - self - is JournalEntriesListRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return lines_payments_applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_COMPANY: - return lines_payments_company() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return lines_payments_company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES: - return lines_payments_tracking_categories() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_payments_tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return lines_payments_tracking_categories_company() - if self is JournalEntriesListRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return lines_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_TRACKING_CATEGORIES: - return lines_tracking_categories() - if self is JournalEntriesListRequestExpand.LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY: - return lines_tracking_categories_company() - if self is JournalEntriesListRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return lines_tracking_categories_company_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS: - return payments() - if self is JournalEntriesListRequestExpand.PAYMENTS_ACCOUNTING_PERIOD: - return payments_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS: - return payments_applied_payments() - if self is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return payments_applied_payments_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return payments_applied_payments_company() - if self is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_company_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return payments_applied_payments_tracking_categories() - if self is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_tracking_categories_company() - if ( - self - is JournalEntriesListRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS_COMPANY: - return payments_company() - if self is JournalEntriesListRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_company_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES: - return payments_tracking_categories() - if self is JournalEntriesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_tracking_categories_company() - if self is JournalEntriesListRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_accounting_period() - if self is JournalEntriesListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is JournalEntriesListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is JournalEntriesListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is JournalEntriesListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/journal_entries/types/journal_entries_retrieve_request_expand.py b/src/merge/resources/accounting/resources/journal_entries/types/journal_entries_retrieve_request_expand.py deleted file mode 100644 index bdac2481..00000000 --- a/src/merge/resources/accounting/resources/journal_entries/types/journal_entries_retrieve_request_expand.py +++ /dev/null @@ -1,297 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JournalEntriesRetrieveRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - APPLIED_PAYMENTS = "applied_payments" - APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "applied_payments,accounting_period" - APPLIED_PAYMENTS_COMPANY = "applied_payments,company" - APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "applied_payments,company,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES = "applied_payments,tracking_categories" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "applied_payments,tracking_categories,accounting_period" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "applied_payments,tracking_categories,company" - APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "applied_payments,tracking_categories,company,accounting_period" - ) - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - LINES = "lines" - LINES_ACCOUNTING_PERIOD = "lines,accounting_period" - LINES_APPLIED_PAYMENTS = "lines,applied_payments" - LINES_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "lines,applied_payments,accounting_period" - LINES_APPLIED_PAYMENTS_COMPANY = "lines,applied_payments,company" - LINES_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "lines,applied_payments,company,accounting_period" - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "lines,applied_payments,tracking_categories" - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "lines,applied_payments,tracking_categories,accounting_period" - ) - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "lines,applied_payments,tracking_categories,company" - LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "lines,applied_payments,tracking_categories,company,accounting_period" - ) - LINES_COMPANY = "lines,company" - LINES_COMPANY_ACCOUNTING_PERIOD = "lines,company,accounting_period" - LINES_PAYMENTS = "lines,payments" - LINES_PAYMENTS_ACCOUNTING_PERIOD = "lines,payments,accounting_period" - LINES_PAYMENTS_APPLIED_PAYMENTS = "lines,payments,applied_payments" - LINES_PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "lines,payments,applied_payments,accounting_period" - LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY = "lines,payments,applied_payments,company" - LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = ( - "lines,payments,applied_payments,company,accounting_period" - ) - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "lines,payments,applied_payments,tracking_categories" - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "lines,payments,applied_payments,tracking_categories,accounting_period" - ) - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = ( - "lines,payments,applied_payments,tracking_categories,company" - ) - LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "lines,payments,applied_payments,tracking_categories,company,accounting_period" - ) - LINES_PAYMENTS_COMPANY = "lines,payments,company" - LINES_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "lines,payments,company,accounting_period" - LINES_PAYMENTS_TRACKING_CATEGORIES = "lines,payments,tracking_categories" - LINES_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "lines,payments,tracking_categories,accounting_period" - LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "lines,payments,tracking_categories,company" - LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "lines,payments,tracking_categories,company,accounting_period" - ) - LINES_TRACKING_CATEGORIES = "lines,tracking_categories" - LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "lines,tracking_categories,accounting_period" - LINES_TRACKING_CATEGORIES_COMPANY = "lines,tracking_categories,company" - LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "lines,tracking_categories,company,accounting_period" - PAYMENTS = "payments" - PAYMENTS_ACCOUNTING_PERIOD = "payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS = "payments,applied_payments" - PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD = "payments,applied_payments,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_COMPANY = "payments,applied_payments,company" - PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,applied_payments,company,accounting_period" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES = "payments,applied_payments,tracking_categories" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,accounting_period" - ) - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,applied_payments,tracking_categories,company" - PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "payments,applied_payments,tracking_categories,company,accounting_period" - ) - PAYMENTS_COMPANY = "payments,company" - PAYMENTS_COMPANY_ACCOUNTING_PERIOD = "payments,company,accounting_period" - PAYMENTS_TRACKING_CATEGORIES = "payments,tracking_categories" - PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "payments,tracking_categories,accounting_period" - PAYMENTS_TRACKING_CATEGORIES_COMPANY = "payments,tracking_categories,company" - PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "payments,tracking_categories,company,accounting_period" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - applied_payments: typing.Callable[[], T_Result], - applied_payments_accounting_period: typing.Callable[[], T_Result], - applied_payments_company: typing.Callable[[], T_Result], - applied_payments_company_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories: typing.Callable[[], T_Result], - applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - lines: typing.Callable[[], T_Result], - lines_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments: typing.Callable[[], T_Result], - lines_applied_payments_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments_company: typing.Callable[[], T_Result], - lines_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - lines_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_company: typing.Callable[[], T_Result], - lines_company_accounting_period: typing.Callable[[], T_Result], - lines_payments: typing.Callable[[], T_Result], - lines_payments_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments: typing.Callable[[], T_Result], - lines_payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments_company: typing.Callable[[], T_Result], - lines_payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - lines_payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_payments_company: typing.Callable[[], T_Result], - lines_payments_company_accounting_period: typing.Callable[[], T_Result], - lines_payments_tracking_categories: typing.Callable[[], T_Result], - lines_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_payments_tracking_categories_company: typing.Callable[[], T_Result], - lines_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories: typing.Callable[[], T_Result], - lines_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_company: typing.Callable[[], T_Result], - lines_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments: typing.Callable[[], T_Result], - payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments: typing.Callable[[], T_Result], - payments_applied_payments_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_company: typing.Callable[[], T_Result], - payments_applied_payments_company_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_applied_payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - payments_company: typing.Callable[[], T_Result], - payments_company_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories: typing.Callable[[], T_Result], - payments_tracking_categories_accounting_period: typing.Callable[[], T_Result], - payments_tracking_categories_company: typing.Callable[[], T_Result], - payments_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JournalEntriesRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS: - return applied_payments() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return applied_payments_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY: - return applied_payments_company() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return applied_payments_tracking_categories() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return applied_payments_tracking_categories_company() - if self is JournalEntriesRetrieveRequestExpand.APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.COMPANY: - return company() - if self is JournalEntriesRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES: - return lines() - if self is JournalEntriesRetrieveRequestExpand.LINES_ACCOUNTING_PERIOD: - return lines_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS: - return lines_applied_payments() - if self is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return lines_applied_payments_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS_COMPANY: - return lines_applied_payments_company() - if self is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return lines_applied_payments_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return lines_applied_payments_tracking_categories() - if self is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return lines_applied_payments_tracking_categories_company() - if ( - self - is JournalEntriesRetrieveRequestExpand.LINES_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return lines_applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_COMPANY: - return lines_company() - if self is JournalEntriesRetrieveRequestExpand.LINES_COMPANY_ACCOUNTING_PERIOD: - return lines_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS: - return lines_payments() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_ACCOUNTING_PERIOD: - return lines_payments_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS: - return lines_payments_applied_payments() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return lines_payments_applied_payments_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return lines_payments_applied_payments_company() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return lines_payments_applied_payments_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return lines_payments_applied_payments_tracking_categories() - if ( - self - is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD - ): - return lines_payments_applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return lines_payments_applied_payments_tracking_categories_company() - if ( - self - is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return lines_payments_applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_COMPANY: - return lines_payments_company() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return lines_payments_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES: - return lines_payments_tracking_categories() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_payments_tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return lines_payments_tracking_categories_company() - if self is JournalEntriesRetrieveRequestExpand.LINES_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return lines_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_TRACKING_CATEGORIES: - return lines_tracking_categories() - if self is JournalEntriesRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY: - return lines_tracking_categories_company() - if self is JournalEntriesRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return lines_tracking_categories_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS: - return payments() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_ACCOUNTING_PERIOD: - return payments_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS: - return payments_applied_payments() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_ACCOUNTING_PERIOD: - return payments_applied_payments_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY: - return payments_applied_payments_company() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_applied_payments_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES: - return payments_applied_payments_tracking_categories() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_applied_payments_tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_applied_payments_tracking_categories_company() - if ( - self - is JournalEntriesRetrieveRequestExpand.PAYMENTS_APPLIED_PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD - ): - return payments_applied_payments_tracking_categories_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_COMPANY: - return payments_company() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_COMPANY_ACCOUNTING_PERIOD: - return payments_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES: - return payments_tracking_categories() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return payments_tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY: - return payments_tracking_categories_company() - if self is JournalEntriesRetrieveRequestExpand.PAYMENTS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return payments_tracking_categories_company_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is JournalEntriesRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is JournalEntriesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is JournalEntriesRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/link_token/__init__.py b/src/merge/resources/accounting/resources/link_token/__init__.py deleted file mode 100644 index 3bad6adf..00000000 --- a/src/merge/resources/accounting/resources/link_token/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/accounting/resources/link_token/client.py b/src/merge/resources/accounting/resources/link_token/client.py deleted file mode 100644 index 840832bb..00000000 --- a/src/merge/resources/accounting/resources/link_token/client.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkTokenClient - """ - return self._raw_client - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import CategoriesEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - """ - _response = self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkTokenClient - """ - return self._raw_client - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import CategoriesEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/link_token/raw_client.py b/src/merge/resources/accounting/resources/link_token/raw_client.py deleted file mode 100644 index 06ad90b6..00000000 --- a/src/merge/resources/accounting/resources/link_token/raw_client.py +++ /dev/null @@ -1,256 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LinkToken] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LinkToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/linked_accounts/__init__.py b/src/merge/resources/accounting/resources/linked_accounts/__init__.py deleted file mode 100644 index 0b9e42b4..00000000 --- a/src/merge/resources/accounting/resources/linked_accounts/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/accounting/resources/linked_accounts/client.py b/src/merge/resources/accounting/resources/linked_accounts/client.py deleted file mode 100644 index 3fceae3a..00000000 --- a/src/merge/resources/accounting/resources/linked_accounts/client.py +++ /dev/null @@ -1,293 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class LinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - """ - _response = self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/linked_accounts/raw_client.py b/src/merge/resources/accounting/resources/linked_accounts/raw_client.py deleted file mode 100644 index ccb799fd..00000000 --- a/src/merge/resources/accounting/resources/linked_accounts/raw_client.py +++ /dev/null @@ -1,246 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class RawLinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/linked_accounts/types/__init__.py b/src/merge/resources/accounting/resources/linked_accounts/types/__init__.py deleted file mode 100644 index a28f38cc..00000000 --- a/src/merge/resources/accounting/resources/linked_accounts/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/accounting/resources/linked_accounts/types/linked_accounts_list_request_category.py b/src/merge/resources/accounting/resources/linked_accounts/types/linked_accounts_list_request_category.py deleted file mode 100644 index bd873ea8..00000000 --- a/src/merge/resources/accounting/resources/linked_accounts/types/linked_accounts_list_request_category.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LinkedAccountsListRequestCategory(str, enum.Enum): - ACCOUNTING = "accounting" - ATS = "ats" - CRM = "crm" - FILESTORAGE = "filestorage" - HRIS = "hris" - MKTG = "mktg" - TICKETING = "ticketing" - - def visit( - self, - accounting: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - hris: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LinkedAccountsListRequestCategory.ACCOUNTING: - return accounting() - if self is LinkedAccountsListRequestCategory.ATS: - return ats() - if self is LinkedAccountsListRequestCategory.CRM: - return crm() - if self is LinkedAccountsListRequestCategory.FILESTORAGE: - return filestorage() - if self is LinkedAccountsListRequestCategory.HRIS: - return hris() - if self is LinkedAccountsListRequestCategory.MKTG: - return mktg() - if self is LinkedAccountsListRequestCategory.TICKETING: - return ticketing() diff --git a/src/merge/resources/accounting/resources/passthrough/__init__.py b/src/merge/resources/accounting/resources/passthrough/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/passthrough/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/passthrough/client.py b/src/merge/resources/accounting/resources/passthrough/client.py deleted file mode 100644 index ad9f1b57..00000000 --- a/src/merge/resources/accounting/resources/passthrough/client.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse -from .raw_client import AsyncRawPassthroughClient, RawPassthroughClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/passthrough/raw_client.py b/src/merge/resources/accounting/resources/passthrough/raw_client.py deleted file mode 100644 index f02bb1a3..00000000 --- a/src/merge/resources/accounting/resources/passthrough/raw_client.py +++ /dev/null @@ -1,111 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/payment_methods/__init__.py b/src/merge/resources/accounting/resources/payment_methods/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/payment_methods/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/payment_methods/client.py b/src/merge/resources/accounting/resources/payment_methods/client.py deleted file mode 100644 index f1761ebf..00000000 --- a/src/merge/resources/accounting/resources/payment_methods/client.py +++ /dev/null @@ -1,287 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_payment_method_list import PaginatedPaymentMethodList -from ...types.payment_method import PaymentMethod -from .raw_client import AsyncRawPaymentMethodsClient, RawPaymentMethodsClient - - -class PaymentMethodsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPaymentMethodsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPaymentMethodsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPaymentMethodsClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPaymentMethodList: - """ - Returns a list of `PaymentMethod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPaymentMethodList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payment_methods.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentMethod: - """ - Returns a `PaymentMethod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentMethod - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payment_methods.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncPaymentMethodsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPaymentMethodsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPaymentMethodsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPaymentMethodsClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPaymentMethodList: - """ - Returns a list of `PaymentMethod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPaymentMethodList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payment_methods.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentMethod: - """ - Returns a `PaymentMethod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentMethod - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payment_methods.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/payment_methods/raw_client.py b/src/merge/resources/accounting/resources/payment_methods/raw_client.py deleted file mode 100644 index 78256eba..00000000 --- a/src/merge/resources/accounting/resources/payment_methods/raw_client.py +++ /dev/null @@ -1,259 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_payment_method_list import PaginatedPaymentMethodList -from ...types.payment_method import PaymentMethod - - -class RawPaymentMethodsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedPaymentMethodList]: - """ - Returns a list of `PaymentMethod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedPaymentMethodList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/payment-methods", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPaymentMethodList, - construct_type( - type_=PaginatedPaymentMethodList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaymentMethod]: - """ - Returns a `PaymentMethod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaymentMethod] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/payment-methods/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentMethod, - construct_type( - type_=PaymentMethod, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPaymentMethodsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedPaymentMethodList]: - """ - Returns a list of `PaymentMethod` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedPaymentMethodList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/payment-methods", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPaymentMethodList, - construct_type( - type_=PaginatedPaymentMethodList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaymentMethod]: - """ - Returns a `PaymentMethod` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaymentMethod] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/payment-methods/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentMethod, - construct_type( - type_=PaymentMethod, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/payment_terms/__init__.py b/src/merge/resources/accounting/resources/payment_terms/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/payment_terms/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/payment_terms/client.py b/src/merge/resources/accounting/resources/payment_terms/client.py deleted file mode 100644 index 89107e4e..00000000 --- a/src/merge/resources/accounting/resources/payment_terms/client.py +++ /dev/null @@ -1,307 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_payment_term_list import PaginatedPaymentTermList -from ...types.payment_term import PaymentTerm -from .raw_client import AsyncRawPaymentTermsClient, RawPaymentTermsClient - - -class PaymentTermsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPaymentTermsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPaymentTermsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPaymentTermsClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPaymentTermList: - """ - Returns a list of `PaymentTerm` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPaymentTermList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payment_terms.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.list( - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentTerm: - """ - Returns a `PaymentTerm` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentTerm - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payment_terms.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncPaymentTermsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPaymentTermsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPaymentTermsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPaymentTermsClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPaymentTermList: - """ - Returns a list of `PaymentTerm` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPaymentTermList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payment_terms.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentTerm: - """ - Returns a `PaymentTerm` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentTerm - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payment_terms.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/payment_terms/raw_client.py b/src/merge/resources/accounting/resources/payment_terms/raw_client.py deleted file mode 100644 index 17476644..00000000 --- a/src/merge/resources/accounting/resources/payment_terms/raw_client.py +++ /dev/null @@ -1,279 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_payment_term_list import PaginatedPaymentTermList -from ...types.payment_term import PaymentTerm - - -class RawPaymentTermsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedPaymentTermList]: - """ - Returns a list of `PaymentTerm` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedPaymentTermList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/payment-terms", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPaymentTermList, - construct_type( - type_=PaginatedPaymentTermList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaymentTerm]: - """ - Returns a `PaymentTerm` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaymentTerm] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/payment-terms/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentTerm, - construct_type( - type_=PaymentTerm, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPaymentTermsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedPaymentTermList]: - """ - Returns a list of `PaymentTerm` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedPaymentTermList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/payment-terms", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPaymentTermList, - construct_type( - type_=PaginatedPaymentTermList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaymentTerm]: - """ - Returns a `PaymentTerm` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaymentTerm] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/payment-terms/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentTerm, - construct_type( - type_=PaymentTerm, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/payments/__init__.py b/src/merge/resources/accounting/resources/payments/__init__.py deleted file mode 100644 index 684c991d..00000000 --- a/src/merge/resources/accounting/resources/payments/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import PaymentsListRequestExpand, PaymentsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "PaymentsListRequestExpand": ".types", - "PaymentsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["PaymentsListRequestExpand", "PaymentsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/payments/client.py b/src/merge/resources/accounting/resources/payments/client.py deleted file mode 100644 index a6cae803..00000000 --- a/src/merge/resources/accounting/resources/payments/client.py +++ /dev/null @@ -1,1179 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_payment_list import PaginatedPaymentList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_payment_request import PatchedPaymentRequest -from ...types.payment import Payment -from ...types.payment_request import PaymentRequest -from ...types.payment_response import PaymentResponse -from .raw_client import AsyncRawPaymentsClient, RawPaymentsClient -from .types.payments_list_request_expand import PaymentsListRequestExpand -from .types.payments_retrieve_request_expand import PaymentsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PaymentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPaymentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPaymentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPaymentsClient - """ - return self._raw_client - - def list( - self, - *, - account_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PaymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPaymentList: - """ - Returns a list of `Payment` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return payments for this account. - - company_id : typing.Optional[str] - If provided, will only return payments for this company. - - contact_id : typing.Optional[str] - If provided, will only return payments for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PaymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPaymentList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.payments import ( - PaymentsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.list( - account_id="account_id", - company_id="company_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=PaymentsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - account_id=account_id, - company_id=company_id, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: PaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentResponse: - """ - Creates a `Payment` object with the given values. - - Parameters - ---------- - model : PaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import PaymentRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.create( - is_debug_mode=True, - run_async=True, - model=PaymentRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[PaymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Payment: - """ - Returns a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PaymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Payment - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.payments import ( - PaymentsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.retrieve( - id="id", - expand=PaymentsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedPaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentResponse: - """ - Updates a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedPaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import PatchedPaymentRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedPaymentRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.line_items_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Payment` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Payment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.payments.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncPaymentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPaymentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPaymentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPaymentsClient - """ - return self._raw_client - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PaymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPaymentList: - """ - Returns a list of `Payment` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return payments for this account. - - company_id : typing.Optional[str] - If provided, will only return payments for this company. - - contact_id : typing.Optional[str] - If provided, will only return payments for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PaymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPaymentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.payments import ( - PaymentsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.list( - account_id="account_id", - company_id="company_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=PaymentsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_id=account_id, - company_id=company_id, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: PaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentResponse: - """ - Creates a `Payment` object with the given values. - - Parameters - ---------- - model : PaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import PaymentRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.create( - is_debug_mode=True, - run_async=True, - model=PaymentRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[PaymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Payment: - """ - Returns a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PaymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Payment - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.payments import ( - PaymentsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.retrieve( - id="id", - expand=PaymentsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedPaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaymentResponse: - """ - Updates a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedPaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaymentResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import PatchedPaymentRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedPaymentRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.line_items_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Payment` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Payment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.payments.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/payments/raw_client.py b/src/merge/resources/accounting/resources/payments/raw_client.py deleted file mode 100644 index 590f6502..00000000 --- a/src/merge/resources/accounting/resources/payments/raw_client.py +++ /dev/null @@ -1,1113 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_payment_list import PaginatedPaymentList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_payment_request import PatchedPaymentRequest -from ...types.payment import Payment -from ...types.payment_request import PaymentRequest -from ...types.payment_response import PaymentResponse -from .types.payments_list_request_expand import PaymentsListRequestExpand -from .types.payments_retrieve_request_expand import PaymentsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPaymentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PaymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedPaymentList]: - """ - Returns a list of `Payment` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return payments for this account. - - company_id : typing.Optional[str] - If provided, will only return payments for this company. - - contact_id : typing.Optional[str] - If provided, will only return payments for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PaymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedPaymentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/payments", - method="GET", - params={ - "account_id": account_id, - "company_id": company_id, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPaymentList, - construct_type( - type_=PaginatedPaymentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: PaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaymentResponse]: - """ - Creates a `Payment` object with the given values. - - Parameters - ---------- - model : PaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaymentResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/payments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentResponse, - construct_type( - type_=PaymentResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[PaymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Payment]: - """ - Returns a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PaymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Payment] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/payments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Payment, - construct_type( - type_=Payment, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedPaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaymentResponse]: - """ - Updates a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedPaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaymentResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/payments/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentResponse, - construct_type( - type_=PaymentResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/payments/line-items/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Payment` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/payments/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Payment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/payments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/payments/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPaymentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PaymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedPaymentList]: - """ - Returns a list of `Payment` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return payments for this account. - - company_id : typing.Optional[str] - If provided, will only return payments for this company. - - contact_id : typing.Optional[str] - If provided, will only return payments for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PaymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedPaymentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/payments", - method="GET", - params={ - "account_id": account_id, - "company_id": company_id, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPaymentList, - construct_type( - type_=PaginatedPaymentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: PaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaymentResponse]: - """ - Creates a `Payment` object with the given values. - - Parameters - ---------- - model : PaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaymentResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/payments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentResponse, - construct_type( - type_=PaymentResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[PaymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Payment]: - """ - Returns a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PaymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Payment] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/payments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Payment, - construct_type( - type_=Payment, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedPaymentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaymentResponse]: - """ - Updates a `Payment` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedPaymentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaymentResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/payments/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaymentResponse, - construct_type( - type_=PaymentResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/payments/line-items/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Payment` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/payments/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Payment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/payments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/payments/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/payments/types/__init__.py b/src/merge/resources/accounting/resources/payments/types/__init__.py deleted file mode 100644 index f0d810e9..00000000 --- a/src/merge/resources/accounting/resources/payments/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .payments_list_request_expand import PaymentsListRequestExpand - from .payments_retrieve_request_expand import PaymentsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "PaymentsListRequestExpand": ".payments_list_request_expand", - "PaymentsRetrieveRequestExpand": ".payments_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["PaymentsListRequestExpand", "PaymentsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/payments/types/payments_list_request_expand.py b/src/merge/resources/accounting/resources/payments/types/payments_list_request_expand.py deleted file mode 100644 index f22783c7..00000000 --- a/src/merge/resources/accounting/resources/payments/types/payments_list_request_expand.py +++ /dev/null @@ -1,641 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PaymentsListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" - ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = "account,accounting_period,payment_method" - ACCOUNT_COMPANY = "account,company" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = "account,company,accounting_period,payment_method" - ACCOUNT_COMPANY_PAYMENT_METHOD = "account,company,payment_method" - ACCOUNT_PAYMENT_METHOD = "account,payment_method" - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_PAYMENT_METHOD = "accounting_period,payment_method" - APPLIED_TO_LINES = "applied_to_lines" - APPLIED_TO_LINES_ACCOUNT = "applied_to_lines,account" - APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD = "applied_to_lines,account,accounting_period" - APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,account,accounting_period,payment_method" - ) - APPLIED_TO_LINES_ACCOUNT_COMPANY = "applied_to_lines,account,company" - APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "applied_to_lines,account,company,accounting_period" - APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,account,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD = "applied_to_lines,account,company,payment_method" - APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD = "applied_to_lines,account,payment_method" - APPLIED_TO_LINES_ACCOUNTING_PERIOD = "applied_to_lines,accounting_period" - APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD = "applied_to_lines,accounting_period,payment_method" - APPLIED_TO_LINES_COMPANY = "applied_to_lines,company" - APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD = "applied_to_lines,company,accounting_period" - APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD = "applied_to_lines,company,payment_method" - APPLIED_TO_LINES_CONTACT = "applied_to_lines,contact" - APPLIED_TO_LINES_CONTACT_ACCOUNT = "applied_to_lines,contact,account" - APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "applied_to_lines,contact,account,accounting_period" - APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,account,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY = "applied_to_lines,contact,account,company" - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_to_lines,contact,account,company,accounting_period" - ) - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,account,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = "applied_to_lines,contact,account,company,payment_method" - APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD = "applied_to_lines,contact,account,payment_method" - APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD = "applied_to_lines,contact,accounting_period" - APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_COMPANY = "applied_to_lines,contact,company" - APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_to_lines,contact,company,accounting_period" - APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD = "applied_to_lines,contact,company,payment_method" - APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD = "applied_to_lines,contact,payment_method" - APPLIED_TO_LINES_PAYMENT_METHOD = "applied_to_lines,payment_method" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = "company,accounting_period,payment_method" - COMPANY_PAYMENT_METHOD = "company,payment_method" - CONTACT = "contact" - CONTACT_ACCOUNT = "contact,account" - CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period" - CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = "contact,account,accounting_period,payment_method" - CONTACT_ACCOUNT_COMPANY = "contact,account,company" - CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period" - CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "contact,account,company,accounting_period,payment_method" - ) - CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = "contact,account,company,payment_method" - CONTACT_ACCOUNT_PAYMENT_METHOD = "contact,account,payment_method" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = "contact,accounting_period,payment_method" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = "contact,company,accounting_period,payment_method" - CONTACT_COMPANY_PAYMENT_METHOD = "contact,company,payment_method" - CONTACT_PAYMENT_METHOD = "contact,payment_method" - PAYMENT_METHOD = "payment_method" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_ACCOUNT_COMPANY_PAYMENT_METHOD = "tracking_categories,account,company,payment_method" - TRACKING_CATEGORIES_ACCOUNT_PAYMENT_METHOD = "tracking_categories,account,payment_method" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_METHOD = "tracking_categories,accounting_period,payment_method" - TRACKING_CATEGORIES_APPLIED_TO_LINES = "tracking_categories,applied_to_lines" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT = "tracking_categories,applied_to_lines,account" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,account,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY = "tracking_categories,applied_to_lines,account,company" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,account,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD = "tracking_categories,applied_to_lines,accounting_period" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY = "tracking_categories,applied_to_lines,company" - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT = "tracking_categories,applied_to_lines,contact" - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT = "tracking_categories,applied_to_lines,contact,account" - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,account,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY = ( - "tracking_categories,applied_to_lines,contact,account,company" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,account,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY = "tracking_categories,applied_to_lines,contact,company" - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_PAYMENT_METHOD = "tracking_categories,applied_to_lines,payment_method" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_COMPANY_PAYMENT_METHOD = "tracking_categories,company,payment_method" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,account,company,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,contact,account,company,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_PAYMENT_METHOD = "tracking_categories,contact,account,payment_method" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_METHOD = "tracking_categories,contact,company,payment_method" - TRACKING_CATEGORIES_CONTACT_PAYMENT_METHOD = "tracking_categories,contact,payment_method" - TRACKING_CATEGORIES_PAYMENT_METHOD = "tracking_categories,payment_method" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_accounting_period: typing.Callable[[], T_Result], - account_accounting_period_payment_method: typing.Callable[[], T_Result], - account_company: typing.Callable[[], T_Result], - account_company_accounting_period: typing.Callable[[], T_Result], - account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - account_company_payment_method: typing.Callable[[], T_Result], - account_payment_method: typing.Callable[[], T_Result], - accounting_period: typing.Callable[[], T_Result], - accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines: typing.Callable[[], T_Result], - applied_to_lines_account: typing.Callable[[], T_Result], - applied_to_lines_account_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_account_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_account_company: typing.Callable[[], T_Result], - applied_to_lines_account_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_account_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_account_payment_method: typing.Callable[[], T_Result], - applied_to_lines_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_company: typing.Callable[[], T_Result], - applied_to_lines_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact: typing.Callable[[], T_Result], - applied_to_lines_contact_account: typing.Callable[[], T_Result], - applied_to_lines_contact_account_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_account_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_account_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_company: typing.Callable[[], T_Result], - applied_to_lines_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_payment_method: typing.Callable[[], T_Result], - applied_to_lines_payment_method: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_accounting_period_payment_method: typing.Callable[[], T_Result], - company_payment_method: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_account: typing.Callable[[], T_Result], - contact_account_accounting_period: typing.Callable[[], T_Result], - contact_account_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_account_company: typing.Callable[[], T_Result], - contact_account_company_accounting_period: typing.Callable[[], T_Result], - contact_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_account_company_payment_method: typing.Callable[[], T_Result], - contact_account_payment_method: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - contact_company_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_company_payment_method: typing.Callable[[], T_Result], - contact_payment_method: typing.Callable[[], T_Result], - payment_method: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_account: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_account_company: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_company_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_contact_account_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_company_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_contact_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_company_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_contact_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_payment_method: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_account: typing.Callable[[], T_Result], - tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_account_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_account_company: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_payment_method: typing.Callable[[], T_Result], - tracking_categories_payment_method: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PaymentsListRequestExpand.ACCOUNT: - return account() - if self is PaymentsListRequestExpand.ACCOUNT_ACCOUNTING_PERIOD: - return account_accounting_period() - if self is PaymentsListRequestExpand.ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.ACCOUNT_COMPANY: - return account_company() - if self is PaymentsListRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return account_company_accounting_period() - if self is PaymentsListRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return account_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.ACCOUNT_COMPANY_PAYMENT_METHOD: - return account_company_payment_method() - if self is PaymentsListRequestExpand.ACCOUNT_PAYMENT_METHOD: - return account_payment_method() - if self is PaymentsListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is PaymentsListRequestExpand.ACCOUNTING_PERIOD_PAYMENT_METHOD: - return accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES: - return applied_to_lines() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT: - return applied_to_lines_account() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD: - return applied_to_lines_account_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY: - return applied_to_lines_account_company() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_account_company_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_account_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD: - return applied_to_lines_account_company_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD: - return applied_to_lines_account_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNTING_PERIOD: - return applied_to_lines_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_COMPANY: - return applied_to_lines_company() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_company_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD: - return applied_to_lines_company_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT: - return applied_to_lines_contact() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT: - return applied_to_lines_contact_account() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return applied_to_lines_contact_account_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_contact_account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY: - return applied_to_lines_contact_account_company() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_contact_account_company_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_contact_account_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD: - return applied_to_lines_contact_account_company_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD: - return applied_to_lines_contact_account_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD: - return applied_to_lines_contact_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_contact_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY: - return applied_to_lines_contact_company() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_contact_company_accounting_period() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_contact_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD: - return applied_to_lines_contact_company_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD: - return applied_to_lines_contact_payment_method() - if self is PaymentsListRequestExpand.APPLIED_TO_LINES_PAYMENT_METHOD: - return applied_to_lines_payment_method() - if self is PaymentsListRequestExpand.COMPANY: - return company() - if self is PaymentsListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is PaymentsListRequestExpand.COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.COMPANY_PAYMENT_METHOD: - return company_payment_method() - if self is PaymentsListRequestExpand.CONTACT: - return contact() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT: - return contact_account() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return contact_account_accounting_period() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT_COMPANY: - return contact_account_company() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return contact_account_company_accounting_period() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_account_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD: - return contact_account_company_payment_method() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNT_PAYMENT_METHOD: - return contact_account_payment_method() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is PaymentsListRequestExpand.CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_accounting_period_payment_method() - if self is PaymentsListRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is PaymentsListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is PaymentsListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.CONTACT_COMPANY_PAYMENT_METHOD: - return contact_company_payment_method() - if self is PaymentsListRequestExpand.CONTACT_PAYMENT_METHOD: - return contact_payment_method() - if self is PaymentsListRequestExpand.PAYMENT_METHOD: - return payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT: - return tracking_categories_account() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_account_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return tracking_categories_account_company() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_company_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_account_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_PAYMENT_METHOD: - return tracking_categories_account_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_account_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES: - return tracking_categories_applied_to_lines() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT: - return tracking_categories_applied_to_lines_account() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_account_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY: - return tracking_categories_applied_to_lines_account_company() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_account_company_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_account_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_account_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_account_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY: - return tracking_categories_applied_to_lines_company() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_company_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT: - return tracking_categories_applied_to_lines_contact() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT: - return tracking_categories_applied_to_lines_contact_account() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_contact_account_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY: - return tracking_categories_applied_to_lines_contact_account_company() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_to_lines_contact_account_company_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_account_company_accounting_period_payment_method() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_account_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_contact_account_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_contact_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY: - return tracking_categories_applied_to_lines_contact_company() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_contact_company_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_contact_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_contact_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_COMPANY_PAYMENT_METHOD: - return tracking_categories_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT: - return tracking_categories_contact_account() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_contact_account_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY: - return tracking_categories_contact_account_company() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_company_accounting_period() - if ( - self - is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_contact_account_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD: - return tracking_categories_contact_account_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_contact_account_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_contact_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_contact_company_accounting_period_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_METHOD: - return tracking_categories_contact_company_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_CONTACT_PAYMENT_METHOD: - return tracking_categories_contact_payment_method() - if self is PaymentsListRequestExpand.TRACKING_CATEGORIES_PAYMENT_METHOD: - return tracking_categories_payment_method() diff --git a/src/merge/resources/accounting/resources/payments/types/payments_retrieve_request_expand.py b/src/merge/resources/accounting/resources/payments/types/payments_retrieve_request_expand.py deleted file mode 100644 index fea64353..00000000 --- a/src/merge/resources/accounting/resources/payments/types/payments_retrieve_request_expand.py +++ /dev/null @@ -1,644 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PaymentsRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" - ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = "account,accounting_period,payment_method" - ACCOUNT_COMPANY = "account,company" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = "account,company,accounting_period,payment_method" - ACCOUNT_COMPANY_PAYMENT_METHOD = "account,company,payment_method" - ACCOUNT_PAYMENT_METHOD = "account,payment_method" - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_PAYMENT_METHOD = "accounting_period,payment_method" - APPLIED_TO_LINES = "applied_to_lines" - APPLIED_TO_LINES_ACCOUNT = "applied_to_lines,account" - APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD = "applied_to_lines,account,accounting_period" - APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,account,accounting_period,payment_method" - ) - APPLIED_TO_LINES_ACCOUNT_COMPANY = "applied_to_lines,account,company" - APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "applied_to_lines,account,company,accounting_period" - APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,account,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD = "applied_to_lines,account,company,payment_method" - APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD = "applied_to_lines,account,payment_method" - APPLIED_TO_LINES_ACCOUNTING_PERIOD = "applied_to_lines,accounting_period" - APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD = "applied_to_lines,accounting_period,payment_method" - APPLIED_TO_LINES_COMPANY = "applied_to_lines,company" - APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD = "applied_to_lines,company,accounting_period" - APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD = "applied_to_lines,company,payment_method" - APPLIED_TO_LINES_CONTACT = "applied_to_lines,contact" - APPLIED_TO_LINES_CONTACT_ACCOUNT = "applied_to_lines,contact,account" - APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "applied_to_lines,contact,account,accounting_period" - APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,account,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY = "applied_to_lines,contact,account,company" - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "applied_to_lines,contact,account,company,accounting_period" - ) - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,account,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = "applied_to_lines,contact,account,company,payment_method" - APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD = "applied_to_lines,contact,account,payment_method" - APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD = "applied_to_lines,contact,accounting_period" - APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_COMPANY = "applied_to_lines,contact,company" - APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "applied_to_lines,contact,company,accounting_period" - APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "applied_to_lines,contact,company,accounting_period,payment_method" - ) - APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD = "applied_to_lines,contact,company,payment_method" - APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD = "applied_to_lines,contact,payment_method" - APPLIED_TO_LINES_PAYMENT_METHOD = "applied_to_lines,payment_method" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = "company,accounting_period,payment_method" - COMPANY_PAYMENT_METHOD = "company,payment_method" - CONTACT = "contact" - CONTACT_ACCOUNT = "contact,account" - CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period" - CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = "contact,account,accounting_period,payment_method" - CONTACT_ACCOUNT_COMPANY = "contact,account,company" - CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period" - CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "contact,account,company,accounting_period,payment_method" - ) - CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = "contact,account,company,payment_method" - CONTACT_ACCOUNT_PAYMENT_METHOD = "contact,account,payment_method" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = "contact,accounting_period,payment_method" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = "contact,company,accounting_period,payment_method" - CONTACT_COMPANY_PAYMENT_METHOD = "contact,company,payment_method" - CONTACT_PAYMENT_METHOD = "contact,payment_method" - PAYMENT_METHOD = "payment_method" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_ACCOUNT_COMPANY_PAYMENT_METHOD = "tracking_categories,account,company,payment_method" - TRACKING_CATEGORIES_ACCOUNT_PAYMENT_METHOD = "tracking_categories,account,payment_method" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_METHOD = "tracking_categories,accounting_period,payment_method" - TRACKING_CATEGORIES_APPLIED_TO_LINES = "tracking_categories,applied_to_lines" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT = "tracking_categories,applied_to_lines,account" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,account,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY = "tracking_categories,applied_to_lines,account,company" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,account,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,account,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD = "tracking_categories,applied_to_lines,accounting_period" - TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY = "tracking_categories,applied_to_lines,company" - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT = "tracking_categories,applied_to_lines,contact" - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT = "tracking_categories,applied_to_lines,contact,account" - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,account,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY = ( - "tracking_categories,applied_to_lines,contact,account,company" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,account,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,account,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY = "tracking_categories,applied_to_lines,contact,company" - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,applied_to_lines,contact,company,accounting_period" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,company,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD = ( - "tracking_categories,applied_to_lines,contact,payment_method" - ) - TRACKING_CATEGORIES_APPLIED_TO_LINES_PAYMENT_METHOD = "tracking_categories,applied_to_lines,payment_method" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_COMPANY_PAYMENT_METHOD = "tracking_categories,company,payment_method" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,account,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,account,company,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,account,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD = ( - "tracking_categories,contact,account,company,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNT_PAYMENT_METHOD = "tracking_categories,contact,account,payment_method" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD = ( - "tracking_categories,contact,company,accounting_period,payment_method" - ) - TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_METHOD = "tracking_categories,contact,company,payment_method" - TRACKING_CATEGORIES_CONTACT_PAYMENT_METHOD = "tracking_categories,contact,payment_method" - TRACKING_CATEGORIES_PAYMENT_METHOD = "tracking_categories,payment_method" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_accounting_period: typing.Callable[[], T_Result], - account_accounting_period_payment_method: typing.Callable[[], T_Result], - account_company: typing.Callable[[], T_Result], - account_company_accounting_period: typing.Callable[[], T_Result], - account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - account_company_payment_method: typing.Callable[[], T_Result], - account_payment_method: typing.Callable[[], T_Result], - accounting_period: typing.Callable[[], T_Result], - accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines: typing.Callable[[], T_Result], - applied_to_lines_account: typing.Callable[[], T_Result], - applied_to_lines_account_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_account_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_account_company: typing.Callable[[], T_Result], - applied_to_lines_account_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_account_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_account_payment_method: typing.Callable[[], T_Result], - applied_to_lines_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_company: typing.Callable[[], T_Result], - applied_to_lines_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact: typing.Callable[[], T_Result], - applied_to_lines_contact_account: typing.Callable[[], T_Result], - applied_to_lines_contact_account_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_account_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_account_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_account_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_company: typing.Callable[[], T_Result], - applied_to_lines_contact_company_accounting_period: typing.Callable[[], T_Result], - applied_to_lines_contact_company_accounting_period_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_company_payment_method: typing.Callable[[], T_Result], - applied_to_lines_contact_payment_method: typing.Callable[[], T_Result], - applied_to_lines_payment_method: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_accounting_period_payment_method: typing.Callable[[], T_Result], - company_payment_method: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_account: typing.Callable[[], T_Result], - contact_account_accounting_period: typing.Callable[[], T_Result], - contact_account_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_account_company: typing.Callable[[], T_Result], - contact_account_company_accounting_period: typing.Callable[[], T_Result], - contact_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_account_company_payment_method: typing.Callable[[], T_Result], - contact_account_payment_method: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - contact_company_accounting_period_payment_method: typing.Callable[[], T_Result], - contact_company_payment_method: typing.Callable[[], T_Result], - contact_payment_method: typing.Callable[[], T_Result], - payment_method: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_account: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_account_company: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_company_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_contact_account_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_company_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_contact_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_company: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_company_accounting_period_payment_method: typing.Callable[ - [], T_Result - ], - tracking_categories_applied_to_lines_contact_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_contact_payment_method: typing.Callable[[], T_Result], - tracking_categories_applied_to_lines_payment_method: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_account: typing.Callable[[], T_Result], - tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_account_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_account_company: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_account_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_company_payment_method: typing.Callable[[], T_Result], - tracking_categories_contact_payment_method: typing.Callable[[], T_Result], - tracking_categories_payment_method: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PaymentsRetrieveRequestExpand.ACCOUNT: - return account() - if self is PaymentsRetrieveRequestExpand.ACCOUNT_ACCOUNTING_PERIOD: - return account_accounting_period() - if self is PaymentsRetrieveRequestExpand.ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.ACCOUNT_COMPANY: - return account_company() - if self is PaymentsRetrieveRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return account_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return account_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.ACCOUNT_COMPANY_PAYMENT_METHOD: - return account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.ACCOUNT_PAYMENT_METHOD: - return account_payment_method() - if self is PaymentsRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is PaymentsRetrieveRequestExpand.ACCOUNTING_PERIOD_PAYMENT_METHOD: - return accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES: - return applied_to_lines() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT: - return applied_to_lines_account() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD: - return applied_to_lines_account_accounting_period() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY: - return applied_to_lines_account_company() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_account_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_account_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD: - return applied_to_lines_account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD: - return applied_to_lines_account_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNTING_PERIOD: - return applied_to_lines_accounting_period() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_COMPANY: - return applied_to_lines_company() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD: - return applied_to_lines_company_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT: - return applied_to_lines_contact() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT: - return applied_to_lines_contact_account() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return applied_to_lines_contact_account_accounting_period() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_contact_account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY: - return applied_to_lines_contact_account_company() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_contact_account_company_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return applied_to_lines_contact_account_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD: - return applied_to_lines_contact_account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD: - return applied_to_lines_contact_account_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD: - return applied_to_lines_contact_accounting_period() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_contact_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY: - return applied_to_lines_contact_company() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return applied_to_lines_contact_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return applied_to_lines_contact_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD: - return applied_to_lines_contact_company_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD: - return applied_to_lines_contact_payment_method() - if self is PaymentsRetrieveRequestExpand.APPLIED_TO_LINES_PAYMENT_METHOD: - return applied_to_lines_payment_method() - if self is PaymentsRetrieveRequestExpand.COMPANY: - return company() - if self is PaymentsRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is PaymentsRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.COMPANY_PAYMENT_METHOD: - return company_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT: - return contact() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT: - return contact_account() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return contact_account_accounting_period() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY: - return contact_account_company() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return contact_account_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_account_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD: - return contact_account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNT_PAYMENT_METHOD: - return contact_account_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is PaymentsRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is PaymentsRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return contact_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT_COMPANY_PAYMENT_METHOD: - return contact_company_payment_method() - if self is PaymentsRetrieveRequestExpand.CONTACT_PAYMENT_METHOD: - return contact_payment_method() - if self is PaymentsRetrieveRequestExpand.PAYMENT_METHOD: - return payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT: - return tracking_categories_account() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_account_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return tracking_categories_account_company() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_account_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_PAYMENT_METHOD: - return tracking_categories_account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_account_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES: - return tracking_categories_applied_to_lines() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT: - return tracking_categories_applied_to_lines_account() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_account_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY: - return tracking_categories_applied_to_lines_account_company() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_account_company_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_account_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_COMPANY_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_account_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY: - return tracking_categories_applied_to_lines_company() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_company_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_COMPANY_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT: - return tracking_categories_applied_to_lines_contact() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT: - return tracking_categories_applied_to_lines_contact_account() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_contact_account_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY: - return tracking_categories_applied_to_lines_contact_account_company() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_applied_to_lines_contact_account_company_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_account_company_accounting_period_payment_method() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_contact_account_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_contact_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY: - return tracking_categories_applied_to_lines_contact_company() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_applied_to_lines_contact_company_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_applied_to_lines_contact_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_COMPANY_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_contact_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_CONTACT_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_contact_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_APPLIED_TO_LINES_PAYMENT_METHOD: - return tracking_categories_applied_to_lines_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_PAYMENT_METHOD: - return tracking_categories_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT: - return tracking_categories_contact_account() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_contact_account_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY: - return tracking_categories_contact_account_company() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_company_accounting_period() - if ( - self - is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD - ): - return tracking_categories_contact_account_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_PAYMENT_METHOD: - return tracking_categories_contact_account_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_PAYMENT_METHOD: - return tracking_categories_contact_account_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_contact_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD_PAYMENT_METHOD: - return tracking_categories_contact_company_accounting_period_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_PAYMENT_METHOD: - return tracking_categories_contact_company_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_PAYMENT_METHOD: - return tracking_categories_contact_payment_method() - if self is PaymentsRetrieveRequestExpand.TRACKING_CATEGORIES_PAYMENT_METHOD: - return tracking_categories_payment_method() diff --git a/src/merge/resources/accounting/resources/phone_numbers/__init__.py b/src/merge/resources/accounting/resources/phone_numbers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/phone_numbers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/phone_numbers/client.py b/src/merge/resources/accounting/resources/phone_numbers/client.py deleted file mode 100644 index 65aa5178..00000000 --- a/src/merge/resources/accounting/resources/phone_numbers/client.py +++ /dev/null @@ -1,150 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.accounting_phone_number import AccountingPhoneNumber -from .raw_client import AsyncRawPhoneNumbersClient, RawPhoneNumbersClient - - -class PhoneNumbersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPhoneNumbersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPhoneNumbersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPhoneNumbersClient - """ - return self._raw_client - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingPhoneNumber: - """ - Returns an `AccountingPhoneNumber` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingPhoneNumber - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.phone_numbers.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncPhoneNumbersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPhoneNumbersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPhoneNumbersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPhoneNumbersClient - """ - return self._raw_client - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AccountingPhoneNumber: - """ - Returns an `AccountingPhoneNumber` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountingPhoneNumber - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.phone_numbers.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/phone_numbers/raw_client.py b/src/merge/resources/accounting/resources/phone_numbers/raw_client.py deleted file mode 100644 index 923613ee..00000000 --- a/src/merge/resources/accounting/resources/phone_numbers/raw_client.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.accounting_phone_number import AccountingPhoneNumber - - -class RawPhoneNumbersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AccountingPhoneNumber]: - """ - Returns an `AccountingPhoneNumber` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountingPhoneNumber] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/phone-numbers/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingPhoneNumber, - construct_type( - type_=AccountingPhoneNumber, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPhoneNumbersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AccountingPhoneNumber]: - """ - Returns an `AccountingPhoneNumber` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountingPhoneNumber] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/phone-numbers/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountingPhoneNumber, - construct_type( - type_=AccountingPhoneNumber, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/projects/__init__.py b/src/merge/resources/accounting/resources/projects/__init__.py deleted file mode 100644 index 0b00b3f8..00000000 --- a/src/merge/resources/accounting/resources/projects/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ProjectsListRequestExpand, ProjectsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ProjectsListRequestExpand": ".types", - "ProjectsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ProjectsListRequestExpand", "ProjectsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/projects/client.py b/src/merge/resources/accounting/resources/projects/client.py deleted file mode 100644 index 22263c6b..00000000 --- a/src/merge/resources/accounting/resources/projects/client.py +++ /dev/null @@ -1,417 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_project_list import PaginatedProjectList -from ...types.project import Project -from .raw_client import AsyncRawProjectsClient, RawProjectsClient -from .types.projects_list_request_expand import ProjectsListRequestExpand -from .types.projects_retrieve_request_expand import ProjectsRetrieveRequestExpand - - -class ProjectsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawProjectsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawProjectsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawProjectsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedProjectList: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return projects for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedProjectList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.projects import ( - ProjectsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.projects.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ProjectsListRequestExpand.COMPANY, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ProjectsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Project: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ProjectsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Project - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.projects import ( - ProjectsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.projects.retrieve( - id="id", - expand=ProjectsRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncProjectsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawProjectsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawProjectsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawProjectsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedProjectList: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return projects for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedProjectList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.projects import ( - ProjectsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.projects.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ProjectsListRequestExpand.COMPANY, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ProjectsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Project: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ProjectsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Project - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.projects import ( - ProjectsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.projects.retrieve( - id="id", - expand=ProjectsRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/projects/raw_client.py b/src/merge/resources/accounting/resources/projects/raw_client.py deleted file mode 100644 index bd66cec8..00000000 --- a/src/merge/resources/accounting/resources/projects/raw_client.py +++ /dev/null @@ -1,343 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_project_list import PaginatedProjectList -from ...types.project import Project -from .types.projects_list_request_expand import ProjectsListRequestExpand -from .types.projects_retrieve_request_expand import ProjectsRetrieveRequestExpand - - -class RawProjectsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedProjectList]: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return projects for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedProjectList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/projects", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedProjectList, - construct_type( - type_=PaginatedProjectList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ProjectsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Project]: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ProjectsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Project] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/projects/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Project, - construct_type( - type_=Project, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawProjectsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedProjectList]: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return projects for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedProjectList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/projects", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedProjectList, - construct_type( - type_=PaginatedProjectList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ProjectsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Project]: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ProjectsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Project] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/projects/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Project, - construct_type( - type_=Project, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/projects/types/__init__.py b/src/merge/resources/accounting/resources/projects/types/__init__.py deleted file mode 100644 index a419e49d..00000000 --- a/src/merge/resources/accounting/resources/projects/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .projects_list_request_expand import ProjectsListRequestExpand - from .projects_retrieve_request_expand import ProjectsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ProjectsListRequestExpand": ".projects_list_request_expand", - "ProjectsRetrieveRequestExpand": ".projects_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ProjectsListRequestExpand", "ProjectsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/projects/types/projects_list_request_expand.py b/src/merge/resources/accounting/resources/projects/types/projects_list_request_expand.py deleted file mode 100644 index e1f087c4..00000000 --- a/src/merge/resources/accounting/resources/projects/types/projects_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ProjectsListRequestExpand(str, enum.Enum): - COMPANY = "company" - COMPANY_CONTACT = "company,contact" - CONTACT = "contact" - - def visit( - self, - company: typing.Callable[[], T_Result], - company_contact: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ProjectsListRequestExpand.COMPANY: - return company() - if self is ProjectsListRequestExpand.COMPANY_CONTACT: - return company_contact() - if self is ProjectsListRequestExpand.CONTACT: - return contact() diff --git a/src/merge/resources/accounting/resources/projects/types/projects_retrieve_request_expand.py b/src/merge/resources/accounting/resources/projects/types/projects_retrieve_request_expand.py deleted file mode 100644 index 7aa1205a..00000000 --- a/src/merge/resources/accounting/resources/projects/types/projects_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ProjectsRetrieveRequestExpand(str, enum.Enum): - COMPANY = "company" - COMPANY_CONTACT = "company,contact" - CONTACT = "contact" - - def visit( - self, - company: typing.Callable[[], T_Result], - company_contact: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ProjectsRetrieveRequestExpand.COMPANY: - return company() - if self is ProjectsRetrieveRequestExpand.COMPANY_CONTACT: - return company_contact() - if self is ProjectsRetrieveRequestExpand.CONTACT: - return contact() diff --git a/src/merge/resources/accounting/resources/purchase_orders/__init__.py b/src/merge/resources/accounting/resources/purchase_orders/__init__.py deleted file mode 100644 index 60161453..00000000 --- a/src/merge/resources/accounting/resources/purchase_orders/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import PurchaseOrdersListRequestExpand, PurchaseOrdersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "PurchaseOrdersListRequestExpand": ".types", - "PurchaseOrdersRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["PurchaseOrdersListRequestExpand", "PurchaseOrdersRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/purchase_orders/client.py b/src/merge/resources/accounting/resources/purchase_orders/client.py deleted file mode 100644 index 1aeb1d72..00000000 --- a/src/merge/resources/accounting/resources/purchase_orders/client.py +++ /dev/null @@ -1,1008 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_purchase_order_list import PaginatedPurchaseOrderList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.purchase_order import PurchaseOrder -from ...types.purchase_order_request import PurchaseOrderRequest -from ...types.purchase_order_response import PurchaseOrderResponse -from .raw_client import AsyncRawPurchaseOrdersClient, RawPurchaseOrdersClient -from .types.purchase_orders_list_request_expand import PurchaseOrdersListRequestExpand -from .types.purchase_orders_retrieve_request_expand import PurchaseOrdersRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PurchaseOrdersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPurchaseOrdersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPurchaseOrdersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPurchaseOrdersClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PurchaseOrdersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPurchaseOrderList: - """ - Returns a list of `PurchaseOrder` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return purchase orders for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PurchaseOrdersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPurchaseOrderList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.purchase_orders import ( - PurchaseOrdersListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.purchase_orders.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=PurchaseOrdersListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - issue_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - issue_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - issue_date_after=issue_date_after, - issue_date_before=issue_date_before, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: PurchaseOrderRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PurchaseOrderResponse: - """ - Creates a `PurchaseOrder` object with the given values. - - Parameters - ---------- - model : PurchaseOrderRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PurchaseOrderResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import PurchaseOrderRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.purchase_orders.create( - is_debug_mode=True, - run_async=True, - model=PurchaseOrderRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[PurchaseOrdersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PurchaseOrder: - """ - Returns a `PurchaseOrder` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PurchaseOrdersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PurchaseOrder - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.purchase_orders import ( - PurchaseOrdersRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.purchase_orders.retrieve( - id="id", - expand=PurchaseOrdersRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.purchase_orders.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.line_items_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `PurchaseOrder` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.purchase_orders.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.purchase_orders.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncPurchaseOrdersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPurchaseOrdersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPurchaseOrdersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPurchaseOrdersClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PurchaseOrdersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPurchaseOrderList: - """ - Returns a list of `PurchaseOrder` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return purchase orders for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PurchaseOrdersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPurchaseOrderList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.purchase_orders import ( - PurchaseOrdersListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.purchase_orders.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=PurchaseOrdersListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - issue_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - issue_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - issue_date_after=issue_date_after, - issue_date_before=issue_date_before, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: PurchaseOrderRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PurchaseOrderResponse: - """ - Creates a `PurchaseOrder` object with the given values. - - Parameters - ---------- - model : PurchaseOrderRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PurchaseOrderResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import PurchaseOrderRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.purchase_orders.create( - is_debug_mode=True, - run_async=True, - model=PurchaseOrderRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[PurchaseOrdersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PurchaseOrder: - """ - Returns a `PurchaseOrder` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PurchaseOrdersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PurchaseOrder - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.purchase_orders import ( - PurchaseOrdersRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.purchase_orders.retrieve( - id="id", - expand=PurchaseOrdersRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.purchase_orders.line_items_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.line_items_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `PurchaseOrder` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.purchase_orders.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.purchase_orders.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/purchase_orders/raw_client.py b/src/merge/resources/accounting/resources/purchase_orders/raw_client.py deleted file mode 100644 index 035a7463..00000000 --- a/src/merge/resources/accounting/resources/purchase_orders/raw_client.py +++ /dev/null @@ -1,922 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_purchase_order_list import PaginatedPurchaseOrderList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.purchase_order import PurchaseOrder -from ...types.purchase_order_request import PurchaseOrderRequest -from ...types.purchase_order_response import PurchaseOrderResponse -from .types.purchase_orders_list_request_expand import PurchaseOrdersListRequestExpand -from .types.purchase_orders_retrieve_request_expand import PurchaseOrdersRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPurchaseOrdersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PurchaseOrdersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedPurchaseOrderList]: - """ - Returns a list of `PurchaseOrder` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return purchase orders for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PurchaseOrdersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedPurchaseOrderList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "issue_date_after": serialize_datetime(issue_date_after) if issue_date_after is not None else None, - "issue_date_before": serialize_datetime(issue_date_before) if issue_date_before is not None else None, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPurchaseOrderList, - construct_type( - type_=PaginatedPurchaseOrderList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: PurchaseOrderRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PurchaseOrderResponse]: - """ - Creates a `PurchaseOrder` object with the given values. - - Parameters - ---------- - model : PurchaseOrderRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PurchaseOrderResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PurchaseOrderResponse, - construct_type( - type_=PurchaseOrderResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[PurchaseOrdersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PurchaseOrder]: - """ - Returns a `PurchaseOrder` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PurchaseOrdersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PurchaseOrder] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/purchase-orders/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PurchaseOrder, - construct_type( - type_=PurchaseOrder, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders/line-items/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `PurchaseOrder` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPurchaseOrdersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[PurchaseOrdersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - issue_date_after: typing.Optional[dt.datetime] = None, - issue_date_before: typing.Optional[dt.datetime] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedPurchaseOrderList]: - """ - Returns a list of `PurchaseOrder` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return purchase orders for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[PurchaseOrdersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - issue_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - issue_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedPurchaseOrderList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "issue_date_after": serialize_datetime(issue_date_after) if issue_date_after is not None else None, - "issue_date_before": serialize_datetime(issue_date_before) if issue_date_before is not None else None, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPurchaseOrderList, - construct_type( - type_=PaginatedPurchaseOrderList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: PurchaseOrderRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PurchaseOrderResponse]: - """ - Creates a `PurchaseOrder` object with the given values. - - Parameters - ---------- - model : PurchaseOrderRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PurchaseOrderResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PurchaseOrderResponse, - construct_type( - type_=PurchaseOrderResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[PurchaseOrdersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PurchaseOrder]: - """ - Returns a `PurchaseOrder` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[PurchaseOrdersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PurchaseOrder] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/purchase-orders/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PurchaseOrder, - construct_type( - type_=PurchaseOrder, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def line_items_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders/line-items/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `PurchaseOrder` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/purchase-orders/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/purchase_orders/types/__init__.py b/src/merge/resources/accounting/resources/purchase_orders/types/__init__.py deleted file mode 100644 index 60547917..00000000 --- a/src/merge/resources/accounting/resources/purchase_orders/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .purchase_orders_list_request_expand import PurchaseOrdersListRequestExpand - from .purchase_orders_retrieve_request_expand import PurchaseOrdersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "PurchaseOrdersListRequestExpand": ".purchase_orders_list_request_expand", - "PurchaseOrdersRetrieveRequestExpand": ".purchase_orders_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["PurchaseOrdersListRequestExpand", "PurchaseOrdersRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/purchase_orders/types/purchase_orders_list_request_expand.py b/src/merge/resources/accounting/resources/purchase_orders/types/purchase_orders_list_request_expand.py deleted file mode 100644 index 7fbb9f9d..00000000 --- a/src/merge/resources/accounting/resources/purchase_orders/types/purchase_orders_list_request_expand.py +++ /dev/null @@ -1,654 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PurchaseOrdersListRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_PAYMENT_TERM = "accounting_period,payment_term" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "company,accounting_period,payment_term" - COMPANY_PAYMENT_TERM = "company,payment_term" - DELIVERY_ADDRESS = "delivery_address" - DELIVERY_ADDRESS_ACCOUNTING_PERIOD = "delivery_address,accounting_period" - DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = "delivery_address,accounting_period,payment_term" - DELIVERY_ADDRESS_COMPANY = "delivery_address,company" - DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = "delivery_address,company,accounting_period" - DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "delivery_address,company,accounting_period,payment_term" - DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = "delivery_address,company,payment_term" - DELIVERY_ADDRESS_PAYMENT_TERM = "delivery_address,payment_term" - DELIVERY_ADDRESS_VENDOR = "delivery_address,vendor" - DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = "delivery_address,vendor,accounting_period" - DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = "delivery_address,vendor,accounting_period,payment_term" - DELIVERY_ADDRESS_VENDOR_COMPANY = "delivery_address,vendor,company" - DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = "delivery_address,vendor,company,accounting_period" - DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "delivery_address,vendor,company,accounting_period,payment_term" - ) - DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = "delivery_address,vendor,company,payment_term" - DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = "delivery_address,vendor,payment_term" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,accounting_period,payment_term" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,company,accounting_period,payment_term" - LINE_ITEMS_COMPANY_PAYMENT_TERM = "line_items,company,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS = "line_items,delivery_address" - LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD = "line_items,delivery_address,accounting_period" - LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY = "line_items,delivery_address,company" - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = "line_items,delivery_address,company,accounting_period" - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,company,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = "line_items,delivery_address,company,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS_PAYMENT_TERM = "line_items,delivery_address,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR = "line_items,delivery_address,vendor" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = "line_items,delivery_address,vendor,accounting_period" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,vendor,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY = "line_items,delivery_address,vendor,company" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,delivery_address,vendor,company,accounting_period" - ) - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = "line_items,delivery_address,vendor,company,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = "line_items,delivery_address,vendor,payment_term" - LINE_ITEMS_PAYMENT_TERM = "line_items,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS = "line_items,tracking_categories,delivery_address" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY = "line_items,tracking_categories,delivery_address,company" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR = "line_items,tracking_categories,delivery_address,vendor" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,vendor,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY = ( - "line_items,tracking_categories,delivery_address,vendor,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = "line_items,tracking_categories,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR = "line_items,tracking_categories,vendor" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "line_items,tracking_categories,vendor,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,vendor,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY = "line_items,tracking_categories,vendor,company" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,vendor,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,vendor,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM = "line_items,tracking_categories,vendor,payment_term" - LINE_ITEMS_VENDOR = "line_items,vendor" - LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD = "line_items,vendor,accounting_period" - LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,vendor,accounting_period,payment_term" - LINE_ITEMS_VENDOR_COMPANY = "line_items,vendor,company" - LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD = "line_items,vendor,company,accounting_period" - LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_VENDOR_COMPANY_PAYMENT_TERM = "line_items,vendor,company,payment_term" - LINE_ITEMS_VENDOR_PAYMENT_TERM = "line_items,vendor,payment_term" - PAYMENT_TERM = "payment_term" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,accounting_period,payment_term" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "tracking_categories,company,payment_term" - TRACKING_CATEGORIES_DELIVERY_ADDRESS = "tracking_categories,delivery_address" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD = "tracking_categories,delivery_address,accounting_period" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY = "tracking_categories,delivery_address,company" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,delivery_address,company,accounting_period" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,delivery_address,company,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM = "tracking_categories,delivery_address,payment_term" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR = "tracking_categories,delivery_address,vendor" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = ( - "tracking_categories,delivery_address,vendor,accounting_period" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY = "tracking_categories,delivery_address,vendor,company" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,delivery_address,vendor,company,accounting_period" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,company,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,payment_term" - ) - TRACKING_CATEGORIES_PAYMENT_TERM = "tracking_categories,payment_term" - TRACKING_CATEGORIES_VENDOR = "tracking_categories,vendor" - TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "tracking_categories,vendor,accounting_period" - TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,vendor,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_VENDOR_COMPANY = "tracking_categories,vendor,company" - TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,vendor,company,accounting_period" - TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,vendor,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM = "tracking_categories,vendor,company,payment_term" - TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM = "tracking_categories,vendor,payment_term" - VENDOR = "vendor" - VENDOR_ACCOUNTING_PERIOD = "vendor,accounting_period" - VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = "vendor,accounting_period,payment_term" - VENDOR_COMPANY = "vendor,company" - VENDOR_COMPANY_ACCOUNTING_PERIOD = "vendor,company,accounting_period" - VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "vendor,company,accounting_period,payment_term" - VENDOR_COMPANY_PAYMENT_TERM = "vendor,company,payment_term" - VENDOR_PAYMENT_TERM = "vendor,payment_term" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - accounting_period_payment_term: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_accounting_period_payment_term: typing.Callable[[], T_Result], - company_payment_term: typing.Callable[[], T_Result], - delivery_address: typing.Callable[[], T_Result], - delivery_address_accounting_period: typing.Callable[[], T_Result], - delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_company: typing.Callable[[], T_Result], - delivery_address_company_accounting_period: typing.Callable[[], T_Result], - delivery_address_company_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_company_payment_term: typing.Callable[[], T_Result], - delivery_address_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor: typing.Callable[[], T_Result], - delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - delivery_address_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor_company: typing.Callable[[], T_Result], - delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address: typing.Callable[[], T_Result], - line_items_delivery_address_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_company: typing.Callable[[], T_Result], - line_items_delivery_address_company_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_company_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - line_items_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_company: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_delivery_address_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_delivery_address_vendor_company: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_payment_term: typing.Callable[[], T_Result], - line_items_vendor: typing.Callable[[], T_Result], - line_items_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_vendor_company: typing.Callable[[], T_Result], - line_items_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_vendor_payment_term: typing.Callable[[], T_Result], - payment_term: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address: typing.Callable[[], T_Result], - tracking_categories_delivery_address_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_company: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - tracking_categories_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor: typing.Callable[[], T_Result], - tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor_company: typing.Callable[[], T_Result], - tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor_payment_term: typing.Callable[[], T_Result], - vendor: typing.Callable[[], T_Result], - vendor_accounting_period: typing.Callable[[], T_Result], - vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - vendor_company: typing.Callable[[], T_Result], - vendor_company_accounting_period: typing.Callable[[], T_Result], - vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - vendor_company_payment_term: typing.Callable[[], T_Result], - vendor_payment_term: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PurchaseOrdersListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is PurchaseOrdersListRequestExpand.ACCOUNTING_PERIOD_PAYMENT_TERM: - return accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.COMPANY: - return company() - if self is PurchaseOrdersListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is PurchaseOrdersListRequestExpand.COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.COMPANY_PAYMENT_TERM: - return company_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS: - return delivery_address() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_ACCOUNTING_PERIOD: - return delivery_address_accounting_period() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_COMPANY: - return delivery_address_company() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD: - return delivery_address_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM: - return delivery_address_company_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_PAYMENT_TERM: - return delivery_address_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR: - return delivery_address_vendor() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD: - return delivery_address_vendor_accounting_period() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY: - return delivery_address_vendor_company() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return delivery_address_vendor_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM: - return delivery_address_vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM: - return delivery_address_vendor_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS: - return line_items() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_COMPANY_PAYMENT_TERM: - return line_items_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS: - return line_items_delivery_address() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD: - return line_items_delivery_address_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY: - return line_items_delivery_address_company() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD: - return line_items_delivery_address_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_delivery_address_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM: - return line_items_delivery_address_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_PAYMENT_TERM: - return line_items_delivery_address_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR: - return line_items_delivery_address_vendor() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD: - return line_items_delivery_address_vendor_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY: - return line_items_delivery_address_vendor_company() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return line_items_delivery_address_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_delivery_address_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM: - return line_items_delivery_address_vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM: - return line_items_delivery_address_vendor_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_PAYMENT_TERM: - return line_items_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS: - return line_items_tracking_categories_delivery_address() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD: - return line_items_tracking_categories_delivery_address_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY: - return line_items_tracking_categories_delivery_address_company() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_delivery_address_company_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_delivery_address_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM: - return line_items_tracking_categories_delivery_address_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR: - return line_items_tracking_categories_delivery_address_vendor() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_delivery_address_vendor_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY: - return line_items_tracking_categories_delivery_address_vendor_company() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_delivery_address_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_vendor_company_accounting_period_payment_term() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM: - return line_items_tracking_categories_delivery_address_vendor_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return line_items_tracking_categories_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR: - return line_items_tracking_categories_vendor() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return line_items_tracking_categories_vendor_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY: - return line_items_tracking_categories_vendor_company() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM: - return line_items_tracking_categories_vendor_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR: - return line_items_vendor() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD: - return line_items_vendor_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR_COMPANY: - return line_items_vendor_company() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return line_items_vendor_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR_COMPANY_PAYMENT_TERM: - return line_items_vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.LINE_ITEMS_VENDOR_PAYMENT_TERM: - return line_items_vendor_payment_term() - if self is PurchaseOrdersListRequestExpand.PAYMENT_TERM: - return payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return tracking_categories_company_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS: - return tracking_categories_delivery_address() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD: - return tracking_categories_delivery_address_accounting_period() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY: - return tracking_categories_delivery_address_company() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_delivery_address_company_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_delivery_address_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM: - return tracking_categories_delivery_address_company_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM: - return tracking_categories_delivery_address_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR: - return tracking_categories_delivery_address_vendor() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD: - return tracking_categories_delivery_address_vendor_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY: - return tracking_categories_delivery_address_vendor_company() - if ( - self - is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_delivery_address_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_delivery_address_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM: - return tracking_categories_delivery_address_vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM: - return tracking_categories_delivery_address_vendor_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_PAYMENT_TERM: - return tracking_categories_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR: - return tracking_categories_vendor() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return tracking_categories_vendor_accounting_period() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY: - return tracking_categories_vendor_company() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_vendor_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM: - return tracking_categories_vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM: - return tracking_categories_vendor_payment_term() - if self is PurchaseOrdersListRequestExpand.VENDOR: - return vendor() - if self is PurchaseOrdersListRequestExpand.VENDOR_ACCOUNTING_PERIOD: - return vendor_accounting_period() - if self is PurchaseOrdersListRequestExpand.VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return vendor_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.VENDOR_COMPANY: - return vendor_company() - if self is PurchaseOrdersListRequestExpand.VENDOR_COMPANY_ACCOUNTING_PERIOD: - return vendor_company_accounting_period() - if self is PurchaseOrdersListRequestExpand.VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersListRequestExpand.VENDOR_COMPANY_PAYMENT_TERM: - return vendor_company_payment_term() - if self is PurchaseOrdersListRequestExpand.VENDOR_PAYMENT_TERM: - return vendor_payment_term() diff --git a/src/merge/resources/accounting/resources/purchase_orders/types/purchase_orders_retrieve_request_expand.py b/src/merge/resources/accounting/resources/purchase_orders/types/purchase_orders_retrieve_request_expand.py deleted file mode 100644 index 53b497d2..00000000 --- a/src/merge/resources/accounting/resources/purchase_orders/types/purchase_orders_retrieve_request_expand.py +++ /dev/null @@ -1,678 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PurchaseOrdersRetrieveRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - ACCOUNTING_PERIOD_PAYMENT_TERM = "accounting_period,payment_term" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "company,accounting_period,payment_term" - COMPANY_PAYMENT_TERM = "company,payment_term" - DELIVERY_ADDRESS = "delivery_address" - DELIVERY_ADDRESS_ACCOUNTING_PERIOD = "delivery_address,accounting_period" - DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = "delivery_address,accounting_period,payment_term" - DELIVERY_ADDRESS_COMPANY = "delivery_address,company" - DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = "delivery_address,company,accounting_period" - DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "delivery_address,company,accounting_period,payment_term" - DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = "delivery_address,company,payment_term" - DELIVERY_ADDRESS_PAYMENT_TERM = "delivery_address,payment_term" - DELIVERY_ADDRESS_VENDOR = "delivery_address,vendor" - DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = "delivery_address,vendor,accounting_period" - DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = "delivery_address,vendor,accounting_period,payment_term" - DELIVERY_ADDRESS_VENDOR_COMPANY = "delivery_address,vendor,company" - DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = "delivery_address,vendor,company,accounting_period" - DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "delivery_address,vendor,company,accounting_period,payment_term" - ) - DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = "delivery_address,vendor,company,payment_term" - DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = "delivery_address,vendor,payment_term" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,accounting_period,payment_term" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,company,accounting_period,payment_term" - LINE_ITEMS_COMPANY_PAYMENT_TERM = "line_items,company,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS = "line_items,delivery_address" - LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD = "line_items,delivery_address,accounting_period" - LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY = "line_items,delivery_address,company" - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = "line_items,delivery_address,company,accounting_period" - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,company,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = "line_items,delivery_address,company,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS_PAYMENT_TERM = "line_items,delivery_address,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR = "line_items,delivery_address,vendor" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = "line_items,delivery_address,vendor,accounting_period" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,vendor,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY = "line_items,delivery_address,vendor,company" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,delivery_address,vendor,company,accounting_period" - ) - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,delivery_address,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = "line_items,delivery_address,vendor,company,payment_term" - LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = "line_items,delivery_address,vendor,payment_term" - LINE_ITEMS_PAYMENT_TERM = "line_items,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "line_items,tracking_categories,company,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS = "line_items,tracking_categories,delivery_address" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY = "line_items,tracking_categories,delivery_address,company" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR = "line_items,tracking_categories,delivery_address,vendor" - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,vendor,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY = ( - "line_items,tracking_categories,delivery_address,vendor,company" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = ( - "line_items,tracking_categories,delivery_address,vendor,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM = "line_items,tracking_categories,payment_term" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR = "line_items,tracking_categories,vendor" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "line_items,tracking_categories,vendor,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,vendor,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY = "line_items,tracking_categories,vendor,company" - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,vendor,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,tracking_categories,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM = ( - "line_items,tracking_categories,vendor,company,payment_term" - ) - LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM = "line_items,tracking_categories,vendor,payment_term" - LINE_ITEMS_VENDOR = "line_items,vendor" - LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD = "line_items,vendor,accounting_period" - LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = "line_items,vendor,accounting_period,payment_term" - LINE_ITEMS_VENDOR_COMPANY = "line_items,vendor,company" - LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD = "line_items,vendor,company,accounting_period" - LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "line_items,vendor,company,accounting_period,payment_term" - ) - LINE_ITEMS_VENDOR_COMPANY_PAYMENT_TERM = "line_items,vendor,company,payment_term" - LINE_ITEMS_VENDOR_PAYMENT_TERM = "line_items,vendor,payment_term" - PAYMENT_TERM = "payment_term" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM = "tracking_categories,accounting_period,payment_term" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM = "tracking_categories,company,payment_term" - TRACKING_CATEGORIES_DELIVERY_ADDRESS = "tracking_categories,delivery_address" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD = "tracking_categories,delivery_address,accounting_period" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY = "tracking_categories,delivery_address,company" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,delivery_address,company,accounting_period" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM = ( - "tracking_categories,delivery_address,company,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM = "tracking_categories,delivery_address,payment_term" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR = "tracking_categories,delivery_address,vendor" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD = ( - "tracking_categories,delivery_address,vendor,accounting_period" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY = "tracking_categories,delivery_address,vendor,company" - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,delivery_address,vendor,company,accounting_period" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,company,payment_term" - ) - TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM = ( - "tracking_categories,delivery_address,vendor,payment_term" - ) - TRACKING_CATEGORIES_PAYMENT_TERM = "tracking_categories,payment_term" - TRACKING_CATEGORIES_VENDOR = "tracking_categories,vendor" - TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "tracking_categories,vendor,accounting_period" - TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,vendor,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_VENDOR_COMPANY = "tracking_categories,vendor,company" - TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,vendor,company,accounting_period" - TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = ( - "tracking_categories,vendor,company,accounting_period,payment_term" - ) - TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM = "tracking_categories,vendor,company,payment_term" - TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM = "tracking_categories,vendor,payment_term" - VENDOR = "vendor" - VENDOR_ACCOUNTING_PERIOD = "vendor,accounting_period" - VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM = "vendor,accounting_period,payment_term" - VENDOR_COMPANY = "vendor,company" - VENDOR_COMPANY_ACCOUNTING_PERIOD = "vendor,company,accounting_period" - VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM = "vendor,company,accounting_period,payment_term" - VENDOR_COMPANY_PAYMENT_TERM = "vendor,company,payment_term" - VENDOR_PAYMENT_TERM = "vendor,payment_term" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - accounting_period_payment_term: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - company_accounting_period_payment_term: typing.Callable[[], T_Result], - company_payment_term: typing.Callable[[], T_Result], - delivery_address: typing.Callable[[], T_Result], - delivery_address_accounting_period: typing.Callable[[], T_Result], - delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_company: typing.Callable[[], T_Result], - delivery_address_company_accounting_period: typing.Callable[[], T_Result], - delivery_address_company_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_company_payment_term: typing.Callable[[], T_Result], - delivery_address_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor: typing.Callable[[], T_Result], - delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - delivery_address_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor_company: typing.Callable[[], T_Result], - delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_company_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address: typing.Callable[[], T_Result], - line_items_delivery_address_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_company: typing.Callable[[], T_Result], - line_items_delivery_address_company_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_company_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - line_items_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_company: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_delivery_address_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_delivery_address_vendor_company: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - line_items_tracking_categories_delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_tracking_categories_vendor_payment_term: typing.Callable[[], T_Result], - line_items_vendor: typing.Callable[[], T_Result], - line_items_vendor_accounting_period: typing.Callable[[], T_Result], - line_items_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_vendor_company: typing.Callable[[], T_Result], - line_items_vendor_company_accounting_period: typing.Callable[[], T_Result], - line_items_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - line_items_vendor_company_payment_term: typing.Callable[[], T_Result], - line_items_vendor_payment_term: typing.Callable[[], T_Result], - payment_term: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address: typing.Callable[[], T_Result], - tracking_categories_delivery_address_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_company: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_company_accounting_period_payment_term: typing.Callable[ - [], T_Result - ], - tracking_categories_delivery_address_vendor_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_delivery_address_vendor_payment_term: typing.Callable[[], T_Result], - tracking_categories_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor: typing.Callable[[], T_Result], - tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor_company: typing.Callable[[], T_Result], - tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor_company_payment_term: typing.Callable[[], T_Result], - tracking_categories_vendor_payment_term: typing.Callable[[], T_Result], - vendor: typing.Callable[[], T_Result], - vendor_accounting_period: typing.Callable[[], T_Result], - vendor_accounting_period_payment_term: typing.Callable[[], T_Result], - vendor_company: typing.Callable[[], T_Result], - vendor_company_accounting_period: typing.Callable[[], T_Result], - vendor_company_accounting_period_payment_term: typing.Callable[[], T_Result], - vendor_company_payment_term: typing.Callable[[], T_Result], - vendor_payment_term: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PurchaseOrdersRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.ACCOUNTING_PERIOD_PAYMENT_TERM: - return accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.COMPANY: - return company() - if self is PurchaseOrdersRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.COMPANY_PAYMENT_TERM: - return company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS: - return delivery_address() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_ACCOUNTING_PERIOD: - return delivery_address_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_COMPANY: - return delivery_address_company() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD: - return delivery_address_company_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM: - return delivery_address_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_PAYMENT_TERM: - return delivery_address_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR: - return delivery_address_vendor() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD: - return delivery_address_vendor_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY: - return delivery_address_vendor_company() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return delivery_address_vendor_company_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return delivery_address_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM: - return delivery_address_vendor_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM: - return delivery_address_vendor_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS: - return line_items() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_COMPANY_PAYMENT_TERM: - return line_items_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS: - return line_items_delivery_address() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD: - return line_items_delivery_address_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY: - return line_items_delivery_address_company() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD: - return line_items_delivery_address_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_delivery_address_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM: - return line_items_delivery_address_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_PAYMENT_TERM: - return line_items_delivery_address_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR: - return line_items_delivery_address_vendor() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD: - return line_items_delivery_address_vendor_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY: - return line_items_delivery_address_vendor_company() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return line_items_delivery_address_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_delivery_address_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM: - return line_items_delivery_address_vendor_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM: - return line_items_delivery_address_vendor_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_PAYMENT_TERM: - return line_items_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_tracking_categories_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS: - return line_items_tracking_categories_delivery_address() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_delivery_address_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY: - return line_items_tracking_categories_delivery_address_company() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_delivery_address_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_company_accounting_period_payment_term() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM: - return line_items_tracking_categories_delivery_address_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR: - return line_items_tracking_categories_delivery_address_vendor() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_delivery_address_vendor_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY: - return line_items_tracking_categories_delivery_address_vendor_company() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_delivery_address_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_vendor_company_accounting_period_payment_term() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_vendor_company_payment_term() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM - ): - return line_items_tracking_categories_delivery_address_vendor_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_PAYMENT_TERM: - return line_items_tracking_categories_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR: - return line_items_tracking_categories_vendor() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return line_items_tracking_categories_vendor_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY: - return line_items_tracking_categories_vendor_company() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return line_items_tracking_categories_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM: - return line_items_tracking_categories_vendor_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM: - return line_items_tracking_categories_vendor_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR: - return line_items_vendor() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD: - return line_items_vendor_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR_COMPANY: - return line_items_vendor_company() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return line_items_vendor_company_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return line_items_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR_COMPANY_PAYMENT_TERM: - return line_items_vendor_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.LINE_ITEMS_VENDOR_PAYMENT_TERM: - return line_items_vendor_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.PAYMENT_TERM: - return payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_PAYMENT_TERM: - return tracking_categories_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS: - return tracking_categories_delivery_address() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD: - return tracking_categories_delivery_address_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_delivery_address_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY: - return tracking_categories_delivery_address_company() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_delivery_address_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_delivery_address_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_COMPANY_PAYMENT_TERM: - return tracking_categories_delivery_address_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_PAYMENT_TERM: - return tracking_categories_delivery_address_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR: - return tracking_categories_delivery_address_vendor() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD: - return tracking_categories_delivery_address_vendor_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_delivery_address_vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY: - return tracking_categories_delivery_address_vendor_company() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD - ): - return tracking_categories_delivery_address_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_delivery_address_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_COMPANY_PAYMENT_TERM: - return tracking_categories_delivery_address_vendor_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_DELIVERY_ADDRESS_VENDOR_PAYMENT_TERM: - return tracking_categories_delivery_address_vendor_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_PAYMENT_TERM: - return tracking_categories_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR: - return tracking_categories_vendor() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return tracking_categories_vendor_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return tracking_categories_vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY: - return tracking_categories_vendor_company() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_vendor_company_accounting_period() - if ( - self - is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM - ): - return tracking_categories_vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_PAYMENT_TERM: - return tracking_categories_vendor_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_PAYMENT_TERM: - return tracking_categories_vendor_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR: - return vendor() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR_ACCOUNTING_PERIOD: - return vendor_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR_ACCOUNTING_PERIOD_PAYMENT_TERM: - return vendor_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR_COMPANY: - return vendor_company() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR_COMPANY_ACCOUNTING_PERIOD: - return vendor_company_accounting_period() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR_COMPANY_ACCOUNTING_PERIOD_PAYMENT_TERM: - return vendor_company_accounting_period_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR_COMPANY_PAYMENT_TERM: - return vendor_company_payment_term() - if self is PurchaseOrdersRetrieveRequestExpand.VENDOR_PAYMENT_TERM: - return vendor_payment_term() diff --git a/src/merge/resources/accounting/resources/regenerate_key/__init__.py b/src/merge/resources/accounting/resources/regenerate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/regenerate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/regenerate_key/client.py b/src/merge/resources/accounting/resources/regenerate_key/client.py deleted file mode 100644 index 5144a0b8..00000000 --- a/src/merge/resources/accounting/resources/regenerate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawRegenerateKeyClient, RawRegenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRegenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.regenerate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRegenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.regenerate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/regenerate_key/raw_client.py b/src/merge/resources/accounting/resources/regenerate_key/raw_client.py deleted file mode 100644 index d27d2b33..00000000 --- a/src/merge/resources/accounting/resources/regenerate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/scopes/__init__.py b/src/merge/resources/accounting/resources/scopes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/scopes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/scopes/client.py b/src/merge/resources/accounting/resources/scopes/client.py deleted file mode 100644 index eecd5fbd..00000000 --- a/src/merge/resources/accounting/resources/scopes/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from .raw_client import AsyncRawScopesClient, RawScopesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScopesClient - """ - return self._raw_client - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.scopes.default_scopes_retrieve() - """ - _response = self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.scopes.linked_account_scopes_retrieve() - """ - _response = self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - """ - _response = self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data - - -class AsyncScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScopesClient - """ - return self._raw_client - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.scopes.default_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.scopes.linked_account_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/scopes/raw_client.py b/src/merge/resources/accounting/resources/scopes/raw_client.py deleted file mode 100644 index 1987e457..00000000 --- a/src/merge/resources/accounting/resources/scopes/raw_client.py +++ /dev/null @@ -1,267 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/sync_status/__init__.py b/src/merge/resources/accounting/resources/sync_status/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/sync_status/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/sync_status/client.py b/src/merge/resources/accounting/resources/sync_status/client.py deleted file mode 100644 index 0f2b6791..00000000 --- a/src/merge/resources/accounting/resources/sync_status/client.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList -from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient - - -class SyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSyncStatusClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data - - -class AsyncSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSyncStatusClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/sync_status/raw_client.py b/src/merge/resources/accounting/resources/sync_status/raw_client.py deleted file mode 100644 index bff0c1b7..00000000 --- a/src/merge/resources/accounting/resources/sync_status/raw_client.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_sync_status_list import PaginatedSyncStatusList - - -class RawSyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedSyncStatusList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedSyncStatusList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/tax_rates/__init__.py b/src/merge/resources/accounting/resources/tax_rates/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/tax_rates/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/tax_rates/client.py b/src/merge/resources/accounting/resources/tax_rates/client.py deleted file mode 100644 index b63969c8..00000000 --- a/src/merge/resources/accounting/resources/tax_rates/client.py +++ /dev/null @@ -1,411 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_tax_rate_list import PaginatedTaxRateList -from ...types.tax_rate import TaxRate -from .raw_client import AsyncRawTaxRatesClient, RawTaxRatesClient - - -class TaxRatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTaxRatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTaxRatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTaxRatesClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTaxRateList: - """ - Returns a list of `TaxRate` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return tax rates for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return TaxRates with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTaxRateList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.tax_rates.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TaxRate: - """ - Returns a `TaxRate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TaxRate - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.tax_rates.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncTaxRatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTaxRatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTaxRatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTaxRatesClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTaxRateList: - """ - Returns a list of `TaxRate` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return tax rates for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return TaxRates with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTaxRateList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.tax_rates.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TaxRate: - """ - Returns a `TaxRate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TaxRate - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.tax_rates.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/tax_rates/raw_client.py b/src/merge/resources/accounting/resources/tax_rates/raw_client.py deleted file mode 100644 index 349c6857..00000000 --- a/src/merge/resources/accounting/resources/tax_rates/raw_client.py +++ /dev/null @@ -1,351 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_tax_rate_list import PaginatedTaxRateList -from ...types.tax_rate import TaxRate - - -class RawTaxRatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTaxRateList]: - """ - Returns a list of `TaxRate` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return tax rates for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return TaxRates with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTaxRateList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/tax-rates", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTaxRateList, - construct_type( - type_=PaginatedTaxRateList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TaxRate]: - """ - Returns a `TaxRate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TaxRate] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/tax-rates/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TaxRate, - construct_type( - type_=TaxRate, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTaxRatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTaxRateList]: - """ - Returns a list of `TaxRate` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return tax rates for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return TaxRates with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTaxRateList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/tax-rates", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTaxRateList, - construct_type( - type_=PaginatedTaxRateList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TaxRate]: - """ - Returns a `TaxRate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TaxRate] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/tax-rates/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TaxRate, - construct_type( - type_=TaxRate, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/tracking_categories/__init__.py b/src/merge/resources/accounting/resources/tracking_categories/__init__.py deleted file mode 100644 index 6f5cbc5a..00000000 --- a/src/merge/resources/accounting/resources/tracking_categories/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import TrackingCategoriesListRequestCategoryType, TrackingCategoriesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = { - "TrackingCategoriesListRequestCategoryType": ".types", - "TrackingCategoriesListRequestStatus": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TrackingCategoriesListRequestCategoryType", "TrackingCategoriesListRequestStatus"] diff --git a/src/merge/resources/accounting/resources/tracking_categories/client.py b/src/merge/resources/accounting/resources/tracking_categories/client.py deleted file mode 100644 index c2f68550..00000000 --- a/src/merge/resources/accounting/resources/tracking_categories/client.py +++ /dev/null @@ -1,485 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_tracking_category_list import PaginatedTrackingCategoryList -from ...types.tracking_category import TrackingCategory -from .raw_client import AsyncRawTrackingCategoriesClient, RawTrackingCategoriesClient -from .types.tracking_categories_list_request_category_type import TrackingCategoriesListRequestCategoryType -from .types.tracking_categories_list_request_status import TrackingCategoriesListRequestStatus - - -class TrackingCategoriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTrackingCategoriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTrackingCategoriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTrackingCategoriesClient - """ - return self._raw_client - - def list( - self, - *, - category_type: typing.Optional[TrackingCategoriesListRequestCategoryType] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[TrackingCategoriesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTrackingCategoryList: - """ - Returns a list of `TrackingCategory` objects. - - Parameters - ---------- - category_type : typing.Optional[TrackingCategoriesListRequestCategoryType] - If provided, will only return tracking categories with this type. - - company_id : typing.Optional[str] - If provided, will only return tracking categories for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tracking categories with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TrackingCategoriesListRequestStatus] - If provided, will only return tracking categories with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTrackingCategoryList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.tracking_categories import ( - TrackingCategoriesListRequestCategoryType, - TrackingCategoriesListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.tracking_categories.list( - category_type=TrackingCategoriesListRequestCategoryType.EMPTY, - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - status=TrackingCategoriesListRequestStatus.EMPTY, - ) - """ - _response = self._raw_client.list( - category_type=category_type, - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TrackingCategory: - """ - Returns a `TrackingCategory` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TrackingCategory - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.tracking_categories.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncTrackingCategoriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTrackingCategoriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTrackingCategoriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTrackingCategoriesClient - """ - return self._raw_client - - async def list( - self, - *, - category_type: typing.Optional[TrackingCategoriesListRequestCategoryType] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[TrackingCategoriesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTrackingCategoryList: - """ - Returns a list of `TrackingCategory` objects. - - Parameters - ---------- - category_type : typing.Optional[TrackingCategoriesListRequestCategoryType] - If provided, will only return tracking categories with this type. - - company_id : typing.Optional[str] - If provided, will only return tracking categories for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tracking categories with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TrackingCategoriesListRequestStatus] - If provided, will only return tracking categories with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTrackingCategoryList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.tracking_categories import ( - TrackingCategoriesListRequestCategoryType, - TrackingCategoriesListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.tracking_categories.list( - category_type=TrackingCategoriesListRequestCategoryType.EMPTY, - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - remote_id="remote_id", - status=TrackingCategoriesListRequestStatus.EMPTY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category_type=category_type, - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TrackingCategory: - """ - Returns a `TrackingCategory` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TrackingCategory - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.tracking_categories.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/tracking_categories/raw_client.py b/src/merge/resources/accounting/resources/tracking_categories/raw_client.py deleted file mode 100644 index 2b73c9ef..00000000 --- a/src/merge/resources/accounting/resources/tracking_categories/raw_client.py +++ /dev/null @@ -1,413 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_tracking_category_list import PaginatedTrackingCategoryList -from ...types.tracking_category import TrackingCategory -from .types.tracking_categories_list_request_category_type import TrackingCategoriesListRequestCategoryType -from .types.tracking_categories_list_request_status import TrackingCategoriesListRequestStatus - - -class RawTrackingCategoriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category_type: typing.Optional[TrackingCategoriesListRequestCategoryType] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[TrackingCategoriesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTrackingCategoryList]: - """ - Returns a list of `TrackingCategory` objects. - - Parameters - ---------- - category_type : typing.Optional[TrackingCategoriesListRequestCategoryType] - If provided, will only return tracking categories with this type. - - company_id : typing.Optional[str] - If provided, will only return tracking categories for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tracking categories with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TrackingCategoriesListRequestStatus] - If provided, will only return tracking categories with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTrackingCategoryList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/tracking-categories", - method="GET", - params={ - "category_type": category_type, - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTrackingCategoryList, - construct_type( - type_=PaginatedTrackingCategoryList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TrackingCategory]: - """ - Returns a `TrackingCategory` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TrackingCategory] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/tracking-categories/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TrackingCategory, - construct_type( - type_=TrackingCategory, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTrackingCategoriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category_type: typing.Optional[TrackingCategoriesListRequestCategoryType] = None, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["company"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[TrackingCategoriesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTrackingCategoryList]: - """ - Returns a list of `TrackingCategory` objects. - - Parameters - ---------- - category_type : typing.Optional[TrackingCategoriesListRequestCategoryType] - If provided, will only return tracking categories with this type. - - company_id : typing.Optional[str] - If provided, will only return tracking categories for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tracking categories with this name. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TrackingCategoriesListRequestStatus] - If provided, will only return tracking categories with this status. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTrackingCategoryList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/tracking-categories", - method="GET", - params={ - "category_type": category_type, - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTrackingCategoryList, - construct_type( - type_=PaginatedTrackingCategoryList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["company"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TrackingCategory]: - """ - Returns a `TrackingCategory` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["company"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TrackingCategory] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/tracking-categories/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TrackingCategory, - construct_type( - type_=TrackingCategory, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/tracking_categories/types/__init__.py b/src/merge/resources/accounting/resources/tracking_categories/types/__init__.py deleted file mode 100644 index 702a54d3..00000000 --- a/src/merge/resources/accounting/resources/tracking_categories/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .tracking_categories_list_request_category_type import TrackingCategoriesListRequestCategoryType - from .tracking_categories_list_request_status import TrackingCategoriesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = { - "TrackingCategoriesListRequestCategoryType": ".tracking_categories_list_request_category_type", - "TrackingCategoriesListRequestStatus": ".tracking_categories_list_request_status", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TrackingCategoriesListRequestCategoryType", "TrackingCategoriesListRequestStatus"] diff --git a/src/merge/resources/accounting/resources/tracking_categories/types/tracking_categories_list_request_category_type.py b/src/merge/resources/accounting/resources/tracking_categories/types/tracking_categories_list_request_category_type.py deleted file mode 100644 index 92354377..00000000 --- a/src/merge/resources/accounting/resources/tracking_categories/types/tracking_categories_list_request_category_type.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TrackingCategoriesListRequestCategoryType(str, enum.Enum): - EMPTY = "" - CLASS = "CLASS" - DEPARTMENT = "DEPARTMENT" - - def visit( - self, - empty: typing.Callable[[], T_Result], - class_: typing.Callable[[], T_Result], - department: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TrackingCategoriesListRequestCategoryType.EMPTY: - return empty() - if self is TrackingCategoriesListRequestCategoryType.CLASS: - return class_() - if self is TrackingCategoriesListRequestCategoryType.DEPARTMENT: - return department() diff --git a/src/merge/resources/accounting/resources/tracking_categories/types/tracking_categories_list_request_status.py b/src/merge/resources/accounting/resources/tracking_categories/types/tracking_categories_list_request_status.py deleted file mode 100644 index 3f8a0cc3..00000000 --- a/src/merge/resources/accounting/resources/tracking_categories/types/tracking_categories_list_request_status.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TrackingCategoriesListRequestStatus(str, enum.Enum): - EMPTY = "" - ACTIVE = "ACTIVE" - ARCHIVED = "ARCHIVED" - - def visit( - self, - empty: typing.Callable[[], T_Result], - active: typing.Callable[[], T_Result], - archived: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TrackingCategoriesListRequestStatus.EMPTY: - return empty() - if self is TrackingCategoriesListRequestStatus.ACTIVE: - return active() - if self is TrackingCategoriesListRequestStatus.ARCHIVED: - return archived() diff --git a/src/merge/resources/accounting/resources/transactions/__init__.py b/src/merge/resources/accounting/resources/transactions/__init__.py deleted file mode 100644 index 33273208..00000000 --- a/src/merge/resources/accounting/resources/transactions/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import TransactionsListRequestExpand, TransactionsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "TransactionsListRequestExpand": ".types", - "TransactionsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TransactionsListRequestExpand", "TransactionsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/transactions/client.py b/src/merge/resources/accounting/resources/transactions/client.py deleted file mode 100644 index a7842616..00000000 --- a/src/merge/resources/accounting/resources/transactions/client.py +++ /dev/null @@ -1,449 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_transaction_list import PaginatedTransactionList -from ...types.transaction import Transaction -from .raw_client import AsyncRawTransactionsClient, RawTransactionsClient -from .types.transactions_list_request_expand import TransactionsListRequestExpand -from .types.transactions_retrieve_request_expand import TransactionsRetrieveRequestExpand - - -class TransactionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTransactionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTransactionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTransactionsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTransactionList: - """ - Returns a list of `Transaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTransactionList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.transactions import ( - TransactionsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.transactions.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TransactionsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Transaction: - """ - Returns a `Transaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Transaction - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.transactions import ( - TransactionsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.transactions.retrieve( - id="id", - expand=TransactionsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncTransactionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTransactionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTransactionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTransactionsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTransactionList: - """ - Returns a list of `Transaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTransactionList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.transactions import ( - TransactionsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.transactions.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TransactionsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Transaction: - """ - Returns a `Transaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Transaction - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.transactions import ( - TransactionsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.transactions.retrieve( - id="id", - expand=TransactionsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/transactions/raw_client.py b/src/merge/resources/accounting/resources/transactions/raw_client.py deleted file mode 100644 index ad8a91c3..00000000 --- a/src/merge/resources/accounting/resources/transactions/raw_client.py +++ /dev/null @@ -1,371 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_transaction_list import PaginatedTransactionList -from ...types.transaction import Transaction -from .types.transactions_list_request_expand import TransactionsListRequestExpand -from .types.transactions_retrieve_request_expand import TransactionsRetrieveRequestExpand - - -class RawTransactionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTransactionList]: - """ - Returns a list of `Transaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTransactionList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/transactions", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTransactionList, - construct_type( - type_=PaginatedTransactionList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Transaction]: - """ - Returns a `Transaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Transaction] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/transactions/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Transaction, - construct_type( - type_=Transaction, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTransactionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TransactionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTransactionList]: - """ - Returns a list of `Transaction` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return accounting transactions for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TransactionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTransactionList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/transactions", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTransactionList, - construct_type( - type_=PaginatedTransactionList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TransactionsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Transaction]: - """ - Returns a `Transaction` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TransactionsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Transaction] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/transactions/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Transaction, - construct_type( - type_=Transaction, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/transactions/types/__init__.py b/src/merge/resources/accounting/resources/transactions/types/__init__.py deleted file mode 100644 index 4b58f5e5..00000000 --- a/src/merge/resources/accounting/resources/transactions/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .transactions_list_request_expand import TransactionsListRequestExpand - from .transactions_retrieve_request_expand import TransactionsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "TransactionsListRequestExpand": ".transactions_list_request_expand", - "TransactionsRetrieveRequestExpand": ".transactions_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TransactionsListRequestExpand", "TransactionsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/transactions/types/transactions_list_request_expand.py b/src/merge/resources/accounting/resources/transactions/types/transactions_list_request_expand.py deleted file mode 100644 index 8246398b..00000000 --- a/src/merge/resources/accounting/resources/transactions/types/transactions_list_request_expand.py +++ /dev/null @@ -1,284 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TransactionsListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" - ACCOUNT_COMPANY = "account,company" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - CONTACT = "contact" - CONTACT_ACCOUNT = "contact,account" - CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period" - CONTACT_ACCOUNT_COMPANY = "contact,account,company" - CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNT = "line_items,account" - LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD = "line_items,account,accounting_period" - LINE_ITEMS_ACCOUNT_COMPANY = "line_items,account,company" - LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,account,company,accounting_period" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_CONTACT = "line_items,contact" - LINE_ITEMS_CONTACT_ACCOUNT = "line_items,contact,account" - LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,contact,account,accounting_period" - LINE_ITEMS_CONTACT_ACCOUNT_COMPANY = "line_items,contact,account,company" - LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,account,company,accounting_period" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" - LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT = "line_items,tracking_categories,account" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,account,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY = "line_items,tracking_categories,account,company" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,account,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT = "line_items,tracking_categories,contact,account" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,account,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "line_items,tracking_categories,contact,account,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,account,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,accounting_period" - ) - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,account,company,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_accounting_period: typing.Callable[[], T_Result], - account_company: typing.Callable[[], T_Result], - account_company_accounting_period: typing.Callable[[], T_Result], - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_account: typing.Callable[[], T_Result], - contact_account_accounting_period: typing.Callable[[], T_Result], - contact_account_company: typing.Callable[[], T_Result], - contact_account_company_accounting_period: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_account: typing.Callable[[], T_Result], - line_items_account_accounting_period: typing.Callable[[], T_Result], - line_items_account_company: typing.Callable[[], T_Result], - line_items_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact: typing.Callable[[], T_Result], - line_items_contact_account: typing.Callable[[], T_Result], - line_items_contact_account_accounting_period: typing.Callable[[], T_Result], - line_items_contact_account_company: typing.Callable[[], T_Result], - line_items_contact_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_account: typing.Callable[[], T_Result], - line_items_tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_account_company: typing.Callable[[], T_Result], - line_items_tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_account: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_account: typing.Callable[[], T_Result], - tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_account_company: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TransactionsListRequestExpand.ACCOUNT: - return account() - if self is TransactionsListRequestExpand.ACCOUNT_ACCOUNTING_PERIOD: - return account_accounting_period() - if self is TransactionsListRequestExpand.ACCOUNT_COMPANY: - return account_company() - if self is TransactionsListRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return account_company_accounting_period() - if self is TransactionsListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is TransactionsListRequestExpand.COMPANY: - return company() - if self is TransactionsListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is TransactionsListRequestExpand.CONTACT: - return contact() - if self is TransactionsListRequestExpand.CONTACT_ACCOUNT: - return contact_account() - if self is TransactionsListRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return contact_account_accounting_period() - if self is TransactionsListRequestExpand.CONTACT_ACCOUNT_COMPANY: - return contact_account_company() - if self is TransactionsListRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return contact_account_company_accounting_period() - if self is TransactionsListRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is TransactionsListRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is TransactionsListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS: - return line_items() - if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT: - return line_items_account() - if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_account_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY: - return line_items_account_company() - if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return line_items_account_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is TransactionsListRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT: - return line_items_contact() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT: - return line_items_contact_account() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_contact_account_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY: - return line_items_contact_account_company() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_account_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return line_items_contact_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_COMPANY: - return line_items_contact_company() - if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT: - return line_items_tracking_categories_account() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_account_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return line_items_tracking_categories_account_company() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_account_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return line_items_tracking_categories_contact() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT: - return line_items_tracking_categories_contact_account() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_account_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY: - return line_items_tracking_categories_contact_account_company() - if ( - self - is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_contact_account_company_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_accounting_period() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return line_items_tracking_categories_contact_company() - if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_company_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT: - return tracking_categories_account() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_account_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return tracking_categories_account_company() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_company_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT: - return tracking_categories_contact_account() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY: - return tracking_categories_contact_account_company() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_company_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/transactions/types/transactions_retrieve_request_expand.py b/src/merge/resources/accounting/resources/transactions/types/transactions_retrieve_request_expand.py deleted file mode 100644 index 89925077..00000000 --- a/src/merge/resources/accounting/resources/transactions/types/transactions_retrieve_request_expand.py +++ /dev/null @@ -1,284 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TransactionsRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" - ACCOUNT_COMPANY = "account,company" - ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - CONTACT = "contact" - CONTACT_ACCOUNT = "contact,account" - CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period" - CONTACT_ACCOUNT_COMPANY = "contact,account,company" - CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period" - CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" - CONTACT_COMPANY = "contact,company" - CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" - LINE_ITEMS = "line_items" - LINE_ITEMS_ACCOUNT = "line_items,account" - LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD = "line_items,account,accounting_period" - LINE_ITEMS_ACCOUNT_COMPANY = "line_items,account,company" - LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,account,company,accounting_period" - LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" - LINE_ITEMS_COMPANY = "line_items,company" - LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" - LINE_ITEMS_CONTACT = "line_items,contact" - LINE_ITEMS_CONTACT_ACCOUNT = "line_items,contact,account" - LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,contact,account,accounting_period" - LINE_ITEMS_CONTACT_ACCOUNT_COMPANY = "line_items,contact,account,company" - LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,account,company,accounting_period" - LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" - LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" - LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT = "line_items,tracking_categories,account" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,account,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY = "line_items,tracking_categories,account,company" - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,account,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" - LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT = "line_items,tracking_categories,contact,account" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,account,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "line_items,tracking_categories,contact,account,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,account,company,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,accounting_period" - ) - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" - LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = ( - "line_items,tracking_categories,contact,company,accounting_period" - ) - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" - TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" - TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" - TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" - TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company" - TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = ( - "tracking_categories,contact,account,company,accounting_period" - ) - TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" - TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" - TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_accounting_period: typing.Callable[[], T_Result], - account_company: typing.Callable[[], T_Result], - account_company_accounting_period: typing.Callable[[], T_Result], - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_account: typing.Callable[[], T_Result], - contact_account_accounting_period: typing.Callable[[], T_Result], - contact_account_company: typing.Callable[[], T_Result], - contact_account_company_accounting_period: typing.Callable[[], T_Result], - contact_accounting_period: typing.Callable[[], T_Result], - contact_company: typing.Callable[[], T_Result], - contact_company_accounting_period: typing.Callable[[], T_Result], - line_items: typing.Callable[[], T_Result], - line_items_account: typing.Callable[[], T_Result], - line_items_account_accounting_period: typing.Callable[[], T_Result], - line_items_account_company: typing.Callable[[], T_Result], - line_items_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_accounting_period: typing.Callable[[], T_Result], - line_items_company: typing.Callable[[], T_Result], - line_items_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact: typing.Callable[[], T_Result], - line_items_contact_account: typing.Callable[[], T_Result], - line_items_contact_account_accounting_period: typing.Callable[[], T_Result], - line_items_contact_account_company: typing.Callable[[], T_Result], - line_items_contact_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_contact_accounting_period: typing.Callable[[], T_Result], - line_items_contact_company: typing.Callable[[], T_Result], - line_items_contact_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories: typing.Callable[[], T_Result], - line_items_tracking_categories_account: typing.Callable[[], T_Result], - line_items_tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_account_company: typing.Callable[[], T_Result], - line_items_tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_company: typing.Callable[[], T_Result], - line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company: typing.Callable[[], T_Result], - line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_account: typing.Callable[[], T_Result], - tracking_categories_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_account_company: typing.Callable[[], T_Result], - tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact: typing.Callable[[], T_Result], - tracking_categories_contact_account: typing.Callable[[], T_Result], - tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_account_company: typing.Callable[[], T_Result], - tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_accounting_period: typing.Callable[[], T_Result], - tracking_categories_contact_company: typing.Callable[[], T_Result], - tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TransactionsRetrieveRequestExpand.ACCOUNT: - return account() - if self is TransactionsRetrieveRequestExpand.ACCOUNT_ACCOUNTING_PERIOD: - return account_accounting_period() - if self is TransactionsRetrieveRequestExpand.ACCOUNT_COMPANY: - return account_company() - if self is TransactionsRetrieveRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is TransactionsRetrieveRequestExpand.COMPANY: - return company() - if self is TransactionsRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is TransactionsRetrieveRequestExpand.CONTACT: - return contact() - if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT: - return contact_account() - if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return contact_account_accounting_period() - if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY: - return contact_account_company() - if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return contact_account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD: - return contact_accounting_period() - if self is TransactionsRetrieveRequestExpand.CONTACT_COMPANY: - return contact_company() - if self is TransactionsRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD: - return contact_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS: - return line_items() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT: - return line_items_account() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_account_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY: - return line_items_account_company() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return line_items_account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD: - return line_items_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_COMPANY: - return line_items_company() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD: - return line_items_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT: - return line_items_contact() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT: - return line_items_contact_account() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_contact_account_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY: - return line_items_contact_account_company() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD: - return line_items_contact_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY: - return line_items_contact_company() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_contact_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES: - return line_items_tracking_categories() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT: - return line_items_tracking_categories_account() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_account_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return line_items_tracking_categories_account_company() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return line_items_tracking_categories_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY: - return line_items_tracking_categories_company() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT: - return line_items_tracking_categories_contact() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT: - return line_items_tracking_categories_contact_account() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_account_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY: - return line_items_tracking_categories_contact_account_company() - if ( - self - is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD - ): - return line_items_tracking_categories_contact_account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_accounting_period() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY: - return line_items_tracking_categories_contact_company() - if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return line_items_tracking_categories_contact_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT: - return tracking_categories_account() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_account_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY: - return tracking_categories_account_company() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT: - return tracking_categories_contact() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT: - return tracking_categories_contact_account() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY: - return tracking_categories_contact_account_company() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_account_company_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD: - return tracking_categories_contact_accounting_period() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY: - return tracking_categories_contact_company() - if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_contact_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/vendor_credits/__init__.py b/src/merge/resources/accounting/resources/vendor_credits/__init__.py deleted file mode 100644 index 1ef466d1..00000000 --- a/src/merge/resources/accounting/resources/vendor_credits/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import VendorCreditsListRequestExpand, VendorCreditsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "VendorCreditsListRequestExpand": ".types", - "VendorCreditsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["VendorCreditsListRequestExpand", "VendorCreditsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/vendor_credits/client.py b/src/merge/resources/accounting/resources/vendor_credits/client.py deleted file mode 100644 index 7b599489..00000000 --- a/src/merge/resources/accounting/resources/vendor_credits/client.py +++ /dev/null @@ -1,623 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_vendor_credit_list import PaginatedVendorCreditList -from ...types.vendor_credit import VendorCredit -from ...types.vendor_credit_request import VendorCreditRequest -from ...types.vendor_credit_response import VendorCreditResponse -from .raw_client import AsyncRawVendorCreditsClient, RawVendorCreditsClient -from .types.vendor_credits_list_request_expand import VendorCreditsListRequestExpand -from .types.vendor_credits_retrieve_request_expand import VendorCreditsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class VendorCreditsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawVendorCreditsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawVendorCreditsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawVendorCreditsClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[VendorCreditsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedVendorCreditList: - """ - Returns a list of `VendorCredit` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return vendor credits for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[VendorCreditsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedVendorCreditList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.accounting.resources.vendor_credits import ( - VendorCreditsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.vendor_credits.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=VendorCreditsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: VendorCreditRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> VendorCreditResponse: - """ - Creates a `VendorCredit` object with the given values. - - Parameters - ---------- - model : VendorCreditRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VendorCreditResponse - - - Examples - -------- - from merge import Merge - from merge.resources.accounting import VendorCreditRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.vendor_credits.create( - is_debug_mode=True, - run_async=True, - model=VendorCreditRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[VendorCreditsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> VendorCredit: - """ - Returns a `VendorCredit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[VendorCreditsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VendorCredit - - - Examples - -------- - from merge import Merge - from merge.resources.accounting.resources.vendor_credits import ( - VendorCreditsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.vendor_credits.retrieve( - id="id", - expand=VendorCreditsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `VendorCredit` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.vendor_credits.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncVendorCreditsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawVendorCreditsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawVendorCreditsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawVendorCreditsClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[VendorCreditsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedVendorCreditList: - """ - Returns a list of `VendorCredit` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return vendor credits for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[VendorCreditsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedVendorCreditList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.accounting.resources.vendor_credits import ( - VendorCreditsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.vendor_credits.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=VendorCreditsListRequestExpand.ACCOUNTING_PERIOD, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - transaction_date_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - transaction_date_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - transaction_date_after=transaction_date_after, - transaction_date_before=transaction_date_before, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: VendorCreditRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> VendorCreditResponse: - """ - Creates a `VendorCredit` object with the given values. - - Parameters - ---------- - model : VendorCreditRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VendorCreditResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting import VendorCreditRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.vendor_credits.create( - is_debug_mode=True, - run_async=True, - model=VendorCreditRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[VendorCreditsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> VendorCredit: - """ - Returns a `VendorCredit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[VendorCreditsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - VendorCredit - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.accounting.resources.vendor_credits import ( - VendorCreditsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.vendor_credits.retrieve( - id="id", - expand=VendorCreditsRetrieveRequestExpand.ACCOUNTING_PERIOD, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `VendorCredit` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.vendor_credits.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/accounting/resources/vendor_credits/raw_client.py b/src/merge/resources/accounting/resources/vendor_credits/raw_client.py deleted file mode 100644 index 95c4e621..00000000 --- a/src/merge/resources/accounting/resources/vendor_credits/raw_client.py +++ /dev/null @@ -1,569 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_vendor_credit_list import PaginatedVendorCreditList -from ...types.vendor_credit import VendorCredit -from ...types.vendor_credit_request import VendorCreditRequest -from ...types.vendor_credit_response import VendorCreditResponse -from .types.vendor_credits_list_request_expand import VendorCreditsListRequestExpand -from .types.vendor_credits_retrieve_request_expand import VendorCreditsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawVendorCreditsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[VendorCreditsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedVendorCreditList]: - """ - Returns a list of `VendorCredit` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return vendor credits for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[VendorCreditsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedVendorCreditList] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/vendor-credits", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedVendorCreditList, - construct_type( - type_=PaginatedVendorCreditList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: VendorCreditRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[VendorCreditResponse]: - """ - Creates a `VendorCredit` object with the given values. - - Parameters - ---------- - model : VendorCreditRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[VendorCreditResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/vendor-credits", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VendorCreditResponse, - construct_type( - type_=VendorCreditResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[VendorCreditsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[VendorCredit]: - """ - Returns a `VendorCredit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[VendorCreditsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[VendorCredit] - - """ - _response = self._client_wrapper.httpx_client.request( - f"accounting/v1/vendor-credits/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VendorCredit, - construct_type( - type_=VendorCredit, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `VendorCredit` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/vendor-credits/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawVendorCreditsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[VendorCreditsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - transaction_date_after: typing.Optional[dt.datetime] = None, - transaction_date_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedVendorCreditList]: - """ - Returns a list of `VendorCredit` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return vendor credits for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[VendorCreditsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - transaction_date_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - transaction_date_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedVendorCreditList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/vendor-credits", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "transaction_date_after": serialize_datetime(transaction_date_after) - if transaction_date_after is not None - else None, - "transaction_date_before": serialize_datetime(transaction_date_before) - if transaction_date_before is not None - else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedVendorCreditList, - construct_type( - type_=PaginatedVendorCreditList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: VendorCreditRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[VendorCreditResponse]: - """ - Creates a `VendorCredit` object with the given values. - - Parameters - ---------- - model : VendorCreditRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[VendorCreditResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/vendor-credits", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VendorCreditResponse, - construct_type( - type_=VendorCreditResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[VendorCreditsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[VendorCredit]: - """ - Returns a `VendorCredit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[VendorCreditsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[VendorCredit] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"accounting/v1/vendor-credits/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - VendorCredit, - construct_type( - type_=VendorCredit, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `VendorCredit` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/vendor-credits/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/resources/vendor_credits/types/__init__.py b/src/merge/resources/accounting/resources/vendor_credits/types/__init__.py deleted file mode 100644 index 426f9ce5..00000000 --- a/src/merge/resources/accounting/resources/vendor_credits/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .vendor_credits_list_request_expand import VendorCreditsListRequestExpand - from .vendor_credits_retrieve_request_expand import VendorCreditsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "VendorCreditsListRequestExpand": ".vendor_credits_list_request_expand", - "VendorCreditsRetrieveRequestExpand": ".vendor_credits_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["VendorCreditsListRequestExpand", "VendorCreditsRetrieveRequestExpand"] diff --git a/src/merge/resources/accounting/resources/vendor_credits/types/vendor_credits_list_request_expand.py b/src/merge/resources/accounting/resources/vendor_credits/types/vendor_credits_list_request_expand.py deleted file mode 100644 index 675c95e9..00000000 --- a/src/merge/resources/accounting/resources/vendor_credits/types/vendor_credits_list_request_expand.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class VendorCreditsListRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - LINES = "lines" - LINES_ACCOUNTING_PERIOD = "lines,accounting_period" - LINES_COMPANY = "lines,company" - LINES_COMPANY_ACCOUNTING_PERIOD = "lines,company,accounting_period" - LINES_TRACKING_CATEGORIES = "lines,tracking_categories" - LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "lines,tracking_categories,accounting_period" - LINES_TRACKING_CATEGORIES_COMPANY = "lines,tracking_categories,company" - LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "lines,tracking_categories,company,accounting_period" - LINES_TRACKING_CATEGORIES_VENDOR = "lines,tracking_categories,vendor" - LINES_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "lines,tracking_categories,vendor,accounting_period" - LINES_TRACKING_CATEGORIES_VENDOR_COMPANY = "lines,tracking_categories,vendor,company" - LINES_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "lines,tracking_categories,vendor,company,accounting_period" - ) - LINES_VENDOR = "lines,vendor" - LINES_VENDOR_ACCOUNTING_PERIOD = "lines,vendor,accounting_period" - LINES_VENDOR_COMPANY = "lines,vendor,company" - LINES_VENDOR_COMPANY_ACCOUNTING_PERIOD = "lines,vendor,company,accounting_period" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_VENDOR = "tracking_categories,vendor" - TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "tracking_categories,vendor,accounting_period" - TRACKING_CATEGORIES_VENDOR_COMPANY = "tracking_categories,vendor,company" - TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,vendor,company,accounting_period" - VENDOR = "vendor" - VENDOR_ACCOUNTING_PERIOD = "vendor,accounting_period" - VENDOR_COMPANY = "vendor,company" - VENDOR_COMPANY_ACCOUNTING_PERIOD = "vendor,company,accounting_period" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - lines: typing.Callable[[], T_Result], - lines_accounting_period: typing.Callable[[], T_Result], - lines_company: typing.Callable[[], T_Result], - lines_company_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories: typing.Callable[[], T_Result], - lines_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_company: typing.Callable[[], T_Result], - lines_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_vendor: typing.Callable[[], T_Result], - lines_tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_vendor_company: typing.Callable[[], T_Result], - lines_tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - lines_vendor: typing.Callable[[], T_Result], - lines_vendor_accounting_period: typing.Callable[[], T_Result], - lines_vendor_company: typing.Callable[[], T_Result], - lines_vendor_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor: typing.Callable[[], T_Result], - tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor_company: typing.Callable[[], T_Result], - tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - vendor: typing.Callable[[], T_Result], - vendor_accounting_period: typing.Callable[[], T_Result], - vendor_company: typing.Callable[[], T_Result], - vendor_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is VendorCreditsListRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is VendorCreditsListRequestExpand.COMPANY: - return company() - if self is VendorCreditsListRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is VendorCreditsListRequestExpand.LINES: - return lines() - if self is VendorCreditsListRequestExpand.LINES_ACCOUNTING_PERIOD: - return lines_accounting_period() - if self is VendorCreditsListRequestExpand.LINES_COMPANY: - return lines_company() - if self is VendorCreditsListRequestExpand.LINES_COMPANY_ACCOUNTING_PERIOD: - return lines_company_accounting_period() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES: - return lines_tracking_categories() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_tracking_categories_accounting_period() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY: - return lines_tracking_categories_company() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return lines_tracking_categories_company_accounting_period() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR: - return lines_tracking_categories_vendor() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return lines_tracking_categories_vendor_accounting_period() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR_COMPANY: - return lines_tracking_categories_vendor_company() - if self is VendorCreditsListRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return lines_tracking_categories_vendor_company_accounting_period() - if self is VendorCreditsListRequestExpand.LINES_VENDOR: - return lines_vendor() - if self is VendorCreditsListRequestExpand.LINES_VENDOR_ACCOUNTING_PERIOD: - return lines_vendor_accounting_period() - if self is VendorCreditsListRequestExpand.LINES_VENDOR_COMPANY: - return lines_vendor_company() - if self is VendorCreditsListRequestExpand.LINES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return lines_vendor_company_accounting_period() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES_VENDOR: - return tracking_categories_vendor() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return tracking_categories_vendor_accounting_period() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY: - return tracking_categories_vendor_company() - if self is VendorCreditsListRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_vendor_company_accounting_period() - if self is VendorCreditsListRequestExpand.VENDOR: - return vendor() - if self is VendorCreditsListRequestExpand.VENDOR_ACCOUNTING_PERIOD: - return vendor_accounting_period() - if self is VendorCreditsListRequestExpand.VENDOR_COMPANY: - return vendor_company() - if self is VendorCreditsListRequestExpand.VENDOR_COMPANY_ACCOUNTING_PERIOD: - return vendor_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/vendor_credits/types/vendor_credits_retrieve_request_expand.py b/src/merge/resources/accounting/resources/vendor_credits/types/vendor_credits_retrieve_request_expand.py deleted file mode 100644 index a6288272..00000000 --- a/src/merge/resources/accounting/resources/vendor_credits/types/vendor_credits_retrieve_request_expand.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class VendorCreditsRetrieveRequestExpand(str, enum.Enum): - ACCOUNTING_PERIOD = "accounting_period" - COMPANY = "company" - COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" - LINES = "lines" - LINES_ACCOUNTING_PERIOD = "lines,accounting_period" - LINES_COMPANY = "lines,company" - LINES_COMPANY_ACCOUNTING_PERIOD = "lines,company,accounting_period" - LINES_TRACKING_CATEGORIES = "lines,tracking_categories" - LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "lines,tracking_categories,accounting_period" - LINES_TRACKING_CATEGORIES_COMPANY = "lines,tracking_categories,company" - LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "lines,tracking_categories,company,accounting_period" - LINES_TRACKING_CATEGORIES_VENDOR = "lines,tracking_categories,vendor" - LINES_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "lines,tracking_categories,vendor,accounting_period" - LINES_TRACKING_CATEGORIES_VENDOR_COMPANY = "lines,tracking_categories,vendor,company" - LINES_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = ( - "lines,tracking_categories,vendor,company,accounting_period" - ) - LINES_VENDOR = "lines,vendor" - LINES_VENDOR_ACCOUNTING_PERIOD = "lines,vendor,accounting_period" - LINES_VENDOR_COMPANY = "lines,vendor,company" - LINES_VENDOR_COMPANY_ACCOUNTING_PERIOD = "lines,vendor,company,accounting_period" - TRACKING_CATEGORIES = "tracking_categories" - TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" - TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" - TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" - TRACKING_CATEGORIES_VENDOR = "tracking_categories,vendor" - TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD = "tracking_categories,vendor,accounting_period" - TRACKING_CATEGORIES_VENDOR_COMPANY = "tracking_categories,vendor,company" - TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,vendor,company,accounting_period" - VENDOR = "vendor" - VENDOR_ACCOUNTING_PERIOD = "vendor,accounting_period" - VENDOR_COMPANY = "vendor,company" - VENDOR_COMPANY_ACCOUNTING_PERIOD = "vendor,company,accounting_period" - - def visit( - self, - accounting_period: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - company_accounting_period: typing.Callable[[], T_Result], - lines: typing.Callable[[], T_Result], - lines_accounting_period: typing.Callable[[], T_Result], - lines_company: typing.Callable[[], T_Result], - lines_company_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories: typing.Callable[[], T_Result], - lines_tracking_categories_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_company: typing.Callable[[], T_Result], - lines_tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_vendor: typing.Callable[[], T_Result], - lines_tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - lines_tracking_categories_vendor_company: typing.Callable[[], T_Result], - lines_tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - lines_vendor: typing.Callable[[], T_Result], - lines_vendor_accounting_period: typing.Callable[[], T_Result], - lines_vendor_company: typing.Callable[[], T_Result], - lines_vendor_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories: typing.Callable[[], T_Result], - tracking_categories_accounting_period: typing.Callable[[], T_Result], - tracking_categories_company: typing.Callable[[], T_Result], - tracking_categories_company_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor: typing.Callable[[], T_Result], - tracking_categories_vendor_accounting_period: typing.Callable[[], T_Result], - tracking_categories_vendor_company: typing.Callable[[], T_Result], - tracking_categories_vendor_company_accounting_period: typing.Callable[[], T_Result], - vendor: typing.Callable[[], T_Result], - vendor_accounting_period: typing.Callable[[], T_Result], - vendor_company: typing.Callable[[], T_Result], - vendor_company_accounting_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is VendorCreditsRetrieveRequestExpand.ACCOUNTING_PERIOD: - return accounting_period() - if self is VendorCreditsRetrieveRequestExpand.COMPANY: - return company() - if self is VendorCreditsRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD: - return company_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES: - return lines() - if self is VendorCreditsRetrieveRequestExpand.LINES_ACCOUNTING_PERIOD: - return lines_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES_COMPANY: - return lines_company() - if self is VendorCreditsRetrieveRequestExpand.LINES_COMPANY_ACCOUNTING_PERIOD: - return lines_company_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES: - return lines_tracking_categories() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return lines_tracking_categories_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY: - return lines_tracking_categories_company() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return lines_tracking_categories_company_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR: - return lines_tracking_categories_vendor() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return lines_tracking_categories_vendor_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR_COMPANY: - return lines_tracking_categories_vendor_company() - if self is VendorCreditsRetrieveRequestExpand.LINES_TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return lines_tracking_categories_vendor_company_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES_VENDOR: - return lines_vendor() - if self is VendorCreditsRetrieveRequestExpand.LINES_VENDOR_ACCOUNTING_PERIOD: - return lines_vendor_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.LINES_VENDOR_COMPANY: - return lines_vendor_company() - if self is VendorCreditsRetrieveRequestExpand.LINES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return lines_vendor_company_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES: - return tracking_categories() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD: - return tracking_categories_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY: - return tracking_categories_company() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_company_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR: - return tracking_categories_vendor() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_ACCOUNTING_PERIOD: - return tracking_categories_vendor_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY: - return tracking_categories_vendor_company() - if self is VendorCreditsRetrieveRequestExpand.TRACKING_CATEGORIES_VENDOR_COMPANY_ACCOUNTING_PERIOD: - return tracking_categories_vendor_company_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.VENDOR: - return vendor() - if self is VendorCreditsRetrieveRequestExpand.VENDOR_ACCOUNTING_PERIOD: - return vendor_accounting_period() - if self is VendorCreditsRetrieveRequestExpand.VENDOR_COMPANY: - return vendor_company() - if self is VendorCreditsRetrieveRequestExpand.VENDOR_COMPANY_ACCOUNTING_PERIOD: - return vendor_company_accounting_period() diff --git a/src/merge/resources/accounting/resources/webhook_receivers/__init__.py b/src/merge/resources/accounting/resources/webhook_receivers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/accounting/resources/webhook_receivers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/accounting/resources/webhook_receivers/client.py b/src/merge/resources/accounting/resources/webhook_receivers/client.py deleted file mode 100644 index dcdf2aed..00000000 --- a/src/merge/resources/accounting/resources/webhook_receivers/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.webhook_receiver import WebhookReceiver -from .raw_client import AsyncRawWebhookReceiversClient, RawWebhookReceiversClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class WebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawWebhookReceiversClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.webhook_receivers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.accounting.webhook_receivers.create( - event="event", - is_active=True, - ) - """ - _response = self._raw_client.create(event=event, is_active=is_active, key=key, request_options=request_options) - return _response.data - - -class AsyncWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawWebhookReceiversClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.webhook_receivers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.accounting.webhook_receivers.create( - event="event", - is_active=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - event=event, is_active=is_active, key=key, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/accounting/resources/webhook_receivers/raw_client.py b/src/merge/resources/accounting/resources/webhook_receivers/raw_client.py deleted file mode 100644 index 4501e01a..00000000 --- a/src/merge/resources/accounting/resources/webhook_receivers/raw_client.py +++ /dev/null @@ -1,208 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.webhook_receiver import WebhookReceiver - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawWebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[WebhookReceiver]] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[WebhookReceiver] - - """ - _response = self._client_wrapper.httpx_client.request( - "accounting/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[WebhookReceiver]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[WebhookReceiver] - - """ - _response = await self._client_wrapper.httpx_client.request( - "accounting/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/accounting/types/__init__.py b/src/merge/resources/accounting/types/__init__.py deleted file mode 100644 index 904eaae3..00000000 --- a/src/merge/resources/accounting/types/__init__.py +++ /dev/null @@ -1,1590 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .account import Account - from .account_account_type import AccountAccountType - from .account_account_type_enum import AccountAccountTypeEnum - from .account_classification import AccountClassification - from .account_currency import AccountCurrency - from .account_details import AccountDetails - from .account_details_and_actions import AccountDetailsAndActions - from .account_details_and_actions_category import AccountDetailsAndActionsCategory - from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration - from .account_details_and_actions_status import AccountDetailsAndActionsStatus - from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - from .account_details_category import AccountDetailsCategory - from .account_integration import AccountIntegration - from .account_request import AccountRequest - from .account_request_account_type import AccountRequestAccountType - from .account_request_classification import AccountRequestClassification - from .account_request_currency import AccountRequestCurrency - from .account_request_status import AccountRequestStatus - from .account_response import AccountResponse - from .account_status import AccountStatus - from .account_status_enum import AccountStatusEnum - from .account_token import AccountToken - from .accounting_attachment import AccountingAttachment - from .accounting_attachment_request import AccountingAttachmentRequest - from .accounting_attachment_response import AccountingAttachmentResponse - from .accounting_period import AccountingPeriod - from .accounting_period_status import AccountingPeriodStatus - from .accounting_phone_number import AccountingPhoneNumber - from .accounting_phone_number_request import AccountingPhoneNumberRequest - from .address import Address - from .address_country import AddressCountry - from .address_request import AddressRequest - from .address_request_country import AddressRequestCountry - from .address_request_type import AddressRequestType - from .address_type import AddressType - from .address_type_enum import AddressTypeEnum - from .advanced_metadata import AdvancedMetadata - from .async_passthrough_reciept import AsyncPassthroughReciept - from .async_post_task import AsyncPostTask - from .async_post_task_result import AsyncPostTaskResult - from .async_post_task_status import AsyncPostTaskStatus - from .async_post_task_status_enum import AsyncPostTaskStatusEnum - from .audit_log_event import AuditLogEvent - from .audit_log_event_event_type import AuditLogEventEventType - from .audit_log_event_role import AuditLogEventRole - from .available_actions import AvailableActions - from .balance_sheet import BalanceSheet - from .balance_sheet_company import BalanceSheetCompany - from .balance_sheet_currency import BalanceSheetCurrency - from .bank_feed_account import BankFeedAccount - from .bank_feed_account_account_type import BankFeedAccountAccountType - from .bank_feed_account_account_type_enum import BankFeedAccountAccountTypeEnum - from .bank_feed_account_currency import BankFeedAccountCurrency - from .bank_feed_account_feed_status import BankFeedAccountFeedStatus - from .bank_feed_account_request import BankFeedAccountRequest - from .bank_feed_account_request_account_type import BankFeedAccountRequestAccountType - from .bank_feed_account_request_currency import BankFeedAccountRequestCurrency - from .bank_feed_account_request_feed_status import BankFeedAccountRequestFeedStatus - from .bank_feed_account_response import BankFeedAccountResponse - from .bank_feed_transaction import BankFeedTransaction - from .bank_feed_transaction_bank_feed_account import BankFeedTransactionBankFeedAccount - from .bank_feed_transaction_credit_or_debit import BankFeedTransactionCreditOrDebit - from .bank_feed_transaction_request_request import BankFeedTransactionRequestRequest - from .bank_feed_transaction_request_request_bank_feed_account import ( - BankFeedTransactionRequestRequestBankFeedAccount, - ) - from .bank_feed_transaction_request_request_credit_or_debit import BankFeedTransactionRequestRequestCreditOrDebit - from .bank_feed_transaction_response import BankFeedTransactionResponse - from .cash_flow_statement import CashFlowStatement - from .cash_flow_statement_company import CashFlowStatementCompany - from .cash_flow_statement_currency import CashFlowStatementCurrency - from .categories_enum import CategoriesEnum - from .category_enum import CategoryEnum - from .category_type_enum import CategoryTypeEnum - from .classification_enum import ClassificationEnum - from .common_model_scope_api import CommonModelScopeApi - from .common_model_scopes_body_request import CommonModelScopesBodyRequest - from .company_info import CompanyInfo - from .company_info_currency import CompanyInfoCurrency - from .component_type_enum import ComponentTypeEnum - from .contact import Contact - from .contact_addresses_item import ContactAddressesItem - from .contact_request import ContactRequest - from .contact_request_addresses_item import ContactRequestAddressesItem - from .contact_request_status import ContactRequestStatus - from .contact_response import ContactResponse - from .contact_status import ContactStatus - from .country_enum import CountryEnum - from .credit_note import CreditNote - from .credit_note_accounting_period import CreditNoteAccountingPeriod - from .credit_note_applied_payments_item import CreditNoteAppliedPaymentsItem - from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote - from .credit_note_apply_line_for_credit_note_invoice import CreditNoteApplyLineForCreditNoteInvoice - from .credit_note_apply_line_for_credit_note_request import CreditNoteApplyLineForCreditNoteRequest - from .credit_note_apply_line_for_credit_note_request_invoice import CreditNoteApplyLineForCreditNoteRequestInvoice - from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice - from .credit_note_apply_line_for_invoice_credit_note import CreditNoteApplyLineForInvoiceCreditNote - from .credit_note_company import CreditNoteCompany - from .credit_note_contact import CreditNoteContact - from .credit_note_currency import CreditNoteCurrency - from .credit_note_line_item import CreditNoteLineItem - from .credit_note_line_item_company import CreditNoteLineItemCompany - from .credit_note_line_item_contact import CreditNoteLineItemContact - from .credit_note_line_item_item import CreditNoteLineItemItem - from .credit_note_line_item_project import CreditNoteLineItemProject - from .credit_note_line_item_request import CreditNoteLineItemRequest - from .credit_note_line_item_request_company import CreditNoteLineItemRequestCompany - from .credit_note_line_item_request_contact import CreditNoteLineItemRequestContact - from .credit_note_line_item_request_item import CreditNoteLineItemRequestItem - from .credit_note_line_item_request_project import CreditNoteLineItemRequestProject - from .credit_note_payments_item import CreditNotePaymentsItem - from .credit_note_request import CreditNoteRequest - from .credit_note_request_accounting_period import CreditNoteRequestAccountingPeriod - from .credit_note_request_applied_payments_item import CreditNoteRequestAppliedPaymentsItem - from .credit_note_request_company import CreditNoteRequestCompany - from .credit_note_request_contact import CreditNoteRequestContact - from .credit_note_request_currency import CreditNoteRequestCurrency - from .credit_note_request_line_items_item import CreditNoteRequestLineItemsItem - from .credit_note_request_payments_item import CreditNoteRequestPaymentsItem - from .credit_note_request_status import CreditNoteRequestStatus - from .credit_note_request_tracking_categories_item import CreditNoteRequestTrackingCategoriesItem - from .credit_note_response import CreditNoteResponse - from .credit_note_status import CreditNoteStatus - from .credit_note_status_enum import CreditNoteStatusEnum - from .credit_note_tracking_categories_item import CreditNoteTrackingCategoriesItem - from .credit_or_debit_enum import CreditOrDebitEnum - from .data_passthrough_request import DataPassthroughRequest - from .data_passthrough_request_method import DataPassthroughRequestMethod - from .debug_mode_log import DebugModeLog - from .debug_model_log_summary import DebugModelLogSummary - from .employee import Employee - from .employee_company import EmployeeCompany - from .employee_status import EmployeeStatus - from .enabled_actions_enum import EnabledActionsEnum - from .encoding_enum import EncodingEnum - from .error_validation_problem import ErrorValidationProblem - from .event_type_enum import EventTypeEnum - from .expense import Expense - from .expense_account import ExpenseAccount - from .expense_accounting_period import ExpenseAccountingPeriod - from .expense_company import ExpenseCompany - from .expense_contact import ExpenseContact - from .expense_currency import ExpenseCurrency - from .expense_employee import ExpenseEmployee - from .expense_line import ExpenseLine - from .expense_line_account import ExpenseLineAccount - from .expense_line_contact import ExpenseLineContact - from .expense_line_currency import ExpenseLineCurrency - from .expense_line_employee import ExpenseLineEmployee - from .expense_line_item import ExpenseLineItem - from .expense_line_project import ExpenseLineProject - from .expense_line_request import ExpenseLineRequest - from .expense_line_request_account import ExpenseLineRequestAccount - from .expense_line_request_contact import ExpenseLineRequestContact - from .expense_line_request_currency import ExpenseLineRequestCurrency - from .expense_line_request_employee import ExpenseLineRequestEmployee - from .expense_line_request_item import ExpenseLineRequestItem - from .expense_line_request_project import ExpenseLineRequestProject - from .expense_line_request_tracking_categories_item import ExpenseLineRequestTrackingCategoriesItem - from .expense_line_request_tracking_category import ExpenseLineRequestTrackingCategory - from .expense_line_tracking_categories_item import ExpenseLineTrackingCategoriesItem - from .expense_line_tracking_category import ExpenseLineTrackingCategory - from .expense_report import ExpenseReport - from .expense_report_company import ExpenseReportCompany - from .expense_report_line import ExpenseReportLine - from .expense_report_line_account import ExpenseReportLineAccount - from .expense_report_line_company import ExpenseReportLineCompany - from .expense_report_line_contact import ExpenseReportLineContact - from .expense_report_line_employee import ExpenseReportLineEmployee - from .expense_report_line_project import ExpenseReportLineProject - from .expense_report_line_request import ExpenseReportLineRequest - from .expense_report_line_request_account import ExpenseReportLineRequestAccount - from .expense_report_line_request_company import ExpenseReportLineRequestCompany - from .expense_report_line_request_contact import ExpenseReportLineRequestContact - from .expense_report_line_request_employee import ExpenseReportLineRequestEmployee - from .expense_report_line_request_project import ExpenseReportLineRequestProject - from .expense_report_line_request_tax_rate import ExpenseReportLineRequestTaxRate - from .expense_report_line_tax_rate import ExpenseReportLineTaxRate - from .expense_report_request import ExpenseReportRequest - from .expense_report_request_accounting_period import ExpenseReportRequestAccountingPeriod - from .expense_report_request_company import ExpenseReportRequestCompany - from .expense_report_request_employee import ExpenseReportRequestEmployee - from .expense_report_response import ExpenseReportResponse - from .expense_report_status import ExpenseReportStatus - from .expense_report_status_enum import ExpenseReportStatusEnum - from .expense_request import ExpenseRequest - from .expense_request_account import ExpenseRequestAccount - from .expense_request_accounting_period import ExpenseRequestAccountingPeriod - from .expense_request_company import ExpenseRequestCompany - from .expense_request_contact import ExpenseRequestContact - from .expense_request_currency import ExpenseRequestCurrency - from .expense_request_employee import ExpenseRequestEmployee - from .expense_request_tracking_categories_item import ExpenseRequestTrackingCategoriesItem - from .expense_response import ExpenseResponse - from .expense_tracking_categories_item import ExpenseTrackingCategoriesItem - from .external_target_field_api import ExternalTargetFieldApi - from .external_target_field_api_response import ExternalTargetFieldApiResponse - from .feed_status_enum import FeedStatusEnum - from .field_format_enum import FieldFormatEnum - from .field_mapping_api_instance import FieldMappingApiInstance - from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField - from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ) - from .field_mapping_api_instance_response import FieldMappingApiInstanceResponse - from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - from .field_mapping_instance_response import FieldMappingInstanceResponse - from .field_permission_deserializer import FieldPermissionDeserializer - from .field_permission_deserializer_request import FieldPermissionDeserializerRequest - from .field_type_enum import FieldTypeEnum - from .general_ledger_transaction import GeneralLedgerTransaction - from .general_ledger_transaction_accounting_period import GeneralLedgerTransactionAccountingPeriod - from .general_ledger_transaction_company import GeneralLedgerTransactionCompany - from .general_ledger_transaction_general_ledger_transaction_lines_item import ( - GeneralLedgerTransactionGeneralLedgerTransactionLinesItem, - ) - from .general_ledger_transaction_line import GeneralLedgerTransactionLine - from .general_ledger_transaction_line_account import GeneralLedgerTransactionLineAccount - from .general_ledger_transaction_line_base_currency import GeneralLedgerTransactionLineBaseCurrency - from .general_ledger_transaction_line_company import GeneralLedgerTransactionLineCompany - from .general_ledger_transaction_line_contact import GeneralLedgerTransactionLineContact - from .general_ledger_transaction_line_employee import GeneralLedgerTransactionLineEmployee - from .general_ledger_transaction_line_item import GeneralLedgerTransactionLineItem - from .general_ledger_transaction_line_project import GeneralLedgerTransactionLineProject - from .general_ledger_transaction_line_tracking_categories_item import ( - GeneralLedgerTransactionLineTrackingCategoriesItem, - ) - from .general_ledger_transaction_line_transaction_currency import GeneralLedgerTransactionLineTransactionCurrency - from .general_ledger_transaction_tracking_categories_item import GeneralLedgerTransactionTrackingCategoriesItem - from .general_ledger_transaction_underlying_transaction_type import ( - GeneralLedgerTransactionUnderlyingTransactionType, - ) - from .income_statement import IncomeStatement - from .income_statement_company import IncomeStatementCompany - from .income_statement_currency import IncomeStatementCurrency - from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - from .individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - from .invoice import Invoice - from .invoice_accounting_period import InvoiceAccountingPeriod - from .invoice_applied_credit_notes_item import InvoiceAppliedCreditNotesItem - from .invoice_applied_payments_item import InvoiceAppliedPaymentsItem - from .invoice_applied_vendor_credits_item import InvoiceAppliedVendorCreditsItem - from .invoice_company import InvoiceCompany - from .invoice_contact import InvoiceContact - from .invoice_currency import InvoiceCurrency - from .invoice_employee import InvoiceEmployee - from .invoice_line_item import InvoiceLineItem - from .invoice_line_item_account import InvoiceLineItemAccount - from .invoice_line_item_contact import InvoiceLineItemContact - from .invoice_line_item_currency import InvoiceLineItemCurrency - from .invoice_line_item_employee import InvoiceLineItemEmployee - from .invoice_line_item_item import InvoiceLineItemItem - from .invoice_line_item_project import InvoiceLineItemProject - from .invoice_line_item_request import InvoiceLineItemRequest - from .invoice_line_item_request_account import InvoiceLineItemRequestAccount - from .invoice_line_item_request_contact import InvoiceLineItemRequestContact - from .invoice_line_item_request_currency import InvoiceLineItemRequestCurrency - from .invoice_line_item_request_employee import InvoiceLineItemRequestEmployee - from .invoice_line_item_request_item import InvoiceLineItemRequestItem - from .invoice_line_item_request_project import InvoiceLineItemRequestProject - from .invoice_line_item_request_tracking_categories_item import InvoiceLineItemRequestTrackingCategoriesItem - from .invoice_line_item_request_tracking_category import InvoiceLineItemRequestTrackingCategory - from .invoice_line_item_tracking_categories_item import InvoiceLineItemTrackingCategoriesItem - from .invoice_line_item_tracking_category import InvoiceLineItemTrackingCategory - from .invoice_payment_term import InvoicePaymentTerm - from .invoice_payments_item import InvoicePaymentsItem - from .invoice_purchase_orders_item import InvoicePurchaseOrdersItem - from .invoice_request import InvoiceRequest - from .invoice_request_company import InvoiceRequestCompany - from .invoice_request_contact import InvoiceRequestContact - from .invoice_request_currency import InvoiceRequestCurrency - from .invoice_request_employee import InvoiceRequestEmployee - from .invoice_request_payment_term import InvoiceRequestPaymentTerm - from .invoice_request_payments_item import InvoiceRequestPaymentsItem - from .invoice_request_purchase_orders_item import InvoiceRequestPurchaseOrdersItem - from .invoice_request_status import InvoiceRequestStatus - from .invoice_request_tracking_categories_item import InvoiceRequestTrackingCategoriesItem - from .invoice_request_type import InvoiceRequestType - from .invoice_response import InvoiceResponse - from .invoice_status import InvoiceStatus - from .invoice_status_enum import InvoiceStatusEnum - from .invoice_tracking_categories_item import InvoiceTrackingCategoriesItem - from .invoice_type import InvoiceType - from .invoice_type_enum import InvoiceTypeEnum - from .issue import Issue - from .issue_status import IssueStatus - from .issue_status_enum import IssueStatusEnum - from .item import Item - from .item_company import ItemCompany - from .item_format_enum import ItemFormatEnum - from .item_purchase_account import ItemPurchaseAccount - from .item_purchase_tax_rate import ItemPurchaseTaxRate - from .item_request_request import ItemRequestRequest - from .item_request_request_company import ItemRequestRequestCompany - from .item_request_request_purchase_account import ItemRequestRequestPurchaseAccount - from .item_request_request_purchase_tax_rate import ItemRequestRequestPurchaseTaxRate - from .item_request_request_sales_account import ItemRequestRequestSalesAccount - from .item_request_request_sales_tax_rate import ItemRequestRequestSalesTaxRate - from .item_request_request_status import ItemRequestRequestStatus - from .item_request_request_type import ItemRequestRequestType - from .item_response import ItemResponse - from .item_sales_account import ItemSalesAccount - from .item_sales_tax_rate import ItemSalesTaxRate - from .item_schema import ItemSchema - from .item_status import ItemStatus - from .item_type import ItemType - from .item_type_enum import ItemTypeEnum - from .journal_entry import JournalEntry - from .journal_entry_accounting_period import JournalEntryAccountingPeriod - from .journal_entry_applied_payments_item import JournalEntryAppliedPaymentsItem - from .journal_entry_company import JournalEntryCompany - from .journal_entry_currency import JournalEntryCurrency - from .journal_entry_payments_item import JournalEntryPaymentsItem - from .journal_entry_posting_status import JournalEntryPostingStatus - from .journal_entry_request import JournalEntryRequest - from .journal_entry_request_company import JournalEntryRequestCompany - from .journal_entry_request_currency import JournalEntryRequestCurrency - from .journal_entry_request_payments_item import JournalEntryRequestPaymentsItem - from .journal_entry_request_posting_status import JournalEntryRequestPostingStatus - from .journal_entry_request_tracking_categories_item import JournalEntryRequestTrackingCategoriesItem - from .journal_entry_response import JournalEntryResponse - from .journal_entry_tracking_categories_item import JournalEntryTrackingCategoriesItem - from .journal_line import JournalLine - from .journal_line_account import JournalLineAccount - from .journal_line_currency import JournalLineCurrency - from .journal_line_project import JournalLineProject - from .journal_line_request import JournalLineRequest - from .journal_line_request_account import JournalLineRequestAccount - from .journal_line_request_currency import JournalLineRequestCurrency - from .journal_line_request_project import JournalLineRequestProject - from .journal_line_request_tracking_categories_item import JournalLineRequestTrackingCategoriesItem - from .journal_line_request_tracking_category import JournalLineRequestTrackingCategory - from .journal_line_tracking_categories_item import JournalLineTrackingCategoriesItem - from .journal_line_tracking_category import JournalLineTrackingCategory - from .language_enum import LanguageEnum - from .last_sync_result_enum import LastSyncResultEnum - from .link_token import LinkToken - from .linked_account_status import LinkedAccountStatus - from .meta_response import MetaResponse - from .method_enum import MethodEnum - from .method_type_enum import MethodTypeEnum - from .model_operation import ModelOperation - from .model_permission_deserializer import ModelPermissionDeserializer - from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - from .multipart_form_field_request import MultipartFormFieldRequest - from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList - from .paginated_account_list import PaginatedAccountList - from .paginated_accounting_attachment_list import PaginatedAccountingAttachmentList - from .paginated_accounting_period_list import PaginatedAccountingPeriodList - from .paginated_audit_log_event_list import PaginatedAuditLogEventList - from .paginated_balance_sheet_list import PaginatedBalanceSheetList - from .paginated_bank_feed_account_list import PaginatedBankFeedAccountList - from .paginated_bank_feed_transaction_list import PaginatedBankFeedTransactionList - from .paginated_cash_flow_statement_list import PaginatedCashFlowStatementList - from .paginated_company_info_list import PaginatedCompanyInfoList - from .paginated_contact_list import PaginatedContactList - from .paginated_credit_note_list import PaginatedCreditNoteList - from .paginated_employee_list import PaginatedEmployeeList - from .paginated_expense_list import PaginatedExpenseList - from .paginated_expense_report_line_list import PaginatedExpenseReportLineList - from .paginated_expense_report_list import PaginatedExpenseReportList - from .paginated_general_ledger_transaction_list import PaginatedGeneralLedgerTransactionList - from .paginated_income_statement_list import PaginatedIncomeStatementList - from .paginated_invoice_list import PaginatedInvoiceList - from .paginated_issue_list import PaginatedIssueList - from .paginated_item_list import PaginatedItemList - from .paginated_journal_entry_list import PaginatedJournalEntryList - from .paginated_payment_list import PaginatedPaymentList - from .paginated_payment_method_list import PaginatedPaymentMethodList - from .paginated_payment_term_list import PaginatedPaymentTermList - from .paginated_project_list import PaginatedProjectList - from .paginated_purchase_order_list import PaginatedPurchaseOrderList - from .paginated_remote_field_class_list import PaginatedRemoteFieldClassList - from .paginated_sync_status_list import PaginatedSyncStatusList - from .paginated_tax_rate_list import PaginatedTaxRateList - from .paginated_tracking_category_list import PaginatedTrackingCategoryList - from .paginated_transaction_list import PaginatedTransactionList - from .paginated_vendor_credit_list import PaginatedVendorCreditList - from .patched_contact_request import PatchedContactRequest - from .patched_contact_request_addresses_item import PatchedContactRequestAddressesItem - from .patched_item_request_request import PatchedItemRequestRequest - from .patched_item_request_request_status import PatchedItemRequestRequestStatus - from .patched_item_request_request_type import PatchedItemRequestRequestType - from .patched_payment_request import PatchedPaymentRequest - from .patched_payment_request_account import PatchedPaymentRequestAccount - from .patched_payment_request_accounting_period import PatchedPaymentRequestAccountingPeriod - from .patched_payment_request_applied_to_lines_item import PatchedPaymentRequestAppliedToLinesItem - from .patched_payment_request_company import PatchedPaymentRequestCompany - from .patched_payment_request_contact import PatchedPaymentRequestContact - from .patched_payment_request_currency import PatchedPaymentRequestCurrency - from .patched_payment_request_payment_method import PatchedPaymentRequestPaymentMethod - from .patched_payment_request_tracking_categories_item import PatchedPaymentRequestTrackingCategoriesItem - from .patched_payment_request_type import PatchedPaymentRequestType - from .payment import Payment - from .payment_account import PaymentAccount - from .payment_accounting_period import PaymentAccountingPeriod - from .payment_applied_to_lines_item import PaymentAppliedToLinesItem - from .payment_company import PaymentCompany - from .payment_contact import PaymentContact - from .payment_currency import PaymentCurrency - from .payment_line_item import PaymentLineItem - from .payment_line_item_request import PaymentLineItemRequest - from .payment_method import PaymentMethod - from .payment_method_method_type import PaymentMethodMethodType - from .payment_payment_method import PaymentPaymentMethod - from .payment_request import PaymentRequest - from .payment_request_account import PaymentRequestAccount - from .payment_request_accounting_period import PaymentRequestAccountingPeriod - from .payment_request_applied_to_lines_item import PaymentRequestAppliedToLinesItem - from .payment_request_company import PaymentRequestCompany - from .payment_request_contact import PaymentRequestContact - from .payment_request_currency import PaymentRequestCurrency - from .payment_request_payment_method import PaymentRequestPaymentMethod - from .payment_request_tracking_categories_item import PaymentRequestTrackingCategoriesItem - from .payment_request_type import PaymentRequestType - from .payment_response import PaymentResponse - from .payment_term import PaymentTerm - from .payment_term_company import PaymentTermCompany - from .payment_tracking_categories_item import PaymentTrackingCategoriesItem - from .payment_type import PaymentType - from .payment_type_enum import PaymentTypeEnum - from .posting_status_enum import PostingStatusEnum - from .project import Project - from .project_company import ProjectCompany - from .project_contact import ProjectContact - from .purchase_order import PurchaseOrder - from .purchase_order_accounting_period import PurchaseOrderAccountingPeriod - from .purchase_order_company import PurchaseOrderCompany - from .purchase_order_currency import PurchaseOrderCurrency - from .purchase_order_delivery_address import PurchaseOrderDeliveryAddress - from .purchase_order_line_item import PurchaseOrderLineItem - from .purchase_order_line_item_currency import PurchaseOrderLineItemCurrency - from .purchase_order_line_item_item import PurchaseOrderLineItemItem - from .purchase_order_line_item_request import PurchaseOrderLineItemRequest - from .purchase_order_line_item_request_currency import PurchaseOrderLineItemRequestCurrency - from .purchase_order_line_item_request_item import PurchaseOrderLineItemRequestItem - from .purchase_order_payment_term import PurchaseOrderPaymentTerm - from .purchase_order_request import PurchaseOrderRequest - from .purchase_order_request_company import PurchaseOrderRequestCompany - from .purchase_order_request_currency import PurchaseOrderRequestCurrency - from .purchase_order_request_delivery_address import PurchaseOrderRequestDeliveryAddress - from .purchase_order_request_payment_term import PurchaseOrderRequestPaymentTerm - from .purchase_order_request_status import PurchaseOrderRequestStatus - from .purchase_order_request_tracking_categories_item import PurchaseOrderRequestTrackingCategoriesItem - from .purchase_order_request_vendor import PurchaseOrderRequestVendor - from .purchase_order_response import PurchaseOrderResponse - from .purchase_order_status import PurchaseOrderStatus - from .purchase_order_status_enum import PurchaseOrderStatusEnum - from .purchase_order_tracking_categories_item import PurchaseOrderTrackingCategoriesItem - from .purchase_order_vendor import PurchaseOrderVendor - from .remote_data import RemoteData - from .remote_endpoint_info import RemoteEndpointInfo - from .remote_field import RemoteField - from .remote_field_api import RemoteFieldApi - from .remote_field_api_coverage import RemoteFieldApiCoverage - from .remote_field_api_response import RemoteFieldApiResponse - from .remote_field_class import RemoteFieldClass - from .remote_field_remote_field_class import RemoteFieldRemoteFieldClass - from .remote_field_request import RemoteFieldRequest - from .remote_field_request_remote_field_class import RemoteFieldRequestRemoteFieldClass - from .remote_key import RemoteKey - from .remote_response import RemoteResponse - from .report_item import ReportItem - from .request_format_enum import RequestFormatEnum - from .response_type_enum import ResponseTypeEnum - from .role_enum import RoleEnum - from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum - from .status_7_d_1_enum import Status7D1Enum - from .status_895_enum import Status895Enum - from .status_fd_5_enum import StatusFd5Enum - from .sync_status import SyncStatus - from .sync_status_status import SyncStatusStatus - from .tax_component import TaxComponent - from .tax_component_component_type import TaxComponentComponentType - from .tax_rate import TaxRate - from .tax_rate_company import TaxRateCompany - from .tax_rate_status import TaxRateStatus - from .tax_rate_tax_components_item import TaxRateTaxComponentsItem - from .tracking_category import TrackingCategory - from .tracking_category_category_type import TrackingCategoryCategoryType - from .tracking_category_company import TrackingCategoryCompany - from .tracking_category_status import TrackingCategoryStatus - from .transaction import Transaction - from .transaction_account import TransactionAccount - from .transaction_accounting_period import TransactionAccountingPeriod - from .transaction_contact import TransactionContact - from .transaction_currency import TransactionCurrency - from .transaction_currency_enum import TransactionCurrencyEnum - from .transaction_line_item import TransactionLineItem - from .transaction_line_item_currency import TransactionLineItemCurrency - from .transaction_line_item_item import TransactionLineItemItem - from .transaction_tracking_categories_item import TransactionTrackingCategoriesItem - from .type_2_bb_enum import Type2BbEnum - from .underlying_transaction_type_enum import UnderlyingTransactionTypeEnum - from .validation_problem_source import ValidationProblemSource - from .vendor_credit import VendorCredit - from .vendor_credit_accounting_period import VendorCreditAccountingPeriod - from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice - from .vendor_credit_apply_line_for_invoice_vendor_credit import VendorCreditApplyLineForInvoiceVendorCredit - from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit - from .vendor_credit_apply_line_for_vendor_credit_invoice import VendorCreditApplyLineForVendorCreditInvoice - from .vendor_credit_apply_line_for_vendor_credit_request import VendorCreditApplyLineForVendorCreditRequest - from .vendor_credit_apply_line_for_vendor_credit_request_invoice import ( - VendorCreditApplyLineForVendorCreditRequestInvoice, - ) - from .vendor_credit_company import VendorCreditCompany - from .vendor_credit_currency import VendorCreditCurrency - from .vendor_credit_line import VendorCreditLine - from .vendor_credit_line_account import VendorCreditLineAccount - from .vendor_credit_line_contact import VendorCreditLineContact - from .vendor_credit_line_project import VendorCreditLineProject - from .vendor_credit_line_request import VendorCreditLineRequest - from .vendor_credit_line_request_account import VendorCreditLineRequestAccount - from .vendor_credit_line_request_contact import VendorCreditLineRequestContact - from .vendor_credit_line_request_project import VendorCreditLineRequestProject - from .vendor_credit_request import VendorCreditRequest - from .vendor_credit_request_accounting_period import VendorCreditRequestAccountingPeriod - from .vendor_credit_request_company import VendorCreditRequestCompany - from .vendor_credit_request_currency import VendorCreditRequestCurrency - from .vendor_credit_request_tracking_categories_item import VendorCreditRequestTrackingCategoriesItem - from .vendor_credit_request_vendor import VendorCreditRequestVendor - from .vendor_credit_response import VendorCreditResponse - from .vendor_credit_tracking_categories_item import VendorCreditTrackingCategoriesItem - from .vendor_credit_vendor import VendorCreditVendor - from .warning_validation_problem import WarningValidationProblem - from .webhook_receiver import WebhookReceiver -_dynamic_imports: typing.Dict[str, str] = { - "Account": ".account", - "AccountAccountType": ".account_account_type", - "AccountAccountTypeEnum": ".account_account_type_enum", - "AccountClassification": ".account_classification", - "AccountCurrency": ".account_currency", - "AccountDetails": ".account_details", - "AccountDetailsAndActions": ".account_details_and_actions", - "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", - "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", - "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", - "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", - "AccountDetailsCategory": ".account_details_category", - "AccountIntegration": ".account_integration", - "AccountRequest": ".account_request", - "AccountRequestAccountType": ".account_request_account_type", - "AccountRequestClassification": ".account_request_classification", - "AccountRequestCurrency": ".account_request_currency", - "AccountRequestStatus": ".account_request_status", - "AccountResponse": ".account_response", - "AccountStatus": ".account_status", - "AccountStatusEnum": ".account_status_enum", - "AccountToken": ".account_token", - "AccountingAttachment": ".accounting_attachment", - "AccountingAttachmentRequest": ".accounting_attachment_request", - "AccountingAttachmentResponse": ".accounting_attachment_response", - "AccountingPeriod": ".accounting_period", - "AccountingPeriodStatus": ".accounting_period_status", - "AccountingPhoneNumber": ".accounting_phone_number", - "AccountingPhoneNumberRequest": ".accounting_phone_number_request", - "Address": ".address", - "AddressCountry": ".address_country", - "AddressRequest": ".address_request", - "AddressRequestCountry": ".address_request_country", - "AddressRequestType": ".address_request_type", - "AddressType": ".address_type", - "AddressTypeEnum": ".address_type_enum", - "AdvancedMetadata": ".advanced_metadata", - "AsyncPassthroughReciept": ".async_passthrough_reciept", - "AsyncPostTask": ".async_post_task", - "AsyncPostTaskResult": ".async_post_task_result", - "AsyncPostTaskStatus": ".async_post_task_status", - "AsyncPostTaskStatusEnum": ".async_post_task_status_enum", - "AuditLogEvent": ".audit_log_event", - "AuditLogEventEventType": ".audit_log_event_event_type", - "AuditLogEventRole": ".audit_log_event_role", - "AvailableActions": ".available_actions", - "BalanceSheet": ".balance_sheet", - "BalanceSheetCompany": ".balance_sheet_company", - "BalanceSheetCurrency": ".balance_sheet_currency", - "BankFeedAccount": ".bank_feed_account", - "BankFeedAccountAccountType": ".bank_feed_account_account_type", - "BankFeedAccountAccountTypeEnum": ".bank_feed_account_account_type_enum", - "BankFeedAccountCurrency": ".bank_feed_account_currency", - "BankFeedAccountFeedStatus": ".bank_feed_account_feed_status", - "BankFeedAccountRequest": ".bank_feed_account_request", - "BankFeedAccountRequestAccountType": ".bank_feed_account_request_account_type", - "BankFeedAccountRequestCurrency": ".bank_feed_account_request_currency", - "BankFeedAccountRequestFeedStatus": ".bank_feed_account_request_feed_status", - "BankFeedAccountResponse": ".bank_feed_account_response", - "BankFeedTransaction": ".bank_feed_transaction", - "BankFeedTransactionBankFeedAccount": ".bank_feed_transaction_bank_feed_account", - "BankFeedTransactionCreditOrDebit": ".bank_feed_transaction_credit_or_debit", - "BankFeedTransactionRequestRequest": ".bank_feed_transaction_request_request", - "BankFeedTransactionRequestRequestBankFeedAccount": ".bank_feed_transaction_request_request_bank_feed_account", - "BankFeedTransactionRequestRequestCreditOrDebit": ".bank_feed_transaction_request_request_credit_or_debit", - "BankFeedTransactionResponse": ".bank_feed_transaction_response", - "CashFlowStatement": ".cash_flow_statement", - "CashFlowStatementCompany": ".cash_flow_statement_company", - "CashFlowStatementCurrency": ".cash_flow_statement_currency", - "CategoriesEnum": ".categories_enum", - "CategoryEnum": ".category_enum", - "CategoryTypeEnum": ".category_type_enum", - "ClassificationEnum": ".classification_enum", - "CommonModelScopeApi": ".common_model_scope_api", - "CommonModelScopesBodyRequest": ".common_model_scopes_body_request", - "CompanyInfo": ".company_info", - "CompanyInfoCurrency": ".company_info_currency", - "ComponentTypeEnum": ".component_type_enum", - "Contact": ".contact", - "ContactAddressesItem": ".contact_addresses_item", - "ContactRequest": ".contact_request", - "ContactRequestAddressesItem": ".contact_request_addresses_item", - "ContactRequestStatus": ".contact_request_status", - "ContactResponse": ".contact_response", - "ContactStatus": ".contact_status", - "CountryEnum": ".country_enum", - "CreditNote": ".credit_note", - "CreditNoteAccountingPeriod": ".credit_note_accounting_period", - "CreditNoteAppliedPaymentsItem": ".credit_note_applied_payments_item", - "CreditNoteApplyLineForCreditNote": ".credit_note_apply_line_for_credit_note", - "CreditNoteApplyLineForCreditNoteInvoice": ".credit_note_apply_line_for_credit_note_invoice", - "CreditNoteApplyLineForCreditNoteRequest": ".credit_note_apply_line_for_credit_note_request", - "CreditNoteApplyLineForCreditNoteRequestInvoice": ".credit_note_apply_line_for_credit_note_request_invoice", - "CreditNoteApplyLineForInvoice": ".credit_note_apply_line_for_invoice", - "CreditNoteApplyLineForInvoiceCreditNote": ".credit_note_apply_line_for_invoice_credit_note", - "CreditNoteCompany": ".credit_note_company", - "CreditNoteContact": ".credit_note_contact", - "CreditNoteCurrency": ".credit_note_currency", - "CreditNoteLineItem": ".credit_note_line_item", - "CreditNoteLineItemCompany": ".credit_note_line_item_company", - "CreditNoteLineItemContact": ".credit_note_line_item_contact", - "CreditNoteLineItemItem": ".credit_note_line_item_item", - "CreditNoteLineItemProject": ".credit_note_line_item_project", - "CreditNoteLineItemRequest": ".credit_note_line_item_request", - "CreditNoteLineItemRequestCompany": ".credit_note_line_item_request_company", - "CreditNoteLineItemRequestContact": ".credit_note_line_item_request_contact", - "CreditNoteLineItemRequestItem": ".credit_note_line_item_request_item", - "CreditNoteLineItemRequestProject": ".credit_note_line_item_request_project", - "CreditNotePaymentsItem": ".credit_note_payments_item", - "CreditNoteRequest": ".credit_note_request", - "CreditNoteRequestAccountingPeriod": ".credit_note_request_accounting_period", - "CreditNoteRequestAppliedPaymentsItem": ".credit_note_request_applied_payments_item", - "CreditNoteRequestCompany": ".credit_note_request_company", - "CreditNoteRequestContact": ".credit_note_request_contact", - "CreditNoteRequestCurrency": ".credit_note_request_currency", - "CreditNoteRequestLineItemsItem": ".credit_note_request_line_items_item", - "CreditNoteRequestPaymentsItem": ".credit_note_request_payments_item", - "CreditNoteRequestStatus": ".credit_note_request_status", - "CreditNoteRequestTrackingCategoriesItem": ".credit_note_request_tracking_categories_item", - "CreditNoteResponse": ".credit_note_response", - "CreditNoteStatus": ".credit_note_status", - "CreditNoteStatusEnum": ".credit_note_status_enum", - "CreditNoteTrackingCategoriesItem": ".credit_note_tracking_categories_item", - "CreditOrDebitEnum": ".credit_or_debit_enum", - "DataPassthroughRequest": ".data_passthrough_request", - "DataPassthroughRequestMethod": ".data_passthrough_request_method", - "DebugModeLog": ".debug_mode_log", - "DebugModelLogSummary": ".debug_model_log_summary", - "Employee": ".employee", - "EmployeeCompany": ".employee_company", - "EmployeeStatus": ".employee_status", - "EnabledActionsEnum": ".enabled_actions_enum", - "EncodingEnum": ".encoding_enum", - "ErrorValidationProblem": ".error_validation_problem", - "EventTypeEnum": ".event_type_enum", - "Expense": ".expense", - "ExpenseAccount": ".expense_account", - "ExpenseAccountingPeriod": ".expense_accounting_period", - "ExpenseCompany": ".expense_company", - "ExpenseContact": ".expense_contact", - "ExpenseCurrency": ".expense_currency", - "ExpenseEmployee": ".expense_employee", - "ExpenseLine": ".expense_line", - "ExpenseLineAccount": ".expense_line_account", - "ExpenseLineContact": ".expense_line_contact", - "ExpenseLineCurrency": ".expense_line_currency", - "ExpenseLineEmployee": ".expense_line_employee", - "ExpenseLineItem": ".expense_line_item", - "ExpenseLineProject": ".expense_line_project", - "ExpenseLineRequest": ".expense_line_request", - "ExpenseLineRequestAccount": ".expense_line_request_account", - "ExpenseLineRequestContact": ".expense_line_request_contact", - "ExpenseLineRequestCurrency": ".expense_line_request_currency", - "ExpenseLineRequestEmployee": ".expense_line_request_employee", - "ExpenseLineRequestItem": ".expense_line_request_item", - "ExpenseLineRequestProject": ".expense_line_request_project", - "ExpenseLineRequestTrackingCategoriesItem": ".expense_line_request_tracking_categories_item", - "ExpenseLineRequestTrackingCategory": ".expense_line_request_tracking_category", - "ExpenseLineTrackingCategoriesItem": ".expense_line_tracking_categories_item", - "ExpenseLineTrackingCategory": ".expense_line_tracking_category", - "ExpenseReport": ".expense_report", - "ExpenseReportCompany": ".expense_report_company", - "ExpenseReportLine": ".expense_report_line", - "ExpenseReportLineAccount": ".expense_report_line_account", - "ExpenseReportLineCompany": ".expense_report_line_company", - "ExpenseReportLineContact": ".expense_report_line_contact", - "ExpenseReportLineEmployee": ".expense_report_line_employee", - "ExpenseReportLineProject": ".expense_report_line_project", - "ExpenseReportLineRequest": ".expense_report_line_request", - "ExpenseReportLineRequestAccount": ".expense_report_line_request_account", - "ExpenseReportLineRequestCompany": ".expense_report_line_request_company", - "ExpenseReportLineRequestContact": ".expense_report_line_request_contact", - "ExpenseReportLineRequestEmployee": ".expense_report_line_request_employee", - "ExpenseReportLineRequestProject": ".expense_report_line_request_project", - "ExpenseReportLineRequestTaxRate": ".expense_report_line_request_tax_rate", - "ExpenseReportLineTaxRate": ".expense_report_line_tax_rate", - "ExpenseReportRequest": ".expense_report_request", - "ExpenseReportRequestAccountingPeriod": ".expense_report_request_accounting_period", - "ExpenseReportRequestCompany": ".expense_report_request_company", - "ExpenseReportRequestEmployee": ".expense_report_request_employee", - "ExpenseReportResponse": ".expense_report_response", - "ExpenseReportStatus": ".expense_report_status", - "ExpenseReportStatusEnum": ".expense_report_status_enum", - "ExpenseRequest": ".expense_request", - "ExpenseRequestAccount": ".expense_request_account", - "ExpenseRequestAccountingPeriod": ".expense_request_accounting_period", - "ExpenseRequestCompany": ".expense_request_company", - "ExpenseRequestContact": ".expense_request_contact", - "ExpenseRequestCurrency": ".expense_request_currency", - "ExpenseRequestEmployee": ".expense_request_employee", - "ExpenseRequestTrackingCategoriesItem": ".expense_request_tracking_categories_item", - "ExpenseResponse": ".expense_response", - "ExpenseTrackingCategoriesItem": ".expense_tracking_categories_item", - "ExternalTargetFieldApi": ".external_target_field_api", - "ExternalTargetFieldApiResponse": ".external_target_field_api_response", - "FeedStatusEnum": ".feed_status_enum", - "FieldFormatEnum": ".field_format_enum", - "FieldMappingApiInstance": ".field_mapping_api_instance", - "FieldMappingApiInstanceRemoteField": ".field_mapping_api_instance_remote_field", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".field_mapping_api_instance_remote_field_remote_endpoint_info", - "FieldMappingApiInstanceResponse": ".field_mapping_api_instance_response", - "FieldMappingApiInstanceTargetField": ".field_mapping_api_instance_target_field", - "FieldMappingInstanceResponse": ".field_mapping_instance_response", - "FieldPermissionDeserializer": ".field_permission_deserializer", - "FieldPermissionDeserializerRequest": ".field_permission_deserializer_request", - "FieldTypeEnum": ".field_type_enum", - "GeneralLedgerTransaction": ".general_ledger_transaction", - "GeneralLedgerTransactionAccountingPeriod": ".general_ledger_transaction_accounting_period", - "GeneralLedgerTransactionCompany": ".general_ledger_transaction_company", - "GeneralLedgerTransactionGeneralLedgerTransactionLinesItem": ".general_ledger_transaction_general_ledger_transaction_lines_item", - "GeneralLedgerTransactionLine": ".general_ledger_transaction_line", - "GeneralLedgerTransactionLineAccount": ".general_ledger_transaction_line_account", - "GeneralLedgerTransactionLineBaseCurrency": ".general_ledger_transaction_line_base_currency", - "GeneralLedgerTransactionLineCompany": ".general_ledger_transaction_line_company", - "GeneralLedgerTransactionLineContact": ".general_ledger_transaction_line_contact", - "GeneralLedgerTransactionLineEmployee": ".general_ledger_transaction_line_employee", - "GeneralLedgerTransactionLineItem": ".general_ledger_transaction_line_item", - "GeneralLedgerTransactionLineProject": ".general_ledger_transaction_line_project", - "GeneralLedgerTransactionLineTrackingCategoriesItem": ".general_ledger_transaction_line_tracking_categories_item", - "GeneralLedgerTransactionLineTransactionCurrency": ".general_ledger_transaction_line_transaction_currency", - "GeneralLedgerTransactionTrackingCategoriesItem": ".general_ledger_transaction_tracking_categories_item", - "GeneralLedgerTransactionUnderlyingTransactionType": ".general_ledger_transaction_underlying_transaction_type", - "IncomeStatement": ".income_statement", - "IncomeStatementCompany": ".income_statement_company", - "IncomeStatementCurrency": ".income_statement_currency", - "IndividualCommonModelScopeDeserializer": ".individual_common_model_scope_deserializer", - "IndividualCommonModelScopeDeserializerRequest": ".individual_common_model_scope_deserializer_request", - "Invoice": ".invoice", - "InvoiceAccountingPeriod": ".invoice_accounting_period", - "InvoiceAppliedCreditNotesItem": ".invoice_applied_credit_notes_item", - "InvoiceAppliedPaymentsItem": ".invoice_applied_payments_item", - "InvoiceAppliedVendorCreditsItem": ".invoice_applied_vendor_credits_item", - "InvoiceCompany": ".invoice_company", - "InvoiceContact": ".invoice_contact", - "InvoiceCurrency": ".invoice_currency", - "InvoiceEmployee": ".invoice_employee", - "InvoiceLineItem": ".invoice_line_item", - "InvoiceLineItemAccount": ".invoice_line_item_account", - "InvoiceLineItemContact": ".invoice_line_item_contact", - "InvoiceLineItemCurrency": ".invoice_line_item_currency", - "InvoiceLineItemEmployee": ".invoice_line_item_employee", - "InvoiceLineItemItem": ".invoice_line_item_item", - "InvoiceLineItemProject": ".invoice_line_item_project", - "InvoiceLineItemRequest": ".invoice_line_item_request", - "InvoiceLineItemRequestAccount": ".invoice_line_item_request_account", - "InvoiceLineItemRequestContact": ".invoice_line_item_request_contact", - "InvoiceLineItemRequestCurrency": ".invoice_line_item_request_currency", - "InvoiceLineItemRequestEmployee": ".invoice_line_item_request_employee", - "InvoiceLineItemRequestItem": ".invoice_line_item_request_item", - "InvoiceLineItemRequestProject": ".invoice_line_item_request_project", - "InvoiceLineItemRequestTrackingCategoriesItem": ".invoice_line_item_request_tracking_categories_item", - "InvoiceLineItemRequestTrackingCategory": ".invoice_line_item_request_tracking_category", - "InvoiceLineItemTrackingCategoriesItem": ".invoice_line_item_tracking_categories_item", - "InvoiceLineItemTrackingCategory": ".invoice_line_item_tracking_category", - "InvoicePaymentTerm": ".invoice_payment_term", - "InvoicePaymentsItem": ".invoice_payments_item", - "InvoicePurchaseOrdersItem": ".invoice_purchase_orders_item", - "InvoiceRequest": ".invoice_request", - "InvoiceRequestCompany": ".invoice_request_company", - "InvoiceRequestContact": ".invoice_request_contact", - "InvoiceRequestCurrency": ".invoice_request_currency", - "InvoiceRequestEmployee": ".invoice_request_employee", - "InvoiceRequestPaymentTerm": ".invoice_request_payment_term", - "InvoiceRequestPaymentsItem": ".invoice_request_payments_item", - "InvoiceRequestPurchaseOrdersItem": ".invoice_request_purchase_orders_item", - "InvoiceRequestStatus": ".invoice_request_status", - "InvoiceRequestTrackingCategoriesItem": ".invoice_request_tracking_categories_item", - "InvoiceRequestType": ".invoice_request_type", - "InvoiceResponse": ".invoice_response", - "InvoiceStatus": ".invoice_status", - "InvoiceStatusEnum": ".invoice_status_enum", - "InvoiceTrackingCategoriesItem": ".invoice_tracking_categories_item", - "InvoiceType": ".invoice_type", - "InvoiceTypeEnum": ".invoice_type_enum", - "Issue": ".issue", - "IssueStatus": ".issue_status", - "IssueStatusEnum": ".issue_status_enum", - "Item": ".item", - "ItemCompany": ".item_company", - "ItemFormatEnum": ".item_format_enum", - "ItemPurchaseAccount": ".item_purchase_account", - "ItemPurchaseTaxRate": ".item_purchase_tax_rate", - "ItemRequestRequest": ".item_request_request", - "ItemRequestRequestCompany": ".item_request_request_company", - "ItemRequestRequestPurchaseAccount": ".item_request_request_purchase_account", - "ItemRequestRequestPurchaseTaxRate": ".item_request_request_purchase_tax_rate", - "ItemRequestRequestSalesAccount": ".item_request_request_sales_account", - "ItemRequestRequestSalesTaxRate": ".item_request_request_sales_tax_rate", - "ItemRequestRequestStatus": ".item_request_request_status", - "ItemRequestRequestType": ".item_request_request_type", - "ItemResponse": ".item_response", - "ItemSalesAccount": ".item_sales_account", - "ItemSalesTaxRate": ".item_sales_tax_rate", - "ItemSchema": ".item_schema", - "ItemStatus": ".item_status", - "ItemType": ".item_type", - "ItemTypeEnum": ".item_type_enum", - "JournalEntry": ".journal_entry", - "JournalEntryAccountingPeriod": ".journal_entry_accounting_period", - "JournalEntryAppliedPaymentsItem": ".journal_entry_applied_payments_item", - "JournalEntryCompany": ".journal_entry_company", - "JournalEntryCurrency": ".journal_entry_currency", - "JournalEntryPaymentsItem": ".journal_entry_payments_item", - "JournalEntryPostingStatus": ".journal_entry_posting_status", - "JournalEntryRequest": ".journal_entry_request", - "JournalEntryRequestCompany": ".journal_entry_request_company", - "JournalEntryRequestCurrency": ".journal_entry_request_currency", - "JournalEntryRequestPaymentsItem": ".journal_entry_request_payments_item", - "JournalEntryRequestPostingStatus": ".journal_entry_request_posting_status", - "JournalEntryRequestTrackingCategoriesItem": ".journal_entry_request_tracking_categories_item", - "JournalEntryResponse": ".journal_entry_response", - "JournalEntryTrackingCategoriesItem": ".journal_entry_tracking_categories_item", - "JournalLine": ".journal_line", - "JournalLineAccount": ".journal_line_account", - "JournalLineCurrency": ".journal_line_currency", - "JournalLineProject": ".journal_line_project", - "JournalLineRequest": ".journal_line_request", - "JournalLineRequestAccount": ".journal_line_request_account", - "JournalLineRequestCurrency": ".journal_line_request_currency", - "JournalLineRequestProject": ".journal_line_request_project", - "JournalLineRequestTrackingCategoriesItem": ".journal_line_request_tracking_categories_item", - "JournalLineRequestTrackingCategory": ".journal_line_request_tracking_category", - "JournalLineTrackingCategoriesItem": ".journal_line_tracking_categories_item", - "JournalLineTrackingCategory": ".journal_line_tracking_category", - "LanguageEnum": ".language_enum", - "LastSyncResultEnum": ".last_sync_result_enum", - "LinkToken": ".link_token", - "LinkedAccountStatus": ".linked_account_status", - "MetaResponse": ".meta_response", - "MethodEnum": ".method_enum", - "MethodTypeEnum": ".method_type_enum", - "ModelOperation": ".model_operation", - "ModelPermissionDeserializer": ".model_permission_deserializer", - "ModelPermissionDeserializerRequest": ".model_permission_deserializer_request", - "MultipartFormFieldRequest": ".multipart_form_field_request", - "MultipartFormFieldRequestEncoding": ".multipart_form_field_request_encoding", - "PaginatedAccountDetailsAndActionsList": ".paginated_account_details_and_actions_list", - "PaginatedAccountList": ".paginated_account_list", - "PaginatedAccountingAttachmentList": ".paginated_accounting_attachment_list", - "PaginatedAccountingPeriodList": ".paginated_accounting_period_list", - "PaginatedAuditLogEventList": ".paginated_audit_log_event_list", - "PaginatedBalanceSheetList": ".paginated_balance_sheet_list", - "PaginatedBankFeedAccountList": ".paginated_bank_feed_account_list", - "PaginatedBankFeedTransactionList": ".paginated_bank_feed_transaction_list", - "PaginatedCashFlowStatementList": ".paginated_cash_flow_statement_list", - "PaginatedCompanyInfoList": ".paginated_company_info_list", - "PaginatedContactList": ".paginated_contact_list", - "PaginatedCreditNoteList": ".paginated_credit_note_list", - "PaginatedEmployeeList": ".paginated_employee_list", - "PaginatedExpenseList": ".paginated_expense_list", - "PaginatedExpenseReportLineList": ".paginated_expense_report_line_list", - "PaginatedExpenseReportList": ".paginated_expense_report_list", - "PaginatedGeneralLedgerTransactionList": ".paginated_general_ledger_transaction_list", - "PaginatedIncomeStatementList": ".paginated_income_statement_list", - "PaginatedInvoiceList": ".paginated_invoice_list", - "PaginatedIssueList": ".paginated_issue_list", - "PaginatedItemList": ".paginated_item_list", - "PaginatedJournalEntryList": ".paginated_journal_entry_list", - "PaginatedPaymentList": ".paginated_payment_list", - "PaginatedPaymentMethodList": ".paginated_payment_method_list", - "PaginatedPaymentTermList": ".paginated_payment_term_list", - "PaginatedProjectList": ".paginated_project_list", - "PaginatedPurchaseOrderList": ".paginated_purchase_order_list", - "PaginatedRemoteFieldClassList": ".paginated_remote_field_class_list", - "PaginatedSyncStatusList": ".paginated_sync_status_list", - "PaginatedTaxRateList": ".paginated_tax_rate_list", - "PaginatedTrackingCategoryList": ".paginated_tracking_category_list", - "PaginatedTransactionList": ".paginated_transaction_list", - "PaginatedVendorCreditList": ".paginated_vendor_credit_list", - "PatchedContactRequest": ".patched_contact_request", - "PatchedContactRequestAddressesItem": ".patched_contact_request_addresses_item", - "PatchedItemRequestRequest": ".patched_item_request_request", - "PatchedItemRequestRequestStatus": ".patched_item_request_request_status", - "PatchedItemRequestRequestType": ".patched_item_request_request_type", - "PatchedPaymentRequest": ".patched_payment_request", - "PatchedPaymentRequestAccount": ".patched_payment_request_account", - "PatchedPaymentRequestAccountingPeriod": ".patched_payment_request_accounting_period", - "PatchedPaymentRequestAppliedToLinesItem": ".patched_payment_request_applied_to_lines_item", - "PatchedPaymentRequestCompany": ".patched_payment_request_company", - "PatchedPaymentRequestContact": ".patched_payment_request_contact", - "PatchedPaymentRequestCurrency": ".patched_payment_request_currency", - "PatchedPaymentRequestPaymentMethod": ".patched_payment_request_payment_method", - "PatchedPaymentRequestTrackingCategoriesItem": ".patched_payment_request_tracking_categories_item", - "PatchedPaymentRequestType": ".patched_payment_request_type", - "Payment": ".payment", - "PaymentAccount": ".payment_account", - "PaymentAccountingPeriod": ".payment_accounting_period", - "PaymentAppliedToLinesItem": ".payment_applied_to_lines_item", - "PaymentCompany": ".payment_company", - "PaymentContact": ".payment_contact", - "PaymentCurrency": ".payment_currency", - "PaymentLineItem": ".payment_line_item", - "PaymentLineItemRequest": ".payment_line_item_request", - "PaymentMethod": ".payment_method", - "PaymentMethodMethodType": ".payment_method_method_type", - "PaymentPaymentMethod": ".payment_payment_method", - "PaymentRequest": ".payment_request", - "PaymentRequestAccount": ".payment_request_account", - "PaymentRequestAccountingPeriod": ".payment_request_accounting_period", - "PaymentRequestAppliedToLinesItem": ".payment_request_applied_to_lines_item", - "PaymentRequestCompany": ".payment_request_company", - "PaymentRequestContact": ".payment_request_contact", - "PaymentRequestCurrency": ".payment_request_currency", - "PaymentRequestPaymentMethod": ".payment_request_payment_method", - "PaymentRequestTrackingCategoriesItem": ".payment_request_tracking_categories_item", - "PaymentRequestType": ".payment_request_type", - "PaymentResponse": ".payment_response", - "PaymentTerm": ".payment_term", - "PaymentTermCompany": ".payment_term_company", - "PaymentTrackingCategoriesItem": ".payment_tracking_categories_item", - "PaymentType": ".payment_type", - "PaymentTypeEnum": ".payment_type_enum", - "PostingStatusEnum": ".posting_status_enum", - "Project": ".project", - "ProjectCompany": ".project_company", - "ProjectContact": ".project_contact", - "PurchaseOrder": ".purchase_order", - "PurchaseOrderAccountingPeriod": ".purchase_order_accounting_period", - "PurchaseOrderCompany": ".purchase_order_company", - "PurchaseOrderCurrency": ".purchase_order_currency", - "PurchaseOrderDeliveryAddress": ".purchase_order_delivery_address", - "PurchaseOrderLineItem": ".purchase_order_line_item", - "PurchaseOrderLineItemCurrency": ".purchase_order_line_item_currency", - "PurchaseOrderLineItemItem": ".purchase_order_line_item_item", - "PurchaseOrderLineItemRequest": ".purchase_order_line_item_request", - "PurchaseOrderLineItemRequestCurrency": ".purchase_order_line_item_request_currency", - "PurchaseOrderLineItemRequestItem": ".purchase_order_line_item_request_item", - "PurchaseOrderPaymentTerm": ".purchase_order_payment_term", - "PurchaseOrderRequest": ".purchase_order_request", - "PurchaseOrderRequestCompany": ".purchase_order_request_company", - "PurchaseOrderRequestCurrency": ".purchase_order_request_currency", - "PurchaseOrderRequestDeliveryAddress": ".purchase_order_request_delivery_address", - "PurchaseOrderRequestPaymentTerm": ".purchase_order_request_payment_term", - "PurchaseOrderRequestStatus": ".purchase_order_request_status", - "PurchaseOrderRequestTrackingCategoriesItem": ".purchase_order_request_tracking_categories_item", - "PurchaseOrderRequestVendor": ".purchase_order_request_vendor", - "PurchaseOrderResponse": ".purchase_order_response", - "PurchaseOrderStatus": ".purchase_order_status", - "PurchaseOrderStatusEnum": ".purchase_order_status_enum", - "PurchaseOrderTrackingCategoriesItem": ".purchase_order_tracking_categories_item", - "PurchaseOrderVendor": ".purchase_order_vendor", - "RemoteData": ".remote_data", - "RemoteEndpointInfo": ".remote_endpoint_info", - "RemoteField": ".remote_field", - "RemoteFieldApi": ".remote_field_api", - "RemoteFieldApiCoverage": ".remote_field_api_coverage", - "RemoteFieldApiResponse": ".remote_field_api_response", - "RemoteFieldClass": ".remote_field_class", - "RemoteFieldRemoteFieldClass": ".remote_field_remote_field_class", - "RemoteFieldRequest": ".remote_field_request", - "RemoteFieldRequestRemoteFieldClass": ".remote_field_request_remote_field_class", - "RemoteKey": ".remote_key", - "RemoteResponse": ".remote_response", - "ReportItem": ".report_item", - "RequestFormatEnum": ".request_format_enum", - "ResponseTypeEnum": ".response_type_enum", - "RoleEnum": ".role_enum", - "SelectiveSyncConfigurationsUsageEnum": ".selective_sync_configurations_usage_enum", - "Status7D1Enum": ".status_7_d_1_enum", - "Status895Enum": ".status_895_enum", - "StatusFd5Enum": ".status_fd_5_enum", - "SyncStatus": ".sync_status", - "SyncStatusStatus": ".sync_status_status", - "TaxComponent": ".tax_component", - "TaxComponentComponentType": ".tax_component_component_type", - "TaxRate": ".tax_rate", - "TaxRateCompany": ".tax_rate_company", - "TaxRateStatus": ".tax_rate_status", - "TaxRateTaxComponentsItem": ".tax_rate_tax_components_item", - "TrackingCategory": ".tracking_category", - "TrackingCategoryCategoryType": ".tracking_category_category_type", - "TrackingCategoryCompany": ".tracking_category_company", - "TrackingCategoryStatus": ".tracking_category_status", - "Transaction": ".transaction", - "TransactionAccount": ".transaction_account", - "TransactionAccountingPeriod": ".transaction_accounting_period", - "TransactionContact": ".transaction_contact", - "TransactionCurrency": ".transaction_currency", - "TransactionCurrencyEnum": ".transaction_currency_enum", - "TransactionLineItem": ".transaction_line_item", - "TransactionLineItemCurrency": ".transaction_line_item_currency", - "TransactionLineItemItem": ".transaction_line_item_item", - "TransactionTrackingCategoriesItem": ".transaction_tracking_categories_item", - "Type2BbEnum": ".type_2_bb_enum", - "UnderlyingTransactionTypeEnum": ".underlying_transaction_type_enum", - "ValidationProblemSource": ".validation_problem_source", - "VendorCredit": ".vendor_credit", - "VendorCreditAccountingPeriod": ".vendor_credit_accounting_period", - "VendorCreditApplyLineForInvoice": ".vendor_credit_apply_line_for_invoice", - "VendorCreditApplyLineForInvoiceVendorCredit": ".vendor_credit_apply_line_for_invoice_vendor_credit", - "VendorCreditApplyLineForVendorCredit": ".vendor_credit_apply_line_for_vendor_credit", - "VendorCreditApplyLineForVendorCreditInvoice": ".vendor_credit_apply_line_for_vendor_credit_invoice", - "VendorCreditApplyLineForVendorCreditRequest": ".vendor_credit_apply_line_for_vendor_credit_request", - "VendorCreditApplyLineForVendorCreditRequestInvoice": ".vendor_credit_apply_line_for_vendor_credit_request_invoice", - "VendorCreditCompany": ".vendor_credit_company", - "VendorCreditCurrency": ".vendor_credit_currency", - "VendorCreditLine": ".vendor_credit_line", - "VendorCreditLineAccount": ".vendor_credit_line_account", - "VendorCreditLineContact": ".vendor_credit_line_contact", - "VendorCreditLineProject": ".vendor_credit_line_project", - "VendorCreditLineRequest": ".vendor_credit_line_request", - "VendorCreditLineRequestAccount": ".vendor_credit_line_request_account", - "VendorCreditLineRequestContact": ".vendor_credit_line_request_contact", - "VendorCreditLineRequestProject": ".vendor_credit_line_request_project", - "VendorCreditRequest": ".vendor_credit_request", - "VendorCreditRequestAccountingPeriod": ".vendor_credit_request_accounting_period", - "VendorCreditRequestCompany": ".vendor_credit_request_company", - "VendorCreditRequestCurrency": ".vendor_credit_request_currency", - "VendorCreditRequestTrackingCategoriesItem": ".vendor_credit_request_tracking_categories_item", - "VendorCreditRequestVendor": ".vendor_credit_request_vendor", - "VendorCreditResponse": ".vendor_credit_response", - "VendorCreditTrackingCategoriesItem": ".vendor_credit_tracking_categories_item", - "VendorCreditVendor": ".vendor_credit_vendor", - "WarningValidationProblem": ".warning_validation_problem", - "WebhookReceiver": ".webhook_receiver", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "Account", - "AccountAccountType", - "AccountAccountTypeEnum", - "AccountClassification", - "AccountCurrency", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountRequest", - "AccountRequestAccountType", - "AccountRequestClassification", - "AccountRequestCurrency", - "AccountRequestStatus", - "AccountResponse", - "AccountStatus", - "AccountStatusEnum", - "AccountToken", - "AccountingAttachment", - "AccountingAttachmentRequest", - "AccountingAttachmentResponse", - "AccountingPeriod", - "AccountingPeriodStatus", - "AccountingPhoneNumber", - "AccountingPhoneNumberRequest", - "Address", - "AddressCountry", - "AddressRequest", - "AddressRequestCountry", - "AddressRequestType", - "AddressType", - "AddressTypeEnum", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "AsyncPostTask", - "AsyncPostTaskResult", - "AsyncPostTaskStatus", - "AsyncPostTaskStatusEnum", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "BalanceSheet", - "BalanceSheetCompany", - "BalanceSheetCurrency", - "BankFeedAccount", - "BankFeedAccountAccountType", - "BankFeedAccountAccountTypeEnum", - "BankFeedAccountCurrency", - "BankFeedAccountFeedStatus", - "BankFeedAccountRequest", - "BankFeedAccountRequestAccountType", - "BankFeedAccountRequestCurrency", - "BankFeedAccountRequestFeedStatus", - "BankFeedAccountResponse", - "BankFeedTransaction", - "BankFeedTransactionBankFeedAccount", - "BankFeedTransactionCreditOrDebit", - "BankFeedTransactionRequestRequest", - "BankFeedTransactionRequestRequestBankFeedAccount", - "BankFeedTransactionRequestRequestCreditOrDebit", - "BankFeedTransactionResponse", - "CashFlowStatement", - "CashFlowStatementCompany", - "CashFlowStatementCurrency", - "CategoriesEnum", - "CategoryEnum", - "CategoryTypeEnum", - "ClassificationEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompanyInfo", - "CompanyInfoCurrency", - "ComponentTypeEnum", - "Contact", - "ContactAddressesItem", - "ContactRequest", - "ContactRequestAddressesItem", - "ContactRequestStatus", - "ContactResponse", - "ContactStatus", - "CountryEnum", - "CreditNote", - "CreditNoteAccountingPeriod", - "CreditNoteAppliedPaymentsItem", - "CreditNoteApplyLineForCreditNote", - "CreditNoteApplyLineForCreditNoteInvoice", - "CreditNoteApplyLineForCreditNoteRequest", - "CreditNoteApplyLineForCreditNoteRequestInvoice", - "CreditNoteApplyLineForInvoice", - "CreditNoteApplyLineForInvoiceCreditNote", - "CreditNoteCompany", - "CreditNoteContact", - "CreditNoteCurrency", - "CreditNoteLineItem", - "CreditNoteLineItemCompany", - "CreditNoteLineItemContact", - "CreditNoteLineItemItem", - "CreditNoteLineItemProject", - "CreditNoteLineItemRequest", - "CreditNoteLineItemRequestCompany", - "CreditNoteLineItemRequestContact", - "CreditNoteLineItemRequestItem", - "CreditNoteLineItemRequestProject", - "CreditNotePaymentsItem", - "CreditNoteRequest", - "CreditNoteRequestAccountingPeriod", - "CreditNoteRequestAppliedPaymentsItem", - "CreditNoteRequestCompany", - "CreditNoteRequestContact", - "CreditNoteRequestCurrency", - "CreditNoteRequestLineItemsItem", - "CreditNoteRequestPaymentsItem", - "CreditNoteRequestStatus", - "CreditNoteRequestTrackingCategoriesItem", - "CreditNoteResponse", - "CreditNoteStatus", - "CreditNoteStatusEnum", - "CreditNoteTrackingCategoriesItem", - "CreditOrDebitEnum", - "DataPassthroughRequest", - "DataPassthroughRequestMethod", - "DebugModeLog", - "DebugModelLogSummary", - "Employee", - "EmployeeCompany", - "EmployeeStatus", - "EnabledActionsEnum", - "EncodingEnum", - "ErrorValidationProblem", - "EventTypeEnum", - "Expense", - "ExpenseAccount", - "ExpenseAccountingPeriod", - "ExpenseCompany", - "ExpenseContact", - "ExpenseCurrency", - "ExpenseEmployee", - "ExpenseLine", - "ExpenseLineAccount", - "ExpenseLineContact", - "ExpenseLineCurrency", - "ExpenseLineEmployee", - "ExpenseLineItem", - "ExpenseLineProject", - "ExpenseLineRequest", - "ExpenseLineRequestAccount", - "ExpenseLineRequestContact", - "ExpenseLineRequestCurrency", - "ExpenseLineRequestEmployee", - "ExpenseLineRequestItem", - "ExpenseLineRequestProject", - "ExpenseLineRequestTrackingCategoriesItem", - "ExpenseLineRequestTrackingCategory", - "ExpenseLineTrackingCategoriesItem", - "ExpenseLineTrackingCategory", - "ExpenseReport", - "ExpenseReportCompany", - "ExpenseReportLine", - "ExpenseReportLineAccount", - "ExpenseReportLineCompany", - "ExpenseReportLineContact", - "ExpenseReportLineEmployee", - "ExpenseReportLineProject", - "ExpenseReportLineRequest", - "ExpenseReportLineRequestAccount", - "ExpenseReportLineRequestCompany", - "ExpenseReportLineRequestContact", - "ExpenseReportLineRequestEmployee", - "ExpenseReportLineRequestProject", - "ExpenseReportLineRequestTaxRate", - "ExpenseReportLineTaxRate", - "ExpenseReportRequest", - "ExpenseReportRequestAccountingPeriod", - "ExpenseReportRequestCompany", - "ExpenseReportRequestEmployee", - "ExpenseReportResponse", - "ExpenseReportStatus", - "ExpenseReportStatusEnum", - "ExpenseRequest", - "ExpenseRequestAccount", - "ExpenseRequestAccountingPeriod", - "ExpenseRequestCompany", - "ExpenseRequestContact", - "ExpenseRequestCurrency", - "ExpenseRequestEmployee", - "ExpenseRequestTrackingCategoriesItem", - "ExpenseResponse", - "ExpenseTrackingCategoriesItem", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FeedStatusEnum", - "FieldFormatEnum", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FieldTypeEnum", - "GeneralLedgerTransaction", - "GeneralLedgerTransactionAccountingPeriod", - "GeneralLedgerTransactionCompany", - "GeneralLedgerTransactionGeneralLedgerTransactionLinesItem", - "GeneralLedgerTransactionLine", - "GeneralLedgerTransactionLineAccount", - "GeneralLedgerTransactionLineBaseCurrency", - "GeneralLedgerTransactionLineCompany", - "GeneralLedgerTransactionLineContact", - "GeneralLedgerTransactionLineEmployee", - "GeneralLedgerTransactionLineItem", - "GeneralLedgerTransactionLineProject", - "GeneralLedgerTransactionLineTrackingCategoriesItem", - "GeneralLedgerTransactionLineTransactionCurrency", - "GeneralLedgerTransactionTrackingCategoriesItem", - "GeneralLedgerTransactionUnderlyingTransactionType", - "IncomeStatement", - "IncomeStatementCompany", - "IncomeStatementCurrency", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Invoice", - "InvoiceAccountingPeriod", - "InvoiceAppliedCreditNotesItem", - "InvoiceAppliedPaymentsItem", - "InvoiceAppliedVendorCreditsItem", - "InvoiceCompany", - "InvoiceContact", - "InvoiceCurrency", - "InvoiceEmployee", - "InvoiceLineItem", - "InvoiceLineItemAccount", - "InvoiceLineItemContact", - "InvoiceLineItemCurrency", - "InvoiceLineItemEmployee", - "InvoiceLineItemItem", - "InvoiceLineItemProject", - "InvoiceLineItemRequest", - "InvoiceLineItemRequestAccount", - "InvoiceLineItemRequestContact", - "InvoiceLineItemRequestCurrency", - "InvoiceLineItemRequestEmployee", - "InvoiceLineItemRequestItem", - "InvoiceLineItemRequestProject", - "InvoiceLineItemRequestTrackingCategoriesItem", - "InvoiceLineItemRequestTrackingCategory", - "InvoiceLineItemTrackingCategoriesItem", - "InvoiceLineItemTrackingCategory", - "InvoicePaymentTerm", - "InvoicePaymentsItem", - "InvoicePurchaseOrdersItem", - "InvoiceRequest", - "InvoiceRequestCompany", - "InvoiceRequestContact", - "InvoiceRequestCurrency", - "InvoiceRequestEmployee", - "InvoiceRequestPaymentTerm", - "InvoiceRequestPaymentsItem", - "InvoiceRequestPurchaseOrdersItem", - "InvoiceRequestStatus", - "InvoiceRequestTrackingCategoriesItem", - "InvoiceRequestType", - "InvoiceResponse", - "InvoiceStatus", - "InvoiceStatusEnum", - "InvoiceTrackingCategoriesItem", - "InvoiceType", - "InvoiceTypeEnum", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "Item", - "ItemCompany", - "ItemFormatEnum", - "ItemPurchaseAccount", - "ItemPurchaseTaxRate", - "ItemRequestRequest", - "ItemRequestRequestCompany", - "ItemRequestRequestPurchaseAccount", - "ItemRequestRequestPurchaseTaxRate", - "ItemRequestRequestSalesAccount", - "ItemRequestRequestSalesTaxRate", - "ItemRequestRequestStatus", - "ItemRequestRequestType", - "ItemResponse", - "ItemSalesAccount", - "ItemSalesTaxRate", - "ItemSchema", - "ItemStatus", - "ItemType", - "ItemTypeEnum", - "JournalEntry", - "JournalEntryAccountingPeriod", - "JournalEntryAppliedPaymentsItem", - "JournalEntryCompany", - "JournalEntryCurrency", - "JournalEntryPaymentsItem", - "JournalEntryPostingStatus", - "JournalEntryRequest", - "JournalEntryRequestCompany", - "JournalEntryRequestCurrency", - "JournalEntryRequestPaymentsItem", - "JournalEntryRequestPostingStatus", - "JournalEntryRequestTrackingCategoriesItem", - "JournalEntryResponse", - "JournalEntryTrackingCategoriesItem", - "JournalLine", - "JournalLineAccount", - "JournalLineCurrency", - "JournalLineProject", - "JournalLineRequest", - "JournalLineRequestAccount", - "JournalLineRequestCurrency", - "JournalLineRequestProject", - "JournalLineRequestTrackingCategoriesItem", - "JournalLineRequestTrackingCategory", - "JournalLineTrackingCategoriesItem", - "JournalLineTrackingCategory", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "MetaResponse", - "MethodEnum", - "MethodTypeEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAccountList", - "PaginatedAccountingAttachmentList", - "PaginatedAccountingPeriodList", - "PaginatedAuditLogEventList", - "PaginatedBalanceSheetList", - "PaginatedBankFeedAccountList", - "PaginatedBankFeedTransactionList", - "PaginatedCashFlowStatementList", - "PaginatedCompanyInfoList", - "PaginatedContactList", - "PaginatedCreditNoteList", - "PaginatedEmployeeList", - "PaginatedExpenseList", - "PaginatedExpenseReportLineList", - "PaginatedExpenseReportList", - "PaginatedGeneralLedgerTransactionList", - "PaginatedIncomeStatementList", - "PaginatedInvoiceList", - "PaginatedIssueList", - "PaginatedItemList", - "PaginatedJournalEntryList", - "PaginatedPaymentList", - "PaginatedPaymentMethodList", - "PaginatedPaymentTermList", - "PaginatedProjectList", - "PaginatedPurchaseOrderList", - "PaginatedRemoteFieldClassList", - "PaginatedSyncStatusList", - "PaginatedTaxRateList", - "PaginatedTrackingCategoryList", - "PaginatedTransactionList", - "PaginatedVendorCreditList", - "PatchedContactRequest", - "PatchedContactRequestAddressesItem", - "PatchedItemRequestRequest", - "PatchedItemRequestRequestStatus", - "PatchedItemRequestRequestType", - "PatchedPaymentRequest", - "PatchedPaymentRequestAccount", - "PatchedPaymentRequestAccountingPeriod", - "PatchedPaymentRequestAppliedToLinesItem", - "PatchedPaymentRequestCompany", - "PatchedPaymentRequestContact", - "PatchedPaymentRequestCurrency", - "PatchedPaymentRequestPaymentMethod", - "PatchedPaymentRequestTrackingCategoriesItem", - "PatchedPaymentRequestType", - "Payment", - "PaymentAccount", - "PaymentAccountingPeriod", - "PaymentAppliedToLinesItem", - "PaymentCompany", - "PaymentContact", - "PaymentCurrency", - "PaymentLineItem", - "PaymentLineItemRequest", - "PaymentMethod", - "PaymentMethodMethodType", - "PaymentPaymentMethod", - "PaymentRequest", - "PaymentRequestAccount", - "PaymentRequestAccountingPeriod", - "PaymentRequestAppliedToLinesItem", - "PaymentRequestCompany", - "PaymentRequestContact", - "PaymentRequestCurrency", - "PaymentRequestPaymentMethod", - "PaymentRequestTrackingCategoriesItem", - "PaymentRequestType", - "PaymentResponse", - "PaymentTerm", - "PaymentTermCompany", - "PaymentTrackingCategoriesItem", - "PaymentType", - "PaymentTypeEnum", - "PostingStatusEnum", - "Project", - "ProjectCompany", - "ProjectContact", - "PurchaseOrder", - "PurchaseOrderAccountingPeriod", - "PurchaseOrderCompany", - "PurchaseOrderCurrency", - "PurchaseOrderDeliveryAddress", - "PurchaseOrderLineItem", - "PurchaseOrderLineItemCurrency", - "PurchaseOrderLineItemItem", - "PurchaseOrderLineItemRequest", - "PurchaseOrderLineItemRequestCurrency", - "PurchaseOrderLineItemRequestItem", - "PurchaseOrderPaymentTerm", - "PurchaseOrderRequest", - "PurchaseOrderRequestCompany", - "PurchaseOrderRequestCurrency", - "PurchaseOrderRequestDeliveryAddress", - "PurchaseOrderRequestPaymentTerm", - "PurchaseOrderRequestStatus", - "PurchaseOrderRequestTrackingCategoriesItem", - "PurchaseOrderRequestVendor", - "PurchaseOrderResponse", - "PurchaseOrderStatus", - "PurchaseOrderStatusEnum", - "PurchaseOrderTrackingCategoriesItem", - "PurchaseOrderVendor", - "RemoteData", - "RemoteEndpointInfo", - "RemoteField", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteFieldClass", - "RemoteFieldRemoteFieldClass", - "RemoteFieldRequest", - "RemoteFieldRequestRemoteFieldClass", - "RemoteKey", - "RemoteResponse", - "ReportItem", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "SelectiveSyncConfigurationsUsageEnum", - "Status7D1Enum", - "Status895Enum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusStatus", - "TaxComponent", - "TaxComponentComponentType", - "TaxRate", - "TaxRateCompany", - "TaxRateStatus", - "TaxRateTaxComponentsItem", - "TrackingCategory", - "TrackingCategoryCategoryType", - "TrackingCategoryCompany", - "TrackingCategoryStatus", - "Transaction", - "TransactionAccount", - "TransactionAccountingPeriod", - "TransactionContact", - "TransactionCurrency", - "TransactionCurrencyEnum", - "TransactionLineItem", - "TransactionLineItemCurrency", - "TransactionLineItemItem", - "TransactionTrackingCategoriesItem", - "Type2BbEnum", - "UnderlyingTransactionTypeEnum", - "ValidationProblemSource", - "VendorCredit", - "VendorCreditAccountingPeriod", - "VendorCreditApplyLineForInvoice", - "VendorCreditApplyLineForInvoiceVendorCredit", - "VendorCreditApplyLineForVendorCredit", - "VendorCreditApplyLineForVendorCreditInvoice", - "VendorCreditApplyLineForVendorCreditRequest", - "VendorCreditApplyLineForVendorCreditRequestInvoice", - "VendorCreditCompany", - "VendorCreditCurrency", - "VendorCreditLine", - "VendorCreditLineAccount", - "VendorCreditLineContact", - "VendorCreditLineProject", - "VendorCreditLineRequest", - "VendorCreditLineRequestAccount", - "VendorCreditLineRequestContact", - "VendorCreditLineRequestProject", - "VendorCreditRequest", - "VendorCreditRequestAccountingPeriod", - "VendorCreditRequestCompany", - "VendorCreditRequestCurrency", - "VendorCreditRequestTrackingCategoriesItem", - "VendorCreditRequestVendor", - "VendorCreditResponse", - "VendorCreditTrackingCategoriesItem", - "VendorCreditVendor", - "WarningValidationProblem", - "WebhookReceiver", -] diff --git a/src/merge/resources/accounting/types/account.py b/src/merge/resources/accounting/types/account.py deleted file mode 100644 index 48026248..00000000 --- a/src/merge/resources/accounting/types/account.py +++ /dev/null @@ -1,450 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_account_type import AccountAccountType -from .account_classification import AccountClassification -from .account_currency import AccountCurrency -from .account_status import AccountStatus -from .remote_data import RemoteData - - -class Account(UncheckedBaseModel): - """ - # The Account Object - ### Description - An `Account` represents a category in a company’s ledger in which a financial transaction is recorded against. The aggregation of each `Account` object is often referred to as the **Chart of Accounts**. - - An `Account` can be classified into one of the following categories, determined through the `classification` field: - * __Asset:__ Accounts Receivable and Bank Accounts - * __Liability:__ Accounts Payable and Credit Card Accounts - * __Equity:__ Treasury Accounts and Retained Earnings - * __Revenue:__ Income and Other Income - * __Expense:__ Cost of Goods Sold and Office Expenses - - ### Usage Example - Fetch from the `LIST Accounts` endpoint and view a company's accounts. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's description. - """ - - classification: typing.Optional[AccountClassification] = pydantic.Field(default=None) - """ - The account's broadest grouping. - - * `ASSET` - ASSET - * `EQUITY` - EQUITY - * `EXPENSE` - EXPENSE - * `LIABILITY` - LIABILITY - * `REVENUE` - REVENUE - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's type is a narrower and more specific grouping within the account's classification. - """ - - account_type: typing.Optional[AccountAccountType] = pydantic.Field(default=None) - """ - Normalized account type- which is a narrower and more specific grouping within the account's classification. - - * `BANK` - BANK - * `CREDIT_CARD` - CREDIT_CARD - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `FIXED_ASSET` - FIXED_ASSET - * `OTHER_ASSET` - OTHER_ASSET - * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * `OTHER_EXPENSE` - OTHER_EXPENSE - * `OTHER_INCOME` - OTHER_INCOME - * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * `NON_POSTING` - NON_POSTING - """ - - status: typing.Optional[AccountStatus] = pydantic.Field(default=None) - """ - The account's status. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - """ - - current_balance: typing.Optional[float] = pydantic.Field(default=None) - """ - The account's current balance. - """ - - currency: typing.Optional[AccountCurrency] = pydantic.Field(default=None) - """ - The account's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - account_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's number. - """ - - parent_account: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the parent account. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the account belongs to. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/account_account_type.py b/src/merge/resources/accounting/types/account_account_type.py deleted file mode 100644 index d9aba0bf..00000000 --- a/src/merge/resources/accounting/types/account_account_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_account_type_enum import AccountAccountTypeEnum - -AccountAccountType = typing.Union[AccountAccountTypeEnum, str] diff --git a/src/merge/resources/accounting/types/account_account_type_enum.py b/src/merge/resources/accounting/types/account_account_type_enum.py deleted file mode 100644 index 8a020c01..00000000 --- a/src/merge/resources/accounting/types/account_account_type_enum.py +++ /dev/null @@ -1,81 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountAccountTypeEnum(str, enum.Enum): - """ - * `BANK` - BANK - * `CREDIT_CARD` - CREDIT_CARD - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `FIXED_ASSET` - FIXED_ASSET - * `OTHER_ASSET` - OTHER_ASSET - * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * `OTHER_EXPENSE` - OTHER_EXPENSE - * `OTHER_INCOME` - OTHER_INCOME - * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * `NON_POSTING` - NON_POSTING - """ - - BANK = "BANK" - CREDIT_CARD = "CREDIT_CARD" - ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE" - ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE" - FIXED_ASSET = "FIXED_ASSET" - OTHER_ASSET = "OTHER_ASSET" - OTHER_CURRENT_ASSET = "OTHER_CURRENT_ASSET" - OTHER_EXPENSE = "OTHER_EXPENSE" - OTHER_INCOME = "OTHER_INCOME" - COST_OF_GOODS_SOLD = "COST_OF_GOODS_SOLD" - OTHER_CURRENT_LIABILITY = "OTHER_CURRENT_LIABILITY" - LONG_TERM_LIABILITY = "LONG_TERM_LIABILITY" - NON_POSTING = "NON_POSTING" - - def visit( - self, - bank: typing.Callable[[], T_Result], - credit_card: typing.Callable[[], T_Result], - accounts_payable: typing.Callable[[], T_Result], - accounts_receivable: typing.Callable[[], T_Result], - fixed_asset: typing.Callable[[], T_Result], - other_asset: typing.Callable[[], T_Result], - other_current_asset: typing.Callable[[], T_Result], - other_expense: typing.Callable[[], T_Result], - other_income: typing.Callable[[], T_Result], - cost_of_goods_sold: typing.Callable[[], T_Result], - other_current_liability: typing.Callable[[], T_Result], - long_term_liability: typing.Callable[[], T_Result], - non_posting: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountAccountTypeEnum.BANK: - return bank() - if self is AccountAccountTypeEnum.CREDIT_CARD: - return credit_card() - if self is AccountAccountTypeEnum.ACCOUNTS_PAYABLE: - return accounts_payable() - if self is AccountAccountTypeEnum.ACCOUNTS_RECEIVABLE: - return accounts_receivable() - if self is AccountAccountTypeEnum.FIXED_ASSET: - return fixed_asset() - if self is AccountAccountTypeEnum.OTHER_ASSET: - return other_asset() - if self is AccountAccountTypeEnum.OTHER_CURRENT_ASSET: - return other_current_asset() - if self is AccountAccountTypeEnum.OTHER_EXPENSE: - return other_expense() - if self is AccountAccountTypeEnum.OTHER_INCOME: - return other_income() - if self is AccountAccountTypeEnum.COST_OF_GOODS_SOLD: - return cost_of_goods_sold() - if self is AccountAccountTypeEnum.OTHER_CURRENT_LIABILITY: - return other_current_liability() - if self is AccountAccountTypeEnum.LONG_TERM_LIABILITY: - return long_term_liability() - if self is AccountAccountTypeEnum.NON_POSTING: - return non_posting() diff --git a/src/merge/resources/accounting/types/account_classification.py b/src/merge/resources/accounting/types/account_classification.py deleted file mode 100644 index 9d99b731..00000000 --- a/src/merge/resources/accounting/types/account_classification.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .classification_enum import ClassificationEnum - -AccountClassification = typing.Union[ClassificationEnum, str] diff --git a/src/merge/resources/accounting/types/account_currency.py b/src/merge/resources/accounting/types/account_currency.py deleted file mode 100644 index 58265e5e..00000000 --- a/src/merge/resources/accounting/types/account_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -AccountCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/account_details.py b/src/merge/resources/accounting/types/account_details.py deleted file mode 100644 index 98923cd8..00000000 --- a/src/merge/resources/accounting/types/account_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_category import AccountDetailsCategory - - -class AccountDetails(UncheckedBaseModel): - id: typing.Optional[str] = None - integration: typing.Optional[str] = None - integration_slug: typing.Optional[str] = None - category: typing.Optional[AccountDetailsCategory] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: typing.Optional[str] = None - end_user_email_address: typing.Optional[str] = None - status: typing.Optional[str] = None - webhook_listener_url: typing.Optional[str] = None - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - account_type: typing.Optional[str] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which account completes the linking flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/account_details_and_actions.py b/src/merge/resources/accounting/types/account_details_and_actions.py deleted file mode 100644 index 93c874ed..00000000 --- a/src/merge/resources/accounting/types/account_details_and_actions.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions_category import AccountDetailsAndActionsCategory -from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status import AccountDetailsAndActionsStatus - - -class AccountDetailsAndActions(UncheckedBaseModel): - """ - # The LinkedAccount Object - ### Description - The `LinkedAccount` object is used to represent an end user's link with a specific integration. - - ### Usage Example - View a list of your organization's `LinkedAccount` objects. - """ - - id: str - category: typing.Optional[AccountDetailsAndActionsCategory] = None - status: AccountDetailsAndActionsStatus - status_detail: typing.Optional[str] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: str - end_user_email_address: str - subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The tenant or domain the customer has provided access to. - """ - - webhook_listener_url: str - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - integration: typing.Optional[AccountDetailsAndActionsIntegration] = None - account_type: str - completed_at: dt.datetime - integration_specific_fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/account_details_and_actions_integration.py b/src/merge/resources/accounting/types/account_details_and_actions_integration.py deleted file mode 100644 index 73467bbb..00000000 --- a/src/merge/resources/accounting/types/account_details_and_actions_integration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum -from .model_operation import ModelOperation - - -class AccountDetailsAndActionsIntegration(UncheckedBaseModel): - name: str - categories: typing.List[CategoriesEnum] - image: typing.Optional[str] = None - square_image: typing.Optional[str] = None - color: str - slug: str - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/account_details_and_actions_status_enum.py b/src/merge/resources/accounting/types/account_details_and_actions_status_enum.py deleted file mode 100644 index df37f582..00000000 --- a/src/merge/resources/accounting/types/account_details_and_actions_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountDetailsAndActionsStatusEnum(str, enum.Enum): - """ - * `COMPLETE` - COMPLETE - * `INCOMPLETE` - INCOMPLETE - * `RELINK_NEEDED` - RELINK_NEEDED - * `IDLE` - IDLE - """ - - COMPLETE = "COMPLETE" - INCOMPLETE = "INCOMPLETE" - RELINK_NEEDED = "RELINK_NEEDED" - IDLE = "IDLE" - - def visit( - self, - complete: typing.Callable[[], T_Result], - incomplete: typing.Callable[[], T_Result], - relink_needed: typing.Callable[[], T_Result], - idle: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountDetailsAndActionsStatusEnum.COMPLETE: - return complete() - if self is AccountDetailsAndActionsStatusEnum.INCOMPLETE: - return incomplete() - if self is AccountDetailsAndActionsStatusEnum.RELINK_NEEDED: - return relink_needed() - if self is AccountDetailsAndActionsStatusEnum.IDLE: - return idle() diff --git a/src/merge/resources/accounting/types/account_integration.py b/src/merge/resources/accounting/types/account_integration.py deleted file mode 100644 index ef8b260d..00000000 --- a/src/merge/resources/accounting/types/account_integration.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum - - -class AccountIntegration(UncheckedBaseModel): - name: str = pydantic.Field() - """ - Company name. - """ - - abbreviated_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) - """ - - categories: typing.Optional[typing.List[CategoriesEnum]] = pydantic.Field(default=None) - """ - Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. - """ - - image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in rectangular shape. - """ - - square_image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in square shape. - """ - - color: typing.Optional[str] = pydantic.Field(default=None) - """ - The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. - """ - - slug: typing.Optional[str] = None - api_endpoints_to_documentation_urls: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = ( - pydantic.Field(default=None) - ) - """ - Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} - """ - - webhook_setup_guide_url: typing.Optional[str] = pydantic.Field(default=None) - """ - Setup guide URL for third party webhook creation. Exposed in Merge Docs. - """ - - category_beta_status: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Category or categories this integration is in beta status for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/account_request.py b/src/merge/resources/accounting/types/account_request.py deleted file mode 100644 index 471e444e..00000000 --- a/src/merge/resources/accounting/types/account_request.py +++ /dev/null @@ -1,427 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_request_account_type import AccountRequestAccountType -from .account_request_classification import AccountRequestClassification -from .account_request_currency import AccountRequestCurrency -from .account_request_status import AccountRequestStatus - - -class AccountRequest(UncheckedBaseModel): - """ - # The Account Object - ### Description - An `Account` represents a category in a company’s ledger in which a financial transaction is recorded against. The aggregation of each `Account` object is often referred to as the **Chart of Accounts**. - - An `Account` can be classified into one of the following categories, determined through the `classification` field: - * __Asset:__ Accounts Receivable and Bank Accounts - * __Liability:__ Accounts Payable and Credit Card Accounts - * __Equity:__ Treasury Accounts and Retained Earnings - * __Revenue:__ Income and Other Income - * __Expense:__ Cost of Goods Sold and Office Expenses - - ### Usage Example - Fetch from the `LIST Accounts` endpoint and view a company's accounts. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's description. - """ - - classification: typing.Optional[AccountRequestClassification] = pydantic.Field(default=None) - """ - The account's broadest grouping. - - * `ASSET` - ASSET - * `EQUITY` - EQUITY - * `EXPENSE` - EXPENSE - * `LIABILITY` - LIABILITY - * `REVENUE` - REVENUE - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's type is a narrower and more specific grouping within the account's classification. - """ - - account_type: typing.Optional[AccountRequestAccountType] = pydantic.Field(default=None) - """ - Normalized account type- which is a narrower and more specific grouping within the account's classification. - - * `BANK` - BANK - * `CREDIT_CARD` - CREDIT_CARD - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `FIXED_ASSET` - FIXED_ASSET - * `OTHER_ASSET` - OTHER_ASSET - * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * `OTHER_EXPENSE` - OTHER_EXPENSE - * `OTHER_INCOME` - OTHER_INCOME - * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * `NON_POSTING` - NON_POSTING - """ - - status: typing.Optional[AccountRequestStatus] = pydantic.Field(default=None) - """ - The account's status. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - """ - - current_balance: typing.Optional[float] = pydantic.Field(default=None) - """ - The account's current balance. - """ - - currency: typing.Optional[AccountRequestCurrency] = pydantic.Field(default=None) - """ - The account's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - account_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's number. - """ - - parent_account: typing.Optional[str] = pydantic.Field(default=None) - """ - ID of the parent account. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the account belongs to. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/account_request_account_type.py b/src/merge/resources/accounting/types/account_request_account_type.py deleted file mode 100644 index c995ca60..00000000 --- a/src/merge/resources/accounting/types/account_request_account_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_account_type_enum import AccountAccountTypeEnum - -AccountRequestAccountType = typing.Union[AccountAccountTypeEnum, str] diff --git a/src/merge/resources/accounting/types/account_request_classification.py b/src/merge/resources/accounting/types/account_request_classification.py deleted file mode 100644 index 4551987b..00000000 --- a/src/merge/resources/accounting/types/account_request_classification.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .classification_enum import ClassificationEnum - -AccountRequestClassification = typing.Union[ClassificationEnum, str] diff --git a/src/merge/resources/accounting/types/account_request_currency.py b/src/merge/resources/accounting/types/account_request_currency.py deleted file mode 100644 index e5e42728..00000000 --- a/src/merge/resources/accounting/types/account_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -AccountRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/account_request_status.py b/src/merge/resources/accounting/types/account_request_status.py deleted file mode 100644 index ce7ce2b0..00000000 --- a/src/merge/resources/accounting/types/account_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_status_enum import AccountStatusEnum - -AccountRequestStatus = typing.Union[AccountStatusEnum, str] diff --git a/src/merge/resources/accounting/types/account_response.py b/src/merge/resources/accounting/types/account_response.py deleted file mode 100644 index f6d15b29..00000000 --- a/src/merge/resources/accounting/types/account_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account import Account -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class AccountResponse(UncheckedBaseModel): - model: Account - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/account_status.py b/src/merge/resources/accounting/types/account_status.py deleted file mode 100644 index 571bb6ce..00000000 --- a/src/merge/resources/accounting/types/account_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_status_enum import AccountStatusEnum - -AccountStatus = typing.Union[AccountStatusEnum, str] diff --git a/src/merge/resources/accounting/types/account_status_enum.py b/src/merge/resources/accounting/types/account_status_enum.py deleted file mode 100644 index f95c253b..00000000 --- a/src/merge/resources/accounting/types/account_status_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountStatusEnum(str, enum.Enum): - """ - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - """ - - ACTIVE = "ACTIVE" - PENDING = "PENDING" - INACTIVE = "INACTIVE" - - def visit( - self, - active: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - inactive: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountStatusEnum.ACTIVE: - return active() - if self is AccountStatusEnum.PENDING: - return pending() - if self is AccountStatusEnum.INACTIVE: - return inactive() diff --git a/src/merge/resources/accounting/types/account_token.py b/src/merge/resources/accounting/types/account_token.py deleted file mode 100644 index 6e82c8ac..00000000 --- a/src/merge/resources/accounting/types/account_token.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration - - -class AccountToken(UncheckedBaseModel): - account_token: str - integration: AccountIntegration - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/accounting_attachment.py b/src/merge/resources/accounting/types/accounting_attachment.py deleted file mode 100644 index c7076640..00000000 --- a/src/merge/resources/accounting/types/accounting_attachment.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class AccountingAttachment(UncheckedBaseModel): - """ - # The Accounting Attachment Object - ### Description - The `AccountingAttachment` object is used to represent a company's attachments. - - ### Usage Example - Fetch from the `LIST AccountingAttachments` endpoint and view a company's attachments. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's name. - """ - - file_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's url. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the accounting attachment belongs to. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/accounting_attachment_request.py b/src/merge/resources/accounting/types/accounting_attachment_request.py deleted file mode 100644 index a846f08a..00000000 --- a/src/merge/resources/accounting/types/accounting_attachment_request.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AccountingAttachmentRequest(UncheckedBaseModel): - """ - # The Accounting Attachment Object - ### Description - The `AccountingAttachment` object is used to represent a company's attachments. - - ### Usage Example - Fetch from the `LIST AccountingAttachments` endpoint and view a company's attachments. - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's name. - """ - - file_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's url. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the accounting attachment belongs to. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/accounting_attachment_response.py b/src/merge/resources/accounting/types/accounting_attachment_response.py deleted file mode 100644 index 0f0fd85e..00000000 --- a/src/merge/resources/accounting/types/accounting_attachment_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_attachment import AccountingAttachment -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class AccountingAttachmentResponse(UncheckedBaseModel): - model: AccountingAttachment - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/accounting_period.py b/src/merge/resources/accounting/types/accounting_period.py deleted file mode 100644 index eed33108..00000000 --- a/src/merge/resources/accounting/types/accounting_period.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_period_status import AccountingPeriodStatus -from .remote_data import RemoteData - - -class AccountingPeriod(UncheckedBaseModel): - """ - # The AccountingPeriod Object - ### Description - The `AccountingPeriod` object is used to define a period of time in which events occurred. - - ### Usage Example - Common models like `Invoice` and `Transaction` will have `AccountingPeriod` objects which will denote when they occurred. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the accounting period. - """ - - status: typing.Optional[AccountingPeriodStatus] = None - start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Beginning date of the period - """ - - end_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - End date of the period - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/accounting_period_status.py b/src/merge/resources/accounting/types/accounting_period_status.py deleted file mode 100644 index c53ff70c..00000000 --- a/src/merge/resources/accounting/types/accounting_period_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_895_enum import Status895Enum - -AccountingPeriodStatus = typing.Union[Status895Enum, str] diff --git a/src/merge/resources/accounting/types/accounting_phone_number.py b/src/merge/resources/accounting/types/accounting_phone_number.py deleted file mode 100644 index e38ffc9b..00000000 --- a/src/merge/resources/accounting/types/accounting_phone_number.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AccountingPhoneNumber(UncheckedBaseModel): - """ - # The AccountingPhoneNumber Object - ### Description - The `AccountingPhoneNumber` object is used to represent a contact's or company's phone number. - - ### Usage Example - Fetch from the `GET CompanyInfo` endpoint and view the company's phone numbers. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number. - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number's type. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/accounting_phone_number_request.py b/src/merge/resources/accounting/types/accounting_phone_number_request.py deleted file mode 100644 index 1bb6e597..00000000 --- a/src/merge/resources/accounting/types/accounting_phone_number_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AccountingPhoneNumberRequest(UncheckedBaseModel): - """ - # The AccountingPhoneNumber Object - ### Description - The `AccountingPhoneNumber` object is used to represent a contact's or company's phone number. - - ### Usage Example - Fetch from the `GET CompanyInfo` endpoint and view the company's phone numbers. - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number. - """ - - type: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number's type. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/address.py b/src/merge/resources/accounting/types/address.py deleted file mode 100644 index 196a516f..00000000 --- a/src/merge/resources/accounting/types/address.py +++ /dev/null @@ -1,333 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_country import AddressCountry -from .address_type import AddressType - - -class Address(UncheckedBaseModel): - """ - # The Address Object - ### Description - The `Address` object is used to represent a contact's or company's address. - - ### Usage Example - Fetch from the `GET CompanyInfo` endpoint and view the company's addresses. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - type: typing.Optional[AddressType] = pydantic.Field(default=None) - """ - The address type. - - * `BILLING` - BILLING - * `SHIPPING` - SHIPPING - """ - - street_1: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 1 of the address's street. - """ - - street_2: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 2 of the address's street. - """ - - city: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's city. - """ - - state: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The address's state or region. - """ - - country_subdivision: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's state or region. - """ - - country: typing.Optional[AddressCountry] = pydantic.Field(default=None) - """ - The address's country. - - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - zip_code: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's zip code. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/address_country.py b/src/merge/resources/accounting/types/address_country.py deleted file mode 100644 index b437f311..00000000 --- a/src/merge/resources/accounting/types/address_country.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .country_enum import CountryEnum - -AddressCountry = typing.Union[CountryEnum, str] diff --git a/src/merge/resources/accounting/types/address_request.py b/src/merge/resources/accounting/types/address_request.py deleted file mode 100644 index a7545759..00000000 --- a/src/merge/resources/accounting/types/address_request.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_request_country import AddressRequestCountry -from .address_request_type import AddressRequestType - - -class AddressRequest(UncheckedBaseModel): - """ - # The Address Object - ### Description - The `Address` object is used to represent a contact's or company's address. - - ### Usage Example - Fetch from the `GET CompanyInfo` endpoint and view the company's addresses. - """ - - type: typing.Optional[AddressRequestType] = pydantic.Field(default=None) - """ - The address type. - - * `BILLING` - BILLING - * `SHIPPING` - SHIPPING - """ - - street_1: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 1 of the address's street. - """ - - street_2: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 2 of the address's street. - """ - - city: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's city. - """ - - country_subdivision: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's state or region. - """ - - country: typing.Optional[AddressRequestCountry] = pydantic.Field(default=None) - """ - The address's country. - - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - zip_code: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's zip code. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/address_request_country.py b/src/merge/resources/accounting/types/address_request_country.py deleted file mode 100644 index 02559f8d..00000000 --- a/src/merge/resources/accounting/types/address_request_country.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .country_enum import CountryEnum - -AddressRequestCountry = typing.Union[CountryEnum, str] diff --git a/src/merge/resources/accounting/types/address_request_type.py b/src/merge/resources/accounting/types/address_request_type.py deleted file mode 100644 index ebe47647..00000000 --- a/src/merge/resources/accounting/types/address_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address_type_enum import AddressTypeEnum - -AddressRequestType = typing.Union[AddressTypeEnum, str] diff --git a/src/merge/resources/accounting/types/address_type.py b/src/merge/resources/accounting/types/address_type.py deleted file mode 100644 index 1ef6065f..00000000 --- a/src/merge/resources/accounting/types/address_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address_type_enum import AddressTypeEnum - -AddressType = typing.Union[AddressTypeEnum, str] diff --git a/src/merge/resources/accounting/types/address_type_enum.py b/src/merge/resources/accounting/types/address_type_enum.py deleted file mode 100644 index 69be620b..00000000 --- a/src/merge/resources/accounting/types/address_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AddressTypeEnum(str, enum.Enum): - """ - * `BILLING` - BILLING - * `SHIPPING` - SHIPPING - """ - - BILLING = "BILLING" - SHIPPING = "SHIPPING" - - def visit(self, billing: typing.Callable[[], T_Result], shipping: typing.Callable[[], T_Result]) -> T_Result: - if self is AddressTypeEnum.BILLING: - return billing() - if self is AddressTypeEnum.SHIPPING: - return shipping() diff --git a/src/merge/resources/accounting/types/advanced_metadata.py b/src/merge/resources/accounting/types/advanced_metadata.py deleted file mode 100644 index 60b5d072..00000000 --- a/src/merge/resources/accounting/types/advanced_metadata.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AdvancedMetadata(UncheckedBaseModel): - id: str - display_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - is_custom: typing.Optional[bool] = None - field_choices: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/async_passthrough_reciept.py b/src/merge/resources/accounting/types/async_passthrough_reciept.py deleted file mode 100644 index 21c95080..00000000 --- a/src/merge/resources/accounting/types/async_passthrough_reciept.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPassthroughReciept(UncheckedBaseModel): - async_passthrough_receipt_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/async_post_task.py b/src/merge/resources/accounting/types/async_post_task.py deleted file mode 100644 index 09de2bb0..00000000 --- a/src/merge/resources/accounting/types/async_post_task.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .async_post_task_result import AsyncPostTaskResult -from .async_post_task_status import AsyncPostTaskStatus - - -class AsyncPostTask(UncheckedBaseModel): - status: AsyncPostTaskStatus - result: AsyncPostTaskResult - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/async_post_task_result.py b/src/merge/resources/accounting/types/async_post_task_result.py deleted file mode 100644 index 3cd4ef00..00000000 --- a/src/merge/resources/accounting/types/async_post_task_result.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPostTaskResult(UncheckedBaseModel): - status_code: typing.Optional[int] = None - response: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/async_post_task_status.py b/src/merge/resources/accounting/types/async_post_task_status.py deleted file mode 100644 index 165370ca..00000000 --- a/src/merge/resources/accounting/types/async_post_task_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .async_post_task_status_enum import AsyncPostTaskStatusEnum - -AsyncPostTaskStatus = typing.Union[AsyncPostTaskStatusEnum, str] diff --git a/src/merge/resources/accounting/types/async_post_task_status_enum.py b/src/merge/resources/accounting/types/async_post_task_status_enum.py deleted file mode 100644 index e80df1b4..00000000 --- a/src/merge/resources/accounting/types/async_post_task_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AsyncPostTaskStatusEnum(str, enum.Enum): - """ - * `QUEUED` - QUEUED - * `IN_PROGRESS` - IN_PROGRESS - * `COMPLETED` - COMPLETED - * `FAILURE` - FAILURE - """ - - QUEUED = "QUEUED" - IN_PROGRESS = "IN_PROGRESS" - COMPLETED = "COMPLETED" - FAILURE = "FAILURE" - - def visit( - self, - queued: typing.Callable[[], T_Result], - in_progress: typing.Callable[[], T_Result], - completed: typing.Callable[[], T_Result], - failure: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AsyncPostTaskStatusEnum.QUEUED: - return queued() - if self is AsyncPostTaskStatusEnum.IN_PROGRESS: - return in_progress() - if self is AsyncPostTaskStatusEnum.COMPLETED: - return completed() - if self is AsyncPostTaskStatusEnum.FAILURE: - return failure() diff --git a/src/merge/resources/accounting/types/audit_log_event.py b/src/merge/resources/accounting/types/audit_log_event.py deleted file mode 100644 index ab69fd32..00000000 --- a/src/merge/resources/accounting/types/audit_log_event.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event_event_type import AuditLogEventEventType -from .audit_log_event_role import AuditLogEventRole - - -class AuditLogEvent(UncheckedBaseModel): - id: typing.Optional[str] = None - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's full name at the time of this Event occurring. - """ - - user_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's email at the time of this Event occurring. - """ - - role: AuditLogEventRole = pydantic.Field() - """ - Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ip_address: str - event_type: AuditLogEventEventType = pydantic.Field() - """ - Designates the type of event that occurred. - - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - event_description: str - created_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/audit_log_event_event_type.py b/src/merge/resources/accounting/types/audit_log_event_event_type.py deleted file mode 100644 index f9c9d2b3..00000000 --- a/src/merge/resources/accounting/types/audit_log_event_event_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_type_enum import EventTypeEnum - -AuditLogEventEventType = typing.Union[EventTypeEnum, str] diff --git a/src/merge/resources/accounting/types/audit_log_event_role.py b/src/merge/resources/accounting/types/audit_log_event_role.py deleted file mode 100644 index fe91ed6f..00000000 --- a/src/merge/resources/accounting/types/audit_log_event_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role_enum import RoleEnum - -AuditLogEventRole = typing.Union[RoleEnum, str] diff --git a/src/merge/resources/accounting/types/available_actions.py b/src/merge/resources/accounting/types/available_actions.py deleted file mode 100644 index 8b5019d7..00000000 --- a/src/merge/resources/accounting/types/available_actions.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration -from .model_operation import ModelOperation - - -class AvailableActions(UncheckedBaseModel): - """ - # The AvailableActions Object - ### Description - The `Activity` object is used to see all available model/operation combinations for an integration. - - ### Usage Example - Fetch all the actions available for the `Zenefits` integration. - """ - - integration: AccountIntegration - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/balance_sheet.py b/src/merge/resources/accounting/types/balance_sheet.py deleted file mode 100644 index f882760e..00000000 --- a/src/merge/resources/accounting/types/balance_sheet.py +++ /dev/null @@ -1,396 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .balance_sheet_company import BalanceSheetCompany -from .balance_sheet_currency import BalanceSheetCurrency -from .remote_data import RemoteData -from .report_item import ReportItem - - -class BalanceSheet(UncheckedBaseModel): - """ - # The BalanceSheet Object - ### Description - The `BalanceSheet` object shows a company’s assets, liabilities, and equity. Assets should be equal to liability and equity combined. This shows the company’s financial health at a specific point in time. - - ### Usage Example - Fetch from the `LIST BalanceSheets` endpoint and view a company's balance sheets. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The balance sheet's name. - """ - - currency: typing.Optional[BalanceSheetCurrency] = pydantic.Field(default=None) - """ - The balance sheet's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - company: typing.Optional[BalanceSheetCompany] = pydantic.Field(default=None) - """ - `Company` object for the given `BalanceSheet` object. - """ - - date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The balance sheet's date. The balance sheet data will reflect the company's financial position this point in time. - """ - - net_assets: typing.Optional[float] = pydantic.Field(default=None) - """ - The balance sheet's net assets. - """ - - assets: typing.Optional[typing.List[ReportItem]] = None - liabilities: typing.Optional[typing.List[ReportItem]] = None - equity: typing.Optional[typing.List[ReportItem]] = None - remote_generated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time that balance sheet was generated by the accounting system. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/balance_sheet_company.py b/src/merge/resources/accounting/types/balance_sheet_company.py deleted file mode 100644 index 6d16af9e..00000000 --- a/src/merge/resources/accounting/types/balance_sheet_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -BalanceSheetCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/balance_sheet_currency.py b/src/merge/resources/accounting/types/balance_sheet_currency.py deleted file mode 100644 index a6019d59..00000000 --- a/src/merge/resources/accounting/types/balance_sheet_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -BalanceSheetCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_account.py b/src/merge/resources/accounting/types/bank_feed_account.py deleted file mode 100644 index f901ca6a..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account.py +++ /dev/null @@ -1,418 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_account_account_type import BankFeedAccountAccountType -from .bank_feed_account_currency import BankFeedAccountCurrency -from .bank_feed_account_feed_status import BankFeedAccountFeedStatus - - -class BankFeedAccount(UncheckedBaseModel): - """ - # The BankFeedAccount Object - ### Description - The `BankFeedAccount` object represents a bank feed account, detailing various attributes including account identifiers, names, currency, and balance information. This object is central to managing and tracking bank feed accounts within the system. - - ### Usage Example - Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - source_account_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique identifier of the source account from our customer’s platform. - """ - - target_account_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique identifier of the target account from the third party software. - """ - - source_account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the source account as stored in our customer’s platform. - """ - - source_account_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable account number of the source account as stored in our customer’s platform. - """ - - target_account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the target account from the third party software. - """ - - currency: typing.Optional[BankFeedAccountCurrency] = pydantic.Field(default=None) - """ - The currency code of the bank feed. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - feed_status: typing.Optional[BankFeedAccountFeedStatus] = pydantic.Field(default=None) - """ - The status of the bank feed. - - * `ACTIVE` - ACTIVE - * `INACTIVE` - INACTIVE - """ - - feed_start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The start date of the bank feed’s transactions. - """ - - source_account_balance: typing.Optional[float] = pydantic.Field(default=None) - """ - The current balance of funds in the source account. - """ - - account_type: typing.Optional[BankFeedAccountAccountType] = pydantic.Field(default=None) - """ - The type of the account. - - * `BANK` - BANK - * `CREDIT_CARD` - CREDIT_CARD - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/bank_feed_account_account_type.py b/src/merge/resources/accounting/types/bank_feed_account_account_type.py deleted file mode 100644 index b013e067..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_account_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .bank_feed_account_account_type_enum import BankFeedAccountAccountTypeEnum - -BankFeedAccountAccountType = typing.Union[BankFeedAccountAccountTypeEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_account_account_type_enum.py b/src/merge/resources/accounting/types/bank_feed_account_account_type_enum.py deleted file mode 100644 index 4ec29afb..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_account_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class BankFeedAccountAccountTypeEnum(str, enum.Enum): - """ - * `BANK` - BANK - * `CREDIT_CARD` - CREDIT_CARD - """ - - BANK = "BANK" - CREDIT_CARD = "CREDIT_CARD" - - def visit(self, bank: typing.Callable[[], T_Result], credit_card: typing.Callable[[], T_Result]) -> T_Result: - if self is BankFeedAccountAccountTypeEnum.BANK: - return bank() - if self is BankFeedAccountAccountTypeEnum.CREDIT_CARD: - return credit_card() diff --git a/src/merge/resources/accounting/types/bank_feed_account_currency.py b/src/merge/resources/accounting/types/bank_feed_account_currency.py deleted file mode 100644 index 09092cd3..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -BankFeedAccountCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_account_feed_status.py b/src/merge/resources/accounting/types/bank_feed_account_feed_status.py deleted file mode 100644 index b7bf0117..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_feed_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .feed_status_enum import FeedStatusEnum - -BankFeedAccountFeedStatus = typing.Union[FeedStatusEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_account_request.py b/src/merge/resources/accounting/types/bank_feed_account_request.py deleted file mode 100644 index c87b7395..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_request.py +++ /dev/null @@ -1,397 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_account_request_account_type import BankFeedAccountRequestAccountType -from .bank_feed_account_request_currency import BankFeedAccountRequestCurrency -from .bank_feed_account_request_feed_status import BankFeedAccountRequestFeedStatus - - -class BankFeedAccountRequest(UncheckedBaseModel): - """ - # The BankFeedAccount Object - ### Description - The `BankFeedAccount` object represents a bank feed account, detailing various attributes including account identifiers, names, currency, and balance information. This object is central to managing and tracking bank feed accounts within the system. - - ### Usage Example - Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account. - """ - - source_account_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique identifier of the source account from our customer’s platform. - """ - - target_account_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The unique identifier of the target account from the third party software. - """ - - source_account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the source account as stored in our customer’s platform. - """ - - source_account_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable account number of the source account as stored in our customer’s platform. - """ - - target_account_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the target account from the third party software. - """ - - currency: typing.Optional[BankFeedAccountRequestCurrency] = pydantic.Field(default=None) - """ - The currency code of the bank feed. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - feed_status: typing.Optional[BankFeedAccountRequestFeedStatus] = pydantic.Field(default=None) - """ - The status of the bank feed. - - * `ACTIVE` - ACTIVE - * `INACTIVE` - INACTIVE - """ - - feed_start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The start date of the bank feed’s transactions. - """ - - source_account_balance: typing.Optional[float] = pydantic.Field(default=None) - """ - The current balance of funds in the source account. - """ - - account_type: typing.Optional[BankFeedAccountRequestAccountType] = pydantic.Field(default=None) - """ - The type of the account. - - * `BANK` - BANK - * `CREDIT_CARD` - CREDIT_CARD - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/bank_feed_account_request_account_type.py b/src/merge/resources/accounting/types/bank_feed_account_request_account_type.py deleted file mode 100644 index d82b147f..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_request_account_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .bank_feed_account_account_type_enum import BankFeedAccountAccountTypeEnum - -BankFeedAccountRequestAccountType = typing.Union[BankFeedAccountAccountTypeEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_account_request_currency.py b/src/merge/resources/accounting/types/bank_feed_account_request_currency.py deleted file mode 100644 index 4aec3596..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -BankFeedAccountRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_account_request_feed_status.py b/src/merge/resources/accounting/types/bank_feed_account_request_feed_status.py deleted file mode 100644 index 8150eed6..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_request_feed_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .feed_status_enum import FeedStatusEnum - -BankFeedAccountRequestFeedStatus = typing.Union[FeedStatusEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_account_response.py b/src/merge/resources/accounting/types/bank_feed_account_response.py deleted file mode 100644 index 0a00e0b2..00000000 --- a/src/merge/resources/accounting/types/bank_feed_account_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_account import BankFeedAccount -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class BankFeedAccountResponse(UncheckedBaseModel): - model: BankFeedAccount - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/bank_feed_transaction.py b/src/merge/resources/accounting/types/bank_feed_transaction.py deleted file mode 100644 index aace57db..00000000 --- a/src/merge/resources/accounting/types/bank_feed_transaction.py +++ /dev/null @@ -1,104 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_transaction_bank_feed_account import BankFeedTransactionBankFeedAccount -from .bank_feed_transaction_credit_or_debit import BankFeedTransactionCreditOrDebit - - -class BankFeedTransaction(UncheckedBaseModel): - """ - # The BankFeedTransaction Object - ### Description - The `BankFeedTransaction` object is used to represent transactions linked to a bank feed account. This includes details about the transaction such as the date, amount, description, and type. - - ### Usage Example - Fetch from the `GET BankFeedTransaction` endpoint to view details of a transaction associated with a bank feed account. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - bank_feed_account: typing.Optional[BankFeedTransactionBankFeedAccount] = pydantic.Field(default=None) - """ - The bank feed account associated with the transaction. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date that the transaction occurred. - """ - - posted_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date the transaction was posted to the bank account. - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of the transaction. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the transaction. - """ - - transaction_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The underlying type of the transaction. - """ - - payee: typing.Optional[str] = pydantic.Field(default=None) - """ - The person or merchant who initiated the transaction, or alternatively, to whom the transaction was paid. - """ - - credit_or_debit: typing.Optional[BankFeedTransactionCreditOrDebit] = pydantic.Field(default=None) - """ - If the transaction is of type debit or credit. - - * `CREDIT` - CREDIT - * `DEBIT` - DEBIT - """ - - source_transaction_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The customer’s identifier for the transaction. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - is_processed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not this transaction has been processed by the external system. For example, NetSuite writes this field as True when the SuiteApp has processed the transaction. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/bank_feed_transaction_bank_feed_account.py b/src/merge/resources/accounting/types/bank_feed_transaction_bank_feed_account.py deleted file mode 100644 index 7249e758..00000000 --- a/src/merge/resources/accounting/types/bank_feed_transaction_bank_feed_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .bank_feed_account import BankFeedAccount - -BankFeedTransactionBankFeedAccount = typing.Union[str, BankFeedAccount] diff --git a/src/merge/resources/accounting/types/bank_feed_transaction_credit_or_debit.py b/src/merge/resources/accounting/types/bank_feed_transaction_credit_or_debit.py deleted file mode 100644 index 0c83c8fc..00000000 --- a/src/merge/resources/accounting/types/bank_feed_transaction_credit_or_debit.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credit_or_debit_enum import CreditOrDebitEnum - -BankFeedTransactionCreditOrDebit = typing.Union[CreditOrDebitEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_transaction_request_request.py b/src/merge/resources/accounting/types/bank_feed_transaction_request_request.py deleted file mode 100644 index f5f9e482..00000000 --- a/src/merge/resources/accounting/types/bank_feed_transaction_request_request.py +++ /dev/null @@ -1,81 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_transaction_request_request_bank_feed_account import BankFeedTransactionRequestRequestBankFeedAccount -from .bank_feed_transaction_request_request_credit_or_debit import BankFeedTransactionRequestRequestCreditOrDebit - - -class BankFeedTransactionRequestRequest(UncheckedBaseModel): - """ - # The BankFeedTransaction Object - ### Description - The `BankFeedTransaction` object is used to represent transactions linked to a bank feed account. This includes details about the transaction such as the date, amount, description, and type. - - ### Usage Example - Fetch from the `GET BankFeedTransaction` endpoint to view details of a transaction associated with a bank feed account. - """ - - bank_feed_account: typing.Optional[BankFeedTransactionRequestRequestBankFeedAccount] = pydantic.Field(default=None) - """ - The bank feed account associated with the transaction. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date that the transaction occurred. - """ - - posted_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date the transaction was posted to the bank account. - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of the transaction. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the transaction. - """ - - transaction_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The underlying type of the transaction. - """ - - payee: typing.Optional[str] = pydantic.Field(default=None) - """ - The person or merchant who initiated the transaction, or alternatively, to whom the transaction was paid. - """ - - credit_or_debit: typing.Optional[BankFeedTransactionRequestRequestCreditOrDebit] = pydantic.Field(default=None) - """ - If the transaction is of type debit or credit. - - * `CREDIT` - CREDIT - * `DEBIT` - DEBIT - """ - - source_transaction_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The customer’s identifier for the transaction. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/bank_feed_transaction_request_request_bank_feed_account.py b/src/merge/resources/accounting/types/bank_feed_transaction_request_request_bank_feed_account.py deleted file mode 100644 index 023a3e49..00000000 --- a/src/merge/resources/accounting/types/bank_feed_transaction_request_request_bank_feed_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .bank_feed_account import BankFeedAccount - -BankFeedTransactionRequestRequestBankFeedAccount = typing.Union[str, BankFeedAccount] diff --git a/src/merge/resources/accounting/types/bank_feed_transaction_request_request_credit_or_debit.py b/src/merge/resources/accounting/types/bank_feed_transaction_request_request_credit_or_debit.py deleted file mode 100644 index fc24af7f..00000000 --- a/src/merge/resources/accounting/types/bank_feed_transaction_request_request_credit_or_debit.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credit_or_debit_enum import CreditOrDebitEnum - -BankFeedTransactionRequestRequestCreditOrDebit = typing.Union[CreditOrDebitEnum, str] diff --git a/src/merge/resources/accounting/types/bank_feed_transaction_response.py b/src/merge/resources/accounting/types/bank_feed_transaction_response.py deleted file mode 100644 index 4e579a51..00000000 --- a/src/merge/resources/accounting/types/bank_feed_transaction_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_transaction import BankFeedTransaction -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class BankFeedTransactionResponse(UncheckedBaseModel): - model: BankFeedTransaction - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/cash_flow_statement.py b/src/merge/resources/accounting/types/cash_flow_statement.py deleted file mode 100644 index ef460a0e..00000000 --- a/src/merge/resources/accounting/types/cash_flow_statement.py +++ /dev/null @@ -1,406 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .cash_flow_statement_company import CashFlowStatementCompany -from .cash_flow_statement_currency import CashFlowStatementCurrency -from .remote_data import RemoteData -from .report_item import ReportItem - - -class CashFlowStatement(UncheckedBaseModel): - """ - # The CashFlowStatement Object - ### Description - The `CashFlowStatement` object shows operating activities, investing activities, and financing activities over a period of time (month, quarter, or year). - - ### Usage Example - Fetch from the `LIST CashFlowStatements` endpoint and view a company's cash flow statements. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The cash flow statement's name. - """ - - currency: typing.Optional[CashFlowStatementCurrency] = pydantic.Field(default=None) - """ - The cash flow statement's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - company: typing.Optional[CashFlowStatementCompany] = pydantic.Field(default=None) - """ - The company the cash flow statement belongs to. - """ - - start_period: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The cash flow statement's start period. - """ - - end_period: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The cash flow statement's end period. - """ - - cash_at_beginning_of_period: typing.Optional[float] = pydantic.Field(default=None) - """ - Cash and cash equivalents at the beginning of the cash flow statement's period. - """ - - cash_at_end_of_period: typing.Optional[float] = pydantic.Field(default=None) - """ - Cash and cash equivalents at the beginning of the cash flow statement's period. - """ - - operating_activities: typing.Optional[typing.List[ReportItem]] = None - investing_activities: typing.Optional[typing.List[ReportItem]] = None - financing_activities: typing.Optional[typing.List[ReportItem]] = None - remote_generated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time that cash flow statement was generated by the accounting system. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/cash_flow_statement_company.py b/src/merge/resources/accounting/types/cash_flow_statement_company.py deleted file mode 100644 index 43b1fd82..00000000 --- a/src/merge/resources/accounting/types/cash_flow_statement_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -CashFlowStatementCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/cash_flow_statement_currency.py b/src/merge/resources/accounting/types/cash_flow_statement_currency.py deleted file mode 100644 index 09c651f9..00000000 --- a/src/merge/resources/accounting/types/cash_flow_statement_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -CashFlowStatementCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/categories_enum.py b/src/merge/resources/accounting/types/categories_enum.py deleted file mode 100644 index 3f2dc5a9..00000000 --- a/src/merge/resources/accounting/types/categories_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoriesEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoriesEnum.HRIS: - return hris() - if self is CategoriesEnum.ATS: - return ats() - if self is CategoriesEnum.ACCOUNTING: - return accounting() - if self is CategoriesEnum.TICKETING: - return ticketing() - if self is CategoriesEnum.CRM: - return crm() - if self is CategoriesEnum.MKTG: - return mktg() - if self is CategoriesEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/accounting/types/category_enum.py b/src/merge/resources/accounting/types/category_enum.py deleted file mode 100644 index d37e48f5..00000000 --- a/src/merge/resources/accounting/types/category_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoryEnum.HRIS: - return hris() - if self is CategoryEnum.ATS: - return ats() - if self is CategoryEnum.ACCOUNTING: - return accounting() - if self is CategoryEnum.TICKETING: - return ticketing() - if self is CategoryEnum.CRM: - return crm() - if self is CategoryEnum.MKTG: - return mktg() - if self is CategoryEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/accounting/types/category_type_enum.py b/src/merge/resources/accounting/types/category_type_enum.py deleted file mode 100644 index 3f03c333..00000000 --- a/src/merge/resources/accounting/types/category_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryTypeEnum(str, enum.Enum): - """ - * `CLASS` - CLASS - * `DEPARTMENT` - DEPARTMENT - """ - - CLASS = "CLASS" - DEPARTMENT = "DEPARTMENT" - - def visit(self, class_: typing.Callable[[], T_Result], department: typing.Callable[[], T_Result]) -> T_Result: - if self is CategoryTypeEnum.CLASS: - return class_() - if self is CategoryTypeEnum.DEPARTMENT: - return department() diff --git a/src/merge/resources/accounting/types/classification_enum.py b/src/merge/resources/accounting/types/classification_enum.py deleted file mode 100644 index 3f2ed1f6..00000000 --- a/src/merge/resources/accounting/types/classification_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ClassificationEnum(str, enum.Enum): - """ - * `ASSET` - ASSET - * `EQUITY` - EQUITY - * `EXPENSE` - EXPENSE - * `LIABILITY` - LIABILITY - * `REVENUE` - REVENUE - """ - - ASSET = "ASSET" - EQUITY = "EQUITY" - EXPENSE = "EXPENSE" - LIABILITY = "LIABILITY" - REVENUE = "REVENUE" - - def visit( - self, - asset: typing.Callable[[], T_Result], - equity: typing.Callable[[], T_Result], - expense: typing.Callable[[], T_Result], - liability: typing.Callable[[], T_Result], - revenue: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ClassificationEnum.ASSET: - return asset() - if self is ClassificationEnum.EQUITY: - return equity() - if self is ClassificationEnum.EXPENSE: - return expense() - if self is ClassificationEnum.LIABILITY: - return liability() - if self is ClassificationEnum.REVENUE: - return revenue() diff --git a/src/merge/resources/accounting/types/common_model_scope_api.py b/src/merge/resources/accounting/types/common_model_scope_api.py deleted file mode 100644 index 5484808d..00000000 --- a/src/merge/resources/accounting/types/common_model_scope_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - - -class CommonModelScopeApi(UncheckedBaseModel): - common_models: typing.List[IndividualCommonModelScopeDeserializer] = pydantic.Field() - """ - The common models you want to update the scopes for - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/common_model_scopes_body_request.py b/src/merge/resources/accounting/types/common_model_scopes_body_request.py deleted file mode 100644 index a9fed25b..00000000 --- a/src/merge/resources/accounting/types/common_model_scopes_body_request.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .enabled_actions_enum import EnabledActionsEnum - - -class CommonModelScopesBodyRequest(UncheckedBaseModel): - model_id: str - enabled_actions: typing.List[EnabledActionsEnum] - disabled_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/company_info.py b/src/merge/resources/accounting/types/company_info.py deleted file mode 100644 index 1f8a46ef..00000000 --- a/src/merge/resources/accounting/types/company_info.py +++ /dev/null @@ -1,405 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_phone_number import AccountingPhoneNumber -from .address import Address -from .company_info_currency import CompanyInfoCurrency -from .remote_data import RemoteData - - -class CompanyInfo(UncheckedBaseModel): - """ - # The CompanyInfo Object - ### Description - The `CompanyInfo` object contains information about the company of the linked account. If the company has multiple entities (also known as subsidiaries), each entity may show up as a single `CompanyInfo` record. - - ### Usage Example - Fetch from the `GET CompanyInfo` endpoint and view a company's information. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The company's name. - """ - - legal_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The company's legal name. - """ - - tax_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The company's tax number. - """ - - fiscal_year_end_month: typing.Optional[int] = pydantic.Field(default=None) - """ - The company's fiscal year end month. - """ - - fiscal_year_end_day: typing.Optional[int] = pydantic.Field(default=None) - """ - The company's fiscal year end day. - """ - - currency: typing.Optional[CompanyInfoCurrency] = pydantic.Field(default=None) - """ - The currency set in the company's accounting platform. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's company was created. - """ - - urls: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The company's urls. - """ - - addresses: typing.Optional[typing.List[Address]] = None - phone_numbers: typing.Optional[typing.List[AccountingPhoneNumber]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/company_info_currency.py b/src/merge/resources/accounting/types/company_info_currency.py deleted file mode 100644 index 52874769..00000000 --- a/src/merge/resources/accounting/types/company_info_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -CompanyInfoCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/component_type_enum.py b/src/merge/resources/accounting/types/component_type_enum.py deleted file mode 100644 index 41b616c0..00000000 --- a/src/merge/resources/accounting/types/component_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ComponentTypeEnum(str, enum.Enum): - """ - * `SALES` - SALES - * `PURCHASE` - PURCHASE - """ - - SALES = "SALES" - PURCHASE = "PURCHASE" - - def visit(self, sales: typing.Callable[[], T_Result], purchase: typing.Callable[[], T_Result]) -> T_Result: - if self is ComponentTypeEnum.SALES: - return sales() - if self is ComponentTypeEnum.PURCHASE: - return purchase() diff --git a/src/merge/resources/accounting/types/contact.py b/src/merge/resources/accounting/types/contact.py deleted file mode 100644 index f036ebc6..00000000 --- a/src/merge/resources/accounting/types/contact.py +++ /dev/null @@ -1,118 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_phone_number import AccountingPhoneNumber -from .contact_addresses_item import ContactAddressesItem -from .contact_status import ContactStatus -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Contact(UncheckedBaseModel): - """ - # The Contact Object - ### Description - A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. - * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. - * A `Contact` is a customer if the `is_customer` property is true. - - ### Usage Example - Fetch from the `LIST Contacts` endpoint and view a company's contacts. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's name. - """ - - is_supplier: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the contact is a supplier. - """ - - is_customer: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the contact is a customer. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's email address. - """ - - tax_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's tax number. - """ - - status: typing.Optional[ContactStatus] = pydantic.Field(default=None) - """ - The contact's status - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - currency: typing.Optional[str] = pydantic.Field(default=None) - """ - The currency the contact's transactions are in. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's contact was updated. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the contact belongs to. - """ - - addresses: typing.Optional[typing.List[typing.Optional[ContactAddressesItem]]] = pydantic.Field(default=None) - """ - `Address` object IDs for the given `Contacts` object. - """ - - phone_numbers: typing.Optional[typing.List[AccountingPhoneNumber]] = pydantic.Field(default=None) - """ - `AccountingPhoneNumber` object for the given `Contacts` object. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/contact_addresses_item.py b/src/merge/resources/accounting/types/contact_addresses_item.py deleted file mode 100644 index 9c305f5f..00000000 --- a/src/merge/resources/accounting/types/contact_addresses_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address import Address - -ContactAddressesItem = typing.Union[str, Address] diff --git a/src/merge/resources/accounting/types/contact_request.py b/src/merge/resources/accounting/types/contact_request.py deleted file mode 100644 index e324842c..00000000 --- a/src/merge/resources/accounting/types/contact_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_phone_number_request import AccountingPhoneNumberRequest -from .contact_request_addresses_item import ContactRequestAddressesItem -from .contact_request_status import ContactRequestStatus -from .remote_field_request import RemoteFieldRequest - - -class ContactRequest(UncheckedBaseModel): - """ - # The Contact Object - ### Description - A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. - * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. - * A `Contact` is a customer if the `is_customer` property is true. - - ### Usage Example - Fetch from the `LIST Contacts` endpoint and view a company's contacts. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's name. - """ - - is_supplier: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the contact is a supplier. - """ - - is_customer: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the contact is a customer. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's email address. - """ - - tax_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's tax number. - """ - - status: typing.Optional[ContactRequestStatus] = pydantic.Field(default=None) - """ - The contact's status - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - currency: typing.Optional[str] = pydantic.Field(default=None) - """ - The currency the contact's transactions are in. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the contact belongs to. - """ - - addresses: typing.Optional[typing.List[typing.Optional[ContactRequestAddressesItem]]] = pydantic.Field(default=None) - """ - `Address` object IDs for the given `Contacts` object. - """ - - phone_numbers: typing.Optional[typing.List[AccountingPhoneNumberRequest]] = pydantic.Field(default=None) - """ - `AccountingPhoneNumber` object for the given `Contacts` object. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/contact_request_addresses_item.py b/src/merge/resources/accounting/types/contact_request_addresses_item.py deleted file mode 100644 index e6ea9c20..00000000 --- a/src/merge/resources/accounting/types/contact_request_addresses_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address import Address - -ContactRequestAddressesItem = typing.Union[str, Address] diff --git a/src/merge/resources/accounting/types/contact_request_status.py b/src/merge/resources/accounting/types/contact_request_status.py deleted file mode 100644 index b12e4d58..00000000 --- a/src/merge/resources/accounting/types/contact_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_7_d_1_enum import Status7D1Enum - -ContactRequestStatus = typing.Union[Status7D1Enum, str] diff --git a/src/merge/resources/accounting/types/contact_response.py b/src/merge/resources/accounting/types/contact_response.py deleted file mode 100644 index a78621a5..00000000 --- a/src/merge/resources/accounting/types/contact_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact import Contact -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class ContactResponse(UncheckedBaseModel): - model: Contact - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/contact_status.py b/src/merge/resources/accounting/types/contact_status.py deleted file mode 100644 index fc5b2d28..00000000 --- a/src/merge/resources/accounting/types/contact_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_7_d_1_enum import Status7D1Enum - -ContactStatus = typing.Union[Status7D1Enum, str] diff --git a/src/merge/resources/accounting/types/country_enum.py b/src/merge/resources/accounting/types/country_enum.py deleted file mode 100644 index a631e320..00000000 --- a/src/merge/resources/accounting/types/country_enum.py +++ /dev/null @@ -1,1261 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CountryEnum(str, enum.Enum): - """ - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - AF = "AF" - AX = "AX" - AL = "AL" - DZ = "DZ" - AS = "AS" - AD = "AD" - AO = "AO" - AI = "AI" - AQ = "AQ" - AG = "AG" - AR = "AR" - AM = "AM" - AW = "AW" - AU = "AU" - AT = "AT" - AZ = "AZ" - BS = "BS" - BH = "BH" - BD = "BD" - BB = "BB" - BY = "BY" - BE = "BE" - BZ = "BZ" - BJ = "BJ" - BM = "BM" - BT = "BT" - BO = "BO" - BQ = "BQ" - BA = "BA" - BW = "BW" - BV = "BV" - BR = "BR" - IO = "IO" - BN = "BN" - BG = "BG" - BF = "BF" - BI = "BI" - CV = "CV" - KH = "KH" - CM = "CM" - CA = "CA" - KY = "KY" - CF = "CF" - TD = "TD" - CL = "CL" - CN = "CN" - CX = "CX" - CC = "CC" - CO = "CO" - KM = "KM" - CG = "CG" - CD = "CD" - CK = "CK" - CR = "CR" - CI = "CI" - HR = "HR" - CU = "CU" - CW = "CW" - CY = "CY" - CZ = "CZ" - DK = "DK" - DJ = "DJ" - DM = "DM" - DO = "DO" - EC = "EC" - EG = "EG" - SV = "SV" - GQ = "GQ" - ER = "ER" - EE = "EE" - SZ = "SZ" - ET = "ET" - FK = "FK" - FO = "FO" - FJ = "FJ" - FI = "FI" - FR = "FR" - GF = "GF" - PF = "PF" - TF = "TF" - GA = "GA" - GM = "GM" - GE = "GE" - DE = "DE" - GH = "GH" - GI = "GI" - GR = "GR" - GL = "GL" - GD = "GD" - GP = "GP" - GU = "GU" - GT = "GT" - GG = "GG" - GN = "GN" - GW = "GW" - GY = "GY" - HT = "HT" - HM = "HM" - VA = "VA" - HN = "HN" - HK = "HK" - HU = "HU" - IS = "IS" - IN = "IN" - ID = "ID" - IR = "IR" - IQ = "IQ" - IE = "IE" - IM = "IM" - IL = "IL" - IT = "IT" - JM = "JM" - JP = "JP" - JE = "JE" - JO = "JO" - KZ = "KZ" - KE = "KE" - KI = "KI" - KW = "KW" - KG = "KG" - LA = "LA" - LV = "LV" - LB = "LB" - LS = "LS" - LR = "LR" - LY = "LY" - LI = "LI" - LT = "LT" - LU = "LU" - MO = "MO" - MG = "MG" - MW = "MW" - MY = "MY" - MV = "MV" - ML = "ML" - MT = "MT" - MH = "MH" - MQ = "MQ" - MR = "MR" - MU = "MU" - YT = "YT" - MX = "MX" - FM = "FM" - MD = "MD" - MC = "MC" - MN = "MN" - ME = "ME" - MS = "MS" - MA = "MA" - MZ = "MZ" - MM = "MM" - NA = "NA" - NR = "NR" - NP = "NP" - NL = "NL" - NC = "NC" - NZ = "NZ" - NI = "NI" - NE = "NE" - NG = "NG" - NU = "NU" - NF = "NF" - KP = "KP" - MK = "MK" - MP = "MP" - NO = "NO" - OM = "OM" - PK = "PK" - PW = "PW" - PS = "PS" - PA = "PA" - PG = "PG" - PY = "PY" - PE = "PE" - PH = "PH" - PN = "PN" - PL = "PL" - PT = "PT" - PR = "PR" - QA = "QA" - RE = "RE" - RO = "RO" - RU = "RU" - RW = "RW" - BL = "BL" - SH = "SH" - KN = "KN" - LC = "LC" - MF = "MF" - PM = "PM" - VC = "VC" - WS = "WS" - SM = "SM" - ST = "ST" - SA = "SA" - SN = "SN" - RS = "RS" - SC = "SC" - SL = "SL" - SG = "SG" - SX = "SX" - SK = "SK" - SI = "SI" - SB = "SB" - SO = "SO" - ZA = "ZA" - GS = "GS" - KR = "KR" - SS = "SS" - ES = "ES" - LK = "LK" - SD = "SD" - SR = "SR" - SJ = "SJ" - SE = "SE" - CH = "CH" - SY = "SY" - TW = "TW" - TJ = "TJ" - TZ = "TZ" - TH = "TH" - TL = "TL" - TG = "TG" - TK = "TK" - TO = "TO" - TT = "TT" - TN = "TN" - TR = "TR" - TM = "TM" - TC = "TC" - TV = "TV" - UG = "UG" - UA = "UA" - AE = "AE" - GB = "GB" - UM = "UM" - US = "US" - UY = "UY" - UZ = "UZ" - VU = "VU" - VE = "VE" - VN = "VN" - VG = "VG" - VI = "VI" - WF = "WF" - EH = "EH" - YE = "YE" - ZM = "ZM" - ZW = "ZW" - - def visit( - self, - af: typing.Callable[[], T_Result], - ax: typing.Callable[[], T_Result], - al: typing.Callable[[], T_Result], - dz: typing.Callable[[], T_Result], - as_: typing.Callable[[], T_Result], - ad: typing.Callable[[], T_Result], - ao: typing.Callable[[], T_Result], - ai: typing.Callable[[], T_Result], - aq: typing.Callable[[], T_Result], - ag: typing.Callable[[], T_Result], - ar: typing.Callable[[], T_Result], - am: typing.Callable[[], T_Result], - aw: typing.Callable[[], T_Result], - au: typing.Callable[[], T_Result], - at: typing.Callable[[], T_Result], - az: typing.Callable[[], T_Result], - bs: typing.Callable[[], T_Result], - bh: typing.Callable[[], T_Result], - bd: typing.Callable[[], T_Result], - bb: typing.Callable[[], T_Result], - by: typing.Callable[[], T_Result], - be: typing.Callable[[], T_Result], - bz: typing.Callable[[], T_Result], - bj: typing.Callable[[], T_Result], - bm: typing.Callable[[], T_Result], - bt: typing.Callable[[], T_Result], - bo: typing.Callable[[], T_Result], - bq: typing.Callable[[], T_Result], - ba: typing.Callable[[], T_Result], - bw: typing.Callable[[], T_Result], - bv: typing.Callable[[], T_Result], - br: typing.Callable[[], T_Result], - io: typing.Callable[[], T_Result], - bn: typing.Callable[[], T_Result], - bg: typing.Callable[[], T_Result], - bf: typing.Callable[[], T_Result], - bi: typing.Callable[[], T_Result], - cv: typing.Callable[[], T_Result], - kh: typing.Callable[[], T_Result], - cm: typing.Callable[[], T_Result], - ca: typing.Callable[[], T_Result], - ky: typing.Callable[[], T_Result], - cf: typing.Callable[[], T_Result], - td: typing.Callable[[], T_Result], - cl: typing.Callable[[], T_Result], - cn: typing.Callable[[], T_Result], - cx: typing.Callable[[], T_Result], - cc: typing.Callable[[], T_Result], - co: typing.Callable[[], T_Result], - km: typing.Callable[[], T_Result], - cg: typing.Callable[[], T_Result], - cd: typing.Callable[[], T_Result], - ck: typing.Callable[[], T_Result], - cr: typing.Callable[[], T_Result], - ci: typing.Callable[[], T_Result], - hr: typing.Callable[[], T_Result], - cu: typing.Callable[[], T_Result], - cw: typing.Callable[[], T_Result], - cy: typing.Callable[[], T_Result], - cz: typing.Callable[[], T_Result], - dk: typing.Callable[[], T_Result], - dj: typing.Callable[[], T_Result], - dm: typing.Callable[[], T_Result], - do: typing.Callable[[], T_Result], - ec: typing.Callable[[], T_Result], - eg: typing.Callable[[], T_Result], - sv: typing.Callable[[], T_Result], - gq: typing.Callable[[], T_Result], - er: typing.Callable[[], T_Result], - ee: typing.Callable[[], T_Result], - sz: typing.Callable[[], T_Result], - et: typing.Callable[[], T_Result], - fk: typing.Callable[[], T_Result], - fo: typing.Callable[[], T_Result], - fj: typing.Callable[[], T_Result], - fi: typing.Callable[[], T_Result], - fr: typing.Callable[[], T_Result], - gf: typing.Callable[[], T_Result], - pf: typing.Callable[[], T_Result], - tf: typing.Callable[[], T_Result], - ga: typing.Callable[[], T_Result], - gm: typing.Callable[[], T_Result], - ge: typing.Callable[[], T_Result], - de: typing.Callable[[], T_Result], - gh: typing.Callable[[], T_Result], - gi: typing.Callable[[], T_Result], - gr: typing.Callable[[], T_Result], - gl: typing.Callable[[], T_Result], - gd: typing.Callable[[], T_Result], - gp: typing.Callable[[], T_Result], - gu: typing.Callable[[], T_Result], - gt: typing.Callable[[], T_Result], - gg: typing.Callable[[], T_Result], - gn: typing.Callable[[], T_Result], - gw: typing.Callable[[], T_Result], - gy: typing.Callable[[], T_Result], - ht: typing.Callable[[], T_Result], - hm: typing.Callable[[], T_Result], - va: typing.Callable[[], T_Result], - hn: typing.Callable[[], T_Result], - hk: typing.Callable[[], T_Result], - hu: typing.Callable[[], T_Result], - is_: typing.Callable[[], T_Result], - in_: typing.Callable[[], T_Result], - id: typing.Callable[[], T_Result], - ir: typing.Callable[[], T_Result], - iq: typing.Callable[[], T_Result], - ie: typing.Callable[[], T_Result], - im: typing.Callable[[], T_Result], - il: typing.Callable[[], T_Result], - it: typing.Callable[[], T_Result], - jm: typing.Callable[[], T_Result], - jp: typing.Callable[[], T_Result], - je: typing.Callable[[], T_Result], - jo: typing.Callable[[], T_Result], - kz: typing.Callable[[], T_Result], - ke: typing.Callable[[], T_Result], - ki: typing.Callable[[], T_Result], - kw: typing.Callable[[], T_Result], - kg: typing.Callable[[], T_Result], - la: typing.Callable[[], T_Result], - lv: typing.Callable[[], T_Result], - lb: typing.Callable[[], T_Result], - ls: typing.Callable[[], T_Result], - lr: typing.Callable[[], T_Result], - ly: typing.Callable[[], T_Result], - li: typing.Callable[[], T_Result], - lt: typing.Callable[[], T_Result], - lu: typing.Callable[[], T_Result], - mo: typing.Callable[[], T_Result], - mg: typing.Callable[[], T_Result], - mw: typing.Callable[[], T_Result], - my: typing.Callable[[], T_Result], - mv: typing.Callable[[], T_Result], - ml: typing.Callable[[], T_Result], - mt: typing.Callable[[], T_Result], - mh: typing.Callable[[], T_Result], - mq: typing.Callable[[], T_Result], - mr: typing.Callable[[], T_Result], - mu: typing.Callable[[], T_Result], - yt: typing.Callable[[], T_Result], - mx: typing.Callable[[], T_Result], - fm: typing.Callable[[], T_Result], - md: typing.Callable[[], T_Result], - mc: typing.Callable[[], T_Result], - mn: typing.Callable[[], T_Result], - me: typing.Callable[[], T_Result], - ms: typing.Callable[[], T_Result], - ma: typing.Callable[[], T_Result], - mz: typing.Callable[[], T_Result], - mm: typing.Callable[[], T_Result], - na: typing.Callable[[], T_Result], - nr: typing.Callable[[], T_Result], - np: typing.Callable[[], T_Result], - nl: typing.Callable[[], T_Result], - nc: typing.Callable[[], T_Result], - nz: typing.Callable[[], T_Result], - ni: typing.Callable[[], T_Result], - ne: typing.Callable[[], T_Result], - ng: typing.Callable[[], T_Result], - nu: typing.Callable[[], T_Result], - nf: typing.Callable[[], T_Result], - kp: typing.Callable[[], T_Result], - mk: typing.Callable[[], T_Result], - mp: typing.Callable[[], T_Result], - no: typing.Callable[[], T_Result], - om: typing.Callable[[], T_Result], - pk: typing.Callable[[], T_Result], - pw: typing.Callable[[], T_Result], - ps: typing.Callable[[], T_Result], - pa: typing.Callable[[], T_Result], - pg: typing.Callable[[], T_Result], - py: typing.Callable[[], T_Result], - pe: typing.Callable[[], T_Result], - ph: typing.Callable[[], T_Result], - pn: typing.Callable[[], T_Result], - pl: typing.Callable[[], T_Result], - pt: typing.Callable[[], T_Result], - pr: typing.Callable[[], T_Result], - qa: typing.Callable[[], T_Result], - re: typing.Callable[[], T_Result], - ro: typing.Callable[[], T_Result], - ru: typing.Callable[[], T_Result], - rw: typing.Callable[[], T_Result], - bl: typing.Callable[[], T_Result], - sh: typing.Callable[[], T_Result], - kn: typing.Callable[[], T_Result], - lc: typing.Callable[[], T_Result], - mf: typing.Callable[[], T_Result], - pm: typing.Callable[[], T_Result], - vc: typing.Callable[[], T_Result], - ws: typing.Callable[[], T_Result], - sm: typing.Callable[[], T_Result], - st: typing.Callable[[], T_Result], - sa: typing.Callable[[], T_Result], - sn: typing.Callable[[], T_Result], - rs: typing.Callable[[], T_Result], - sc: typing.Callable[[], T_Result], - sl: typing.Callable[[], T_Result], - sg: typing.Callable[[], T_Result], - sx: typing.Callable[[], T_Result], - sk: typing.Callable[[], T_Result], - si: typing.Callable[[], T_Result], - sb: typing.Callable[[], T_Result], - so: typing.Callable[[], T_Result], - za: typing.Callable[[], T_Result], - gs: typing.Callable[[], T_Result], - kr: typing.Callable[[], T_Result], - ss: typing.Callable[[], T_Result], - es: typing.Callable[[], T_Result], - lk: typing.Callable[[], T_Result], - sd: typing.Callable[[], T_Result], - sr: typing.Callable[[], T_Result], - sj: typing.Callable[[], T_Result], - se: typing.Callable[[], T_Result], - ch: typing.Callable[[], T_Result], - sy: typing.Callable[[], T_Result], - tw: typing.Callable[[], T_Result], - tj: typing.Callable[[], T_Result], - tz: typing.Callable[[], T_Result], - th: typing.Callable[[], T_Result], - tl: typing.Callable[[], T_Result], - tg: typing.Callable[[], T_Result], - tk: typing.Callable[[], T_Result], - to: typing.Callable[[], T_Result], - tt: typing.Callable[[], T_Result], - tn: typing.Callable[[], T_Result], - tr: typing.Callable[[], T_Result], - tm: typing.Callable[[], T_Result], - tc: typing.Callable[[], T_Result], - tv: typing.Callable[[], T_Result], - ug: typing.Callable[[], T_Result], - ua: typing.Callable[[], T_Result], - ae: typing.Callable[[], T_Result], - gb: typing.Callable[[], T_Result], - um: typing.Callable[[], T_Result], - us: typing.Callable[[], T_Result], - uy: typing.Callable[[], T_Result], - uz: typing.Callable[[], T_Result], - vu: typing.Callable[[], T_Result], - ve: typing.Callable[[], T_Result], - vn: typing.Callable[[], T_Result], - vg: typing.Callable[[], T_Result], - vi: typing.Callable[[], T_Result], - wf: typing.Callable[[], T_Result], - eh: typing.Callable[[], T_Result], - ye: typing.Callable[[], T_Result], - zm: typing.Callable[[], T_Result], - zw: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CountryEnum.AF: - return af() - if self is CountryEnum.AX: - return ax() - if self is CountryEnum.AL: - return al() - if self is CountryEnum.DZ: - return dz() - if self is CountryEnum.AS: - return as_() - if self is CountryEnum.AD: - return ad() - if self is CountryEnum.AO: - return ao() - if self is CountryEnum.AI: - return ai() - if self is CountryEnum.AQ: - return aq() - if self is CountryEnum.AG: - return ag() - if self is CountryEnum.AR: - return ar() - if self is CountryEnum.AM: - return am() - if self is CountryEnum.AW: - return aw() - if self is CountryEnum.AU: - return au() - if self is CountryEnum.AT: - return at() - if self is CountryEnum.AZ: - return az() - if self is CountryEnum.BS: - return bs() - if self is CountryEnum.BH: - return bh() - if self is CountryEnum.BD: - return bd() - if self is CountryEnum.BB: - return bb() - if self is CountryEnum.BY: - return by() - if self is CountryEnum.BE: - return be() - if self is CountryEnum.BZ: - return bz() - if self is CountryEnum.BJ: - return bj() - if self is CountryEnum.BM: - return bm() - if self is CountryEnum.BT: - return bt() - if self is CountryEnum.BO: - return bo() - if self is CountryEnum.BQ: - return bq() - if self is CountryEnum.BA: - return ba() - if self is CountryEnum.BW: - return bw() - if self is CountryEnum.BV: - return bv() - if self is CountryEnum.BR: - return br() - if self is CountryEnum.IO: - return io() - if self is CountryEnum.BN: - return bn() - if self is CountryEnum.BG: - return bg() - if self is CountryEnum.BF: - return bf() - if self is CountryEnum.BI: - return bi() - if self is CountryEnum.CV: - return cv() - if self is CountryEnum.KH: - return kh() - if self is CountryEnum.CM: - return cm() - if self is CountryEnum.CA: - return ca() - if self is CountryEnum.KY: - return ky() - if self is CountryEnum.CF: - return cf() - if self is CountryEnum.TD: - return td() - if self is CountryEnum.CL: - return cl() - if self is CountryEnum.CN: - return cn() - if self is CountryEnum.CX: - return cx() - if self is CountryEnum.CC: - return cc() - if self is CountryEnum.CO: - return co() - if self is CountryEnum.KM: - return km() - if self is CountryEnum.CG: - return cg() - if self is CountryEnum.CD: - return cd() - if self is CountryEnum.CK: - return ck() - if self is CountryEnum.CR: - return cr() - if self is CountryEnum.CI: - return ci() - if self is CountryEnum.HR: - return hr() - if self is CountryEnum.CU: - return cu() - if self is CountryEnum.CW: - return cw() - if self is CountryEnum.CY: - return cy() - if self is CountryEnum.CZ: - return cz() - if self is CountryEnum.DK: - return dk() - if self is CountryEnum.DJ: - return dj() - if self is CountryEnum.DM: - return dm() - if self is CountryEnum.DO: - return do() - if self is CountryEnum.EC: - return ec() - if self is CountryEnum.EG: - return eg() - if self is CountryEnum.SV: - return sv() - if self is CountryEnum.GQ: - return gq() - if self is CountryEnum.ER: - return er() - if self is CountryEnum.EE: - return ee() - if self is CountryEnum.SZ: - return sz() - if self is CountryEnum.ET: - return et() - if self is CountryEnum.FK: - return fk() - if self is CountryEnum.FO: - return fo() - if self is CountryEnum.FJ: - return fj() - if self is CountryEnum.FI: - return fi() - if self is CountryEnum.FR: - return fr() - if self is CountryEnum.GF: - return gf() - if self is CountryEnum.PF: - return pf() - if self is CountryEnum.TF: - return tf() - if self is CountryEnum.GA: - return ga() - if self is CountryEnum.GM: - return gm() - if self is CountryEnum.GE: - return ge() - if self is CountryEnum.DE: - return de() - if self is CountryEnum.GH: - return gh() - if self is CountryEnum.GI: - return gi() - if self is CountryEnum.GR: - return gr() - if self is CountryEnum.GL: - return gl() - if self is CountryEnum.GD: - return gd() - if self is CountryEnum.GP: - return gp() - if self is CountryEnum.GU: - return gu() - if self is CountryEnum.GT: - return gt() - if self is CountryEnum.GG: - return gg() - if self is CountryEnum.GN: - return gn() - if self is CountryEnum.GW: - return gw() - if self is CountryEnum.GY: - return gy() - if self is CountryEnum.HT: - return ht() - if self is CountryEnum.HM: - return hm() - if self is CountryEnum.VA: - return va() - if self is CountryEnum.HN: - return hn() - if self is CountryEnum.HK: - return hk() - if self is CountryEnum.HU: - return hu() - if self is CountryEnum.IS: - return is_() - if self is CountryEnum.IN: - return in_() - if self is CountryEnum.ID: - return id() - if self is CountryEnum.IR: - return ir() - if self is CountryEnum.IQ: - return iq() - if self is CountryEnum.IE: - return ie() - if self is CountryEnum.IM: - return im() - if self is CountryEnum.IL: - return il() - if self is CountryEnum.IT: - return it() - if self is CountryEnum.JM: - return jm() - if self is CountryEnum.JP: - return jp() - if self is CountryEnum.JE: - return je() - if self is CountryEnum.JO: - return jo() - if self is CountryEnum.KZ: - return kz() - if self is CountryEnum.KE: - return ke() - if self is CountryEnum.KI: - return ki() - if self is CountryEnum.KW: - return kw() - if self is CountryEnum.KG: - return kg() - if self is CountryEnum.LA: - return la() - if self is CountryEnum.LV: - return lv() - if self is CountryEnum.LB: - return lb() - if self is CountryEnum.LS: - return ls() - if self is CountryEnum.LR: - return lr() - if self is CountryEnum.LY: - return ly() - if self is CountryEnum.LI: - return li() - if self is CountryEnum.LT: - return lt() - if self is CountryEnum.LU: - return lu() - if self is CountryEnum.MO: - return mo() - if self is CountryEnum.MG: - return mg() - if self is CountryEnum.MW: - return mw() - if self is CountryEnum.MY: - return my() - if self is CountryEnum.MV: - return mv() - if self is CountryEnum.ML: - return ml() - if self is CountryEnum.MT: - return mt() - if self is CountryEnum.MH: - return mh() - if self is CountryEnum.MQ: - return mq() - if self is CountryEnum.MR: - return mr() - if self is CountryEnum.MU: - return mu() - if self is CountryEnum.YT: - return yt() - if self is CountryEnum.MX: - return mx() - if self is CountryEnum.FM: - return fm() - if self is CountryEnum.MD: - return md() - if self is CountryEnum.MC: - return mc() - if self is CountryEnum.MN: - return mn() - if self is CountryEnum.ME: - return me() - if self is CountryEnum.MS: - return ms() - if self is CountryEnum.MA: - return ma() - if self is CountryEnum.MZ: - return mz() - if self is CountryEnum.MM: - return mm() - if self is CountryEnum.NA: - return na() - if self is CountryEnum.NR: - return nr() - if self is CountryEnum.NP: - return np() - if self is CountryEnum.NL: - return nl() - if self is CountryEnum.NC: - return nc() - if self is CountryEnum.NZ: - return nz() - if self is CountryEnum.NI: - return ni() - if self is CountryEnum.NE: - return ne() - if self is CountryEnum.NG: - return ng() - if self is CountryEnum.NU: - return nu() - if self is CountryEnum.NF: - return nf() - if self is CountryEnum.KP: - return kp() - if self is CountryEnum.MK: - return mk() - if self is CountryEnum.MP: - return mp() - if self is CountryEnum.NO: - return no() - if self is CountryEnum.OM: - return om() - if self is CountryEnum.PK: - return pk() - if self is CountryEnum.PW: - return pw() - if self is CountryEnum.PS: - return ps() - if self is CountryEnum.PA: - return pa() - if self is CountryEnum.PG: - return pg() - if self is CountryEnum.PY: - return py() - if self is CountryEnum.PE: - return pe() - if self is CountryEnum.PH: - return ph() - if self is CountryEnum.PN: - return pn() - if self is CountryEnum.PL: - return pl() - if self is CountryEnum.PT: - return pt() - if self is CountryEnum.PR: - return pr() - if self is CountryEnum.QA: - return qa() - if self is CountryEnum.RE: - return re() - if self is CountryEnum.RO: - return ro() - if self is CountryEnum.RU: - return ru() - if self is CountryEnum.RW: - return rw() - if self is CountryEnum.BL: - return bl() - if self is CountryEnum.SH: - return sh() - if self is CountryEnum.KN: - return kn() - if self is CountryEnum.LC: - return lc() - if self is CountryEnum.MF: - return mf() - if self is CountryEnum.PM: - return pm() - if self is CountryEnum.VC: - return vc() - if self is CountryEnum.WS: - return ws() - if self is CountryEnum.SM: - return sm() - if self is CountryEnum.ST: - return st() - if self is CountryEnum.SA: - return sa() - if self is CountryEnum.SN: - return sn() - if self is CountryEnum.RS: - return rs() - if self is CountryEnum.SC: - return sc() - if self is CountryEnum.SL: - return sl() - if self is CountryEnum.SG: - return sg() - if self is CountryEnum.SX: - return sx() - if self is CountryEnum.SK: - return sk() - if self is CountryEnum.SI: - return si() - if self is CountryEnum.SB: - return sb() - if self is CountryEnum.SO: - return so() - if self is CountryEnum.ZA: - return za() - if self is CountryEnum.GS: - return gs() - if self is CountryEnum.KR: - return kr() - if self is CountryEnum.SS: - return ss() - if self is CountryEnum.ES: - return es() - if self is CountryEnum.LK: - return lk() - if self is CountryEnum.SD: - return sd() - if self is CountryEnum.SR: - return sr() - if self is CountryEnum.SJ: - return sj() - if self is CountryEnum.SE: - return se() - if self is CountryEnum.CH: - return ch() - if self is CountryEnum.SY: - return sy() - if self is CountryEnum.TW: - return tw() - if self is CountryEnum.TJ: - return tj() - if self is CountryEnum.TZ: - return tz() - if self is CountryEnum.TH: - return th() - if self is CountryEnum.TL: - return tl() - if self is CountryEnum.TG: - return tg() - if self is CountryEnum.TK: - return tk() - if self is CountryEnum.TO: - return to() - if self is CountryEnum.TT: - return tt() - if self is CountryEnum.TN: - return tn() - if self is CountryEnum.TR: - return tr() - if self is CountryEnum.TM: - return tm() - if self is CountryEnum.TC: - return tc() - if self is CountryEnum.TV: - return tv() - if self is CountryEnum.UG: - return ug() - if self is CountryEnum.UA: - return ua() - if self is CountryEnum.AE: - return ae() - if self is CountryEnum.GB: - return gb() - if self is CountryEnum.UM: - return um() - if self is CountryEnum.US: - return us() - if self is CountryEnum.UY: - return uy() - if self is CountryEnum.UZ: - return uz() - if self is CountryEnum.VU: - return vu() - if self is CountryEnum.VE: - return ve() - if self is CountryEnum.VN: - return vn() - if self is CountryEnum.VG: - return vg() - if self is CountryEnum.VI: - return vi() - if self is CountryEnum.WF: - return wf() - if self is CountryEnum.EH: - return eh() - if self is CountryEnum.YE: - return ye() - if self is CountryEnum.ZM: - return zm() - if self is CountryEnum.ZW: - return zw() diff --git a/src/merge/resources/accounting/types/credit_note.py b/src/merge/resources/accounting/types/credit_note.py deleted file mode 100644 index 58be8048..00000000 --- a/src/merge/resources/accounting/types/credit_note.py +++ /dev/null @@ -1,469 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .credit_note_accounting_period import CreditNoteAccountingPeriod -from .credit_note_applied_payments_item import CreditNoteAppliedPaymentsItem -from .credit_note_company import CreditNoteCompany -from .credit_note_contact import CreditNoteContact -from .credit_note_currency import CreditNoteCurrency -from .credit_note_line_item import CreditNoteLineItem -from .credit_note_payments_item import CreditNotePaymentsItem -from .credit_note_status import CreditNoteStatus -from .credit_note_tracking_categories_item import CreditNoteTrackingCategoriesItem -from .remote_data import RemoteData - - -class CreditNote(UncheckedBaseModel): - """ - # The CreditNote Object - ### Description - A `CreditNote` is transaction issued to a customer, indicating a reduction or cancellation of the amount owed by the customer. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a sales transaction. A `CreditNote` can be applied to *Accounts Receivable* Invoices to decrease the overall amount of the Invoice. - - ### Usage Example - Fetch from the `LIST CreditNotes` endpoint and view a company's credit notes. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The credit note's transaction date. - """ - - status: typing.Optional[CreditNoteStatus] = pydantic.Field(default=None) - """ - The credit note's status. - - * `SUBMITTED` - SUBMITTED - * `AUTHORIZED` - AUTHORIZED - * `PAID` - PAID - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note's number. - """ - - contact: typing.Optional[CreditNoteContact] = pydantic.Field(default=None) - """ - The credit note's contact. - """ - - company: typing.Optional[CreditNoteCompany] = pydantic.Field(default=None) - """ - The company the credit note belongs to. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note's exchange rate. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The credit note's total amount. - """ - - remaining_credit: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of value remaining in the credit note that the customer can use. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - line_items: typing.Optional[typing.List[CreditNoteLineItem]] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[CreditNoteTrackingCategoriesItem]]] = None - currency: typing.Optional[CreditNoteCurrency] = pydantic.Field(default=None) - """ - The credit note's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's credit note was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's credit note was updated. - """ - - payments: typing.Optional[typing.List[typing.Optional[CreditNotePaymentsItem]]] = pydantic.Field(default=None) - """ - Array of `Payment` object IDs - """ - - applied_payments: typing.Optional[typing.List[typing.Optional[CreditNoteAppliedPaymentsItem]]] = pydantic.Field( - default=None - ) - """ - A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. - """ - - accounting_period: typing.Optional[CreditNoteAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the CreditNote was generated in. - """ - - applied_to_lines: typing.Optional[typing.List["CreditNoteApplyLineForCreditNote"]] = pydantic.Field(default=None) - """ - A list of the CreditNote Applied to Lines common models related to a given Credit Note - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(CreditNote) diff --git a/src/merge/resources/accounting/types/credit_note_accounting_period.py b/src/merge/resources/accounting/types/credit_note_accounting_period.py deleted file mode 100644 index 77c885ce..00000000 --- a/src/merge/resources/accounting/types/credit_note_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -CreditNoteAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/credit_note_applied_payments_item.py b/src/merge/resources/accounting/types/credit_note_applied_payments_item.py deleted file mode 100644 index 8efbe1cb..00000000 --- a/src/merge/resources/accounting/types/credit_note_applied_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_line_item import PaymentLineItem - -CreditNoteAppliedPaymentsItem = typing.Union[str, PaymentLineItem] diff --git a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note.py b/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note.py deleted file mode 100644 index 643aa3cd..00000000 --- a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note.py +++ /dev/null @@ -1,72 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class CreditNoteApplyLineForCreditNote(UncheckedBaseModel): - """ - # The CreditNoteApplyLine Object - ### Description - The `CreditNoteApplyLine` is attached to the CreditNote model. - - ### Usage Example - Fetch from the `GET CreditNote` endpoint and view the invoice's applied to lines. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - invoice: typing.Optional["CreditNoteApplyLineForCreditNoteInvoice"] = None - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date that the credit note is applied to the invoice. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount of the Credit Note applied to the invoice. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note_invoice import CreditNoteApplyLineForCreditNoteInvoice # noqa: E402, F401, I001 - -update_forward_refs(CreditNoteApplyLineForCreditNote) diff --git a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_invoice.py b/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_invoice.py deleted file mode 100644 index 059db7a4..00000000 --- a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_invoice.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .invoice import Invoice -CreditNoteApplyLineForCreditNoteInvoice = typing.Union[str, "Invoice"] diff --git a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_request.py b/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_request.py deleted file mode 100644 index 0256e246..00000000 --- a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_request.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .credit_note_apply_line_for_credit_note_request_invoice import CreditNoteApplyLineForCreditNoteRequestInvoice - - -class CreditNoteApplyLineForCreditNoteRequest(UncheckedBaseModel): - """ - # The CreditNoteApplyLine Object - ### Description - The `CreditNoteApplyLine` is attached to the CreditNote model. - - ### Usage Example - Fetch from the `GET CreditNote` endpoint and view the invoice's applied to lines. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - invoice: typing.Optional[CreditNoteApplyLineForCreditNoteRequestInvoice] = None - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date that the credit note is applied to the invoice. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount of the Credit Note applied to the invoice. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(CreditNoteApplyLineForCreditNoteRequest) diff --git a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_request_invoice.py b/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_request_invoice.py deleted file mode 100644 index 22a89baf..00000000 --- a/src/merge/resources/accounting/types/credit_note_apply_line_for_credit_note_request_invoice.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .invoice import Invoice - -CreditNoteApplyLineForCreditNoteRequestInvoice = typing.Union[str, Invoice] diff --git a/src/merge/resources/accounting/types/credit_note_apply_line_for_invoice.py b/src/merge/resources/accounting/types/credit_note_apply_line_for_invoice.py deleted file mode 100644 index f56415f9..00000000 --- a/src/merge/resources/accounting/types/credit_note_apply_line_for_invoice.py +++ /dev/null @@ -1,72 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class CreditNoteApplyLineForInvoice(UncheckedBaseModel): - """ - # The CreditNoteApplyLine Object - ### Description - The `CreditNoteApplyLine` is attached to the CreditNote model. - - ### Usage Example - Fetch from the `GET CreditNote` endpoint and view the invoice's applied to lines. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - credit_note: typing.Optional["CreditNoteApplyLineForInvoiceCreditNote"] = None - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date that the credit note is applied to the invoice. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount of the Credit Note applied to the invoice. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice_credit_note import CreditNoteApplyLineForInvoiceCreditNote # noqa: E402, F401, I001 - -update_forward_refs(CreditNoteApplyLineForInvoice) diff --git a/src/merge/resources/accounting/types/credit_note_apply_line_for_invoice_credit_note.py b/src/merge/resources/accounting/types/credit_note_apply_line_for_invoice_credit_note.py deleted file mode 100644 index 32a1c3f9..00000000 --- a/src/merge/resources/accounting/types/credit_note_apply_line_for_invoice_credit_note.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .credit_note import CreditNote -CreditNoteApplyLineForInvoiceCreditNote = typing.Union[str, "CreditNote"] diff --git a/src/merge/resources/accounting/types/credit_note_company.py b/src/merge/resources/accounting/types/credit_note_company.py deleted file mode 100644 index 1241eff2..00000000 --- a/src/merge/resources/accounting/types/credit_note_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -CreditNoteCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/credit_note_contact.py b/src/merge/resources/accounting/types/credit_note_contact.py deleted file mode 100644 index 58479d5e..00000000 --- a/src/merge/resources/accounting/types/credit_note_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -CreditNoteContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/credit_note_currency.py b/src/merge/resources/accounting/types/credit_note_currency.py deleted file mode 100644 index 53fd912f..00000000 --- a/src/merge/resources/accounting/types/credit_note_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -CreditNoteCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/credit_note_line_item.py b/src/merge/resources/accounting/types/credit_note_line_item.py deleted file mode 100644 index 4675bed7..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .credit_note_line_item_company import CreditNoteLineItemCompany -from .credit_note_line_item_contact import CreditNoteLineItemContact -from .credit_note_line_item_item import CreditNoteLineItemItem -from .credit_note_line_item_project import CreditNoteLineItemProject - - -class CreditNoteLineItem(UncheckedBaseModel): - """ - # The CreditNoteLineItem Object - ### Description - The `CreditNoteLineItem` object is used to represent a credit note's line items. - - ### Usage Example - Fetch from the `GET CreditNote` endpoint and view the credit note's line items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - item: typing.Optional[CreditNoteLineItemItem] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the item that is owed. - """ - - quantity: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's quantity. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's memo. - """ - - unit_price: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's unit price. - """ - - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - total_line_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's total. - """ - - tracking_category: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's associated tracking category. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The credit note line item's associated tracking categories. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's account. - """ - - company: typing.Optional[CreditNoteLineItemCompany] = pydantic.Field(default=None) - """ - The company the credit note belongs to. - """ - - contact: typing.Optional[CreditNoteLineItemContact] = pydantic.Field(default=None) - """ - The credit note's contact. - """ - - project: typing.Optional[CreditNoteLineItemProject] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/credit_note_line_item_company.py b/src/merge/resources/accounting/types/credit_note_line_item_company.py deleted file mode 100644 index 87e55a57..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -CreditNoteLineItemCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/credit_note_line_item_contact.py b/src/merge/resources/accounting/types/credit_note_line_item_contact.py deleted file mode 100644 index e096c932..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -CreditNoteLineItemContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/credit_note_line_item_item.py b/src/merge/resources/accounting/types/credit_note_line_item_item.py deleted file mode 100644 index 87bf291e..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -CreditNoteLineItemItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/credit_note_line_item_project.py b/src/merge/resources/accounting/types/credit_note_line_item_project.py deleted file mode 100644 index d6eed401..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -CreditNoteLineItemProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/credit_note_line_item_request.py b/src/merge/resources/accounting/types/credit_note_line_item_request.py deleted file mode 100644 index f6e5048b..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_request.py +++ /dev/null @@ -1,101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .credit_note_line_item_request_company import CreditNoteLineItemRequestCompany -from .credit_note_line_item_request_contact import CreditNoteLineItemRequestContact -from .credit_note_line_item_request_item import CreditNoteLineItemRequestItem -from .credit_note_line_item_request_project import CreditNoteLineItemRequestProject - - -class CreditNoteLineItemRequest(UncheckedBaseModel): - """ - # The CreditNoteLineItem Object - ### Description - The `CreditNoteLineItem` object is used to represent a credit note's line items. - - ### Usage Example - Fetch from the `GET CreditNote` endpoint and view the credit note's line items. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - item: typing.Optional[CreditNoteLineItemRequestItem] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the item that is owed. - """ - - quantity: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's quantity. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's memo. - """ - - unit_price: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's unit price. - """ - - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - total_line_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's total. - """ - - tracking_category: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's associated tracking category. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The credit note line item's associated tracking categories. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note line item's account. - """ - - company: typing.Optional[CreditNoteLineItemRequestCompany] = pydantic.Field(default=None) - """ - The company the credit note belongs to. - """ - - contact: typing.Optional[CreditNoteLineItemRequestContact] = pydantic.Field(default=None) - """ - The credit note's contact. - """ - - project: typing.Optional[CreditNoteLineItemRequestProject] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/credit_note_line_item_request_company.py b/src/merge/resources/accounting/types/credit_note_line_item_request_company.py deleted file mode 100644 index 3b4f3f53..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -CreditNoteLineItemRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/credit_note_line_item_request_contact.py b/src/merge/resources/accounting/types/credit_note_line_item_request_contact.py deleted file mode 100644 index 7fd26cf2..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -CreditNoteLineItemRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/credit_note_line_item_request_item.py b/src/merge/resources/accounting/types/credit_note_line_item_request_item.py deleted file mode 100644 index 748156fd..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_request_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -CreditNoteLineItemRequestItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/credit_note_line_item_request_project.py b/src/merge/resources/accounting/types/credit_note_line_item_request_project.py deleted file mode 100644 index 334b238e..00000000 --- a/src/merge/resources/accounting/types/credit_note_line_item_request_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -CreditNoteLineItemRequestProject = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/credit_note_payments_item.py b/src/merge/resources/accounting/types/credit_note_payments_item.py deleted file mode 100644 index eb5a2c36..00000000 --- a/src/merge/resources/accounting/types/credit_note_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment import Payment - -CreditNotePaymentsItem = typing.Union[str, Payment] diff --git a/src/merge/resources/accounting/types/credit_note_request.py b/src/merge/resources/accounting/types/credit_note_request.py deleted file mode 100644 index 48e28f06..00000000 --- a/src/merge/resources/accounting/types/credit_note_request.py +++ /dev/null @@ -1,443 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .credit_note_apply_line_for_credit_note_request import CreditNoteApplyLineForCreditNoteRequest -from .credit_note_request_accounting_period import CreditNoteRequestAccountingPeriod -from .credit_note_request_applied_payments_item import CreditNoteRequestAppliedPaymentsItem -from .credit_note_request_company import CreditNoteRequestCompany -from .credit_note_request_contact import CreditNoteRequestContact -from .credit_note_request_currency import CreditNoteRequestCurrency -from .credit_note_request_line_items_item import CreditNoteRequestLineItemsItem -from .credit_note_request_payments_item import CreditNoteRequestPaymentsItem -from .credit_note_request_status import CreditNoteRequestStatus -from .credit_note_request_tracking_categories_item import CreditNoteRequestTrackingCategoriesItem - - -class CreditNoteRequest(UncheckedBaseModel): - """ - # The CreditNote Object - ### Description - A `CreditNote` is transaction issued to a customer, indicating a reduction or cancellation of the amount owed by the customer. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a sales transaction. A `CreditNote` can be applied to *Accounts Receivable* Invoices to decrease the overall amount of the Invoice. - - ### Usage Example - Fetch from the `LIST CreditNotes` endpoint and view a company's credit notes. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The credit note's transaction date. - """ - - status: typing.Optional[CreditNoteRequestStatus] = pydantic.Field(default=None) - """ - The credit note's status. - - * `SUBMITTED` - SUBMITTED - * `AUTHORIZED` - AUTHORIZED - * `PAID` - PAID - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note's number. - """ - - contact: typing.Optional[CreditNoteRequestContact] = pydantic.Field(default=None) - """ - The credit note's contact. - """ - - company: typing.Optional[CreditNoteRequestCompany] = pydantic.Field(default=None) - """ - The company the credit note belongs to. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The credit note's exchange rate. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The credit note's total amount. - """ - - remaining_credit: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of value remaining in the credit note that the customer can use. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - line_items: typing.Optional[typing.List[CreditNoteRequestLineItemsItem]] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[CreditNoteRequestTrackingCategoriesItem]]] = None - currency: typing.Optional[CreditNoteRequestCurrency] = pydantic.Field(default=None) - """ - The credit note's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - payments: typing.Optional[typing.List[typing.Optional[CreditNoteRequestPaymentsItem]]] = pydantic.Field( - default=None - ) - """ - Array of `Payment` object IDs - """ - - applied_payments: typing.Optional[typing.List[typing.Optional[CreditNoteRequestAppliedPaymentsItem]]] = ( - pydantic.Field(default=None) - ) - """ - A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. - """ - - accounting_period: typing.Optional[CreditNoteRequestAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the CreditNote was generated in. - """ - - applied_to_lines: typing.Optional[typing.List[CreditNoteApplyLineForCreditNoteRequest]] = pydantic.Field( - default=None - ) - """ - A list of the CreditNote Applied to Lines common models related to a given Credit Note - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(CreditNoteRequest) diff --git a/src/merge/resources/accounting/types/credit_note_request_accounting_period.py b/src/merge/resources/accounting/types/credit_note_request_accounting_period.py deleted file mode 100644 index 67775b16..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -CreditNoteRequestAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/credit_note_request_applied_payments_item.py b/src/merge/resources/accounting/types/credit_note_request_applied_payments_item.py deleted file mode 100644 index a4d823c0..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_applied_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_line_item import PaymentLineItem - -CreditNoteRequestAppliedPaymentsItem = typing.Union[str, PaymentLineItem] diff --git a/src/merge/resources/accounting/types/credit_note_request_company.py b/src/merge/resources/accounting/types/credit_note_request_company.py deleted file mode 100644 index 993fffd1..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -CreditNoteRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/credit_note_request_contact.py b/src/merge/resources/accounting/types/credit_note_request_contact.py deleted file mode 100644 index 6f4aa658..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -CreditNoteRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/credit_note_request_currency.py b/src/merge/resources/accounting/types/credit_note_request_currency.py deleted file mode 100644 index 9bf89dc1..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -CreditNoteRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/credit_note_request_line_items_item.py b/src/merge/resources/accounting/types/credit_note_request_line_items_item.py deleted file mode 100644 index 6a4417b3..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_line_items_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credit_note_line_item_request import CreditNoteLineItemRequest - -CreditNoteRequestLineItemsItem = typing.Union[str, CreditNoteLineItemRequest] diff --git a/src/merge/resources/accounting/types/credit_note_request_payments_item.py b/src/merge/resources/accounting/types/credit_note_request_payments_item.py deleted file mode 100644 index 50e9d387..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment import Payment - -CreditNoteRequestPaymentsItem = typing.Union[str, Payment] diff --git a/src/merge/resources/accounting/types/credit_note_request_status.py b/src/merge/resources/accounting/types/credit_note_request_status.py deleted file mode 100644 index 00c31e3d..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credit_note_status_enum import CreditNoteStatusEnum - -CreditNoteRequestStatus = typing.Union[CreditNoteStatusEnum, str] diff --git a/src/merge/resources/accounting/types/credit_note_request_tracking_categories_item.py b/src/merge/resources/accounting/types/credit_note_request_tracking_categories_item.py deleted file mode 100644 index 28e2911d..00000000 --- a/src/merge/resources/accounting/types/credit_note_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -CreditNoteRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/credit_note_response.py b/src/merge/resources/accounting/types/credit_note_response.py deleted file mode 100644 index 587bb615..00000000 --- a/src/merge/resources/accounting/types/credit_note_response.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class CreditNoteResponse(UncheckedBaseModel): - model: "CreditNote" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(CreditNoteResponse) diff --git a/src/merge/resources/accounting/types/credit_note_status.py b/src/merge/resources/accounting/types/credit_note_status.py deleted file mode 100644 index c4bccb8b..00000000 --- a/src/merge/resources/accounting/types/credit_note_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .credit_note_status_enum import CreditNoteStatusEnum - -CreditNoteStatus = typing.Union[CreditNoteStatusEnum, str] diff --git a/src/merge/resources/accounting/types/credit_note_status_enum.py b/src/merge/resources/accounting/types/credit_note_status_enum.py deleted file mode 100644 index d0c47958..00000000 --- a/src/merge/resources/accounting/types/credit_note_status_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditNoteStatusEnum(str, enum.Enum): - """ - * `SUBMITTED` - SUBMITTED - * `AUTHORIZED` - AUTHORIZED - * `PAID` - PAID - """ - - SUBMITTED = "SUBMITTED" - AUTHORIZED = "AUTHORIZED" - PAID = "PAID" - - def visit( - self, - submitted: typing.Callable[[], T_Result], - authorized: typing.Callable[[], T_Result], - paid: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CreditNoteStatusEnum.SUBMITTED: - return submitted() - if self is CreditNoteStatusEnum.AUTHORIZED: - return authorized() - if self is CreditNoteStatusEnum.PAID: - return paid() diff --git a/src/merge/resources/accounting/types/credit_note_tracking_categories_item.py b/src/merge/resources/accounting/types/credit_note_tracking_categories_item.py deleted file mode 100644 index 8d0758d3..00000000 --- a/src/merge/resources/accounting/types/credit_note_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -CreditNoteTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/credit_or_debit_enum.py b/src/merge/resources/accounting/types/credit_or_debit_enum.py deleted file mode 100644 index defe692e..00000000 --- a/src/merge/resources/accounting/types/credit_or_debit_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CreditOrDebitEnum(str, enum.Enum): - """ - * `CREDIT` - CREDIT - * `DEBIT` - DEBIT - """ - - CREDIT = "CREDIT" - DEBIT = "DEBIT" - - def visit(self, credit: typing.Callable[[], T_Result], debit: typing.Callable[[], T_Result]) -> T_Result: - if self is CreditOrDebitEnum.CREDIT: - return credit() - if self is CreditOrDebitEnum.DEBIT: - return debit() diff --git a/src/merge/resources/accounting/types/data_passthrough_request.py b/src/merge/resources/accounting/types/data_passthrough_request.py deleted file mode 100644 index 67f3359e..00000000 --- a/src/merge/resources/accounting/types/data_passthrough_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .data_passthrough_request_method import DataPassthroughRequestMethod -from .multipart_form_field_request import MultipartFormFieldRequest -from .request_format_enum import RequestFormatEnum - - -class DataPassthroughRequest(UncheckedBaseModel): - """ - # The DataPassthrough Object - ### Description - The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - - ### Usage Example - Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - """ - - method: DataPassthroughRequestMethod - path: str = pydantic.Field() - """ - The path of the request in the third party's platform. - """ - - base_url_override: typing.Optional[str] = pydantic.Field(default=None) - """ - An optional override of the third party's base url for the request. - """ - - data: typing.Optional[str] = pydantic.Field(default=None) - """ - The data with the request. You must include a `request_format` parameter matching the data's format - """ - - multipart_form_data: typing.Optional[typing.List[MultipartFormFieldRequest]] = pydantic.Field(default=None) - """ - Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. - """ - - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. - """ - - request_format: typing.Optional[RequestFormatEnum] = None - normalize_response: typing.Optional[bool] = pydantic.Field(default=None) - """ - Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/data_passthrough_request_method.py b/src/merge/resources/accounting/types/data_passthrough_request_method.py deleted file mode 100644 index 58874cbf..00000000 --- a/src/merge/resources/accounting/types/data_passthrough_request_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .method_enum import MethodEnum - -DataPassthroughRequestMethod = typing.Union[MethodEnum, str] diff --git a/src/merge/resources/accounting/types/debug_mode_log.py b/src/merge/resources/accounting/types/debug_mode_log.py deleted file mode 100644 index 9c7d2a3f..00000000 --- a/src/merge/resources/accounting/types/debug_mode_log.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_model_log_summary import DebugModelLogSummary - - -class DebugModeLog(UncheckedBaseModel): - log_id: str - dashboard_view: str - log_summary: DebugModelLogSummary - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/debug_model_log_summary.py b/src/merge/resources/accounting/types/debug_model_log_summary.py deleted file mode 100644 index d7e1d3e6..00000000 --- a/src/merge/resources/accounting/types/debug_model_log_summary.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class DebugModelLogSummary(UncheckedBaseModel): - url: str - method: str - status_code: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/employee.py b/src/merge/resources/accounting/types/employee.py deleted file mode 100644 index 145497c2..00000000 --- a/src/merge/resources/accounting/types/employee.py +++ /dev/null @@ -1,95 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .employee_company import EmployeeCompany -from .employee_status import EmployeeStatus -from .remote_data import RemoteData - - -class Employee(UncheckedBaseModel): - """ - # The Employee Object - ### Description - An `Employee` is an individual who works for the company of the linked account. The `Employee` model contains both contractors and full time employees. - * An `Employee` is a contractor if `is_contractor` property is `True` - * An `Employee` is a full time employee if `is_contractor` property is `False` - - ### Usage Example - Fetch from the `LIST Employees` endpoint and view a company's employees. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's last name. - """ - - is_contractor: typing.Optional[bool] = pydantic.Field(default=None) - """ - `True` if the employee is a contractor, `False` if not. - """ - - employee_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's internal identification number. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's email address. - """ - - company: typing.Optional[EmployeeCompany] = pydantic.Field(default=None) - """ - The subsidiary that the employee belongs to. - """ - - status: EmployeeStatus = pydantic.Field() - """ - The employee's status in the accounting system. - - * `ACTIVE` - ACTIVE - * `INACTIVE` - INACTIVE - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/employee_company.py b/src/merge/resources/accounting/types/employee_company.py deleted file mode 100644 index 2ce4237f..00000000 --- a/src/merge/resources/accounting/types/employee_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -EmployeeCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/employee_status.py b/src/merge/resources/accounting/types/employee_status.py deleted file mode 100644 index 69151268..00000000 --- a/src/merge/resources/accounting/types/employee_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_895_enum import Status895Enum - -EmployeeStatus = typing.Union[Status895Enum, str] diff --git a/src/merge/resources/accounting/types/enabled_actions_enum.py b/src/merge/resources/accounting/types/enabled_actions_enum.py deleted file mode 100644 index 29cf9839..00000000 --- a/src/merge/resources/accounting/types/enabled_actions_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EnabledActionsEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - """ - - READ = "READ" - WRITE = "WRITE" - - def visit(self, read: typing.Callable[[], T_Result], write: typing.Callable[[], T_Result]) -> T_Result: - if self is EnabledActionsEnum.READ: - return read() - if self is EnabledActionsEnum.WRITE: - return write() diff --git a/src/merge/resources/accounting/types/encoding_enum.py b/src/merge/resources/accounting/types/encoding_enum.py deleted file mode 100644 index 7454647e..00000000 --- a/src/merge/resources/accounting/types/encoding_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EncodingEnum(str, enum.Enum): - """ - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - RAW = "RAW" - BASE_64 = "BASE64" - GZIP_BASE_64 = "GZIP_BASE64" - - def visit( - self, - raw: typing.Callable[[], T_Result], - base_64: typing.Callable[[], T_Result], - gzip_base_64: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EncodingEnum.RAW: - return raw() - if self is EncodingEnum.BASE_64: - return base_64() - if self is EncodingEnum.GZIP_BASE_64: - return gzip_base_64() diff --git a/src/merge/resources/accounting/types/error_validation_problem.py b/src/merge/resources/accounting/types/error_validation_problem.py deleted file mode 100644 index 04f82d05..00000000 --- a/src/merge/resources/accounting/types/error_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class ErrorValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/event_type_enum.py b/src/merge/resources/accounting/types/event_type_enum.py deleted file mode 100644 index 537cea3f..00000000 --- a/src/merge/resources/accounting/types/event_type_enum.py +++ /dev/null @@ -1,231 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EventTypeEnum(str, enum.Enum): - """ - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY" - DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY" - CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" - DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" - REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" - REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" - INVITED_USER = "INVITED_USER" - TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" - TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" - DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT" - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT" - CREATED_DESTINATION = "CREATED_DESTINATION" - DELETED_DESTINATION = "DELETED_DESTINATION" - CHANGED_DESTINATION = "CHANGED_DESTINATION" - CHANGED_SCOPES = "CHANGED_SCOPES" - CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION" - CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS" - ENABLED_INTEGRATION = "ENABLED_INTEGRATION" - DISABLED_INTEGRATION = "DISABLED_INTEGRATION" - ENABLED_CATEGORY = "ENABLED_CATEGORY" - DISABLED_CATEGORY = "DISABLED_CATEGORY" - CHANGED_PASSWORD = "CHANGED_PASSWORD" - RESET_PASSWORD = "RESET_PASSWORD" - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING" - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING" - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING" - DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING" - DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC" - MUTED_ISSUE = "MUTED_ISSUE" - GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK" - ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK" - DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK" - MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED" - END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED" - - def visit( - self, - created_remote_production_api_key: typing.Callable[[], T_Result], - deleted_remote_production_api_key: typing.Callable[[], T_Result], - created_test_api_key: typing.Callable[[], T_Result], - deleted_test_api_key: typing.Callable[[], T_Result], - regenerated_production_api_key: typing.Callable[[], T_Result], - regenerated_webhook_signature: typing.Callable[[], T_Result], - invited_user: typing.Callable[[], T_Result], - two_factor_auth_enabled: typing.Callable[[], T_Result], - two_factor_auth_disabled: typing.Callable[[], T_Result], - deleted_linked_account: typing.Callable[[], T_Result], - deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result], - created_destination: typing.Callable[[], T_Result], - deleted_destination: typing.Callable[[], T_Result], - changed_destination: typing.Callable[[], T_Result], - changed_scopes: typing.Callable[[], T_Result], - changed_personal_information: typing.Callable[[], T_Result], - changed_organization_settings: typing.Callable[[], T_Result], - enabled_integration: typing.Callable[[], T_Result], - disabled_integration: typing.Callable[[], T_Result], - enabled_category: typing.Callable[[], T_Result], - disabled_category: typing.Callable[[], T_Result], - changed_password: typing.Callable[[], T_Result], - reset_password: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - created_integration_wide_field_mapping: typing.Callable[[], T_Result], - created_linked_account_field_mapping: typing.Callable[[], T_Result], - changed_integration_wide_field_mapping: typing.Callable[[], T_Result], - changed_linked_account_field_mapping: typing.Callable[[], T_Result], - deleted_integration_wide_field_mapping: typing.Callable[[], T_Result], - deleted_linked_account_field_mapping: typing.Callable[[], T_Result], - created_linked_account_common_model_override: typing.Callable[[], T_Result], - changed_linked_account_common_model_override: typing.Callable[[], T_Result], - deleted_linked_account_common_model_override: typing.Callable[[], T_Result], - forced_linked_account_resync: typing.Callable[[], T_Result], - muted_issue: typing.Callable[[], T_Result], - generated_magic_link: typing.Callable[[], T_Result], - enabled_merge_webhook: typing.Callable[[], T_Result], - disabled_merge_webhook: typing.Callable[[], T_Result], - merge_webhook_target_changed: typing.Callable[[], T_Result], - end_user_credentials_accessed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY: - return created_remote_production_api_key() - if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY: - return deleted_remote_production_api_key() - if self is EventTypeEnum.CREATED_TEST_API_KEY: - return created_test_api_key() - if self is EventTypeEnum.DELETED_TEST_API_KEY: - return deleted_test_api_key() - if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY: - return regenerated_production_api_key() - if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE: - return regenerated_webhook_signature() - if self is EventTypeEnum.INVITED_USER: - return invited_user() - if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED: - return two_factor_auth_enabled() - if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED: - return two_factor_auth_disabled() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT: - return deleted_linked_account() - if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT: - return deleted_all_common_models_for_linked_account() - if self is EventTypeEnum.CREATED_DESTINATION: - return created_destination() - if self is EventTypeEnum.DELETED_DESTINATION: - return deleted_destination() - if self is EventTypeEnum.CHANGED_DESTINATION: - return changed_destination() - if self is EventTypeEnum.CHANGED_SCOPES: - return changed_scopes() - if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION: - return changed_personal_information() - if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS: - return changed_organization_settings() - if self is EventTypeEnum.ENABLED_INTEGRATION: - return enabled_integration() - if self is EventTypeEnum.DISABLED_INTEGRATION: - return disabled_integration() - if self is EventTypeEnum.ENABLED_CATEGORY: - return enabled_category() - if self is EventTypeEnum.DISABLED_CATEGORY: - return disabled_category() - if self is EventTypeEnum.CHANGED_PASSWORD: - return changed_password() - if self is EventTypeEnum.RESET_PASSWORD: - return reset_password() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return enabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return enabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return disabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return disabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING: - return created_integration_wide_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING: - return created_linked_account_field_mapping() - if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING: - return changed_integration_wide_field_mapping() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING: - return changed_linked_account_field_mapping() - if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING: - return deleted_integration_wide_field_mapping() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING: - return deleted_linked_account_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return created_linked_account_common_model_override() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return changed_linked_account_common_model_override() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return deleted_linked_account_common_model_override() - if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC: - return forced_linked_account_resync() - if self is EventTypeEnum.MUTED_ISSUE: - return muted_issue() - if self is EventTypeEnum.GENERATED_MAGIC_LINK: - return generated_magic_link() - if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK: - return enabled_merge_webhook() - if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK: - return disabled_merge_webhook() - if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED: - return merge_webhook_target_changed() - if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED: - return end_user_credentials_accessed() diff --git a/src/merge/resources/accounting/types/expense.py b/src/merge/resources/accounting/types/expense.py deleted file mode 100644 index a995193a..00000000 --- a/src/merge/resources/accounting/types/expense.py +++ /dev/null @@ -1,444 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_account import ExpenseAccount -from .expense_accounting_period import ExpenseAccountingPeriod -from .expense_company import ExpenseCompany -from .expense_contact import ExpenseContact -from .expense_currency import ExpenseCurrency -from .expense_employee import ExpenseEmployee -from .expense_line import ExpenseLine -from .expense_tracking_categories_item import ExpenseTrackingCategoriesItem -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Expense(UncheckedBaseModel): - """ - # The Expense Object - ### Description - The `Expense` object is used to represent a direct purchase by a business, typically made with a check, credit card, or cash. Each `Expense` object is dedicated to a grouping of expenses, with each expense recorded in the lines object. - - The `Expense` object is used also used to represent refunds to direct purchases. Refunds can be distinguished from purchases by the amount sign of the records. Expense objects with a negative amount are purchases and `Expense` objects with a positive amount are refunds to those purchases. - - ### Usage Example - Fetch from the `GET Expense` endpoint and view a company's expense. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the transaction occurred. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the expense was created. - """ - - account: typing.Optional[ExpenseAccount] = pydantic.Field(default=None) - """ - The expense's payment account. - """ - - contact: typing.Optional[ExpenseContact] = pydantic.Field(default=None) - """ - The expense's contact. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The expense's total amount. - """ - - sub_total: typing.Optional[float] = pydantic.Field(default=None) - """ - The expense's total amount before tax. - """ - - total_tax_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The expense's total tax amount. - """ - - currency: typing.Optional[ExpenseCurrency] = pydantic.Field(default=None) - """ - The expense's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The expense's exchange rate. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - company: typing.Optional[ExpenseCompany] = pydantic.Field(default=None) - """ - The company the expense belongs to. - """ - - employee: typing.Optional[ExpenseEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The expense's private note. - """ - - lines: typing.Optional[typing.List[ExpenseLine]] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[ExpenseTrackingCategoriesItem]]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - accounting_period: typing.Optional[ExpenseAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the Expense was generated in. - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_account.py b/src/merge/resources/accounting/types/expense_account.py deleted file mode 100644 index 4da9826e..00000000 --- a/src/merge/resources/accounting/types/expense_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ExpenseAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/expense_accounting_period.py b/src/merge/resources/accounting/types/expense_accounting_period.py deleted file mode 100644 index ef90ea80..00000000 --- a/src/merge/resources/accounting/types/expense_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -ExpenseAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/expense_company.py b/src/merge/resources/accounting/types/expense_company.py deleted file mode 100644 index fb3a47cb..00000000 --- a/src/merge/resources/accounting/types/expense_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ExpenseCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/expense_contact.py b/src/merge/resources/accounting/types/expense_contact.py deleted file mode 100644 index b032b507..00000000 --- a/src/merge/resources/accounting/types/expense_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ExpenseContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/expense_currency.py b/src/merge/resources/accounting/types/expense_currency.py deleted file mode 100644 index 159c69e6..00000000 --- a/src/merge/resources/accounting/types/expense_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -ExpenseCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/expense_employee.py b/src/merge/resources/accounting/types/expense_employee.py deleted file mode 100644 index c02e2e03..00000000 --- a/src/merge/resources/accounting/types/expense_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -ExpenseEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/expense_line.py b/src/merge/resources/accounting/types/expense_line.py deleted file mode 100644 index e3bf7be8..00000000 --- a/src/merge/resources/accounting/types/expense_line.py +++ /dev/null @@ -1,433 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_line_account import ExpenseLineAccount -from .expense_line_contact import ExpenseLineContact -from .expense_line_currency import ExpenseLineCurrency -from .expense_line_employee import ExpenseLineEmployee -from .expense_line_item import ExpenseLineItem -from .expense_line_project import ExpenseLineProject -from .expense_line_tracking_categories_item import ExpenseLineTrackingCategoriesItem -from .expense_line_tracking_category import ExpenseLineTrackingCategory - - -class ExpenseLine(UncheckedBaseModel): - """ - # The ExpenseLine Object - ### Description - The `ExpenseLine` object is used to represent an expense's line items. - - ### Usage Example - Fetch from the `GET Expense` endpoint and view the expense's line items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - item: typing.Optional[ExpenseLineItem] = pydantic.Field(default=None) - """ - The line's item. - """ - - net_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The line's net amount. - """ - - tracking_category: typing.Optional[ExpenseLineTrackingCategory] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[ExpenseLineTrackingCategoriesItem]]] = ( - pydantic.Field(default=None) - ) - """ - The expense line item's associated tracking categories. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the expense belongs to. - """ - - employee: typing.Optional[ExpenseLineEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - currency: typing.Optional[ExpenseLineCurrency] = pydantic.Field(default=None) - """ - The expense line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - account: typing.Optional[ExpenseLineAccount] = pydantic.Field(default=None) - """ - The expense's payment account. - """ - - contact: typing.Optional[ExpenseLineContact] = pydantic.Field(default=None) - """ - The expense's contact. - """ - - project: typing.Optional[ExpenseLineProject] = None - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the item that was purchased by the company. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The expense line item's exchange rate. - """ - - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - quantity: typing.Optional[str] = pydantic.Field(default=None) - """ - Number of items for the expense line. - """ - - unit_price: typing.Optional[str] = pydantic.Field(default=None) - """ - Unit price of the item for the expense line. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_line_account.py b/src/merge/resources/accounting/types/expense_line_account.py deleted file mode 100644 index c04b7bd2..00000000 --- a/src/merge/resources/accounting/types/expense_line_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ExpenseLineAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/expense_line_contact.py b/src/merge/resources/accounting/types/expense_line_contact.py deleted file mode 100644 index 7152af35..00000000 --- a/src/merge/resources/accounting/types/expense_line_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ExpenseLineContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/expense_line_currency.py b/src/merge/resources/accounting/types/expense_line_currency.py deleted file mode 100644 index 82f51331..00000000 --- a/src/merge/resources/accounting/types/expense_line_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -ExpenseLineCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/expense_line_employee.py b/src/merge/resources/accounting/types/expense_line_employee.py deleted file mode 100644 index 6aeafab9..00000000 --- a/src/merge/resources/accounting/types/expense_line_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -ExpenseLineEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/expense_line_item.py b/src/merge/resources/accounting/types/expense_line_item.py deleted file mode 100644 index 321fe8a2..00000000 --- a/src/merge/resources/accounting/types/expense_line_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -ExpenseLineItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/expense_line_project.py b/src/merge/resources/accounting/types/expense_line_project.py deleted file mode 100644 index 0f7e0a62..00000000 --- a/src/merge/resources/accounting/types/expense_line_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -ExpenseLineProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/expense_line_request.py b/src/merge/resources/accounting/types/expense_line_request.py deleted file mode 100644 index 1a60035c..00000000 --- a/src/merge/resources/accounting/types/expense_line_request.py +++ /dev/null @@ -1,421 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_line_request_account import ExpenseLineRequestAccount -from .expense_line_request_contact import ExpenseLineRequestContact -from .expense_line_request_currency import ExpenseLineRequestCurrency -from .expense_line_request_employee import ExpenseLineRequestEmployee -from .expense_line_request_item import ExpenseLineRequestItem -from .expense_line_request_project import ExpenseLineRequestProject -from .expense_line_request_tracking_categories_item import ExpenseLineRequestTrackingCategoriesItem -from .expense_line_request_tracking_category import ExpenseLineRequestTrackingCategory -from .remote_field_request import RemoteFieldRequest - - -class ExpenseLineRequest(UncheckedBaseModel): - """ - # The ExpenseLine Object - ### Description - The `ExpenseLine` object is used to represent an expense's line items. - - ### Usage Example - Fetch from the `GET Expense` endpoint and view the expense's line items. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - item: typing.Optional[ExpenseLineRequestItem] = pydantic.Field(default=None) - """ - The line's item. - """ - - net_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The line's net amount. - """ - - tracking_category: typing.Optional[ExpenseLineRequestTrackingCategory] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[ExpenseLineRequestTrackingCategoriesItem]]] = ( - pydantic.Field(default=None) - ) - """ - The expense line item's associated tracking categories. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the expense belongs to. - """ - - employee: typing.Optional[ExpenseLineRequestEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - currency: typing.Optional[ExpenseLineRequestCurrency] = pydantic.Field(default=None) - """ - The expense line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - account: typing.Optional[ExpenseLineRequestAccount] = pydantic.Field(default=None) - """ - The expense's payment account. - """ - - contact: typing.Optional[ExpenseLineRequestContact] = pydantic.Field(default=None) - """ - The expense's contact. - """ - - project: typing.Optional[ExpenseLineRequestProject] = None - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the item that was purchased by the company. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The expense line item's exchange rate. - """ - - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - quantity: typing.Optional[str] = pydantic.Field(default=None) - """ - Number of items for the expense line. - """ - - unit_price: typing.Optional[str] = pydantic.Field(default=None) - """ - Unit price of the item for the expense line. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_line_request_account.py b/src/merge/resources/accounting/types/expense_line_request_account.py deleted file mode 100644 index 1b68d457..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ExpenseLineRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/expense_line_request_contact.py b/src/merge/resources/accounting/types/expense_line_request_contact.py deleted file mode 100644 index 6bd0bfae..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ExpenseLineRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/expense_line_request_currency.py b/src/merge/resources/accounting/types/expense_line_request_currency.py deleted file mode 100644 index 86840503..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -ExpenseLineRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/expense_line_request_employee.py b/src/merge/resources/accounting/types/expense_line_request_employee.py deleted file mode 100644 index 06788f2f..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -ExpenseLineRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/expense_line_request_item.py b/src/merge/resources/accounting/types/expense_line_request_item.py deleted file mode 100644 index f65e9bde..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -ExpenseLineRequestItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/expense_line_request_project.py b/src/merge/resources/accounting/types/expense_line_request_project.py deleted file mode 100644 index a4a23629..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ExpenseLineRequestProject = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/expense_line_request_tracking_categories_item.py b/src/merge/resources/accounting/types/expense_line_request_tracking_categories_item.py deleted file mode 100644 index d3a539e6..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -ExpenseLineRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/expense_line_request_tracking_category.py b/src/merge/resources/accounting/types/expense_line_request_tracking_category.py deleted file mode 100644 index ccc3b333..00000000 --- a/src/merge/resources/accounting/types/expense_line_request_tracking_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -ExpenseLineRequestTrackingCategory = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/expense_line_tracking_categories_item.py b/src/merge/resources/accounting/types/expense_line_tracking_categories_item.py deleted file mode 100644 index a3e6f796..00000000 --- a/src/merge/resources/accounting/types/expense_line_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -ExpenseLineTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/expense_line_tracking_category.py b/src/merge/resources/accounting/types/expense_line_tracking_category.py deleted file mode 100644 index ea969833..00000000 --- a/src/merge/resources/accounting/types/expense_line_tracking_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -ExpenseLineTrackingCategory = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/expense_report.py b/src/merge/resources/accounting/types/expense_report.py deleted file mode 100644 index 9cd03e8d..00000000 --- a/src/merge/resources/accounting/types/expense_report.py +++ /dev/null @@ -1,423 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_report_company import ExpenseReportCompany -from .expense_report_line import ExpenseReportLine -from .expense_report_status import ExpenseReportStatus -from .remote_data import RemoteData -from .remote_field import RemoteField -from .transaction_currency_enum import TransactionCurrencyEnum - - -class ExpenseReport(UncheckedBaseModel): - """ - # The ExpenseReport Object - ### Description - The `ExpenseReport` object represents a collection of expenses submitted for review and reimbursement. - It includes details about the submitter, status, amounts, and associated metadata. - - ### Usage Example - Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - report_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date of the expense report. - """ - - report_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Human-readable expense report identifier. - """ - - employee: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier for the employee who submitted or is associated with the expense report - """ - - status: typing.Optional[ExpenseReportStatus] = pydantic.Field(default=None) - """ - Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED - - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `APPROVED` - APPROVED - * `REJECTED` - REJECTED - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - Total amount of the expense report - """ - - lines: typing.Optional[typing.List[ExpenseReportLine]] = None - currency: typing.Optional[TransactionCurrencyEnum] = pydantic.Field(default=None) - """ - Currency code for the expense report - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A brief description or purpose for the expense report - """ - - accounting_period: typing.Optional[str] = pydantic.Field(default=None) - """ - The accounting period the report was posted in - """ - - company: typing.Optional[ExpenseReportCompany] = pydantic.Field(default=None) - """ - The subsidiary that the expense report is created in - """ - - tracking_categories: typing.List[str] = pydantic.Field() - """ - The related tracking categories associated with the expense report - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_report_company.py b/src/merge/resources/accounting/types/expense_report_company.py deleted file mode 100644 index 25c0a252..00000000 --- a/src/merge/resources/accounting/types/expense_report_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ExpenseReportCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/expense_report_line.py b/src/merge/resources/accounting/types/expense_report_line.py deleted file mode 100644 index a5b01dfc..00000000 --- a/src/merge/resources/accounting/types/expense_report_line.py +++ /dev/null @@ -1,441 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_report_line_account import ExpenseReportLineAccount -from .expense_report_line_company import ExpenseReportLineCompany -from .expense_report_line_contact import ExpenseReportLineContact -from .expense_report_line_employee import ExpenseReportLineEmployee -from .expense_report_line_project import ExpenseReportLineProject -from .expense_report_line_tax_rate import ExpenseReportLineTaxRate -from .remote_field import RemoteField -from .transaction_currency_enum import TransactionCurrencyEnum - - -class ExpenseReportLine(UncheckedBaseModel): - """ - # The ExpenseReportLine Object - ### Description - The `ExpenseReportLine` object represents an individual line item within an expense report, containing details about - a specific expense such as amount, description, and associated metadata. - - ### Usage Example - Fetch from the `GET ExpenseReport` endpoint and expand the lines field to view all line items in the expense report. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - account: typing.Optional[ExpenseReportLineAccount] = None - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of the individual expense. - """ - - expense_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date the individual expense was incurred. - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of the expense for the line item. - """ - - currency: typing.Optional[TransactionCurrencyEnum] = pydantic.Field(default=None) - """ - Currency of the expense line (if different from the report currency). - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - Exchange rate used if the line item is in a foreign currency. - """ - - is_billable: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the expense line is billable to a client or project. - """ - - tracking_categories: typing.List[str] = pydantic.Field() - """ - The related tracking categories associated with the expense report (Department, Location, Class, Expense Category) - """ - - employee: typing.Optional[ExpenseReportLineEmployee] = pydantic.Field(default=None) - """ - Identifier for the employee who submitted or is associated with the expense report - """ - - project: typing.Optional[ExpenseReportLineProject] = None - company: typing.Optional[ExpenseReportLineCompany] = pydantic.Field(default=None) - """ - The subsidiary that the expense report is created in - """ - - contact: typing.Optional[ExpenseReportLineContact] = None - quantity: typing.Optional[float] = pydantic.Field(default=None) - """ - Quantity for the expense line (e.g., miles driven, items purchased). - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - Price per unit for the expense line (if applicable). - """ - - non_reimbursable: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the expense line is non-reimbursable (e.g., paid via company card). - """ - - tax_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - Tax amount applicable for the line item. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the amount is inclusive of tax. - """ - - tax_rate: typing.Optional[ExpenseReportLineTaxRate] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_report_line_account.py b/src/merge/resources/accounting/types/expense_report_line_account.py deleted file mode 100644 index 4494e2da..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ExpenseReportLineAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/expense_report_line_company.py b/src/merge/resources/accounting/types/expense_report_line_company.py deleted file mode 100644 index 8c43e25a..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ExpenseReportLineCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/expense_report_line_contact.py b/src/merge/resources/accounting/types/expense_report_line_contact.py deleted file mode 100644 index 83c30234..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ExpenseReportLineContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/expense_report_line_employee.py b/src/merge/resources/accounting/types/expense_report_line_employee.py deleted file mode 100644 index 7765b49d..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -ExpenseReportLineEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/expense_report_line_project.py b/src/merge/resources/accounting/types/expense_report_line_project.py deleted file mode 100644 index 21c40fb1..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -ExpenseReportLineProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/expense_report_line_request.py b/src/merge/resources/accounting/types/expense_report_line_request.py deleted file mode 100644 index cc0cf8ad..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_request.py +++ /dev/null @@ -1,427 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_report_line_request_account import ExpenseReportLineRequestAccount -from .expense_report_line_request_company import ExpenseReportLineRequestCompany -from .expense_report_line_request_contact import ExpenseReportLineRequestContact -from .expense_report_line_request_employee import ExpenseReportLineRequestEmployee -from .expense_report_line_request_project import ExpenseReportLineRequestProject -from .expense_report_line_request_tax_rate import ExpenseReportLineRequestTaxRate -from .remote_field_request import RemoteFieldRequest -from .transaction_currency_enum import TransactionCurrencyEnum - - -class ExpenseReportLineRequest(UncheckedBaseModel): - """ - # The ExpenseReportLine Object - ### Description - The `ExpenseReportLine` object represents an individual line item within an expense report, containing details about - a specific expense such as amount, description, and associated metadata. - - ### Usage Example - Fetch from the `GET ExpenseReport` endpoint and expand the lines field to view all line items in the expense report. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - account: typing.Optional[ExpenseReportLineRequestAccount] = None - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of the individual expense. - """ - - expense_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date the individual expense was incurred. - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of the expense for the line item. - """ - - currency: typing.Optional[TransactionCurrencyEnum] = pydantic.Field(default=None) - """ - Currency of the expense line (if different from the report currency). - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - Exchange rate used if the line item is in a foreign currency. - """ - - is_billable: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the expense line is billable to a client or project. - """ - - tracking_categories: typing.List[str] = pydantic.Field() - """ - The related tracking categories associated with the expense report (Department, Location, Class, Expense Category) - """ - - employee: typing.Optional[ExpenseReportLineRequestEmployee] = pydantic.Field(default=None) - """ - Identifier for the employee who submitted or is associated with the expense report - """ - - project: typing.Optional[ExpenseReportLineRequestProject] = None - company: typing.Optional[ExpenseReportLineRequestCompany] = pydantic.Field(default=None) - """ - The subsidiary that the expense report is created in - """ - - contact: typing.Optional[ExpenseReportLineRequestContact] = None - quantity: typing.Optional[float] = pydantic.Field(default=None) - """ - Quantity for the expense line (e.g., miles driven, items purchased). - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - Price per unit for the expense line (if applicable). - """ - - non_reimbursable: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the expense line is non-reimbursable (e.g., paid via company card). - """ - - tax_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - Tax amount applicable for the line item. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the amount is inclusive of tax. - """ - - tax_rate: typing.Optional[ExpenseReportLineRequestTaxRate] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_report_line_request_account.py b/src/merge/resources/accounting/types/expense_report_line_request_account.py deleted file mode 100644 index dc8d9687..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ExpenseReportLineRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/expense_report_line_request_company.py b/src/merge/resources/accounting/types/expense_report_line_request_company.py deleted file mode 100644 index 3c611820..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ExpenseReportLineRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/expense_report_line_request_contact.py b/src/merge/resources/accounting/types/expense_report_line_request_contact.py deleted file mode 100644 index f6ed150e..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ExpenseReportLineRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/expense_report_line_request_employee.py b/src/merge/resources/accounting/types/expense_report_line_request_employee.py deleted file mode 100644 index 22cc3988..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -ExpenseReportLineRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/expense_report_line_request_project.py b/src/merge/resources/accounting/types/expense_report_line_request_project.py deleted file mode 100644 index 47636a9e..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_request_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -ExpenseReportLineRequestProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/expense_report_line_request_tax_rate.py b/src/merge/resources/accounting/types/expense_report_line_request_tax_rate.py deleted file mode 100644 index 3c045256..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_request_tax_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tax_rate import TaxRate - -ExpenseReportLineRequestTaxRate = typing.Union[str, TaxRate] diff --git a/src/merge/resources/accounting/types/expense_report_line_tax_rate.py b/src/merge/resources/accounting/types/expense_report_line_tax_rate.py deleted file mode 100644 index aff1780e..00000000 --- a/src/merge/resources/accounting/types/expense_report_line_tax_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tax_rate import TaxRate - -ExpenseReportLineTaxRate = typing.Union[str, TaxRate] diff --git a/src/merge/resources/accounting/types/expense_report_request.py b/src/merge/resources/accounting/types/expense_report_request.py deleted file mode 100644 index 00243adf..00000000 --- a/src/merge/resources/accounting/types/expense_report_request.py +++ /dev/null @@ -1,401 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_report_request_accounting_period import ExpenseReportRequestAccountingPeriod -from .expense_report_request_company import ExpenseReportRequestCompany -from .expense_report_request_employee import ExpenseReportRequestEmployee -from .expense_report_status_enum import ExpenseReportStatusEnum -from .remote_field_request import RemoteFieldRequest -from .transaction_currency_enum import TransactionCurrencyEnum - - -class ExpenseReportRequest(UncheckedBaseModel): - """ - # The ExpenseReport Object - ### Description - The `ExpenseReport` object represents a collection of expenses submitted for review and reimbursement. - It includes details about the submitter, status, amounts, and associated metadata. - - ### Usage Example - Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items. - """ - - report_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date of the expense report. - """ - - report_identifier: typing.Optional[str] = pydantic.Field(default=None) - """ - Human-readable expense report identifier. - """ - - employee: typing.Optional[ExpenseReportRequestEmployee] = pydantic.Field(default=None) - """ - Identifier for the employee who submitted or is associated with the expense report - """ - - status: typing.Optional[ExpenseReportStatusEnum] = pydantic.Field(default=None) - """ - Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED - - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `APPROVED` - APPROVED - * `REJECTED` - REJECTED - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - Total amount of the expense report - """ - - currency: typing.Optional[TransactionCurrencyEnum] = pydantic.Field(default=None) - """ - Currency code for the expense report - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A brief description or purpose for the expense report - """ - - accounting_period: typing.Optional[ExpenseReportRequestAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period the report was posted in - """ - - company: typing.Optional[ExpenseReportRequestCompany] = pydantic.Field(default=None) - """ - The subsidiary that the expense report is created in - """ - - tracking_categories: typing.List[str] = pydantic.Field() - """ - The related tracking categories associated with the expense report - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_report_request_accounting_period.py b/src/merge/resources/accounting/types/expense_report_request_accounting_period.py deleted file mode 100644 index b789b0cc..00000000 --- a/src/merge/resources/accounting/types/expense_report_request_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -ExpenseReportRequestAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/expense_report_request_company.py b/src/merge/resources/accounting/types/expense_report_request_company.py deleted file mode 100644 index d2062a72..00000000 --- a/src/merge/resources/accounting/types/expense_report_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ExpenseReportRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/expense_report_request_employee.py b/src/merge/resources/accounting/types/expense_report_request_employee.py deleted file mode 100644 index 7139be1a..00000000 --- a/src/merge/resources/accounting/types/expense_report_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -ExpenseReportRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/expense_report_response.py b/src/merge/resources/accounting/types/expense_report_response.py deleted file mode 100644 index 9d0523de..00000000 --- a/src/merge/resources/accounting/types/expense_report_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .expense_report import ExpenseReport -from .warning_validation_problem import WarningValidationProblem - - -class ExpenseReportResponse(UncheckedBaseModel): - model: ExpenseReport - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_report_status.py b/src/merge/resources/accounting/types/expense_report_status.py deleted file mode 100644 index 5a590228..00000000 --- a/src/merge/resources/accounting/types/expense_report_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .expense_report_status_enum import ExpenseReportStatusEnum - -ExpenseReportStatus = typing.Union[ExpenseReportStatusEnum, str] diff --git a/src/merge/resources/accounting/types/expense_report_status_enum.py b/src/merge/resources/accounting/types/expense_report_status_enum.py deleted file mode 100644 index 79e72fd5..00000000 --- a/src/merge/resources/accounting/types/expense_report_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ExpenseReportStatusEnum(str, enum.Enum): - """ - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `APPROVED` - APPROVED - * `REJECTED` - REJECTED - """ - - DRAFT = "DRAFT" - SUBMITTED = "SUBMITTED" - APPROVED = "APPROVED" - REJECTED = "REJECTED" - - def visit( - self, - draft: typing.Callable[[], T_Result], - submitted: typing.Callable[[], T_Result], - approved: typing.Callable[[], T_Result], - rejected: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ExpenseReportStatusEnum.DRAFT: - return draft() - if self is ExpenseReportStatusEnum.SUBMITTED: - return submitted() - if self is ExpenseReportStatusEnum.APPROVED: - return approved() - if self is ExpenseReportStatusEnum.REJECTED: - return rejected() diff --git a/src/merge/resources/accounting/types/expense_request.py b/src/merge/resources/accounting/types/expense_request.py deleted file mode 100644 index b7385ad5..00000000 --- a/src/merge/resources/accounting/types/expense_request.py +++ /dev/null @@ -1,417 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_line_request import ExpenseLineRequest -from .expense_request_account import ExpenseRequestAccount -from .expense_request_accounting_period import ExpenseRequestAccountingPeriod -from .expense_request_company import ExpenseRequestCompany -from .expense_request_contact import ExpenseRequestContact -from .expense_request_currency import ExpenseRequestCurrency -from .expense_request_employee import ExpenseRequestEmployee -from .expense_request_tracking_categories_item import ExpenseRequestTrackingCategoriesItem -from .remote_field_request import RemoteFieldRequest - - -class ExpenseRequest(UncheckedBaseModel): - """ - # The Expense Object - ### Description - The `Expense` object is used to represent a direct purchase by a business, typically made with a check, credit card, or cash. Each `Expense` object is dedicated to a grouping of expenses, with each expense recorded in the lines object. - - The `Expense` object is used also used to represent refunds to direct purchases. Refunds can be distinguished from purchases by the amount sign of the records. Expense objects with a negative amount are purchases and `Expense` objects with a positive amount are refunds to those purchases. - - ### Usage Example - Fetch from the `GET Expense` endpoint and view a company's expense. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the transaction occurred. - """ - - account: typing.Optional[ExpenseRequestAccount] = pydantic.Field(default=None) - """ - The expense's payment account. - """ - - contact: typing.Optional[ExpenseRequestContact] = pydantic.Field(default=None) - """ - The expense's contact. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The expense's total amount. - """ - - sub_total: typing.Optional[float] = pydantic.Field(default=None) - """ - The expense's total amount before tax. - """ - - total_tax_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The expense's total tax amount. - """ - - currency: typing.Optional[ExpenseRequestCurrency] = pydantic.Field(default=None) - """ - The expense's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The expense's exchange rate. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - company: typing.Optional[ExpenseRequestCompany] = pydantic.Field(default=None) - """ - The company the expense belongs to. - """ - - employee: typing.Optional[ExpenseRequestEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The expense's private note. - """ - - lines: typing.Optional[typing.List[ExpenseLineRequest]] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[ExpenseRequestTrackingCategoriesItem]]] = None - accounting_period: typing.Optional[ExpenseRequestAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the Expense was generated in. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_request_account.py b/src/merge/resources/accounting/types/expense_request_account.py deleted file mode 100644 index 6d3d14de..00000000 --- a/src/merge/resources/accounting/types/expense_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ExpenseRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/expense_request_accounting_period.py b/src/merge/resources/accounting/types/expense_request_accounting_period.py deleted file mode 100644 index 42d60154..00000000 --- a/src/merge/resources/accounting/types/expense_request_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -ExpenseRequestAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/expense_request_company.py b/src/merge/resources/accounting/types/expense_request_company.py deleted file mode 100644 index c632888f..00000000 --- a/src/merge/resources/accounting/types/expense_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ExpenseRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/expense_request_contact.py b/src/merge/resources/accounting/types/expense_request_contact.py deleted file mode 100644 index 815e7427..00000000 --- a/src/merge/resources/accounting/types/expense_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ExpenseRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/expense_request_currency.py b/src/merge/resources/accounting/types/expense_request_currency.py deleted file mode 100644 index af5c01f3..00000000 --- a/src/merge/resources/accounting/types/expense_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -ExpenseRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/expense_request_employee.py b/src/merge/resources/accounting/types/expense_request_employee.py deleted file mode 100644 index 5031dad1..00000000 --- a/src/merge/resources/accounting/types/expense_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -ExpenseRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/expense_request_tracking_categories_item.py b/src/merge/resources/accounting/types/expense_request_tracking_categories_item.py deleted file mode 100644 index a56580fa..00000000 --- a/src/merge/resources/accounting/types/expense_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -ExpenseRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/expense_response.py b/src/merge/resources/accounting/types/expense_response.py deleted file mode 100644 index d5e3e54c..00000000 --- a/src/merge/resources/accounting/types/expense_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .expense import Expense -from .warning_validation_problem import WarningValidationProblem - - -class ExpenseResponse(UncheckedBaseModel): - model: Expense - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/expense_tracking_categories_item.py b/src/merge/resources/accounting/types/expense_tracking_categories_item.py deleted file mode 100644 index 69a369cb..00000000 --- a/src/merge/resources/accounting/types/expense_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -ExpenseTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/external_target_field_api.py b/src/merge/resources/accounting/types/external_target_field_api.py deleted file mode 100644 index c0fea1eb..00000000 --- a/src/merge/resources/accounting/types/external_target_field_api.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ExternalTargetFieldApi(UncheckedBaseModel): - name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_mapped: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/external_target_field_api_response.py b/src/merge/resources/accounting/types/external_target_field_api_response.py deleted file mode 100644 index 6e7dbf94..00000000 --- a/src/merge/resources/accounting/types/external_target_field_api_response.py +++ /dev/null @@ -1,78 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .external_target_field_api import ExternalTargetFieldApi - - -class ExternalTargetFieldApiResponse(UncheckedBaseModel): - account: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Account", default=None) - accounting_attachment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="AccountingAttachment", default=None - ) - balance_sheet: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="BalanceSheet", default=None - ) - cash_flow_statement: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="CashFlowStatement", default=None - ) - company_info: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="CompanyInfo", default=None - ) - contact: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Contact", default=None) - income_statement: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="IncomeStatement", default=None - ) - credit_note: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="CreditNote", default=None) - item: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Item", default=None) - purchase_order: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="PurchaseOrder", default=None - ) - expense_report: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="ExpenseReport", default=None - ) - tracking_category: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="TrackingCategory", default=None - ) - journal_entry: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="JournalEntry", default=None - ) - tax_rate: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="TaxRate", default=None) - invoice: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Invoice", default=None) - payment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Payment", default=None) - expense: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Expense", default=None) - vendor_credit: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="VendorCredit", default=None - ) - transaction: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="Transaction", default=None - ) - accounting_period: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="AccountingPeriod", default=None - ) - general_ledger_transaction: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="GeneralLedgerTransaction", default=None - ) - bank_feed_account: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="BankFeedAccount", default=None - ) - employee: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Employee", default=None) - payment_method: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="PaymentMethod", default=None - ) - project: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Project", default=None) - payment_term: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="PaymentTerm", default=None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/feed_status_enum.py b/src/merge/resources/accounting/types/feed_status_enum.py deleted file mode 100644 index 91fdfd18..00000000 --- a/src/merge/resources/accounting/types/feed_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FeedStatusEnum(str, enum.Enum): - """ - * `ACTIVE` - ACTIVE - * `INACTIVE` - INACTIVE - """ - - ACTIVE = "ACTIVE" - INACTIVE = "INACTIVE" - - def visit(self, active: typing.Callable[[], T_Result], inactive: typing.Callable[[], T_Result]) -> T_Result: - if self is FeedStatusEnum.ACTIVE: - return active() - if self is FeedStatusEnum.INACTIVE: - return inactive() diff --git a/src/merge/resources/accounting/types/field_format_enum.py b/src/merge/resources/accounting/types/field_format_enum.py deleted file mode 100644 index 2f6eda2f..00000000 --- a/src/merge/resources/accounting/types/field_format_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FieldFormatEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FieldFormatEnum.STRING: - return string() - if self is FieldFormatEnum.NUMBER: - return number() - if self is FieldFormatEnum.DATE: - return date() - if self is FieldFormatEnum.DATETIME: - return datetime() - if self is FieldFormatEnum.BOOL: - return bool_() - if self is FieldFormatEnum.LIST: - return list_() diff --git a/src/merge/resources/accounting/types/field_mapping_api_instance.py b/src/merge/resources/accounting/types/field_mapping_api_instance.py deleted file mode 100644 index a5815313..00000000 --- a/src/merge/resources/accounting/types/field_mapping_api_instance.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField -from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - - -class FieldMappingApiInstance(UncheckedBaseModel): - id: typing.Optional[str] = None - is_integration_wide: typing.Optional[bool] = None - target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None - remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_mapping_api_instance_remote_field.py b/src/merge/resources/accounting/types/field_mapping_api_instance_remote_field.py deleted file mode 100644 index 578a2b10..00000000 --- a/src/merge/resources/accounting/types/field_mapping_api_instance_remote_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, -) - - -class FieldMappingApiInstanceRemoteField(UncheckedBaseModel): - remote_key_name: typing.Optional[str] = None - schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field( - alias="schema", default=None - ) - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py b/src/merge/resources/accounting/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py deleted file mode 100644 index 4171f08b..00000000 --- a/src/merge/resources/accounting/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel): - method: typing.Optional[str] = None - url_path: typing.Optional[str] = None - field_traversal_path: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_mapping_api_instance_response.py b/src/merge/resources/accounting/types/field_mapping_api_instance_response.py deleted file mode 100644 index dceac32c..00000000 --- a/src/merge/resources/accounting/types/field_mapping_api_instance_response.py +++ /dev/null @@ -1,80 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance import FieldMappingApiInstance - - -class FieldMappingApiInstanceResponse(UncheckedBaseModel): - account: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Account", default=None) - accounting_attachment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="AccountingAttachment", default=None - ) - balance_sheet: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="BalanceSheet", default=None - ) - cash_flow_statement: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="CashFlowStatement", default=None - ) - company_info: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="CompanyInfo", default=None - ) - contact: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Contact", default=None) - income_statement: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="IncomeStatement", default=None - ) - credit_note: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="CreditNote", default=None - ) - item: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Item", default=None) - purchase_order: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="PurchaseOrder", default=None - ) - expense_report: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="ExpenseReport", default=None - ) - tracking_category: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="TrackingCategory", default=None - ) - journal_entry: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="JournalEntry", default=None - ) - tax_rate: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="TaxRate", default=None) - invoice: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Invoice", default=None) - payment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Payment", default=None) - expense: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Expense", default=None) - vendor_credit: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="VendorCredit", default=None - ) - transaction: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="Transaction", default=None - ) - accounting_period: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="AccountingPeriod", default=None - ) - general_ledger_transaction: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="GeneralLedgerTransaction", default=None - ) - bank_feed_account: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="BankFeedAccount", default=None - ) - employee: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Employee", default=None) - payment_method: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="PaymentMethod", default=None - ) - project: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Project", default=None) - payment_term: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="PaymentTerm", default=None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_mapping_api_instance_target_field.py b/src/merge/resources/accounting/types/field_mapping_api_instance_target_field.py deleted file mode 100644 index e6474cba..00000000 --- a/src/merge/resources/accounting/types/field_mapping_api_instance_target_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceTargetField(UncheckedBaseModel): - name: str - description: str - is_organization_wide: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_mapping_instance_response.py b/src/merge/resources/accounting/types/field_mapping_instance_response.py deleted file mode 100644 index f921e641..00000000 --- a/src/merge/resources/accounting/types/field_mapping_instance_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .field_mapping_api_instance import FieldMappingApiInstance -from .warning_validation_problem import WarningValidationProblem - - -class FieldMappingInstanceResponse(UncheckedBaseModel): - model: FieldMappingApiInstance - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_permission_deserializer.py b/src/merge/resources/accounting/types/field_permission_deserializer.py deleted file mode 100644 index 1d71ae04..00000000 --- a/src/merge/resources/accounting/types/field_permission_deserializer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializer(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_permission_deserializer_request.py b/src/merge/resources/accounting/types/field_permission_deserializer_request.py deleted file mode 100644 index a4113b46..00000000 --- a/src/merge/resources/accounting/types/field_permission_deserializer_request.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializerRequest(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/field_type_enum.py b/src/merge/resources/accounting/types/field_type_enum.py deleted file mode 100644 index b99c1309..00000000 --- a/src/merge/resources/accounting/types/field_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FieldTypeEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FieldTypeEnum.STRING: - return string() - if self is FieldTypeEnum.NUMBER: - return number() - if self is FieldTypeEnum.DATE: - return date() - if self is FieldTypeEnum.DATETIME: - return datetime() - if self is FieldTypeEnum.BOOL: - return bool_() - if self is FieldTypeEnum.LIST: - return list_() diff --git a/src/merge/resources/accounting/types/general_ledger_transaction.py b/src/merge/resources/accounting/types/general_ledger_transaction.py deleted file mode 100644 index b2c874fb..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction.py +++ /dev/null @@ -1,119 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .general_ledger_transaction_accounting_period import GeneralLedgerTransactionAccountingPeriod -from .general_ledger_transaction_company import GeneralLedgerTransactionCompany -from .general_ledger_transaction_general_ledger_transaction_lines_item import ( - GeneralLedgerTransactionGeneralLedgerTransactionLinesItem, -) -from .general_ledger_transaction_tracking_categories_item import GeneralLedgerTransactionTrackingCategoriesItem -from .general_ledger_transaction_underlying_transaction_type import GeneralLedgerTransactionUnderlyingTransactionType -from .remote_data import RemoteData - - -class GeneralLedgerTransaction(UncheckedBaseModel): - """ - # The GeneralLedgerTransaction Object - ### Description - A General Ledger Entry is a record of a financial transaction that is posted to the general ledger, the central repository of a company’s financial data. - - The `GeneralLedgerTransaction` object is a singular endpoint to pull all transactions posted to a company’s general ledger. The transaction that generated the `GeneralLedgerTransaction` can be found by referencing the `underlying_transaction_type` and `underlying_transaction_remote_id` fields. - - The lines of a `GeneralLedgerTransaction` object will always have equal amounts of debits and credits. - - ### Usage Example - Fetch from the `GET GeneralLedgerTransaction` endpoint and view a general ledger transaction. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - underlying_transaction_remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third party remote ID of the underlying transaction. - """ - - underlying_transaction_type: typing.Optional[GeneralLedgerTransactionUnderlyingTransactionType] = pydantic.Field( - default=None - ) - """ - The type of the underlying transaction. - - * `INVOICE` - INVOICE - * `EXPENSE` - EXPENSE - * `TRANSACTION` - TRANSACTION - * `JOURNAL_ENTRY` - JOURNAL_ENTRY - * `PAYMENT` - PAYMENT - * `VENDOR_CREDIT` - VENDOR_CREDIT - * `CREDIT_NOTE` - CREDIT_NOTE - """ - - accounting_period: typing.Optional[GeneralLedgerTransactionAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the GeneralLedgerTransaction was generated in. - """ - - company: typing.Optional[GeneralLedgerTransactionCompany] = pydantic.Field(default=None) - """ - The company the GeneralLedgerTransaction belongs to. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's GeneralLedgerTransaction entry was updated. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's GeneralLedgerTransaction entry was created. - """ - - tracking_categories: typing.Optional[ - typing.List[typing.Optional[GeneralLedgerTransactionTrackingCategoriesItem]] - ] = None - posting_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date that the transaction was posted to the general ledger. - """ - - general_ledger_transaction_lines: typing.Optional[ - typing.List[GeneralLedgerTransactionGeneralLedgerTransactionLinesItem] - ] = pydantic.Field(default=None) - """ - A list of β€œGeneral Ledger Transaction Applied to Lines” objects. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_accounting_period.py b/src/merge/resources/accounting/types/general_ledger_transaction_accounting_period.py deleted file mode 100644 index 7c771414..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -GeneralLedgerTransactionAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_company.py b/src/merge/resources/accounting/types/general_ledger_transaction_company.py deleted file mode 100644 index 64e5741f..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -GeneralLedgerTransactionCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_general_ledger_transaction_lines_item.py b/src/merge/resources/accounting/types/general_ledger_transaction_general_ledger_transaction_lines_item.py deleted file mode 100644 index c64d8baa..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_general_ledger_transaction_lines_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .general_ledger_transaction_line import GeneralLedgerTransactionLine - -GeneralLedgerTransactionGeneralLedgerTransactionLinesItem = typing.Union[str, GeneralLedgerTransactionLine] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line.py b/src/merge/resources/accounting/types/general_ledger_transaction_line.py deleted file mode 100644 index 41f26593..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line.py +++ /dev/null @@ -1,711 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .general_ledger_transaction_line_account import GeneralLedgerTransactionLineAccount -from .general_ledger_transaction_line_base_currency import GeneralLedgerTransactionLineBaseCurrency -from .general_ledger_transaction_line_company import GeneralLedgerTransactionLineCompany -from .general_ledger_transaction_line_contact import GeneralLedgerTransactionLineContact -from .general_ledger_transaction_line_employee import GeneralLedgerTransactionLineEmployee -from .general_ledger_transaction_line_item import GeneralLedgerTransactionLineItem -from .general_ledger_transaction_line_project import GeneralLedgerTransactionLineProject -from .general_ledger_transaction_line_tracking_categories_item import GeneralLedgerTransactionLineTrackingCategoriesItem -from .general_ledger_transaction_line_transaction_currency import GeneralLedgerTransactionLineTransactionCurrency - - -class GeneralLedgerTransactionLine(UncheckedBaseModel): - """ - # The GeneralLedgerTransactionLineSerializer Object - ### Description - The `GeneralLedgerTransactionLineSerializer` object represents general ledger transaction line item. - - ### Usage Example Fetch from the `GET GeneralLedgerTransactionLineSerializer` endpoint and view an - `GeneralLedgerTransaction` line item. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - account: typing.Optional[GeneralLedgerTransactionLineAccount] = None - company: typing.Optional[GeneralLedgerTransactionLineCompany] = pydantic.Field(default=None) - """ - The company the GeneralLedgerTransaction belongs to. - """ - - employee: typing.Optional[GeneralLedgerTransactionLineEmployee] = None - contact: typing.Optional[GeneralLedgerTransactionLineContact] = None - project: typing.Optional[GeneralLedgerTransactionLineProject] = None - base_currency: typing.Optional[GeneralLedgerTransactionLineBaseCurrency] = pydantic.Field(default=None) - """ - The base currency of the transaction - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - transaction_currency: typing.Optional[GeneralLedgerTransactionLineTransactionCurrency] = pydantic.Field( - default=None - ) - """ - The transaction currency that the transaction is made in. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The exchange rate between the base currency and the transaction currency. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the line item. - """ - - tracking_categories: typing.Optional[typing.List[GeneralLedgerTransactionLineTrackingCategoriesItem]] = None - debit_amount: str - credit_amount: str - item: typing.Optional[GeneralLedgerTransactionLineItem] = None - foreign_debit_amount: str - foreign_credit_amount: str - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_account.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_account.py deleted file mode 100644 index 89aad014..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -GeneralLedgerTransactionLineAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_base_currency.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_base_currency.py deleted file mode 100644 index 7f4a549f..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_base_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -GeneralLedgerTransactionLineBaseCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_company.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_company.py deleted file mode 100644 index a0e34d7a..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -GeneralLedgerTransactionLineCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_contact.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_contact.py deleted file mode 100644 index 302034fd..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -GeneralLedgerTransactionLineContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_employee.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_employee.py deleted file mode 100644 index a2f35bc0..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -GeneralLedgerTransactionLineEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_item.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_item.py deleted file mode 100644 index 1600c001..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -GeneralLedgerTransactionLineItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_project.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_project.py deleted file mode 100644 index dfc52b59..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -GeneralLedgerTransactionLineProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_tracking_categories_item.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_tracking_categories_item.py deleted file mode 100644 index 42e27203..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -GeneralLedgerTransactionLineTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_line_transaction_currency.py b/src/merge/resources/accounting/types/general_ledger_transaction_line_transaction_currency.py deleted file mode 100644 index 4737b029..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_line_transaction_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -GeneralLedgerTransactionLineTransactionCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_tracking_categories_item.py b/src/merge/resources/accounting/types/general_ledger_transaction_tracking_categories_item.py deleted file mode 100644 index 20b52e97..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -GeneralLedgerTransactionTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/general_ledger_transaction_underlying_transaction_type.py b/src/merge/resources/accounting/types/general_ledger_transaction_underlying_transaction_type.py deleted file mode 100644 index 31bf2bcf..00000000 --- a/src/merge/resources/accounting/types/general_ledger_transaction_underlying_transaction_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .underlying_transaction_type_enum import UnderlyingTransactionTypeEnum - -GeneralLedgerTransactionUnderlyingTransactionType = typing.Union[UnderlyingTransactionTypeEnum, str] diff --git a/src/merge/resources/accounting/types/income_statement.py b/src/merge/resources/accounting/types/income_statement.py deleted file mode 100644 index 39feb450..00000000 --- a/src/merge/resources/accounting/types/income_statement.py +++ /dev/null @@ -1,407 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .income_statement_company import IncomeStatementCompany -from .income_statement_currency import IncomeStatementCurrency -from .remote_data import RemoteData -from .report_item import ReportItem - - -class IncomeStatement(UncheckedBaseModel): - """ - # The IncomeStatement Object - ### Description - The `IncomeStatement` object is used to represent a company’s income, the cost of sales, operating expenses, and other non-operating expenses. The object also includes other important values like gross profit, gross operating profit, and net income. This represents a period of time (month, quarter, or year). - - ### Usage Example - Fetch from the `GET IncomeStatement` endpoint and view a company's income statement for a given period. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The income statement's name. - """ - - currency: typing.Optional[IncomeStatementCurrency] = pydantic.Field(default=None) - """ - The income statement's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - company: typing.Optional[IncomeStatementCompany] = pydantic.Field(default=None) - """ - The company the income statement belongs to. - """ - - start_period: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The income statement's start period. - """ - - end_period: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The income statement's end period. - """ - - income: typing.Optional[typing.List[ReportItem]] = None - cost_of_sales: typing.Optional[typing.List[ReportItem]] = None - gross_profit: typing.Optional[float] = pydantic.Field(default=None) - """ - The revenue minus the cost of sale. - """ - - operating_expenses: typing.Optional[typing.List[ReportItem]] = None - net_operating_income: typing.Optional[float] = pydantic.Field(default=None) - """ - The revenue minus the operating expenses. - """ - - non_operating_expenses: typing.Optional[typing.List[ReportItem]] = None - net_income: typing.Optional[float] = pydantic.Field(default=None) - """ - The gross profit minus the total expenses. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/income_statement_company.py b/src/merge/resources/accounting/types/income_statement_company.py deleted file mode 100644 index 62b20e79..00000000 --- a/src/merge/resources/accounting/types/income_statement_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -IncomeStatementCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/income_statement_currency.py b/src/merge/resources/accounting/types/income_statement_currency.py deleted file mode 100644 index 3a55f491..00000000 --- a/src/merge/resources/accounting/types/income_statement_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -IncomeStatementCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/individual_common_model_scope_deserializer.py b/src/merge/resources/accounting/types/individual_common_model_scope_deserializer.py deleted file mode 100644 index 4b1ef6a4..00000000 --- a/src/merge/resources/accounting/types/individual_common_model_scope_deserializer.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer import FieldPermissionDeserializer -from .model_permission_deserializer import ModelPermissionDeserializer - - -class IndividualCommonModelScopeDeserializer(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None - field_permissions: typing.Optional[FieldPermissionDeserializer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/individual_common_model_scope_deserializer_request.py b/src/merge/resources/accounting/types/individual_common_model_scope_deserializer_request.py deleted file mode 100644 index 1dcda203..00000000 --- a/src/merge/resources/accounting/types/individual_common_model_scope_deserializer_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer_request import FieldPermissionDeserializerRequest -from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - - -class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None - field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/invoice.py b/src/merge/resources/accounting/types/invoice.py deleted file mode 100644 index 628e1b78..00000000 --- a/src/merge/resources/accounting/types/invoice.py +++ /dev/null @@ -1,534 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .invoice_accounting_period import InvoiceAccountingPeriod -from .invoice_applied_payments_item import InvoiceAppliedPaymentsItem -from .invoice_company import InvoiceCompany -from .invoice_contact import InvoiceContact -from .invoice_currency import InvoiceCurrency -from .invoice_employee import InvoiceEmployee -from .invoice_line_item import InvoiceLineItem -from .invoice_payment_term import InvoicePaymentTerm -from .invoice_payments_item import InvoicePaymentsItem -from .invoice_purchase_orders_item import InvoicePurchaseOrdersItem -from .invoice_status import InvoiceStatus -from .invoice_tracking_categories_item import InvoiceTrackingCategoriesItem -from .invoice_type import InvoiceType -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Invoice(UncheckedBaseModel): - """ - # The Invoice Object - ### Description - The `Invoice` object represents an itemized record of goods and/or services sold to a customer or bought from a vendor. - - - Represents a Bill when the `Invoice` type is `ACCOUNTS_PAYABLE`. References an Invoice when the `Invoice` type is `ACCOUNTS_RECEIVABLE`. - - ### Usage Example - Fetch from the `LIST Invoices` endpoint and view a company's invoices. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - type: typing.Optional[InvoiceType] = pydantic.Field(default=None) - """ - Whether the invoice is an accounts receivable or accounts payable. If `type` is `ACCOUNTS_PAYABLE`, the invoice is a bill. If `type` is `ACCOUNTS_RECEIVABLE`, it is an invoice. - - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - """ - - contact: typing.Optional[InvoiceContact] = pydantic.Field(default=None) - """ - The invoice's contact. - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The invoice's number. - """ - - issue_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The invoice's issue date. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The invoice's due date. - """ - - paid_on_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The invoice's paid date. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The invoice's private note. - """ - - company: typing.Optional[InvoiceCompany] = pydantic.Field(default=None) - """ - The company the invoice belongs to. - """ - - employee: typing.Optional[InvoiceEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - currency: typing.Optional[InvoiceCurrency] = pydantic.Field(default=None) - """ - The invoice's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The invoice's exchange rate. - """ - - payment_term: typing.Optional[InvoicePaymentTerm] = pydantic.Field(default=None) - """ - The payment term that applies to this transaction. - """ - - total_discount: typing.Optional[float] = pydantic.Field(default=None) - """ - The total discounts applied to the total cost. - """ - - sub_total: typing.Optional[float] = pydantic.Field(default=None) - """ - The total amount being paid before taxes. - """ - - status: typing.Optional[InvoiceStatus] = pydantic.Field(default=None) - """ - The status of the invoice. - - * `PAID` - PAID - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `PARTIALLY_PAID` - PARTIALLY_PAID - * `OPEN` - OPEN - * `VOID` - VOID - """ - - total_tax_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The total amount being paid in taxes. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The invoice's total amount. - """ - - balance: typing.Optional[float] = pydantic.Field(default=None) - """ - The invoice's remaining balance. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's invoice entry was updated. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[InvoiceTrackingCategoriesItem]]] = None - accounting_period: typing.Optional[InvoiceAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the Invoice was generated in. - """ - - purchase_orders: typing.Optional[typing.List[typing.Optional[InvoicePurchaseOrdersItem]]] = None - payments: typing.Optional[typing.List[typing.Optional[InvoicePaymentsItem]]] = pydantic.Field(default=None) - """ - Array of `Payment` object IDs. - """ - - applied_payments: typing.Optional[typing.List[typing.Optional[InvoiceAppliedPaymentsItem]]] = pydantic.Field( - default=None - ) - """ - A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. - """ - - line_items: typing.Optional[typing.List[InvoiceLineItem]] = None - applied_credit_notes: typing.Optional[typing.List["InvoiceAppliedCreditNotesItem"]] = pydantic.Field(default=None) - """ - `CreditNoteApplyLines` applied to the Invoice. - """ - - applied_vendor_credits: typing.Optional[typing.List["InvoiceAppliedVendorCreditsItem"]] = pydantic.Field( - default=None - ) - """ - `VendorCreditApplyLines` applied to the Invoice. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 -from .invoice_applied_credit_notes_item import InvoiceAppliedCreditNotesItem # noqa: E402, F401, I001 -from .invoice_applied_vendor_credits_item import InvoiceAppliedVendorCreditsItem # noqa: E402, F401, I001 - -update_forward_refs(Invoice) diff --git a/src/merge/resources/accounting/types/invoice_accounting_period.py b/src/merge/resources/accounting/types/invoice_accounting_period.py deleted file mode 100644 index e3b87d8c..00000000 --- a/src/merge/resources/accounting/types/invoice_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -InvoiceAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/invoice_applied_credit_notes_item.py b/src/merge/resources/accounting/types/invoice_applied_credit_notes_item.py deleted file mode 100644 index 1eb63aa6..00000000 --- a/src/merge/resources/accounting/types/invoice_applied_credit_notes_item.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice -InvoiceAppliedCreditNotesItem = typing.Union[str, "CreditNoteApplyLineForInvoice"] diff --git a/src/merge/resources/accounting/types/invoice_applied_payments_item.py b/src/merge/resources/accounting/types/invoice_applied_payments_item.py deleted file mode 100644 index e2b48038..00000000 --- a/src/merge/resources/accounting/types/invoice_applied_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_line_item import PaymentLineItem - -InvoiceAppliedPaymentsItem = typing.Union[str, PaymentLineItem] diff --git a/src/merge/resources/accounting/types/invoice_applied_vendor_credits_item.py b/src/merge/resources/accounting/types/invoice_applied_vendor_credits_item.py deleted file mode 100644 index c677fbbf..00000000 --- a/src/merge/resources/accounting/types/invoice_applied_vendor_credits_item.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice -InvoiceAppliedVendorCreditsItem = typing.Union[str, "VendorCreditApplyLineForInvoice"] diff --git a/src/merge/resources/accounting/types/invoice_company.py b/src/merge/resources/accounting/types/invoice_company.py deleted file mode 100644 index e8558dc2..00000000 --- a/src/merge/resources/accounting/types/invoice_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -InvoiceCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/invoice_contact.py b/src/merge/resources/accounting/types/invoice_contact.py deleted file mode 100644 index 88b5c862..00000000 --- a/src/merge/resources/accounting/types/invoice_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -InvoiceContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/invoice_currency.py b/src/merge/resources/accounting/types/invoice_currency.py deleted file mode 100644 index 7cc3fdfe..00000000 --- a/src/merge/resources/accounting/types/invoice_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -InvoiceCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_employee.py b/src/merge/resources/accounting/types/invoice_employee.py deleted file mode 100644 index d55c9efc..00000000 --- a/src/merge/resources/accounting/types/invoice_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -InvoiceEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/invoice_line_item.py b/src/merge/resources/accounting/types/invoice_line_item.py deleted file mode 100644 index 2ef8d245..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item.py +++ /dev/null @@ -1,429 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .invoice_line_item_account import InvoiceLineItemAccount -from .invoice_line_item_contact import InvoiceLineItemContact -from .invoice_line_item_currency import InvoiceLineItemCurrency -from .invoice_line_item_employee import InvoiceLineItemEmployee -from .invoice_line_item_item import InvoiceLineItemItem -from .invoice_line_item_project import InvoiceLineItemProject -from .invoice_line_item_tracking_categories_item import InvoiceLineItemTrackingCategoriesItem -from .invoice_line_item_tracking_category import InvoiceLineItemTrackingCategory -from .remote_field import RemoteField - - -class InvoiceLineItem(UncheckedBaseModel): - """ - # The InvoiceLineItem Object - ### Description - The `InvoiceLineItem` object represents an itemized record of goods and/or services sold to a customer. - - ### Usage Example - Fetch from the `GET Invoice` endpoint and view the invoice's line items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's description. - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's unit price. - """ - - quantity: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's quantity. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's total amount. - """ - - employee: typing.Optional[InvoiceLineItemEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - project: typing.Optional[InvoiceLineItemProject] = None - contact: typing.Optional[InvoiceLineItemContact] = pydantic.Field(default=None) - """ - The invoice's contact. - """ - - currency: typing.Optional[InvoiceLineItemCurrency] = pydantic.Field(default=None) - """ - The line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's exchange rate. - """ - - item: typing.Optional[InvoiceLineItemItem] = None - account: typing.Optional[InvoiceLineItemAccount] = None - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - tracking_category: typing.Optional[InvoiceLineItemTrackingCategory] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[InvoiceLineItemTrackingCategoriesItem]]] = ( - pydantic.Field(default=None) - ) - """ - The invoice line item's associated tracking categories. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the invoice belongs to. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/invoice_line_item_account.py b/src/merge/resources/accounting/types/invoice_line_item_account.py deleted file mode 100644 index c9bd67f7..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -InvoiceLineItemAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/invoice_line_item_contact.py b/src/merge/resources/accounting/types/invoice_line_item_contact.py deleted file mode 100644 index ac14d84b..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -InvoiceLineItemContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/invoice_line_item_currency.py b/src/merge/resources/accounting/types/invoice_line_item_currency.py deleted file mode 100644 index 417d389a..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -InvoiceLineItemCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_line_item_employee.py b/src/merge/resources/accounting/types/invoice_line_item_employee.py deleted file mode 100644 index 7eca0667..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -InvoiceLineItemEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/invoice_line_item_item.py b/src/merge/resources/accounting/types/invoice_line_item_item.py deleted file mode 100644 index dbf9418a..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -InvoiceLineItemItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/invoice_line_item_project.py b/src/merge/resources/accounting/types/invoice_line_item_project.py deleted file mode 100644 index 713f2b6a..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -InvoiceLineItemProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request.py b/src/merge/resources/accounting/types/invoice_line_item_request.py deleted file mode 100644 index aeea1507..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request.py +++ /dev/null @@ -1,413 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .invoice_line_item_request_account import InvoiceLineItemRequestAccount -from .invoice_line_item_request_contact import InvoiceLineItemRequestContact -from .invoice_line_item_request_currency import InvoiceLineItemRequestCurrency -from .invoice_line_item_request_employee import InvoiceLineItemRequestEmployee -from .invoice_line_item_request_item import InvoiceLineItemRequestItem -from .invoice_line_item_request_project import InvoiceLineItemRequestProject -from .invoice_line_item_request_tracking_categories_item import InvoiceLineItemRequestTrackingCategoriesItem -from .invoice_line_item_request_tracking_category import InvoiceLineItemRequestTrackingCategory -from .remote_field_request import RemoteFieldRequest - - -class InvoiceLineItemRequest(UncheckedBaseModel): - """ - # The InvoiceLineItem Object - ### Description - The `InvoiceLineItem` object represents an itemized record of goods and/or services sold to a customer. - - ### Usage Example - Fetch from the `GET Invoice` endpoint and view the invoice's line items. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's description. - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's unit price. - """ - - quantity: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's quantity. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's total amount. - """ - - employee: typing.Optional[InvoiceLineItemRequestEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - project: typing.Optional[InvoiceLineItemRequestProject] = None - contact: typing.Optional[InvoiceLineItemRequestContact] = pydantic.Field(default=None) - """ - The invoice's contact. - """ - - currency: typing.Optional[InvoiceLineItemRequestCurrency] = pydantic.Field(default=None) - """ - The line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's exchange rate. - """ - - item: typing.Optional[InvoiceLineItemRequestItem] = None - account: typing.Optional[InvoiceLineItemRequestAccount] = None - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - tracking_category: typing.Optional[InvoiceLineItemRequestTrackingCategory] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[InvoiceLineItemRequestTrackingCategoriesItem]]] = ( - pydantic.Field(default=None) - ) - """ - The invoice line item's associated tracking categories. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the invoice belongs to. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_account.py b/src/merge/resources/accounting/types/invoice_line_item_request_account.py deleted file mode 100644 index 0b1c8cd6..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -InvoiceLineItemRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_contact.py b/src/merge/resources/accounting/types/invoice_line_item_request_contact.py deleted file mode 100644 index 3accba92..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -InvoiceLineItemRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_currency.py b/src/merge/resources/accounting/types/invoice_line_item_request_currency.py deleted file mode 100644 index 22b73b39..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -InvoiceLineItemRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_employee.py b/src/merge/resources/accounting/types/invoice_line_item_request_employee.py deleted file mode 100644 index 1a6c561e..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -InvoiceLineItemRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_item.py b/src/merge/resources/accounting/types/invoice_line_item_request_item.py deleted file mode 100644 index a0c32380..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -InvoiceLineItemRequestItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_project.py b/src/merge/resources/accounting/types/invoice_line_item_request_project.py deleted file mode 100644 index 2ca28d2d..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -InvoiceLineItemRequestProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_tracking_categories_item.py b/src/merge/resources/accounting/types/invoice_line_item_request_tracking_categories_item.py deleted file mode 100644 index a7eba0c4..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -InvoiceLineItemRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/invoice_line_item_request_tracking_category.py b/src/merge/resources/accounting/types/invoice_line_item_request_tracking_category.py deleted file mode 100644 index 499d43ee..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_request_tracking_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -InvoiceLineItemRequestTrackingCategory = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/invoice_line_item_tracking_categories_item.py b/src/merge/resources/accounting/types/invoice_line_item_tracking_categories_item.py deleted file mode 100644 index fa22c4ea..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -InvoiceLineItemTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/invoice_line_item_tracking_category.py b/src/merge/resources/accounting/types/invoice_line_item_tracking_category.py deleted file mode 100644 index fff4c012..00000000 --- a/src/merge/resources/accounting/types/invoice_line_item_tracking_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -InvoiceLineItemTrackingCategory = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/invoice_payment_term.py b/src/merge/resources/accounting/types/invoice_payment_term.py deleted file mode 100644 index 5666e256..00000000 --- a/src/merge/resources/accounting/types/invoice_payment_term.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_term import PaymentTerm - -InvoicePaymentTerm = typing.Union[str, PaymentTerm] diff --git a/src/merge/resources/accounting/types/invoice_payments_item.py b/src/merge/resources/accounting/types/invoice_payments_item.py deleted file mode 100644 index 546f3ef2..00000000 --- a/src/merge/resources/accounting/types/invoice_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment import Payment - -InvoicePaymentsItem = typing.Union[str, Payment] diff --git a/src/merge/resources/accounting/types/invoice_purchase_orders_item.py b/src/merge/resources/accounting/types/invoice_purchase_orders_item.py deleted file mode 100644 index a91afeba..00000000 --- a/src/merge/resources/accounting/types/invoice_purchase_orders_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .purchase_order import PurchaseOrder - -InvoicePurchaseOrdersItem = typing.Union[str, PurchaseOrder] diff --git a/src/merge/resources/accounting/types/invoice_request.py b/src/merge/resources/accounting/types/invoice_request.py deleted file mode 100644 index 5bfa2e9f..00000000 --- a/src/merge/resources/accounting/types/invoice_request.py +++ /dev/null @@ -1,467 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .invoice_line_item_request import InvoiceLineItemRequest -from .invoice_request_company import InvoiceRequestCompany -from .invoice_request_contact import InvoiceRequestContact -from .invoice_request_currency import InvoiceRequestCurrency -from .invoice_request_employee import InvoiceRequestEmployee -from .invoice_request_payment_term import InvoiceRequestPaymentTerm -from .invoice_request_payments_item import InvoiceRequestPaymentsItem -from .invoice_request_purchase_orders_item import InvoiceRequestPurchaseOrdersItem -from .invoice_request_status import InvoiceRequestStatus -from .invoice_request_tracking_categories_item import InvoiceRequestTrackingCategoriesItem -from .invoice_request_type import InvoiceRequestType -from .remote_field_request import RemoteFieldRequest - - -class InvoiceRequest(UncheckedBaseModel): - """ - # The Invoice Object - ### Description - The `Invoice` object represents an itemized record of goods and/or services sold to a customer or bought from a vendor. - - - Represents a Bill when the `Invoice` type is `ACCOUNTS_PAYABLE`. References an Invoice when the `Invoice` type is `ACCOUNTS_RECEIVABLE`. - - ### Usage Example - Fetch from the `LIST Invoices` endpoint and view a company's invoices. - """ - - type: typing.Optional[InvoiceRequestType] = pydantic.Field(default=None) - """ - Whether the invoice is an accounts receivable or accounts payable. If `type` is `ACCOUNTS_PAYABLE`, the invoice is a bill. If `type` is `ACCOUNTS_RECEIVABLE`, it is an invoice. - - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - """ - - contact: typing.Optional[InvoiceRequestContact] = pydantic.Field(default=None) - """ - The invoice's contact. - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The invoice's number. - """ - - issue_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The invoice's issue date. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The invoice's due date. - """ - - paid_on_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The invoice's paid date. - """ - - employee: typing.Optional[InvoiceRequestEmployee] = pydantic.Field(default=None) - """ - The employee this overall transaction relates to. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The invoice's private note. - """ - - status: typing.Optional[InvoiceRequestStatus] = pydantic.Field(default=None) - """ - The status of the invoice. - - * `PAID` - PAID - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `PARTIALLY_PAID` - PARTIALLY_PAID - * `OPEN` - OPEN - * `VOID` - VOID - """ - - company: typing.Optional[InvoiceRequestCompany] = pydantic.Field(default=None) - """ - The company the invoice belongs to. - """ - - currency: typing.Optional[InvoiceRequestCurrency] = pydantic.Field(default=None) - """ - The invoice's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The invoice's exchange rate. - """ - - total_discount: typing.Optional[float] = pydantic.Field(default=None) - """ - The total discounts applied to the total cost. - """ - - sub_total: typing.Optional[float] = pydantic.Field(default=None) - """ - The total amount being paid before taxes. - """ - - payment_term: typing.Optional[InvoiceRequestPaymentTerm] = pydantic.Field(default=None) - """ - The payment term that applies to this transaction. - """ - - total_tax_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The total amount being paid in taxes. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The invoice's total amount. - """ - - balance: typing.Optional[float] = pydantic.Field(default=None) - """ - The invoice's remaining balance. - """ - - payments: typing.Optional[typing.List[typing.Optional[InvoiceRequestPaymentsItem]]] = pydantic.Field(default=None) - """ - Array of `Payment` object IDs. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[InvoiceRequestTrackingCategoriesItem]]] = None - line_items: typing.Optional[typing.List[InvoiceLineItemRequest]] = None - purchase_orders: typing.Optional[typing.List[typing.Optional[InvoiceRequestPurchaseOrdersItem]]] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/invoice_request_company.py b/src/merge/resources/accounting/types/invoice_request_company.py deleted file mode 100644 index dba10e8c..00000000 --- a/src/merge/resources/accounting/types/invoice_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -InvoiceRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/invoice_request_contact.py b/src/merge/resources/accounting/types/invoice_request_contact.py deleted file mode 100644 index e197c573..00000000 --- a/src/merge/resources/accounting/types/invoice_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -InvoiceRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/invoice_request_currency.py b/src/merge/resources/accounting/types/invoice_request_currency.py deleted file mode 100644 index 70d5104b..00000000 --- a/src/merge/resources/accounting/types/invoice_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -InvoiceRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_request_employee.py b/src/merge/resources/accounting/types/invoice_request_employee.py deleted file mode 100644 index cbfe7d82..00000000 --- a/src/merge/resources/accounting/types/invoice_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -InvoiceRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/accounting/types/invoice_request_payment_term.py b/src/merge/resources/accounting/types/invoice_request_payment_term.py deleted file mode 100644 index 6367179b..00000000 --- a/src/merge/resources/accounting/types/invoice_request_payment_term.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_term import PaymentTerm - -InvoiceRequestPaymentTerm = typing.Union[str, PaymentTerm] diff --git a/src/merge/resources/accounting/types/invoice_request_payments_item.py b/src/merge/resources/accounting/types/invoice_request_payments_item.py deleted file mode 100644 index 9fce823b..00000000 --- a/src/merge/resources/accounting/types/invoice_request_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment import Payment - -InvoiceRequestPaymentsItem = typing.Union[str, Payment] diff --git a/src/merge/resources/accounting/types/invoice_request_purchase_orders_item.py b/src/merge/resources/accounting/types/invoice_request_purchase_orders_item.py deleted file mode 100644 index e45382ce..00000000 --- a/src/merge/resources/accounting/types/invoice_request_purchase_orders_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .purchase_order import PurchaseOrder - -InvoiceRequestPurchaseOrdersItem = typing.Union[str, PurchaseOrder] diff --git a/src/merge/resources/accounting/types/invoice_request_status.py b/src/merge/resources/accounting/types/invoice_request_status.py deleted file mode 100644 index 7311ef1d..00000000 --- a/src/merge/resources/accounting/types/invoice_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .invoice_status_enum import InvoiceStatusEnum - -InvoiceRequestStatus = typing.Union[InvoiceStatusEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_request_tracking_categories_item.py b/src/merge/resources/accounting/types/invoice_request_tracking_categories_item.py deleted file mode 100644 index 9a333048..00000000 --- a/src/merge/resources/accounting/types/invoice_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -InvoiceRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/invoice_request_type.py b/src/merge/resources/accounting/types/invoice_request_type.py deleted file mode 100644 index 9b0799d0..00000000 --- a/src/merge/resources/accounting/types/invoice_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .invoice_type_enum import InvoiceTypeEnum - -InvoiceRequestType = typing.Union[InvoiceTypeEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_response.py b/src/merge/resources/accounting/types/invoice_response.py deleted file mode 100644 index ee6e266e..00000000 --- a/src/merge/resources/accounting/types/invoice_response.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class InvoiceResponse(UncheckedBaseModel): - model: "Invoice" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(InvoiceResponse) diff --git a/src/merge/resources/accounting/types/invoice_status.py b/src/merge/resources/accounting/types/invoice_status.py deleted file mode 100644 index aff15936..00000000 --- a/src/merge/resources/accounting/types/invoice_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .invoice_status_enum import InvoiceStatusEnum - -InvoiceStatus = typing.Union[InvoiceStatusEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_status_enum.py b/src/merge/resources/accounting/types/invoice_status_enum.py deleted file mode 100644 index ff3bde31..00000000 --- a/src/merge/resources/accounting/types/invoice_status_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InvoiceStatusEnum(str, enum.Enum): - """ - * `PAID` - PAID - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `PARTIALLY_PAID` - PARTIALLY_PAID - * `OPEN` - OPEN - * `VOID` - VOID - """ - - PAID = "PAID" - DRAFT = "DRAFT" - SUBMITTED = "SUBMITTED" - PARTIALLY_PAID = "PARTIALLY_PAID" - OPEN = "OPEN" - VOID = "VOID" - - def visit( - self, - paid: typing.Callable[[], T_Result], - draft: typing.Callable[[], T_Result], - submitted: typing.Callable[[], T_Result], - partially_paid: typing.Callable[[], T_Result], - open: typing.Callable[[], T_Result], - void: typing.Callable[[], T_Result], - ) -> T_Result: - if self is InvoiceStatusEnum.PAID: - return paid() - if self is InvoiceStatusEnum.DRAFT: - return draft() - if self is InvoiceStatusEnum.SUBMITTED: - return submitted() - if self is InvoiceStatusEnum.PARTIALLY_PAID: - return partially_paid() - if self is InvoiceStatusEnum.OPEN: - return open() - if self is InvoiceStatusEnum.VOID: - return void() diff --git a/src/merge/resources/accounting/types/invoice_tracking_categories_item.py b/src/merge/resources/accounting/types/invoice_tracking_categories_item.py deleted file mode 100644 index 1ade3e05..00000000 --- a/src/merge/resources/accounting/types/invoice_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -InvoiceTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/invoice_type.py b/src/merge/resources/accounting/types/invoice_type.py deleted file mode 100644 index 701f7ece..00000000 --- a/src/merge/resources/accounting/types/invoice_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .invoice_type_enum import InvoiceTypeEnum - -InvoiceType = typing.Union[InvoiceTypeEnum, str] diff --git a/src/merge/resources/accounting/types/invoice_type_enum.py b/src/merge/resources/accounting/types/invoice_type_enum.py deleted file mode 100644 index 85fcb469..00000000 --- a/src/merge/resources/accounting/types/invoice_type_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InvoiceTypeEnum(str, enum.Enum): - """ - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - """ - - ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE" - ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE" - - def visit( - self, accounts_receivable: typing.Callable[[], T_Result], accounts_payable: typing.Callable[[], T_Result] - ) -> T_Result: - if self is InvoiceTypeEnum.ACCOUNTS_RECEIVABLE: - return accounts_receivable() - if self is InvoiceTypeEnum.ACCOUNTS_PAYABLE: - return accounts_payable() diff --git a/src/merge/resources/accounting/types/issue.py b/src/merge/resources/accounting/types/issue.py deleted file mode 100644 index df31be95..00000000 --- a/src/merge/resources/accounting/types/issue.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue_status import IssueStatus - - -class Issue(UncheckedBaseModel): - id: typing.Optional[str] = None - status: typing.Optional[IssueStatus] = pydantic.Field(default=None) - """ - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - error_description: str - end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - first_incident_time: typing.Optional[dt.datetime] = None - last_incident_time: typing.Optional[dt.datetime] = None - is_muted: typing.Optional[bool] = None - error_details: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/issue_status.py b/src/merge/resources/accounting/types/issue_status.py deleted file mode 100644 index 8e4d6516..00000000 --- a/src/merge/resources/accounting/types/issue_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .issue_status_enum import IssueStatusEnum - -IssueStatus = typing.Union[IssueStatusEnum, str] diff --git a/src/merge/resources/accounting/types/issue_status_enum.py b/src/merge/resources/accounting/types/issue_status_enum.py deleted file mode 100644 index 57eb9618..00000000 --- a/src/merge/resources/accounting/types/issue_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssueStatusEnum(str, enum.Enum): - """ - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssueStatusEnum.ONGOING: - return ongoing() - if self is IssueStatusEnum.RESOLVED: - return resolved() diff --git a/src/merge/resources/accounting/types/item.py b/src/merge/resources/accounting/types/item.py deleted file mode 100644 index f42e396e..00000000 --- a/src/merge/resources/accounting/types/item.py +++ /dev/null @@ -1,123 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item_company import ItemCompany -from .item_purchase_account import ItemPurchaseAccount -from .item_purchase_tax_rate import ItemPurchaseTaxRate -from .item_sales_account import ItemSalesAccount -from .item_sales_tax_rate import ItemSalesTaxRate -from .item_status import ItemStatus -from .item_type import ItemType -from .remote_data import RemoteData - - -class Item(UncheckedBaseModel): - """ - # The Item Object - ### Description - The `Item` object refers to the goods involved in a transaction. - - ### Usage Example - Fetch from the `LIST Items` endpoint and view a company's items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The item's name. - """ - - status: typing.Optional[ItemStatus] = pydantic.Field(default=None) - """ - The item's status. - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - type: typing.Optional[ItemType] = pydantic.Field(default=None) - """ - The item's type. - - * `INVENTORY` - INVENTORY - * `NON_INVENTORY` - NON_INVENTORY - * `SERVICE` - SERVICE - * `UNKNOWN` - UNKNOWN - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The item's unit price. - """ - - purchase_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The price at which the item is purchased from a vendor. - """ - - purchase_account: typing.Optional[ItemPurchaseAccount] = pydantic.Field(default=None) - """ - References the default account used to record a purchase of the item. - """ - - sales_account: typing.Optional[ItemSalesAccount] = pydantic.Field(default=None) - """ - References the default account used to record a sale. - """ - - company: typing.Optional[ItemCompany] = pydantic.Field(default=None) - """ - The company the item belongs to. - """ - - purchase_tax_rate: typing.Optional[ItemPurchaseTaxRate] = pydantic.Field(default=None) - """ - The default purchase tax rate for this item. - """ - - sales_tax_rate: typing.Optional[ItemSalesTaxRate] = pydantic.Field(default=None) - """ - The default sales tax rate for this item. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's item note was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/item_company.py b/src/merge/resources/accounting/types/item_company.py deleted file mode 100644 index 8bd6469f..00000000 --- a/src/merge/resources/accounting/types/item_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ItemCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/item_format_enum.py b/src/merge/resources/accounting/types/item_format_enum.py deleted file mode 100644 index 6fef7236..00000000 --- a/src/merge/resources/accounting/types/item_format_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemFormatEnum(str, enum.Enum): - """ - * `string` - uuid - * `number` - url - * `date` - email - * `datetime` - phone - * `bool` - currency - * `list` - decimal - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemFormatEnum.STRING: - return string() - if self is ItemFormatEnum.NUMBER: - return number() - if self is ItemFormatEnum.DATE: - return date() - if self is ItemFormatEnum.DATETIME: - return datetime() - if self is ItemFormatEnum.BOOL: - return bool_() - if self is ItemFormatEnum.LIST: - return list_() diff --git a/src/merge/resources/accounting/types/item_purchase_account.py b/src/merge/resources/accounting/types/item_purchase_account.py deleted file mode 100644 index adb31772..00000000 --- a/src/merge/resources/accounting/types/item_purchase_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ItemPurchaseAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/item_purchase_tax_rate.py b/src/merge/resources/accounting/types/item_purchase_tax_rate.py deleted file mode 100644 index 50af77f9..00000000 --- a/src/merge/resources/accounting/types/item_purchase_tax_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tax_rate import TaxRate - -ItemPurchaseTaxRate = typing.Union[str, TaxRate] diff --git a/src/merge/resources/accounting/types/item_request_request.py b/src/merge/resources/accounting/types/item_request_request.py deleted file mode 100644 index c6080a03..00000000 --- a/src/merge/resources/accounting/types/item_request_request.py +++ /dev/null @@ -1,95 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item_request_request_company import ItemRequestRequestCompany -from .item_request_request_purchase_account import ItemRequestRequestPurchaseAccount -from .item_request_request_purchase_tax_rate import ItemRequestRequestPurchaseTaxRate -from .item_request_request_sales_account import ItemRequestRequestSalesAccount -from .item_request_request_sales_tax_rate import ItemRequestRequestSalesTaxRate -from .item_request_request_status import ItemRequestRequestStatus -from .item_request_request_type import ItemRequestRequestType - - -class ItemRequestRequest(UncheckedBaseModel): - """ - # The Item Object - ### Description - The `Item` object refers to the goods involved in a transaction. - - ### Usage Example - Fetch from the `LIST Items` endpoint and view a company's items. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The item's name. - """ - - status: typing.Optional[ItemRequestRequestStatus] = pydantic.Field(default=None) - """ - The item's status. - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - type: typing.Optional[ItemRequestRequestType] = pydantic.Field(default=None) - """ - The item's type. - - * `INVENTORY` - INVENTORY - * `NON_INVENTORY` - NON_INVENTORY - * `SERVICE` - SERVICE - * `UNKNOWN` - UNKNOWN - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The item's unit price. - """ - - purchase_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The price at which the item is purchased from a vendor. - """ - - purchase_account: typing.Optional[ItemRequestRequestPurchaseAccount] = pydantic.Field(default=None) - """ - References the default account used to record a purchase of the item. - """ - - sales_account: typing.Optional[ItemRequestRequestSalesAccount] = pydantic.Field(default=None) - """ - References the default account used to record a sale. - """ - - company: typing.Optional[ItemRequestRequestCompany] = pydantic.Field(default=None) - """ - The company the item belongs to. - """ - - purchase_tax_rate: typing.Optional[ItemRequestRequestPurchaseTaxRate] = pydantic.Field(default=None) - """ - The default purchase tax rate for this item. - """ - - sales_tax_rate: typing.Optional[ItemRequestRequestSalesTaxRate] = pydantic.Field(default=None) - """ - The default sales tax rate for this item. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/item_request_request_company.py b/src/merge/resources/accounting/types/item_request_request_company.py deleted file mode 100644 index 8d091f07..00000000 --- a/src/merge/resources/accounting/types/item_request_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ItemRequestRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/item_request_request_purchase_account.py b/src/merge/resources/accounting/types/item_request_request_purchase_account.py deleted file mode 100644 index 57e4f366..00000000 --- a/src/merge/resources/accounting/types/item_request_request_purchase_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ItemRequestRequestPurchaseAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/item_request_request_purchase_tax_rate.py b/src/merge/resources/accounting/types/item_request_request_purchase_tax_rate.py deleted file mode 100644 index 4df44f65..00000000 --- a/src/merge/resources/accounting/types/item_request_request_purchase_tax_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tax_rate import TaxRate - -ItemRequestRequestPurchaseTaxRate = typing.Union[str, TaxRate] diff --git a/src/merge/resources/accounting/types/item_request_request_sales_account.py b/src/merge/resources/accounting/types/item_request_request_sales_account.py deleted file mode 100644 index 5689078e..00000000 --- a/src/merge/resources/accounting/types/item_request_request_sales_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ItemRequestRequestSalesAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/item_request_request_sales_tax_rate.py b/src/merge/resources/accounting/types/item_request_request_sales_tax_rate.py deleted file mode 100644 index b7a65d5c..00000000 --- a/src/merge/resources/accounting/types/item_request_request_sales_tax_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tax_rate import TaxRate - -ItemRequestRequestSalesTaxRate = typing.Union[str, TaxRate] diff --git a/src/merge/resources/accounting/types/item_request_request_status.py b/src/merge/resources/accounting/types/item_request_request_status.py deleted file mode 100644 index a4e45a0d..00000000 --- a/src/merge/resources/accounting/types/item_request_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_7_d_1_enum import Status7D1Enum - -ItemRequestRequestStatus = typing.Union[Status7D1Enum, str] diff --git a/src/merge/resources/accounting/types/item_request_request_type.py b/src/merge/resources/accounting/types/item_request_request_type.py deleted file mode 100644 index 7aba64f6..00000000 --- a/src/merge/resources/accounting/types/item_request_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .type_2_bb_enum import Type2BbEnum - -ItemRequestRequestType = typing.Union[Type2BbEnum, str] diff --git a/src/merge/resources/accounting/types/item_response.py b/src/merge/resources/accounting/types/item_response.py deleted file mode 100644 index d13099d6..00000000 --- a/src/merge/resources/accounting/types/item_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .item import Item -from .warning_validation_problem import WarningValidationProblem - - -class ItemResponse(UncheckedBaseModel): - model: Item - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/item_sales_account.py b/src/merge/resources/accounting/types/item_sales_account.py deleted file mode 100644 index 9c6991a2..00000000 --- a/src/merge/resources/accounting/types/item_sales_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ItemSalesAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/item_sales_tax_rate.py b/src/merge/resources/accounting/types/item_sales_tax_rate.py deleted file mode 100644 index b0b7e77e..00000000 --- a/src/merge/resources/accounting/types/item_sales_tax_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tax_rate import TaxRate - -ItemSalesTaxRate = typing.Union[str, TaxRate] diff --git a/src/merge/resources/accounting/types/item_schema.py b/src/merge/resources/accounting/types/item_schema.py deleted file mode 100644 index fceec554..00000000 --- a/src/merge/resources/accounting/types/item_schema.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item_format_enum import ItemFormatEnum -from .item_type_enum import ItemTypeEnum - - -class ItemSchema(UncheckedBaseModel): - item_type: typing.Optional[ItemTypeEnum] = None - item_format: typing.Optional[ItemFormatEnum] = None - item_choices: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/item_status.py b/src/merge/resources/accounting/types/item_status.py deleted file mode 100644 index 5b7de869..00000000 --- a/src/merge/resources/accounting/types/item_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_7_d_1_enum import Status7D1Enum - -ItemStatus = typing.Union[Status7D1Enum, str] diff --git a/src/merge/resources/accounting/types/item_type.py b/src/merge/resources/accounting/types/item_type.py deleted file mode 100644 index fbb13fee..00000000 --- a/src/merge/resources/accounting/types/item_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .type_2_bb_enum import Type2BbEnum - -ItemType = typing.Union[Type2BbEnum, str] diff --git a/src/merge/resources/accounting/types/item_type_enum.py b/src/merge/resources/accounting/types/item_type_enum.py deleted file mode 100644 index afcc4dd6..00000000 --- a/src/merge/resources/accounting/types/item_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemTypeEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemTypeEnum.STRING: - return string() - if self is ItemTypeEnum.NUMBER: - return number() - if self is ItemTypeEnum.DATE: - return date() - if self is ItemTypeEnum.DATETIME: - return datetime() - if self is ItemTypeEnum.BOOL: - return bool_() - if self is ItemTypeEnum.LIST: - return list_() diff --git a/src/merge/resources/accounting/types/journal_entry.py b/src/merge/resources/accounting/types/journal_entry.py deleted file mode 100644 index 886ffa58..00000000 --- a/src/merge/resources/accounting/types/journal_entry.py +++ /dev/null @@ -1,446 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .journal_entry_accounting_period import JournalEntryAccountingPeriod -from .journal_entry_applied_payments_item import JournalEntryAppliedPaymentsItem -from .journal_entry_company import JournalEntryCompany -from .journal_entry_currency import JournalEntryCurrency -from .journal_entry_payments_item import JournalEntryPaymentsItem -from .journal_entry_posting_status import JournalEntryPostingStatus -from .journal_entry_tracking_categories_item import JournalEntryTrackingCategoriesItem -from .journal_line import JournalLine -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class JournalEntry(UncheckedBaseModel): - """ - # The JournalEntry Object - ### Description - A `JournalEntry` is a record of a transaction or event that is entered into a company's accounting system. - - The `JournalEntry` common model contains records that are automatically created as a result of a certain type of transaction, like an Invoice, and records that are manually created against a company’s ledger. - - The lines of a given `JournalEntry` object should always sum to 0. A positive `net_amount` means the line represents a debit and a negative net_amount represents a credit. - - ### Usage Example - Fetch from the `GET JournalEntry` endpoint and view a company's journey entry. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The journal entry's transaction date. - """ - - payments: typing.Optional[typing.List[typing.Optional[JournalEntryPaymentsItem]]] = pydantic.Field(default=None) - """ - Array of `Payment` object IDs. - """ - - applied_payments: typing.Optional[typing.List[typing.Optional[JournalEntryAppliedPaymentsItem]]] = pydantic.Field( - default=None - ) - """ - A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The journal entry's private note. - """ - - currency: typing.Optional[JournalEntryCurrency] = pydantic.Field(default=None) - """ - The journal's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The journal entry's exchange rate. - """ - - company: typing.Optional[JournalEntryCompany] = pydantic.Field(default=None) - """ - The company the journal entry belongs to. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - lines: typing.Optional[typing.List[JournalLine]] = None - journal_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Reference number for identifying journal entries. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[JournalEntryTrackingCategoriesItem]]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - posting_status: typing.Optional[JournalEntryPostingStatus] = pydantic.Field(default=None) - """ - The journal's posting status. - - * `UNPOSTED` - UNPOSTED - * `POSTED` - POSTED - """ - - accounting_period: typing.Optional[JournalEntryAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the JournalEntry was generated in. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's journal entry was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's journal entry was updated. - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/journal_entry_accounting_period.py b/src/merge/resources/accounting/types/journal_entry_accounting_period.py deleted file mode 100644 index 1684bcf6..00000000 --- a/src/merge/resources/accounting/types/journal_entry_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -JournalEntryAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/journal_entry_applied_payments_item.py b/src/merge/resources/accounting/types/journal_entry_applied_payments_item.py deleted file mode 100644 index 4a8fb7fc..00000000 --- a/src/merge/resources/accounting/types/journal_entry_applied_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_line_item import PaymentLineItem - -JournalEntryAppliedPaymentsItem = typing.Union[str, PaymentLineItem] diff --git a/src/merge/resources/accounting/types/journal_entry_company.py b/src/merge/resources/accounting/types/journal_entry_company.py deleted file mode 100644 index 6856f4f3..00000000 --- a/src/merge/resources/accounting/types/journal_entry_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -JournalEntryCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/journal_entry_currency.py b/src/merge/resources/accounting/types/journal_entry_currency.py deleted file mode 100644 index df0ae433..00000000 --- a/src/merge/resources/accounting/types/journal_entry_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -JournalEntryCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/journal_entry_payments_item.py b/src/merge/resources/accounting/types/journal_entry_payments_item.py deleted file mode 100644 index 286f7632..00000000 --- a/src/merge/resources/accounting/types/journal_entry_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment import Payment - -JournalEntryPaymentsItem = typing.Union[str, Payment] diff --git a/src/merge/resources/accounting/types/journal_entry_posting_status.py b/src/merge/resources/accounting/types/journal_entry_posting_status.py deleted file mode 100644 index 4be13128..00000000 --- a/src/merge/resources/accounting/types/journal_entry_posting_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .posting_status_enum import PostingStatusEnum - -JournalEntryPostingStatus = typing.Union[PostingStatusEnum, str] diff --git a/src/merge/resources/accounting/types/journal_entry_request.py b/src/merge/resources/accounting/types/journal_entry_request.py deleted file mode 100644 index 5c45360e..00000000 --- a/src/merge/resources/accounting/types/journal_entry_request.py +++ /dev/null @@ -1,398 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .journal_entry_request_company import JournalEntryRequestCompany -from .journal_entry_request_currency import JournalEntryRequestCurrency -from .journal_entry_request_payments_item import JournalEntryRequestPaymentsItem -from .journal_entry_request_posting_status import JournalEntryRequestPostingStatus -from .journal_entry_request_tracking_categories_item import JournalEntryRequestTrackingCategoriesItem -from .journal_line_request import JournalLineRequest -from .remote_field_request import RemoteFieldRequest - - -class JournalEntryRequest(UncheckedBaseModel): - """ - # The JournalEntry Object - ### Description - The `JournalEntry` object is used to get a record of all manually created entries made in a company’s general ledger. The journal line items for each journal entry should sum to zero. - - ### Usage Example - Fetch from the `GET JournalEntry` endpoint and view a company's journey entry. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The journal entry's transaction date. - """ - - payments: typing.Optional[typing.List[typing.Optional[JournalEntryRequestPaymentsItem]]] = pydantic.Field( - default=None - ) - """ - Array of `Payment` object IDs. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - The journal entry's private note. - """ - - currency: typing.Optional[JournalEntryRequestCurrency] = pydantic.Field(default=None) - """ - The journal's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The journal entry's exchange rate. - """ - - company: typing.Optional[JournalEntryRequestCompany] = pydantic.Field(default=None) - """ - The company the journal entry belongs to. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[JournalEntryRequestTrackingCategoriesItem]]] = None - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - lines: typing.Optional[typing.List[JournalLineRequest]] = None - journal_number: typing.Optional[str] = pydantic.Field(default=None) - """ - Reference number for identifying journal entries. - """ - - posting_status: typing.Optional[JournalEntryRequestPostingStatus] = pydantic.Field(default=None) - """ - The journal's posting status. - - * `UNPOSTED` - UNPOSTED - * `POSTED` - POSTED - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/journal_entry_request_company.py b/src/merge/resources/accounting/types/journal_entry_request_company.py deleted file mode 100644 index 5c388f77..00000000 --- a/src/merge/resources/accounting/types/journal_entry_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -JournalEntryRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/journal_entry_request_currency.py b/src/merge/resources/accounting/types/journal_entry_request_currency.py deleted file mode 100644 index 58ebe8d0..00000000 --- a/src/merge/resources/accounting/types/journal_entry_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -JournalEntryRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/journal_entry_request_payments_item.py b/src/merge/resources/accounting/types/journal_entry_request_payments_item.py deleted file mode 100644 index 13c34a9c..00000000 --- a/src/merge/resources/accounting/types/journal_entry_request_payments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment import Payment - -JournalEntryRequestPaymentsItem = typing.Union[str, Payment] diff --git a/src/merge/resources/accounting/types/journal_entry_request_posting_status.py b/src/merge/resources/accounting/types/journal_entry_request_posting_status.py deleted file mode 100644 index 44728c57..00000000 --- a/src/merge/resources/accounting/types/journal_entry_request_posting_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .posting_status_enum import PostingStatusEnum - -JournalEntryRequestPostingStatus = typing.Union[PostingStatusEnum, str] diff --git a/src/merge/resources/accounting/types/journal_entry_request_tracking_categories_item.py b/src/merge/resources/accounting/types/journal_entry_request_tracking_categories_item.py deleted file mode 100644 index 5661c699..00000000 --- a/src/merge/resources/accounting/types/journal_entry_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -JournalEntryRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/journal_entry_response.py b/src/merge/resources/accounting/types/journal_entry_response.py deleted file mode 100644 index c70678a5..00000000 --- a/src/merge/resources/accounting/types/journal_entry_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .journal_entry import JournalEntry -from .warning_validation_problem import WarningValidationProblem - - -class JournalEntryResponse(UncheckedBaseModel): - model: JournalEntry - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/journal_entry_tracking_categories_item.py b/src/merge/resources/accounting/types/journal_entry_tracking_categories_item.py deleted file mode 100644 index dc3f6b22..00000000 --- a/src/merge/resources/accounting/types/journal_entry_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -JournalEntryTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/journal_line.py b/src/merge/resources/accounting/types/journal_line.py deleted file mode 100644 index 4e68b2b5..00000000 --- a/src/merge/resources/accounting/types/journal_line.py +++ /dev/null @@ -1,406 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .journal_line_account import JournalLineAccount -from .journal_line_currency import JournalLineCurrency -from .journal_line_project import JournalLineProject -from .journal_line_tracking_categories_item import JournalLineTrackingCategoriesItem -from .journal_line_tracking_category import JournalLineTrackingCategory -from .remote_field import RemoteField - - -class JournalLine(UncheckedBaseModel): - """ - # The JournalLine Object - ### Description - The `JournalLine` object is used to represent a journal entry's line items. - - ### Usage Example - Fetch from the `GET JournalEntry` endpoint and view the journal entry's line items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - account: typing.Optional[JournalLineAccount] = None - net_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The value of the line item including taxes and other fees. - """ - - tracking_category: typing.Optional[JournalLineTrackingCategory] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[JournalLineTrackingCategoriesItem]]] = ( - pydantic.Field(default=None) - ) - """ - The journal line item's associated tracking categories. - """ - - currency: typing.Optional[JournalLineCurrency] = pydantic.Field(default=None) - """ - The journal line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the journal entry belongs to. - """ - - employee: typing.Optional[str] = None - project: typing.Optional[JournalLineProject] = None - contact: typing.Optional[str] = None - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The line's description. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The journal line item's exchange rate. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/journal_line_account.py b/src/merge/resources/accounting/types/journal_line_account.py deleted file mode 100644 index 3f1ff32c..00000000 --- a/src/merge/resources/accounting/types/journal_line_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -JournalLineAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/journal_line_currency.py b/src/merge/resources/accounting/types/journal_line_currency.py deleted file mode 100644 index 61c8c74d..00000000 --- a/src/merge/resources/accounting/types/journal_line_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -JournalLineCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/journal_line_project.py b/src/merge/resources/accounting/types/journal_line_project.py deleted file mode 100644 index 97ec9783..00000000 --- a/src/merge/resources/accounting/types/journal_line_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -JournalLineProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/journal_line_request.py b/src/merge/resources/accounting/types/journal_line_request.py deleted file mode 100644 index 05533fa0..00000000 --- a/src/merge/resources/accounting/types/journal_line_request.py +++ /dev/null @@ -1,391 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .journal_line_request_account import JournalLineRequestAccount -from .journal_line_request_currency import JournalLineRequestCurrency -from .journal_line_request_project import JournalLineRequestProject -from .journal_line_request_tracking_categories_item import JournalLineRequestTrackingCategoriesItem -from .journal_line_request_tracking_category import JournalLineRequestTrackingCategory -from .remote_field_request import RemoteFieldRequest - - -class JournalLineRequest(UncheckedBaseModel): - """ - # The JournalLine Object - ### Description - The `JournalLine` object is used to represent a journal entry's line items. - - ### Usage Example - Fetch from the `GET JournalEntry` endpoint and view the journal entry's line items. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - account: typing.Optional[JournalLineRequestAccount] = None - net_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The value of the line item including taxes and other fees. - """ - - tracking_category: typing.Optional[JournalLineRequestTrackingCategory] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[JournalLineRequestTrackingCategoriesItem]]] = ( - pydantic.Field(default=None) - ) - """ - The journal line item's associated tracking categories. - """ - - currency: typing.Optional[JournalLineRequestCurrency] = pydantic.Field(default=None) - """ - The journal line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the journal entry belongs to. - """ - - employee: typing.Optional[str] = None - project: typing.Optional[JournalLineRequestProject] = None - contact: typing.Optional[str] = None - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The line's description. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The journal line item's exchange rate. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/journal_line_request_account.py b/src/merge/resources/accounting/types/journal_line_request_account.py deleted file mode 100644 index a16863b7..00000000 --- a/src/merge/resources/accounting/types/journal_line_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -JournalLineRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/journal_line_request_currency.py b/src/merge/resources/accounting/types/journal_line_request_currency.py deleted file mode 100644 index 920a6b74..00000000 --- a/src/merge/resources/accounting/types/journal_line_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -JournalLineRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/journal_line_request_project.py b/src/merge/resources/accounting/types/journal_line_request_project.py deleted file mode 100644 index fa9953f5..00000000 --- a/src/merge/resources/accounting/types/journal_line_request_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -JournalLineRequestProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/journal_line_request_tracking_categories_item.py b/src/merge/resources/accounting/types/journal_line_request_tracking_categories_item.py deleted file mode 100644 index 8833229a..00000000 --- a/src/merge/resources/accounting/types/journal_line_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -JournalLineRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/journal_line_request_tracking_category.py b/src/merge/resources/accounting/types/journal_line_request_tracking_category.py deleted file mode 100644 index 995705d7..00000000 --- a/src/merge/resources/accounting/types/journal_line_request_tracking_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -JournalLineRequestTrackingCategory = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/journal_line_tracking_categories_item.py b/src/merge/resources/accounting/types/journal_line_tracking_categories_item.py deleted file mode 100644 index e63bdbaa..00000000 --- a/src/merge/resources/accounting/types/journal_line_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -JournalLineTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/journal_line_tracking_category.py b/src/merge/resources/accounting/types/journal_line_tracking_category.py deleted file mode 100644 index 122dffa0..00000000 --- a/src/merge/resources/accounting/types/journal_line_tracking_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -JournalLineTrackingCategory = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/language_enum.py b/src/merge/resources/accounting/types/language_enum.py deleted file mode 100644 index 44b693f2..00000000 --- a/src/merge/resources/accounting/types/language_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LanguageEnum(str, enum.Enum): - """ - * `en` - en - * `de` - de - """ - - EN = "en" - DE = "de" - - def visit(self, en: typing.Callable[[], T_Result], de: typing.Callable[[], T_Result]) -> T_Result: - if self is LanguageEnum.EN: - return en() - if self is LanguageEnum.DE: - return de() diff --git a/src/merge/resources/accounting/types/last_sync_result_enum.py b/src/merge/resources/accounting/types/last_sync_result_enum.py deleted file mode 100644 index ec777ee6..00000000 --- a/src/merge/resources/accounting/types/last_sync_result_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LastSyncResultEnum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LastSyncResultEnum.SYNCING: - return syncing() - if self is LastSyncResultEnum.DONE: - return done() - if self is LastSyncResultEnum.FAILED: - return failed() - if self is LastSyncResultEnum.DISABLED: - return disabled() - if self is LastSyncResultEnum.PAUSED: - return paused() - if self is LastSyncResultEnum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/accounting/types/link_token.py b/src/merge/resources/accounting/types/link_token.py deleted file mode 100644 index f78dedeb..00000000 --- a/src/merge/resources/accounting/types/link_token.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkToken(UncheckedBaseModel): - link_token: str - integration_name: typing.Optional[str] = None - magic_link_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/linked_account_status.py b/src/merge/resources/accounting/types/linked_account_status.py deleted file mode 100644 index ab2e0f09..00000000 --- a/src/merge/resources/accounting/types/linked_account_status.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkedAccountStatus(UncheckedBaseModel): - linked_account_status: str - can_make_request: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/meta_response.py b/src/merge/resources/accounting/types/meta_response.py deleted file mode 100644 index caa2c831..00000000 --- a/src/merge/resources/accounting/types/meta_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .linked_account_status import LinkedAccountStatus - - -class MetaResponse(UncheckedBaseModel): - request_schema: typing.Dict[str, typing.Optional[typing.Any]] - remote_field_classes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - status: typing.Optional[LinkedAccountStatus] = None - has_conditional_params: bool - has_required_linked_account_params: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/method_enum.py b/src/merge/resources/accounting/types/method_enum.py deleted file mode 100644 index 57bcde10..00000000 --- a/src/merge/resources/accounting/types/method_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodEnum(str, enum.Enum): - """ - * `GET` - GET - * `OPTIONS` - OPTIONS - * `HEAD` - HEAD - * `POST` - POST - * `PUT` - PUT - * `PATCH` - PATCH - * `DELETE` - DELETE - """ - - GET = "GET" - OPTIONS = "OPTIONS" - HEAD = "HEAD" - POST = "POST" - PUT = "PUT" - PATCH = "PATCH" - DELETE = "DELETE" - - def visit( - self, - get: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - head: typing.Callable[[], T_Result], - post: typing.Callable[[], T_Result], - put: typing.Callable[[], T_Result], - patch: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodEnum.GET: - return get() - if self is MethodEnum.OPTIONS: - return options() - if self is MethodEnum.HEAD: - return head() - if self is MethodEnum.POST: - return post() - if self is MethodEnum.PUT: - return put() - if self is MethodEnum.PATCH: - return patch() - if self is MethodEnum.DELETE: - return delete() diff --git a/src/merge/resources/accounting/types/method_type_enum.py b/src/merge/resources/accounting/types/method_type_enum.py deleted file mode 100644 index d358511b..00000000 --- a/src/merge/resources/accounting/types/method_type_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodTypeEnum(str, enum.Enum): - """ - * `CREDIT_CARD` - CREDIT_CARD - * `DEBIT_CARD` - DEBIT_CARD - * `ACH` - ACH - * `CASH` - CASH - * `CHECK` - CHECK - """ - - CREDIT_CARD = "CREDIT_CARD" - DEBIT_CARD = "DEBIT_CARD" - ACH = "ACH" - CASH = "CASH" - CHECK = "CHECK" - - def visit( - self, - credit_card: typing.Callable[[], T_Result], - debit_card: typing.Callable[[], T_Result], - ach: typing.Callable[[], T_Result], - cash: typing.Callable[[], T_Result], - check: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodTypeEnum.CREDIT_CARD: - return credit_card() - if self is MethodTypeEnum.DEBIT_CARD: - return debit_card() - if self is MethodTypeEnum.ACH: - return ach() - if self is MethodTypeEnum.CASH: - return cash() - if self is MethodTypeEnum.CHECK: - return check() diff --git a/src/merge/resources/accounting/types/model_operation.py b/src/merge/resources/accounting/types/model_operation.py deleted file mode 100644 index c367572d..00000000 --- a/src/merge/resources/accounting/types/model_operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelOperation(UncheckedBaseModel): - """ - # The ModelOperation Object - ### Description - The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - - ### Usage Example - View what operations are supported for the `Candidate` endpoint. - """ - - model_name: str - available_operations: typing.List[str] - required_post_parameters: typing.List[str] - supported_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/model_permission_deserializer.py b/src/merge/resources/accounting/types/model_permission_deserializer.py deleted file mode 100644 index 6381814c..00000000 --- a/src/merge/resources/accounting/types/model_permission_deserializer.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializer(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/model_permission_deserializer_request.py b/src/merge/resources/accounting/types/model_permission_deserializer_request.py deleted file mode 100644 index cdc2ff4c..00000000 --- a/src/merge/resources/accounting/types/model_permission_deserializer_request.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializerRequest(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/multipart_form_field_request.py b/src/merge/resources/accounting/types/multipart_form_field_request.py deleted file mode 100644 index abc37692..00000000 --- a/src/merge/resources/accounting/types/multipart_form_field_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - - -class MultipartFormFieldRequest(UncheckedBaseModel): - """ - # The MultipartFormField Object - ### Description - The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - - ### Usage Example - Create a `MultipartFormField` to define a multipart form entry. - """ - - name: str = pydantic.Field() - """ - The name of the form field - """ - - data: str = pydantic.Field() - """ - The data for the form field. - """ - - encoding: typing.Optional[MultipartFormFieldRequestEncoding] = pydantic.Field(default=None) - """ - The encoding of the value of `data`. Defaults to `RAW` if not defined. - - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The file name of the form field, if the field is for a file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The MIME type of the file, if the field is for a file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/multipart_form_field_request_encoding.py b/src/merge/resources/accounting/types/multipart_form_field_request_encoding.py deleted file mode 100644 index c6513b6b..00000000 --- a/src/merge/resources/accounting/types/multipart_form_field_request_encoding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .encoding_enum import EncodingEnum - -MultipartFormFieldRequestEncoding = typing.Union[EncodingEnum, str] diff --git a/src/merge/resources/accounting/types/paginated_account_details_and_actions_list.py b/src/merge/resources/accounting/types/paginated_account_details_and_actions_list.py deleted file mode 100644 index d2d16116..00000000 --- a/src/merge/resources/accounting/types/paginated_account_details_and_actions_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions import AccountDetailsAndActions - - -class PaginatedAccountDetailsAndActionsList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountDetailsAndActions]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_account_list.py b/src/merge/resources/accounting/types/paginated_account_list.py deleted file mode 100644 index 0d541b39..00000000 --- a/src/merge/resources/accounting/types/paginated_account_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account import Account - - -class PaginatedAccountList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Account]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_accounting_attachment_list.py b/src/merge/resources/accounting/types/paginated_accounting_attachment_list.py deleted file mode 100644 index 36d16c9c..00000000 --- a/src/merge/resources/accounting/types/paginated_accounting_attachment_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_attachment import AccountingAttachment - - -class PaginatedAccountingAttachmentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountingAttachment]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_accounting_period_list.py b/src/merge/resources/accounting/types/paginated_accounting_period_list.py deleted file mode 100644 index 142ceb0a..00000000 --- a/src/merge/resources/accounting/types/paginated_accounting_period_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_period import AccountingPeriod - - -class PaginatedAccountingPeriodList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountingPeriod]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_audit_log_event_list.py b/src/merge/resources/accounting/types/paginated_audit_log_event_list.py deleted file mode 100644 index 24139397..00000000 --- a/src/merge/resources/accounting/types/paginated_audit_log_event_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event import AuditLogEvent - - -class PaginatedAuditLogEventList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AuditLogEvent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_balance_sheet_list.py b/src/merge/resources/accounting/types/paginated_balance_sheet_list.py deleted file mode 100644 index 061b734d..00000000 --- a/src/merge/resources/accounting/types/paginated_balance_sheet_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .balance_sheet import BalanceSheet - - -class PaginatedBalanceSheetList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[BalanceSheet]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_bank_feed_account_list.py b/src/merge/resources/accounting/types/paginated_bank_feed_account_list.py deleted file mode 100644 index 1fa3dfd0..00000000 --- a/src/merge/resources/accounting/types/paginated_bank_feed_account_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_account import BankFeedAccount - - -class PaginatedBankFeedAccountList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[BankFeedAccount]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_bank_feed_transaction_list.py b/src/merge/resources/accounting/types/paginated_bank_feed_transaction_list.py deleted file mode 100644 index d8cafc8b..00000000 --- a/src/merge/resources/accounting/types/paginated_bank_feed_transaction_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_feed_transaction import BankFeedTransaction - - -class PaginatedBankFeedTransactionList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[BankFeedTransaction]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_cash_flow_statement_list.py b/src/merge/resources/accounting/types/paginated_cash_flow_statement_list.py deleted file mode 100644 index 386f116d..00000000 --- a/src/merge/resources/accounting/types/paginated_cash_flow_statement_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .cash_flow_statement import CashFlowStatement - - -class PaginatedCashFlowStatementList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[CashFlowStatement]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_company_info_list.py b/src/merge/resources/accounting/types/paginated_company_info_list.py deleted file mode 100644 index 880fc487..00000000 --- a/src/merge/resources/accounting/types/paginated_company_info_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .company_info import CompanyInfo - - -class PaginatedCompanyInfoList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[CompanyInfo]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_contact_list.py b/src/merge/resources/accounting/types/paginated_contact_list.py deleted file mode 100644 index 7a9d28a3..00000000 --- a/src/merge/resources/accounting/types/paginated_contact_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact import Contact - - -class PaginatedContactList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Contact]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_credit_note_list.py b/src/merge/resources/accounting/types/paginated_credit_note_list.py deleted file mode 100644 index 4cdc16aa..00000000 --- a/src/merge/resources/accounting/types/paginated_credit_note_list.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedCreditNoteList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["CreditNote"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(PaginatedCreditNoteList) diff --git a/src/merge/resources/accounting/types/paginated_employee_list.py b/src/merge/resources/accounting/types/paginated_employee_list.py deleted file mode 100644 index 81adcabe..00000000 --- a/src/merge/resources/accounting/types/paginated_employee_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .employee import Employee - - -class PaginatedEmployeeList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Employee]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_expense_list.py b/src/merge/resources/accounting/types/paginated_expense_list.py deleted file mode 100644 index e52af45d..00000000 --- a/src/merge/resources/accounting/types/paginated_expense_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense import Expense - - -class PaginatedExpenseList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Expense]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_expense_report_line_list.py b/src/merge/resources/accounting/types/paginated_expense_report_line_list.py deleted file mode 100644 index 6b2f2057..00000000 --- a/src/merge/resources/accounting/types/paginated_expense_report_line_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_report_line import ExpenseReportLine - - -class PaginatedExpenseReportLineList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[ExpenseReportLine]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_expense_report_list.py b/src/merge/resources/accounting/types/paginated_expense_report_list.py deleted file mode 100644 index c75ff556..00000000 --- a/src/merge/resources/accounting/types/paginated_expense_report_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .expense_report import ExpenseReport - - -class PaginatedExpenseReportList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[ExpenseReport]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_general_ledger_transaction_list.py b/src/merge/resources/accounting/types/paginated_general_ledger_transaction_list.py deleted file mode 100644 index a7e3e5a5..00000000 --- a/src/merge/resources/accounting/types/paginated_general_ledger_transaction_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .general_ledger_transaction import GeneralLedgerTransaction - - -class PaginatedGeneralLedgerTransactionList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[GeneralLedgerTransaction]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_income_statement_list.py b/src/merge/resources/accounting/types/paginated_income_statement_list.py deleted file mode 100644 index 2912e145..00000000 --- a/src/merge/resources/accounting/types/paginated_income_statement_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .income_statement import IncomeStatement - - -class PaginatedIncomeStatementList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[IncomeStatement]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_invoice_list.py b/src/merge/resources/accounting/types/paginated_invoice_list.py deleted file mode 100644 index fd6795d5..00000000 --- a/src/merge/resources/accounting/types/paginated_invoice_list.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedInvoiceList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Invoice"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(PaginatedInvoiceList) diff --git a/src/merge/resources/accounting/types/paginated_issue_list.py b/src/merge/resources/accounting/types/paginated_issue_list.py deleted file mode 100644 index 686173e5..00000000 --- a/src/merge/resources/accounting/types/paginated_issue_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue import Issue - - -class PaginatedIssueList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Issue]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_item_list.py b/src/merge/resources/accounting/types/paginated_item_list.py deleted file mode 100644 index 6873d870..00000000 --- a/src/merge/resources/accounting/types/paginated_item_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item import Item - - -class PaginatedItemList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Item]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_journal_entry_list.py b/src/merge/resources/accounting/types/paginated_journal_entry_list.py deleted file mode 100644 index a53d869d..00000000 --- a/src/merge/resources/accounting/types/paginated_journal_entry_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .journal_entry import JournalEntry - - -class PaginatedJournalEntryList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[JournalEntry]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_payment_list.py b/src/merge/resources/accounting/types/paginated_payment_list.py deleted file mode 100644 index 82ab5547..00000000 --- a/src/merge/resources/accounting/types/paginated_payment_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payment import Payment - - -class PaginatedPaymentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Payment]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_payment_method_list.py b/src/merge/resources/accounting/types/paginated_payment_method_list.py deleted file mode 100644 index 88be2d3e..00000000 --- a/src/merge/resources/accounting/types/paginated_payment_method_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payment_method import PaymentMethod - - -class PaginatedPaymentMethodList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[PaymentMethod]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_payment_term_list.py b/src/merge/resources/accounting/types/paginated_payment_term_list.py deleted file mode 100644 index 39cc110c..00000000 --- a/src/merge/resources/accounting/types/paginated_payment_term_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payment_term import PaymentTerm - - -class PaginatedPaymentTermList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[PaymentTerm]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_project_list.py b/src/merge/resources/accounting/types/paginated_project_list.py deleted file mode 100644 index c709e35b..00000000 --- a/src/merge/resources/accounting/types/paginated_project_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .project import Project - - -class PaginatedProjectList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Project]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_purchase_order_list.py b/src/merge/resources/accounting/types/paginated_purchase_order_list.py deleted file mode 100644 index 14585df9..00000000 --- a/src/merge/resources/accounting/types/paginated_purchase_order_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .purchase_order import PurchaseOrder - - -class PaginatedPurchaseOrderList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[PurchaseOrder]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_remote_field_class_list.py b/src/merge/resources/accounting/types/paginated_remote_field_class_list.py deleted file mode 100644 index 9d68cf9b..00000000 --- a/src/merge/resources/accounting/types/paginated_remote_field_class_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_class import RemoteFieldClass - - -class PaginatedRemoteFieldClassList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[RemoteFieldClass]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_sync_status_list.py b/src/merge/resources/accounting/types/paginated_sync_status_list.py deleted file mode 100644 index cc4bd7a8..00000000 --- a/src/merge/resources/accounting/types/paginated_sync_status_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .sync_status import SyncStatus - - -class PaginatedSyncStatusList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[SyncStatus]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_tax_rate_list.py b/src/merge/resources/accounting/types/paginated_tax_rate_list.py deleted file mode 100644 index aff086d3..00000000 --- a/src/merge/resources/accounting/types/paginated_tax_rate_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .tax_rate import TaxRate - - -class PaginatedTaxRateList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[TaxRate]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_tracking_category_list.py b/src/merge/resources/accounting/types/paginated_tracking_category_list.py deleted file mode 100644 index 63a4b262..00000000 --- a/src/merge/resources/accounting/types/paginated_tracking_category_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .tracking_category import TrackingCategory - - -class PaginatedTrackingCategoryList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[TrackingCategory]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_transaction_list.py b/src/merge/resources/accounting/types/paginated_transaction_list.py deleted file mode 100644 index f79f7ab6..00000000 --- a/src/merge/resources/accounting/types/paginated_transaction_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .transaction import Transaction - - -class PaginatedTransactionList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Transaction]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/paginated_vendor_credit_list.py b/src/merge/resources/accounting/types/paginated_vendor_credit_list.py deleted file mode 100644 index eb676449..00000000 --- a/src/merge/resources/accounting/types/paginated_vendor_credit_list.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedVendorCreditList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["VendorCredit"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(PaginatedVendorCreditList) diff --git a/src/merge/resources/accounting/types/patched_contact_request.py b/src/merge/resources/accounting/types/patched_contact_request.py deleted file mode 100644 index 7d513c2a..00000000 --- a/src/merge/resources/accounting/types/patched_contact_request.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .accounting_phone_number_request import AccountingPhoneNumberRequest -from .patched_contact_request_addresses_item import PatchedContactRequestAddressesItem -from .remote_field_request import RemoteFieldRequest - - -class PatchedContactRequest(UncheckedBaseModel): - """ - # The Contact Object - ### Description - A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. - * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. - * A `Contact` is a customer if the `is_customer` property is true. - - ### Usage Example - Fetch from the `LIST Contacts` endpoint and view a company's contacts. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's name. - """ - - is_supplier: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the contact is a supplier. - """ - - is_customer: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the contact is a customer. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's email address. - """ - - tax_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's tax number. - """ - - status: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's status - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - currency: typing.Optional[str] = pydantic.Field(default=None) - """ - The currency the contact's transactions are in. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the contact belongs to. - """ - - addresses: typing.Optional[typing.List[typing.Optional[PatchedContactRequestAddressesItem]]] = pydantic.Field( - default=None - ) - """ - `Address` object IDs for the given `Contacts` object. - """ - - phone_numbers: typing.Optional[typing.List[AccountingPhoneNumberRequest]] = pydantic.Field(default=None) - """ - `AccountingPhoneNumber` object for the given `Contacts` object. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/patched_contact_request_addresses_item.py b/src/merge/resources/accounting/types/patched_contact_request_addresses_item.py deleted file mode 100644 index fb0884a9..00000000 --- a/src/merge/resources/accounting/types/patched_contact_request_addresses_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address import Address - -PatchedContactRequestAddressesItem = typing.Union[str, Address] diff --git a/src/merge/resources/accounting/types/patched_item_request_request.py b/src/merge/resources/accounting/types/patched_item_request_request.py deleted file mode 100644 index 11578169..00000000 --- a/src/merge/resources/accounting/types/patched_item_request_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .patched_item_request_request_status import PatchedItemRequestRequestStatus -from .patched_item_request_request_type import PatchedItemRequestRequestType - - -class PatchedItemRequestRequest(UncheckedBaseModel): - """ - # The Item Object - ### Description - The `Item` object refers to the goods involved in a transaction. - - ### Usage Example - Fetch from the `LIST Items` endpoint and view a company's items. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The item's name. - """ - - status: typing.Optional[PatchedItemRequestRequestStatus] = pydantic.Field(default=None) - """ - The item's status. - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - type: typing.Optional[PatchedItemRequestRequestType] = pydantic.Field(default=None) - """ - The item's type. - - * `INVENTORY` - INVENTORY - * `NON_INVENTORY` - NON_INVENTORY - * `SERVICE` - SERVICE - * `UNKNOWN` - UNKNOWN - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The item's unit price. - """ - - purchase_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The price at which the item is purchased from a vendor. - """ - - purchase_account: typing.Optional[str] = pydantic.Field(default=None) - """ - References the default account used to record a purchase of the item. - """ - - sales_account: typing.Optional[str] = pydantic.Field(default=None) - """ - References the default account used to record a sale. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the item belongs to. - """ - - purchase_tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The default purchase tax rate for this item. - """ - - sales_tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The default sales tax rate for this item. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/patched_item_request_request_status.py b/src/merge/resources/accounting/types/patched_item_request_request_status.py deleted file mode 100644 index 013b1682..00000000 --- a/src/merge/resources/accounting/types/patched_item_request_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_7_d_1_enum import Status7D1Enum - -PatchedItemRequestRequestStatus = typing.Union[Status7D1Enum, str] diff --git a/src/merge/resources/accounting/types/patched_item_request_request_type.py b/src/merge/resources/accounting/types/patched_item_request_request_type.py deleted file mode 100644 index 9990ccf7..00000000 --- a/src/merge/resources/accounting/types/patched_item_request_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .type_2_bb_enum import Type2BbEnum - -PatchedItemRequestRequestType = typing.Union[Type2BbEnum, str] diff --git a/src/merge/resources/accounting/types/patched_payment_request.py b/src/merge/resources/accounting/types/patched_payment_request.py deleted file mode 100644 index 7222862a..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request.py +++ /dev/null @@ -1,412 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .patched_payment_request_account import PatchedPaymentRequestAccount -from .patched_payment_request_accounting_period import PatchedPaymentRequestAccountingPeriod -from .patched_payment_request_applied_to_lines_item import PatchedPaymentRequestAppliedToLinesItem -from .patched_payment_request_company import PatchedPaymentRequestCompany -from .patched_payment_request_contact import PatchedPaymentRequestContact -from .patched_payment_request_currency import PatchedPaymentRequestCurrency -from .patched_payment_request_payment_method import PatchedPaymentRequestPaymentMethod -from .patched_payment_request_tracking_categories_item import PatchedPaymentRequestTrackingCategoriesItem -from .patched_payment_request_type import PatchedPaymentRequestType -from .remote_field_request import RemoteFieldRequest - - -class PatchedPaymentRequest(UncheckedBaseModel): - """ - # The Payment Object - ### Description - The `Payment` object represents general payments made towards a specific transaction. - - ### Usage Example - Fetch from the `GET Payment` endpoint and view an invoice's payment. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The payment's transaction date. - """ - - contact: typing.Optional[PatchedPaymentRequestContact] = pydantic.Field(default=None) - """ - The supplier, or customer involved in the payment. - """ - - account: typing.Optional[PatchedPaymentRequestAccount] = pydantic.Field(default=None) - """ - The supplier’s or customer’s account in which the payment is made. - """ - - payment_method: typing.Optional[PatchedPaymentRequestPaymentMethod] = pydantic.Field(default=None) - """ - The method which this payment was made by. - """ - - currency: typing.Optional[PatchedPaymentRequestCurrency] = pydantic.Field(default=None) - """ - The payment's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The payment's exchange rate. - """ - - company: typing.Optional[PatchedPaymentRequestCompany] = pydantic.Field(default=None) - """ - The company the payment belongs to. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The total amount of money being paid to the supplier, or customer, after taxes. - """ - - type: typing.Optional[PatchedPaymentRequestType] = pydantic.Field(default=None) - """ - The type of the invoice. - - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[PatchedPaymentRequestTrackingCategoriesItem]]] = ( - None - ) - accounting_period: typing.Optional[PatchedPaymentRequestAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the Payment was generated in. - """ - - applied_to_lines: typing.Optional[typing.List[PatchedPaymentRequestAppliedToLinesItem]] = pydantic.Field( - default=None - ) - """ - A list of β€œPayment Applied to Lines” objects. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/patched_payment_request_account.py b/src/merge/resources/accounting/types/patched_payment_request_account.py deleted file mode 100644 index f051a194..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -PatchedPaymentRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/patched_payment_request_accounting_period.py b/src/merge/resources/accounting/types/patched_payment_request_accounting_period.py deleted file mode 100644 index bfd131d4..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -PatchedPaymentRequestAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/patched_payment_request_applied_to_lines_item.py b/src/merge/resources/accounting/types/patched_payment_request_applied_to_lines_item.py deleted file mode 100644 index b7624b38..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_applied_to_lines_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_line_item_request import PaymentLineItemRequest - -PatchedPaymentRequestAppliedToLinesItem = typing.Union[str, PaymentLineItemRequest] diff --git a/src/merge/resources/accounting/types/patched_payment_request_company.py b/src/merge/resources/accounting/types/patched_payment_request_company.py deleted file mode 100644 index 46869369..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -PatchedPaymentRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/patched_payment_request_contact.py b/src/merge/resources/accounting/types/patched_payment_request_contact.py deleted file mode 100644 index 1478828a..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -PatchedPaymentRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/patched_payment_request_currency.py b/src/merge/resources/accounting/types/patched_payment_request_currency.py deleted file mode 100644 index 703b204e..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -PatchedPaymentRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/patched_payment_request_payment_method.py b/src/merge/resources/accounting/types/patched_payment_request_payment_method.py deleted file mode 100644 index 0ae7a0d7..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_payment_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_method import PaymentMethod - -PatchedPaymentRequestPaymentMethod = typing.Union[str, PaymentMethod] diff --git a/src/merge/resources/accounting/types/patched_payment_request_tracking_categories_item.py b/src/merge/resources/accounting/types/patched_payment_request_tracking_categories_item.py deleted file mode 100644 index 5ec2c8f9..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -PatchedPaymentRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/patched_payment_request_type.py b/src/merge/resources/accounting/types/patched_payment_request_type.py deleted file mode 100644 index 13dde772..00000000 --- a/src/merge/resources/accounting/types/patched_payment_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_type_enum import PaymentTypeEnum - -PatchedPaymentRequestType = typing.Union[PaymentTypeEnum, str] diff --git a/src/merge/resources/accounting/types/payment.py b/src/merge/resources/accounting/types/payment.py deleted file mode 100644 index c005cf14..00000000 --- a/src/merge/resources/accounting/types/payment.py +++ /dev/null @@ -1,435 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payment_account import PaymentAccount -from .payment_accounting_period import PaymentAccountingPeriod -from .payment_applied_to_lines_item import PaymentAppliedToLinesItem -from .payment_company import PaymentCompany -from .payment_contact import PaymentContact -from .payment_currency import PaymentCurrency -from .payment_payment_method import PaymentPaymentMethod -from .payment_tracking_categories_item import PaymentTrackingCategoriesItem -from .payment_type import PaymentType -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Payment(UncheckedBaseModel): - """ - # The Payment Object - ### Description - The `Payment` object represents general payments made towards a specific transaction. - - ### Usage Example - Fetch from the `GET Payment` endpoint and view an invoice's payment. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The payment's transaction date. - """ - - contact: typing.Optional[PaymentContact] = pydantic.Field(default=None) - """ - The supplier, or customer involved in the payment. - """ - - account: typing.Optional[PaymentAccount] = pydantic.Field(default=None) - """ - The supplier’s or customer’s account in which the payment is made. - """ - - payment_method: typing.Optional[PaymentPaymentMethod] = pydantic.Field(default=None) - """ - The method which this payment was made by. - """ - - currency: typing.Optional[PaymentCurrency] = pydantic.Field(default=None) - """ - The payment's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The payment's exchange rate. - """ - - company: typing.Optional[PaymentCompany] = pydantic.Field(default=None) - """ - The company the payment belongs to. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The total amount of money being paid to the supplier, or customer, after taxes. - """ - - type: typing.Optional[PaymentType] = pydantic.Field(default=None) - """ - The type of the invoice. - - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[PaymentTrackingCategoriesItem]]] = None - accounting_period: typing.Optional[PaymentAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the Payment was generated in. - """ - - applied_to_lines: typing.Optional[typing.List[PaymentAppliedToLinesItem]] = pydantic.Field(default=None) - """ - A list of β€œPayment Applied to Lines” objects. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's payment entry was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/payment_account.py b/src/merge/resources/accounting/types/payment_account.py deleted file mode 100644 index 1134aaab..00000000 --- a/src/merge/resources/accounting/types/payment_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -PaymentAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/payment_accounting_period.py b/src/merge/resources/accounting/types/payment_accounting_period.py deleted file mode 100644 index f53d132d..00000000 --- a/src/merge/resources/accounting/types/payment_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -PaymentAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/payment_applied_to_lines_item.py b/src/merge/resources/accounting/types/payment_applied_to_lines_item.py deleted file mode 100644 index 664fde17..00000000 --- a/src/merge/resources/accounting/types/payment_applied_to_lines_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_line_item import PaymentLineItem - -PaymentAppliedToLinesItem = typing.Union[str, PaymentLineItem] diff --git a/src/merge/resources/accounting/types/payment_company.py b/src/merge/resources/accounting/types/payment_company.py deleted file mode 100644 index 8dfe2cc3..00000000 --- a/src/merge/resources/accounting/types/payment_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -PaymentCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/payment_contact.py b/src/merge/resources/accounting/types/payment_contact.py deleted file mode 100644 index 70e0b700..00000000 --- a/src/merge/resources/accounting/types/payment_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -PaymentContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/payment_currency.py b/src/merge/resources/accounting/types/payment_currency.py deleted file mode 100644 index 0ad2071f..00000000 --- a/src/merge/resources/accounting/types/payment_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -PaymentCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/payment_line_item.py b/src/merge/resources/accounting/types/payment_line_item.py deleted file mode 100644 index 359c3433..00000000 --- a/src/merge/resources/accounting/types/payment_line_item.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaymentLineItem(UncheckedBaseModel): - """ - # The PaymentLineItem Object - ### Description - The `PaymentLineItem` object is an applied-to-line on a `Payment` that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - - ### Usage Example - `Payment` will have a field called `applied-to-lines` which will be an array of `PaymentLineItemInternalMappingSerializer` objects that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount being applied to the transaction. - """ - - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date the payment portion is applied. - """ - - related_object_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Merge ID of the transaction the payment portion is being applied to. - """ - - related_object_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of transaction the payment portion is being applied to. Possible values include: INVOICE, JOURNAL_ENTRY, or CREDIT_NOTE. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/payment_line_item_request.py b/src/merge/resources/accounting/types/payment_line_item_request.py deleted file mode 100644 index ecc0e374..00000000 --- a/src/merge/resources/accounting/types/payment_line_item_request.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_request import RemoteFieldRequest - - -class PaymentLineItemRequest(UncheckedBaseModel): - """ - # The PaymentLineItem Object - ### Description - The `PaymentLineItem` object is an applied-to-line on a `Payment` that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - - ### Usage Example - `Payment` will have a field called `applied-to-lines` which will be an array of `PaymentLineItemInternalMappingSerializer` objects that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount being applied to the transaction. - """ - - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date the payment portion is applied. - """ - - related_object_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The Merge ID of the transaction the payment portion is being applied to. - """ - - related_object_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of transaction the payment portion is being applied to. Possible values include: INVOICE, JOURNAL_ENTRY, or CREDIT_NOTE. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/payment_method.py b/src/merge/resources/accounting/types/payment_method.py deleted file mode 100644 index 0a3ec48d..00000000 --- a/src/merge/resources/accounting/types/payment_method.py +++ /dev/null @@ -1,75 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payment_method_method_type import PaymentMethodMethodType -from .remote_data import RemoteData - - -class PaymentMethod(UncheckedBaseModel): - """ - # The PaymentMethod Object - ### Description - The `PaymentMethod` object defines how a payment against an invoice is made. - - ### Usage Example - Fetch from the `GET PaymentMethod` endpoint and view payment method information. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - method_type: PaymentMethodMethodType = pydantic.Field() - """ - The type of the payment method. - - * `CREDIT_CARD` - CREDIT_CARD - * `DEBIT_CARD` - DEBIT_CARD - * `ACH` - ACH - * `CASH` - CASH - * `CHECK` - CHECK - """ - - name: str = pydantic.Field() - """ - The payment method’s name - """ - - is_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - `True` if the payment method is active, `False` if not. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's payment method was updated. - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/payment_method_method_type.py b/src/merge/resources/accounting/types/payment_method_method_type.py deleted file mode 100644 index 9e60ce5b..00000000 --- a/src/merge/resources/accounting/types/payment_method_method_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .method_type_enum import MethodTypeEnum - -PaymentMethodMethodType = typing.Union[MethodTypeEnum, str] diff --git a/src/merge/resources/accounting/types/payment_payment_method.py b/src/merge/resources/accounting/types/payment_payment_method.py deleted file mode 100644 index 94c9f222..00000000 --- a/src/merge/resources/accounting/types/payment_payment_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_method import PaymentMethod - -PaymentPaymentMethod = typing.Union[str, PaymentMethod] diff --git a/src/merge/resources/accounting/types/payment_request.py b/src/merge/resources/accounting/types/payment_request.py deleted file mode 100644 index 9896b109..00000000 --- a/src/merge/resources/accounting/types/payment_request.py +++ /dev/null @@ -1,408 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payment_request_account import PaymentRequestAccount -from .payment_request_accounting_period import PaymentRequestAccountingPeriod -from .payment_request_applied_to_lines_item import PaymentRequestAppliedToLinesItem -from .payment_request_company import PaymentRequestCompany -from .payment_request_contact import PaymentRequestContact -from .payment_request_currency import PaymentRequestCurrency -from .payment_request_payment_method import PaymentRequestPaymentMethod -from .payment_request_tracking_categories_item import PaymentRequestTrackingCategoriesItem -from .payment_request_type import PaymentRequestType -from .remote_field_request import RemoteFieldRequest - - -class PaymentRequest(UncheckedBaseModel): - """ - # The Payment Object - ### Description - The `Payment` object represents general payments made towards a specific transaction. - - ### Usage Example - Fetch from the `GET Payment` endpoint and view an invoice's payment. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The payment's transaction date. - """ - - contact: typing.Optional[PaymentRequestContact] = pydantic.Field(default=None) - """ - The supplier, or customer involved in the payment. - """ - - account: typing.Optional[PaymentRequestAccount] = pydantic.Field(default=None) - """ - The supplier’s or customer’s account in which the payment is made. - """ - - payment_method: typing.Optional[PaymentRequestPaymentMethod] = pydantic.Field(default=None) - """ - The method which this payment was made by. - """ - - currency: typing.Optional[PaymentRequestCurrency] = pydantic.Field(default=None) - """ - The payment's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The payment's exchange rate. - """ - - company: typing.Optional[PaymentRequestCompany] = pydantic.Field(default=None) - """ - The company the payment belongs to. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The total amount of money being paid to the supplier, or customer, after taxes. - """ - - type: typing.Optional[PaymentRequestType] = pydantic.Field(default=None) - """ - The type of the invoice. - - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[PaymentRequestTrackingCategoriesItem]]] = None - accounting_period: typing.Optional[PaymentRequestAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the Payment was generated in. - """ - - applied_to_lines: typing.Optional[typing.List[PaymentRequestAppliedToLinesItem]] = pydantic.Field(default=None) - """ - A list of β€œPayment Applied to Lines” objects. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/payment_request_account.py b/src/merge/resources/accounting/types/payment_request_account.py deleted file mode 100644 index de594743..00000000 --- a/src/merge/resources/accounting/types/payment_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -PaymentRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/payment_request_accounting_period.py b/src/merge/resources/accounting/types/payment_request_accounting_period.py deleted file mode 100644 index 893f6f8e..00000000 --- a/src/merge/resources/accounting/types/payment_request_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -PaymentRequestAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/payment_request_applied_to_lines_item.py b/src/merge/resources/accounting/types/payment_request_applied_to_lines_item.py deleted file mode 100644 index ecd42a0d..00000000 --- a/src/merge/resources/accounting/types/payment_request_applied_to_lines_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_line_item_request import PaymentLineItemRequest - -PaymentRequestAppliedToLinesItem = typing.Union[str, PaymentLineItemRequest] diff --git a/src/merge/resources/accounting/types/payment_request_company.py b/src/merge/resources/accounting/types/payment_request_company.py deleted file mode 100644 index 1ca40fe1..00000000 --- a/src/merge/resources/accounting/types/payment_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -PaymentRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/payment_request_contact.py b/src/merge/resources/accounting/types/payment_request_contact.py deleted file mode 100644 index 190cbc2f..00000000 --- a/src/merge/resources/accounting/types/payment_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -PaymentRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/payment_request_currency.py b/src/merge/resources/accounting/types/payment_request_currency.py deleted file mode 100644 index 07e0c385..00000000 --- a/src/merge/resources/accounting/types/payment_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -PaymentRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/payment_request_payment_method.py b/src/merge/resources/accounting/types/payment_request_payment_method.py deleted file mode 100644 index d543ef4a..00000000 --- a/src/merge/resources/accounting/types/payment_request_payment_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_method import PaymentMethod - -PaymentRequestPaymentMethod = typing.Union[str, PaymentMethod] diff --git a/src/merge/resources/accounting/types/payment_request_tracking_categories_item.py b/src/merge/resources/accounting/types/payment_request_tracking_categories_item.py deleted file mode 100644 index a976f214..00000000 --- a/src/merge/resources/accounting/types/payment_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -PaymentRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/payment_request_type.py b/src/merge/resources/accounting/types/payment_request_type.py deleted file mode 100644 index cdf01583..00000000 --- a/src/merge/resources/accounting/types/payment_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_type_enum import PaymentTypeEnum - -PaymentRequestType = typing.Union[PaymentTypeEnum, str] diff --git a/src/merge/resources/accounting/types/payment_response.py b/src/merge/resources/accounting/types/payment_response.py deleted file mode 100644 index 2bfc19dc..00000000 --- a/src/merge/resources/accounting/types/payment_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .payment import Payment -from .warning_validation_problem import WarningValidationProblem - - -class PaymentResponse(UncheckedBaseModel): - model: Payment - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/payment_term.py b/src/merge/resources/accounting/types/payment_term.py deleted file mode 100644 index 9c4209b4..00000000 --- a/src/merge/resources/accounting/types/payment_term.py +++ /dev/null @@ -1,80 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payment_term_company import PaymentTermCompany -from .remote_data import RemoteData - - -class PaymentTerm(UncheckedBaseModel): - """ - # The PaymentTerm Object - ### Description - The `PaymentTerm` object is the agreed-upon conditions between a buyer and a seller that define the timing, - amount, and conditions under which payment for goods or services must be made. - - ### Usage Example - Fetch from the `GET PaymentTerm` endpoint and view payment term information. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: str = pydantic.Field() - """ - The name of the payment term. - """ - - is_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - `True` if the payment term is active, `False` if not. - """ - - company: typing.Optional[PaymentTermCompany] = pydantic.Field(default=None) - """ - The subsidiary that the payment term belongs to. - """ - - days_until_due: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of days after the invoice date that payment is due. - """ - - discount_days: typing.Optional[int] = pydantic.Field(default=None) - """ - The number of days the invoice must be paid before discounts expire. - """ - - remote_last_modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's payment term was modified. - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/payment_term_company.py b/src/merge/resources/accounting/types/payment_term_company.py deleted file mode 100644 index 2a28b48d..00000000 --- a/src/merge/resources/accounting/types/payment_term_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -PaymentTermCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/payment_tracking_categories_item.py b/src/merge/resources/accounting/types/payment_tracking_categories_item.py deleted file mode 100644 index cf8204c9..00000000 --- a/src/merge/resources/accounting/types/payment_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -PaymentTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/payment_type.py b/src/merge/resources/accounting/types/payment_type.py deleted file mode 100644 index 95c1776f..00000000 --- a/src/merge/resources/accounting/types/payment_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_type_enum import PaymentTypeEnum - -PaymentType = typing.Union[PaymentTypeEnum, str] diff --git a/src/merge/resources/accounting/types/payment_type_enum.py b/src/merge/resources/accounting/types/payment_type_enum.py deleted file mode 100644 index 6d0a054a..00000000 --- a/src/merge/resources/accounting/types/payment_type_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PaymentTypeEnum(str, enum.Enum): - """ - * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - """ - - ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE" - ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE" - - def visit( - self, accounts_payable: typing.Callable[[], T_Result], accounts_receivable: typing.Callable[[], T_Result] - ) -> T_Result: - if self is PaymentTypeEnum.ACCOUNTS_PAYABLE: - return accounts_payable() - if self is PaymentTypeEnum.ACCOUNTS_RECEIVABLE: - return accounts_receivable() diff --git a/src/merge/resources/accounting/types/posting_status_enum.py b/src/merge/resources/accounting/types/posting_status_enum.py deleted file mode 100644 index 95f462bc..00000000 --- a/src/merge/resources/accounting/types/posting_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PostingStatusEnum(str, enum.Enum): - """ - * `UNPOSTED` - UNPOSTED - * `POSTED` - POSTED - """ - - UNPOSTED = "UNPOSTED" - POSTED = "POSTED" - - def visit(self, unposted: typing.Callable[[], T_Result], posted: typing.Callable[[], T_Result]) -> T_Result: - if self is PostingStatusEnum.UNPOSTED: - return unposted() - if self is PostingStatusEnum.POSTED: - return posted() diff --git a/src/merge/resources/accounting/types/project.py b/src/merge/resources/accounting/types/project.py deleted file mode 100644 index 6cc2cbf1..00000000 --- a/src/merge/resources/accounting/types/project.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .project_company import ProjectCompany -from .project_contact import ProjectContact -from .remote_data import RemoteData - - -class Project(UncheckedBaseModel): - """ - # The Project Object - ### Description - The `Project` object is used to track and manage time, costs, resources, and revenue for specific initiatives or work efforts. - It provides classification on transactions for allocating expenses, revenue, and activities to a specific project for financial reporting. - - ### Usage Example - Fetch from the `GET Project` endpoint and view project information. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: str = pydantic.Field() - """ - The project’s name - """ - - is_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - `True` if the project is active, `False` if the project is not active. - """ - - company: typing.Optional[ProjectCompany] = pydantic.Field(default=None) - """ - The subsidiary that the project belongs to. - """ - - contact: typing.Optional[ProjectContact] = pydantic.Field(default=None) - """ - The supplier, or customer involved in the project. - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/project_company.py b/src/merge/resources/accounting/types/project_company.py deleted file mode 100644 index 5abff9e3..00000000 --- a/src/merge/resources/accounting/types/project_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -ProjectCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/project_contact.py b/src/merge/resources/accounting/types/project_contact.py deleted file mode 100644 index 5ac8fb10..00000000 --- a/src/merge/resources/accounting/types/project_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -ProjectContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/purchase_order.py b/src/merge/resources/accounting/types/purchase_order.py deleted file mode 100644 index 6de72fda..00000000 --- a/src/merge/resources/accounting/types/purchase_order.py +++ /dev/null @@ -1,466 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .purchase_order_accounting_period import PurchaseOrderAccountingPeriod -from .purchase_order_company import PurchaseOrderCompany -from .purchase_order_currency import PurchaseOrderCurrency -from .purchase_order_delivery_address import PurchaseOrderDeliveryAddress -from .purchase_order_line_item import PurchaseOrderLineItem -from .purchase_order_payment_term import PurchaseOrderPaymentTerm -from .purchase_order_status import PurchaseOrderStatus -from .purchase_order_tracking_categories_item import PurchaseOrderTrackingCategoriesItem -from .purchase_order_vendor import PurchaseOrderVendor -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class PurchaseOrder(UncheckedBaseModel): - """ - # The PurchaseOrder Object - ### Description - A `PurchaseOrder` represents a request to purchase goods or services from a vendor. It outlines the details of the purchase, such as the items or services requested, quantities, prices, and delivery details. - - A `PurchaseOrder` is a crucial component of the procurement process, but does not typically result in any impact on the company’s general ledger. The general ledger is typically only affected when the `PurchaseOrder` is fulfilled as an *Accounts Payable* `Invoice` object (also known as a Bill). - - ### Usage Example - Fetch from the `LIST PurchaseOrders` endpoint and view a company's purchase orders. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - status: typing.Optional[PurchaseOrderStatus] = pydantic.Field(default=None) - """ - The purchase order's status. - - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `AUTHORIZED` - AUTHORIZED - * `BILLED` - BILLED - * `DELETED` - DELETED - """ - - issue_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The purchase order's issue date. - """ - - purchase_order_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The human-readable number of the purchase order. - """ - - delivery_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The purchase order's delivery date. - """ - - delivery_address: typing.Optional[PurchaseOrderDeliveryAddress] = pydantic.Field(default=None) - """ - The purchase order's delivery address. - """ - - customer: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact making the purchase order. - """ - - vendor: typing.Optional[PurchaseOrderVendor] = pydantic.Field(default=None) - """ - The party fulfilling the purchase order. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - A memo attached to the purchase order. - """ - - company: typing.Optional[PurchaseOrderCompany] = pydantic.Field(default=None) - """ - The company the purchase order belongs to. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The purchase order's total amount. - """ - - currency: typing.Optional[PurchaseOrderCurrency] = pydantic.Field(default=None) - """ - The purchase order's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order's exchange rate. - """ - - payment_term: typing.Optional[PurchaseOrderPaymentTerm] = pydantic.Field(default=None) - """ - The payment term that applies to this transaction. - """ - - line_items: typing.Optional[typing.List[PurchaseOrderLineItem]] = None - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[PurchaseOrderTrackingCategoriesItem]]] = None - accounting_period: typing.Optional[PurchaseOrderAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the PurchaseOrder was generated in. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's purchase order note was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's purchase order note was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/purchase_order_accounting_period.py b/src/merge/resources/accounting/types/purchase_order_accounting_period.py deleted file mode 100644 index a2e3e1eb..00000000 --- a/src/merge/resources/accounting/types/purchase_order_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -PurchaseOrderAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/purchase_order_company.py b/src/merge/resources/accounting/types/purchase_order_company.py deleted file mode 100644 index ca2f0db9..00000000 --- a/src/merge/resources/accounting/types/purchase_order_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -PurchaseOrderCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/purchase_order_currency.py b/src/merge/resources/accounting/types/purchase_order_currency.py deleted file mode 100644 index f85c9278..00000000 --- a/src/merge/resources/accounting/types/purchase_order_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -PurchaseOrderCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/purchase_order_delivery_address.py b/src/merge/resources/accounting/types/purchase_order_delivery_address.py deleted file mode 100644 index 333453d3..00000000 --- a/src/merge/resources/accounting/types/purchase_order_delivery_address.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address import Address - -PurchaseOrderDeliveryAddress = typing.Union[str, Address] diff --git a/src/merge/resources/accounting/types/purchase_order_line_item.py b/src/merge/resources/accounting/types/purchase_order_line_item.py deleted file mode 100644 index 76bb8b42..00000000 --- a/src/merge/resources/accounting/types/purchase_order_line_item.py +++ /dev/null @@ -1,422 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .purchase_order_line_item_currency import PurchaseOrderLineItemCurrency -from .purchase_order_line_item_item import PurchaseOrderLineItemItem -from .remote_field import RemoteField - - -class PurchaseOrderLineItem(UncheckedBaseModel): - """ - # The PurchaseOrderLineItem Object - ### Description - The `PurchaseOrderLineItem` object is used to represent a purchase order's line item. - - ### Usage Example - Fetch from the `GET PurchaseOrder` endpoint and view a company's purchase orders. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the good being purchased. - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's unit price. - """ - - quantity: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's quantity. - """ - - item: typing.Optional[PurchaseOrderLineItemItem] = None - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's account. - """ - - tracking_category: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's associated tracking category. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The purchase order line item's associated tracking categories. - """ - - tax_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's tax amount. - """ - - total_line_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's total amount. - """ - - currency: typing.Optional[PurchaseOrderLineItemCurrency] = pydantic.Field(default=None) - """ - The purchase order line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's exchange rate. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the purchase order line item belongs to. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/purchase_order_line_item_currency.py b/src/merge/resources/accounting/types/purchase_order_line_item_currency.py deleted file mode 100644 index 71815173..00000000 --- a/src/merge/resources/accounting/types/purchase_order_line_item_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -PurchaseOrderLineItemCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/purchase_order_line_item_item.py b/src/merge/resources/accounting/types/purchase_order_line_item_item.py deleted file mode 100644 index b1a2a0cf..00000000 --- a/src/merge/resources/accounting/types/purchase_order_line_item_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -PurchaseOrderLineItemItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/purchase_order_line_item_request.py b/src/merge/resources/accounting/types/purchase_order_line_item_request.py deleted file mode 100644 index 964b9e1e..00000000 --- a/src/merge/resources/accounting/types/purchase_order_line_item_request.py +++ /dev/null @@ -1,407 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .purchase_order_line_item_request_currency import PurchaseOrderLineItemRequestCurrency -from .purchase_order_line_item_request_item import PurchaseOrderLineItemRequestItem -from .remote_field_request import RemoteFieldRequest - - -class PurchaseOrderLineItemRequest(UncheckedBaseModel): - """ - # The PurchaseOrderLineItem Object - ### Description - The `PurchaseOrderLineItem` object is used to represent a purchase order's line item. - - ### Usage Example - Fetch from the `GET PurchaseOrder` endpoint and view a company's purchase orders. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the good being purchased. - """ - - unit_price: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's unit price. - """ - - quantity: typing.Optional[float] = pydantic.Field(default=None) - """ - The line item's quantity. - """ - - item: typing.Optional[PurchaseOrderLineItemRequestItem] = None - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's account. - """ - - tracking_category: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's associated tracking category. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The purchase order line item's associated tracking categories. - """ - - tax_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's tax amount. - """ - - total_line_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's total amount. - """ - - currency: typing.Optional[PurchaseOrderLineItemRequestCurrency] = pydantic.Field(default=None) - """ - The purchase order line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order line item's exchange rate. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the purchase order line item belongs to. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/purchase_order_line_item_request_currency.py b/src/merge/resources/accounting/types/purchase_order_line_item_request_currency.py deleted file mode 100644 index 636139e2..00000000 --- a/src/merge/resources/accounting/types/purchase_order_line_item_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -PurchaseOrderLineItemRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/purchase_order_line_item_request_item.py b/src/merge/resources/accounting/types/purchase_order_line_item_request_item.py deleted file mode 100644 index d3474562..00000000 --- a/src/merge/resources/accounting/types/purchase_order_line_item_request_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -PurchaseOrderLineItemRequestItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/purchase_order_payment_term.py b/src/merge/resources/accounting/types/purchase_order_payment_term.py deleted file mode 100644 index 1f3c8547..00000000 --- a/src/merge/resources/accounting/types/purchase_order_payment_term.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_term import PaymentTerm - -PurchaseOrderPaymentTerm = typing.Union[str, PaymentTerm] diff --git a/src/merge/resources/accounting/types/purchase_order_request.py b/src/merge/resources/accounting/types/purchase_order_request.py deleted file mode 100644 index 95fa1a1e..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request.py +++ /dev/null @@ -1,423 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .purchase_order_line_item_request import PurchaseOrderLineItemRequest -from .purchase_order_request_company import PurchaseOrderRequestCompany -from .purchase_order_request_currency import PurchaseOrderRequestCurrency -from .purchase_order_request_delivery_address import PurchaseOrderRequestDeliveryAddress -from .purchase_order_request_payment_term import PurchaseOrderRequestPaymentTerm -from .purchase_order_request_status import PurchaseOrderRequestStatus -from .purchase_order_request_tracking_categories_item import PurchaseOrderRequestTrackingCategoriesItem -from .purchase_order_request_vendor import PurchaseOrderRequestVendor -from .remote_field_request import RemoteFieldRequest - - -class PurchaseOrderRequest(UncheckedBaseModel): - """ - # The PurchaseOrder Object - ### Description - The `PurchaseOrder` object is a record of request for a product or service between a buyer and seller. - - ### Usage Example - Fetch from the `LIST PurchaseOrders` endpoint and view a company's purchase orders. - """ - - status: typing.Optional[PurchaseOrderRequestStatus] = pydantic.Field(default=None) - """ - The purchase order's status. - - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `AUTHORIZED` - AUTHORIZED - * `BILLED` - BILLED - * `DELETED` - DELETED - """ - - issue_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The purchase order's issue date. - """ - - delivery_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The purchase order's delivery date. - """ - - delivery_address: typing.Optional[PurchaseOrderRequestDeliveryAddress] = pydantic.Field(default=None) - """ - The purchase order's delivery address. - """ - - customer: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact making the purchase order. - """ - - vendor: typing.Optional[PurchaseOrderRequestVendor] = pydantic.Field(default=None) - """ - The party fulfilling the purchase order. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - A memo attached to the purchase order. - """ - - company: typing.Optional[PurchaseOrderRequestCompany] = pydantic.Field(default=None) - """ - The company the purchase order belongs to. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The purchase order's total amount. - """ - - payment_term: typing.Optional[PurchaseOrderRequestPaymentTerm] = pydantic.Field(default=None) - """ - The payment term that applies to this transaction. - """ - - currency: typing.Optional[PurchaseOrderRequestCurrency] = pydantic.Field(default=None) - """ - The purchase order's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The purchase order's exchange rate. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[PurchaseOrderRequestTrackingCategoriesItem]]] = ( - None - ) - line_items: typing.Optional[typing.List[PurchaseOrderLineItemRequest]] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/purchase_order_request_company.py b/src/merge/resources/accounting/types/purchase_order_request_company.py deleted file mode 100644 index 81167ef1..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -PurchaseOrderRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/purchase_order_request_currency.py b/src/merge/resources/accounting/types/purchase_order_request_currency.py deleted file mode 100644 index 082e4654..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -PurchaseOrderRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/purchase_order_request_delivery_address.py b/src/merge/resources/accounting/types/purchase_order_request_delivery_address.py deleted file mode 100644 index 5387a269..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request_delivery_address.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address import Address - -PurchaseOrderRequestDeliveryAddress = typing.Union[str, Address] diff --git a/src/merge/resources/accounting/types/purchase_order_request_payment_term.py b/src/merge/resources/accounting/types/purchase_order_request_payment_term.py deleted file mode 100644 index bb2528ba..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request_payment_term.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payment_term import PaymentTerm - -PurchaseOrderRequestPaymentTerm = typing.Union[str, PaymentTerm] diff --git a/src/merge/resources/accounting/types/purchase_order_request_status.py b/src/merge/resources/accounting/types/purchase_order_request_status.py deleted file mode 100644 index de4651e4..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .purchase_order_status_enum import PurchaseOrderStatusEnum - -PurchaseOrderRequestStatus = typing.Union[PurchaseOrderStatusEnum, str] diff --git a/src/merge/resources/accounting/types/purchase_order_request_tracking_categories_item.py b/src/merge/resources/accounting/types/purchase_order_request_tracking_categories_item.py deleted file mode 100644 index e0006bb6..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -PurchaseOrderRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/purchase_order_request_vendor.py b/src/merge/resources/accounting/types/purchase_order_request_vendor.py deleted file mode 100644 index 7d0dae2b..00000000 --- a/src/merge/resources/accounting/types/purchase_order_request_vendor.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -PurchaseOrderRequestVendor = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/purchase_order_response.py b/src/merge/resources/accounting/types/purchase_order_response.py deleted file mode 100644 index bffbc5a1..00000000 --- a/src/merge/resources/accounting/types/purchase_order_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .purchase_order import PurchaseOrder -from .warning_validation_problem import WarningValidationProblem - - -class PurchaseOrderResponse(UncheckedBaseModel): - model: PurchaseOrder - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/purchase_order_status.py b/src/merge/resources/accounting/types/purchase_order_status.py deleted file mode 100644 index 0c1c6944..00000000 --- a/src/merge/resources/accounting/types/purchase_order_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .purchase_order_status_enum import PurchaseOrderStatusEnum - -PurchaseOrderStatus = typing.Union[PurchaseOrderStatusEnum, str] diff --git a/src/merge/resources/accounting/types/purchase_order_status_enum.py b/src/merge/resources/accounting/types/purchase_order_status_enum.py deleted file mode 100644 index 1c302dd3..00000000 --- a/src/merge/resources/accounting/types/purchase_order_status_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PurchaseOrderStatusEnum(str, enum.Enum): - """ - * `DRAFT` - DRAFT - * `SUBMITTED` - SUBMITTED - * `AUTHORIZED` - AUTHORIZED - * `BILLED` - BILLED - * `DELETED` - DELETED - """ - - DRAFT = "DRAFT" - SUBMITTED = "SUBMITTED" - AUTHORIZED = "AUTHORIZED" - BILLED = "BILLED" - DELETED = "DELETED" - - def visit( - self, - draft: typing.Callable[[], T_Result], - submitted: typing.Callable[[], T_Result], - authorized: typing.Callable[[], T_Result], - billed: typing.Callable[[], T_Result], - deleted: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PurchaseOrderStatusEnum.DRAFT: - return draft() - if self is PurchaseOrderStatusEnum.SUBMITTED: - return submitted() - if self is PurchaseOrderStatusEnum.AUTHORIZED: - return authorized() - if self is PurchaseOrderStatusEnum.BILLED: - return billed() - if self is PurchaseOrderStatusEnum.DELETED: - return deleted() diff --git a/src/merge/resources/accounting/types/purchase_order_tracking_categories_item.py b/src/merge/resources/accounting/types/purchase_order_tracking_categories_item.py deleted file mode 100644 index 6662ceaa..00000000 --- a/src/merge/resources/accounting/types/purchase_order_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -PurchaseOrderTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/purchase_order_vendor.py b/src/merge/resources/accounting/types/purchase_order_vendor.py deleted file mode 100644 index a0ead21e..00000000 --- a/src/merge/resources/accounting/types/purchase_order_vendor.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -PurchaseOrderVendor = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/remote_data.py b/src/merge/resources/accounting/types/remote_data.py deleted file mode 100644 index f34bec80..00000000 --- a/src/merge/resources/accounting/types/remote_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteData(UncheckedBaseModel): - """ - # The RemoteData Object - ### Description - The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - - ### Usage Example - TODO - """ - - path: str = pydantic.Field() - """ - The third-party API path that is being called. - """ - - data: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The data returned from the third-party for this object in its original, unnormalized format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_endpoint_info.py b/src/merge/resources/accounting/types/remote_endpoint_info.py deleted file mode 100644 index 07ceff6a..00000000 --- a/src/merge/resources/accounting/types/remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteEndpointInfo(UncheckedBaseModel): - method: str - url_path: str - field_traversal_path: typing.List[typing.Optional[typing.Any]] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_field.py b/src/merge/resources/accounting/types/remote_field.py deleted file mode 100644 index 1a9272f0..00000000 --- a/src/merge/resources/accounting/types/remote_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_remote_field_class import RemoteFieldRemoteFieldClass - - -class RemoteField(UncheckedBaseModel): - remote_field_class: RemoteFieldRemoteFieldClass - value: typing.Optional[typing.Optional[typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_field_api.py b/src/merge/resources/accounting/types/remote_field_api.py deleted file mode 100644 index 4c66a23b..00000000 --- a/src/merge/resources/accounting/types/remote_field_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .advanced_metadata import AdvancedMetadata -from .remote_endpoint_info import RemoteEndpointInfo -from .remote_field_api_coverage import RemoteFieldApiCoverage - - -class RemoteFieldApi(UncheckedBaseModel): - schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema") - remote_key_name: str - remote_endpoint_info: RemoteEndpointInfo - example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - advanced_metadata: typing.Optional[AdvancedMetadata] = None - coverage: typing.Optional[RemoteFieldApiCoverage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_field_api_coverage.py b/src/merge/resources/accounting/types/remote_field_api_coverage.py deleted file mode 100644 index adcd9be9..00000000 --- a/src/merge/resources/accounting/types/remote_field_api_coverage.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RemoteFieldApiCoverage = typing.Union[int, float] diff --git a/src/merge/resources/accounting/types/remote_field_api_response.py b/src/merge/resources/accounting/types/remote_field_api_response.py deleted file mode 100644 index 68f5ce25..00000000 --- a/src/merge/resources/accounting/types/remote_field_api_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_api import RemoteFieldApi - - -class RemoteFieldApiResponse(UncheckedBaseModel): - account: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Account", default=None) - accounting_attachment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="AccountingAttachment", default=None - ) - balance_sheet: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="BalanceSheet", default=None) - cash_flow_statement: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="CashFlowStatement", default=None - ) - company_info: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="CompanyInfo", default=None) - contact: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Contact", default=None) - income_statement: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="IncomeStatement", default=None - ) - credit_note: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="CreditNote", default=None) - item: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Item", default=None) - purchase_order: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="PurchaseOrder", default=None) - tracking_category: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="TrackingCategory", default=None - ) - journal_entry: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="JournalEntry", default=None) - tax_rate: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="TaxRate", default=None) - invoice: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Invoice", default=None) - payment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Payment", default=None) - expense: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Expense", default=None) - vendor_credit: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="VendorCredit", default=None) - transaction: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Transaction", default=None) - accounting_period: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="AccountingPeriod", default=None - ) - general_ledger_transaction: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="GeneralLedgerTransaction", default=None - ) - bank_feed_account: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="BankFeedAccount", default=None - ) - employee: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Employee", default=None) - payment_method: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="PaymentMethod", default=None) - project: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Project", default=None) - payment_term: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="PaymentTerm", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_field_class.py b/src/merge/resources/accounting/types/remote_field_class.py deleted file mode 100644 index 4126b4e7..00000000 --- a/src/merge/resources/accounting/types/remote_field_class.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_format_enum import FieldFormatEnum -from .field_type_enum import FieldTypeEnum -from .item_schema import ItemSchema - - -class RemoteFieldClass(UncheckedBaseModel): - id: typing.Optional[str] = None - display_name: typing.Optional[str] = None - remote_key_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_custom: typing.Optional[bool] = None - is_common_model_field: typing.Optional[bool] = None - is_required: typing.Optional[bool] = None - field_type: typing.Optional[FieldTypeEnum] = None - field_format: typing.Optional[FieldFormatEnum] = None - field_choices: typing.Optional[typing.List[str]] = None - item_schema: typing.Optional[ItemSchema] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_field_remote_field_class.py b/src/merge/resources/accounting/types/remote_field_remote_field_class.py deleted file mode 100644 index b7ab0ef6..00000000 --- a/src/merge/resources/accounting/types/remote_field_remote_field_class.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_field_class import RemoteFieldClass - -RemoteFieldRemoteFieldClass = typing.Union[str, RemoteFieldClass] diff --git a/src/merge/resources/accounting/types/remote_field_request.py b/src/merge/resources/accounting/types/remote_field_request.py deleted file mode 100644 index 69bc39da..00000000 --- a/src/merge/resources/accounting/types/remote_field_request.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_request_remote_field_class import RemoteFieldRequestRemoteFieldClass - - -class RemoteFieldRequest(UncheckedBaseModel): - remote_field_class: RemoteFieldRequestRemoteFieldClass - value: typing.Optional[typing.Optional[typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_field_request_remote_field_class.py b/src/merge/resources/accounting/types/remote_field_request_remote_field_class.py deleted file mode 100644 index 08797e5e..00000000 --- a/src/merge/resources/accounting/types/remote_field_request_remote_field_class.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_field_class import RemoteFieldClass - -RemoteFieldRequestRemoteFieldClass = typing.Union[str, RemoteFieldClass] diff --git a/src/merge/resources/accounting/types/remote_key.py b/src/merge/resources/accounting/types/remote_key.py deleted file mode 100644 index e5d9758c..00000000 --- a/src/merge/resources/accounting/types/remote_key.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteKey(UncheckedBaseModel): - """ - # The RemoteKey Object - ### Description - The `RemoteKey` object is used to represent a request for a new remote key. - - ### Usage Example - Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - """ - - name: str - key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/remote_response.py b/src/merge/resources/accounting/types/remote_response.py deleted file mode 100644 index af181fc0..00000000 --- a/src/merge/resources/accounting/types/remote_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .response_type_enum import ResponseTypeEnum - - -class RemoteResponse(UncheckedBaseModel): - """ - # The RemoteResponse Object - ### Description - The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - - ### Usage Example - View the `RemoteResponse` returned from your `DataPassthrough`. - """ - - method: str - path: str - status: int - response: typing.Optional[typing.Any] = None - response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[ResponseTypeEnum] = None - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/report_item.py b/src/merge/resources/accounting/types/report_item.py deleted file mode 100644 index 4fdbd010..00000000 --- a/src/merge/resources/accounting/types/report_item.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ReportItem(UncheckedBaseModel): - """ - # The ReportItem Object - ### Description - The `ReportItem` object is used to represent a report item for a Balance Sheet, Cash Flow Statement or Profit and Loss Report. - - ### Usage Example - Fetch from the `GET BalanceSheet` endpoint and view the balance sheet's report items. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The report item's name. - """ - - value: typing.Optional[float] = pydantic.Field(default=None) - """ - The report item's value. - """ - - sub_items: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the report item belongs to. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/request_format_enum.py b/src/merge/resources/accounting/types/request_format_enum.py deleted file mode 100644 index 21c272f2..00000000 --- a/src/merge/resources/accounting/types/request_format_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestFormatEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `XML` - XML - * `MULTIPART` - MULTIPART - """ - - JSON = "JSON" - XML = "XML" - MULTIPART = "MULTIPART" - - def visit( - self, - json: typing.Callable[[], T_Result], - xml: typing.Callable[[], T_Result], - multipart: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestFormatEnum.JSON: - return json() - if self is RequestFormatEnum.XML: - return xml() - if self is RequestFormatEnum.MULTIPART: - return multipart() diff --git a/src/merge/resources/accounting/types/response_type_enum.py b/src/merge/resources/accounting/types/response_type_enum.py deleted file mode 100644 index ef241302..00000000 --- a/src/merge/resources/accounting/types/response_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ResponseTypeEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `BASE64_GZIP` - BASE64_GZIP - """ - - JSON = "JSON" - BASE_64_GZIP = "BASE64_GZIP" - - def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result: - if self is ResponseTypeEnum.JSON: - return json() - if self is ResponseTypeEnum.BASE_64_GZIP: - return base_64_gzip() diff --git a/src/merge/resources/accounting/types/role_enum.py b/src/merge/resources/accounting/types/role_enum.py deleted file mode 100644 index a6cfcc6f..00000000 --- a/src/merge/resources/accounting/types/role_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RoleEnum(str, enum.Enum): - """ - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ADMIN = "ADMIN" - DEVELOPER = "DEVELOPER" - MEMBER = "MEMBER" - API = "API" - SYSTEM = "SYSTEM" - MERGE_TEAM = "MERGE_TEAM" - - def visit( - self, - admin: typing.Callable[[], T_Result], - developer: typing.Callable[[], T_Result], - member: typing.Callable[[], T_Result], - api: typing.Callable[[], T_Result], - system: typing.Callable[[], T_Result], - merge_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RoleEnum.ADMIN: - return admin() - if self is RoleEnum.DEVELOPER: - return developer() - if self is RoleEnum.MEMBER: - return member() - if self is RoleEnum.API: - return api() - if self is RoleEnum.SYSTEM: - return system() - if self is RoleEnum.MERGE_TEAM: - return merge_team() diff --git a/src/merge/resources/accounting/types/selective_sync_configurations_usage_enum.py b/src/merge/resources/accounting/types/selective_sync_configurations_usage_enum.py deleted file mode 100644 index 9ff43813..00000000 --- a/src/merge/resources/accounting/types/selective_sync_configurations_usage_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum): - """ - * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * `IN_LAST_SYNC` - IN_LAST_SYNC - """ - - IN_NEXT_SYNC = "IN_NEXT_SYNC" - IN_LAST_SYNC = "IN_LAST_SYNC" - - def visit( - self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result] - ) -> T_Result: - if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC: - return in_next_sync() - if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC: - return in_last_sync() diff --git a/src/merge/resources/accounting/types/status_7_d_1_enum.py b/src/merge/resources/accounting/types/status_7_d_1_enum.py deleted file mode 100644 index 3b21ca93..00000000 --- a/src/merge/resources/accounting/types/status_7_d_1_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class Status7D1Enum(str, enum.Enum): - """ - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - ACTIVE = "ACTIVE" - ARCHIVED = "ARCHIVED" - - def visit(self, active: typing.Callable[[], T_Result], archived: typing.Callable[[], T_Result]) -> T_Result: - if self is Status7D1Enum.ACTIVE: - return active() - if self is Status7D1Enum.ARCHIVED: - return archived() diff --git a/src/merge/resources/accounting/types/status_895_enum.py b/src/merge/resources/accounting/types/status_895_enum.py deleted file mode 100644 index b7cba275..00000000 --- a/src/merge/resources/accounting/types/status_895_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class Status895Enum(str, enum.Enum): - """ - * `ACTIVE` - ACTIVE - * `INACTIVE` - INACTIVE - """ - - ACTIVE = "ACTIVE" - INACTIVE = "INACTIVE" - - def visit(self, active: typing.Callable[[], T_Result], inactive: typing.Callable[[], T_Result]) -> T_Result: - if self is Status895Enum.ACTIVE: - return active() - if self is Status895Enum.INACTIVE: - return inactive() diff --git a/src/merge/resources/accounting/types/status_fd_5_enum.py b/src/merge/resources/accounting/types/status_fd_5_enum.py deleted file mode 100644 index d753f77c..00000000 --- a/src/merge/resources/accounting/types/status_fd_5_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class StatusFd5Enum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is StatusFd5Enum.SYNCING: - return syncing() - if self is StatusFd5Enum.DONE: - return done() - if self is StatusFd5Enum.FAILED: - return failed() - if self is StatusFd5Enum.DISABLED: - return disabled() - if self is StatusFd5Enum.PAUSED: - return paused() - if self is StatusFd5Enum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/accounting/types/sync_status.py b/src/merge/resources/accounting/types/sync_status.py deleted file mode 100644 index ca6a53b0..00000000 --- a/src/merge/resources/accounting/types/sync_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .last_sync_result_enum import LastSyncResultEnum -from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .sync_status_status import SyncStatusStatus - - -class SyncStatus(UncheckedBaseModel): - """ - # The SyncStatus Object - ### Description - The `SyncStatus` object is used to represent the syncing state of an account - - ### Usage Example - View the `SyncStatus` for an account to see how recently its models were synced. - """ - - model_name: str - model_id: str - last_sync_start: typing.Optional[dt.datetime] = None - next_sync_start: typing.Optional[dt.datetime] = None - last_sync_result: typing.Optional[LastSyncResultEnum] = None - last_sync_finished: typing.Optional[dt.datetime] = None - status: SyncStatusStatus - is_initial_sync: bool - selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/tax_component.py b/src/merge/resources/accounting/types/tax_component.py deleted file mode 100644 index e648de4b..00000000 --- a/src/merge/resources/accounting/types/tax_component.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .tax_component_component_type import TaxComponentComponentType - - -class TaxComponent(UncheckedBaseModel): - """ - # The TaxRate Object - ### Description - The `TaxComponent` object is used to represent any sub-taxes that make up the `TaxRate`. - - ### Usage Example - Fetch from the `LIST TaxRates` endpoint and view tax components relevant to a tax rate. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate’s name. - """ - - rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax component’s rate. - """ - - is_compound: typing.Optional[bool] = pydantic.Field(default=None) - """ - Returns True if the tax component is compound, False if not. - """ - - component_type: typing.Optional[TaxComponentComponentType] = pydantic.Field(default=None) - """ - Returns PURCHASE if the tax component corresponds to a purchase tax or SALES if the tax component corresponds to a sales tax. - - * `SALES` - SALES - * `PURCHASE` - PURCHASE - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/tax_component_component_type.py b/src/merge/resources/accounting/types/tax_component_component_type.py deleted file mode 100644 index 59919c1b..00000000 --- a/src/merge/resources/accounting/types/tax_component_component_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .component_type_enum import ComponentTypeEnum - -TaxComponentComponentType = typing.Union[ComponentTypeEnum, str] diff --git a/src/merge/resources/accounting/types/tax_rate.py b/src/merge/resources/accounting/types/tax_rate.py deleted file mode 100644 index 66b673c1..00000000 --- a/src/merge/resources/accounting/types/tax_rate.py +++ /dev/null @@ -1,104 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .tax_rate_company import TaxRateCompany -from .tax_rate_status import TaxRateStatus -from .tax_rate_tax_components_item import TaxRateTaxComponentsItem - - -class TaxRate(UncheckedBaseModel): - """ - # The TaxRate Object - ### Description - The `TaxRate` object is used to represent a tax rate. - - ### Usage Example - Fetch from the `LIST TaxRates` endpoint and view tax rates relevant to a company. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - company: typing.Optional[TaxRateCompany] = pydantic.Field(default=None) - """ - The subsidiary that the tax rate belongs to (in the case of multi-entity systems). - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax code associated with this tax rate or group of tax rates from the third-party platform. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate’s name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate's description. - """ - - status: typing.Optional[TaxRateStatus] = pydantic.Field(default=None) - """ - The tax rate’s status - `ACTIVE` if an active tax rate, `ARCHIVED` if not active. - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - country: typing.Optional[str] = pydantic.Field(default=None) - """ - The country the tax rate is associated with. - """ - - total_tax_rate: typing.Optional[float] = pydantic.Field(default=None) - """ - The tax’s total tax rate - sum of the tax components (not compounded). - """ - - effective_tax_rate: typing.Optional[float] = pydantic.Field(default=None) - """ - The tax rate’s effective tax rate - total amount of tax with compounding. - """ - - tax_components: typing.Optional[typing.List[TaxRateTaxComponentsItem]] = pydantic.Field(default=None) - """ - The related tax components of the tax rate. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/tax_rate_company.py b/src/merge/resources/accounting/types/tax_rate_company.py deleted file mode 100644 index a3b6cd68..00000000 --- a/src/merge/resources/accounting/types/tax_rate_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -TaxRateCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/tax_rate_status.py b/src/merge/resources/accounting/types/tax_rate_status.py deleted file mode 100644 index dae00ac2..00000000 --- a/src/merge/resources/accounting/types/tax_rate_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_7_d_1_enum import Status7D1Enum - -TaxRateStatus = typing.Union[Status7D1Enum, str] diff --git a/src/merge/resources/accounting/types/tax_rate_tax_components_item.py b/src/merge/resources/accounting/types/tax_rate_tax_components_item.py deleted file mode 100644 index 203fbae8..00000000 --- a/src/merge/resources/accounting/types/tax_rate_tax_components_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tax_component import TaxComponent - -TaxRateTaxComponentsItem = typing.Union[str, TaxComponent] diff --git a/src/merge/resources/accounting/types/tracking_category.py b/src/merge/resources/accounting/types/tracking_category.py deleted file mode 100644 index f4d2e0ba..00000000 --- a/src/merge/resources/accounting/types/tracking_category.py +++ /dev/null @@ -1,81 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .tracking_category_category_type import TrackingCategoryCategoryType -from .tracking_category_company import TrackingCategoryCompany -from .tracking_category_status import TrackingCategoryStatus - - -class TrackingCategory(UncheckedBaseModel): - """ - # The TrackingCategory Object - ### Description - A `TrackingCategory` object represents a categorization method used to classify transactions within an accounting platform. They are often used to group records for reporting and analysis purposes. The most common types of `TrackingCategories` are Classes and Departments. - - ### Usage Example - Fetch from the `GET TrackingCategory` endpoint and view a company's tracking category. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The tracking category's name. - """ - - status: typing.Optional[TrackingCategoryStatus] = pydantic.Field(default=None) - """ - The tracking category's status. - - * `ACTIVE` - ACTIVE - * `ARCHIVED` - ARCHIVED - """ - - category_type: typing.Optional[TrackingCategoryCategoryType] = pydantic.Field(default=None) - """ - The tracking category’s type. - - * `CLASS` - CLASS - * `DEPARTMENT` - DEPARTMENT - """ - - parent_category: typing.Optional[str] = None - company: typing.Optional[TrackingCategoryCompany] = pydantic.Field(default=None) - """ - The company the GeneralLedgerTransaction belongs to. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/tracking_category_category_type.py b/src/merge/resources/accounting/types/tracking_category_category_type.py deleted file mode 100644 index 4b5d1999..00000000 --- a/src/merge/resources/accounting/types/tracking_category_category_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_type_enum import CategoryTypeEnum - -TrackingCategoryCategoryType = typing.Union[CategoryTypeEnum, str] diff --git a/src/merge/resources/accounting/types/tracking_category_company.py b/src/merge/resources/accounting/types/tracking_category_company.py deleted file mode 100644 index 47be6b88..00000000 --- a/src/merge/resources/accounting/types/tracking_category_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -TrackingCategoryCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/tracking_category_status.py b/src/merge/resources/accounting/types/tracking_category_status.py deleted file mode 100644 index 8d0328ef..00000000 --- a/src/merge/resources/accounting/types/tracking_category_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_7_d_1_enum import Status7D1Enum - -TrackingCategoryStatus = typing.Union[Status7D1Enum, str] diff --git a/src/merge/resources/accounting/types/transaction.py b/src/merge/resources/accounting/types/transaction.py deleted file mode 100644 index 9a014736..00000000 --- a/src/merge/resources/accounting/types/transaction.py +++ /dev/null @@ -1,430 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .transaction_account import TransactionAccount -from .transaction_accounting_period import TransactionAccountingPeriod -from .transaction_contact import TransactionContact -from .transaction_currency import TransactionCurrency -from .transaction_line_item import TransactionLineItem -from .transaction_tracking_categories_item import TransactionTrackingCategoriesItem - - -class Transaction(UncheckedBaseModel): - """ - # The Transaction Object - ### Description - The `Transaction` common model includes records of all types of transactions that do not appear in other common models. The type of transaction can be identified through the type field. More specifically, it will contain all types of transactions outside of: - * __Credit Notes__ - * __Expenses__ - * __Invoices__ - * __Journal Entries__ - * __Payments__ - * __Purchase Orders__ - * __Vendor Credits__ - - ### Usage Example - Fetch from the `GET Transaction` endpoint and view a company's transactions. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - transaction_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of transaction, which can by any transaction object not already included in Merge’s common model. - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The transaction's number used for identifying purposes. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date upon which the transaction occurred. - """ - - account: typing.Optional[TransactionAccount] = pydantic.Field(default=None) - """ - The transaction's account. - """ - - contact: typing.Optional[TransactionContact] = pydantic.Field(default=None) - """ - The contact to whom the transaction relates to. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - total_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The total amount being paid after taxes. - """ - - currency: typing.Optional[TransactionCurrency] = pydantic.Field(default=None) - """ - The transaction's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The transaction's exchange rate. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the transaction belongs to. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[TransactionTrackingCategoriesItem]]] = None - line_items: typing.Optional[typing.List[TransactionLineItem]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - accounting_period: typing.Optional[TransactionAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the Transaction was generated in. - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/transaction_account.py b/src/merge/resources/accounting/types/transaction_account.py deleted file mode 100644 index d52c48e8..00000000 --- a/src/merge/resources/accounting/types/transaction_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -TransactionAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/transaction_accounting_period.py b/src/merge/resources/accounting/types/transaction_accounting_period.py deleted file mode 100644 index 7de59158..00000000 --- a/src/merge/resources/accounting/types/transaction_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -TransactionAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/transaction_contact.py b/src/merge/resources/accounting/types/transaction_contact.py deleted file mode 100644 index 424ca153..00000000 --- a/src/merge/resources/accounting/types/transaction_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -TransactionContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/transaction_currency.py b/src/merge/resources/accounting/types/transaction_currency.py deleted file mode 100644 index 1c634327..00000000 --- a/src/merge/resources/accounting/types/transaction_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -TransactionCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/transaction_currency_enum.py b/src/merge/resources/accounting/types/transaction_currency_enum.py deleted file mode 100644 index e02cdea7..00000000 --- a/src/merge/resources/accounting/types/transaction_currency_enum.py +++ /dev/null @@ -1,1546 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TransactionCurrencyEnum(str, enum.Enum): - """ - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - XUA = "XUA" - AFN = "AFN" - AFA = "AFA" - ALL = "ALL" - ALK = "ALK" - DZD = "DZD" - ADP = "ADP" - AOA = "AOA" - AOK = "AOK" - AON = "AON" - AOR = "AOR" - ARA = "ARA" - ARS = "ARS" - ARM = "ARM" - ARP = "ARP" - ARL = "ARL" - AMD = "AMD" - AWG = "AWG" - AUD = "AUD" - ATS = "ATS" - AZN = "AZN" - AZM = "AZM" - BSD = "BSD" - BHD = "BHD" - BDT = "BDT" - BBD = "BBD" - BYN = "BYN" - BYB = "BYB" - BYR = "BYR" - BEF = "BEF" - BEC = "BEC" - BEL = "BEL" - BZD = "BZD" - BMD = "BMD" - BTN = "BTN" - BOB = "BOB" - BOL = "BOL" - BOV = "BOV" - BOP = "BOP" - BAM = "BAM" - BAD = "BAD" - BAN = "BAN" - BWP = "BWP" - BRC = "BRC" - BRZ = "BRZ" - BRE = "BRE" - BRR = "BRR" - BRN = "BRN" - BRB = "BRB" - BRL = "BRL" - GBP = "GBP" - BND = "BND" - BGL = "BGL" - BGN = "BGN" - BGO = "BGO" - BGM = "BGM" - BUK = "BUK" - BIF = "BIF" - XPF = "XPF" - KHR = "KHR" - CAD = "CAD" - CVE = "CVE" - KYD = "KYD" - XAF = "XAF" - CLE = "CLE" - CLP = "CLP" - CLF = "CLF" - CNX = "CNX" - CNY = "CNY" - CNH = "CNH" - COP = "COP" - COU = "COU" - KMF = "KMF" - CDF = "CDF" - CRC = "CRC" - HRD = "HRD" - HRK = "HRK" - CUC = "CUC" - CUP = "CUP" - CYP = "CYP" - CZK = "CZK" - CSK = "CSK" - DKK = "DKK" - DJF = "DJF" - DOP = "DOP" - NLG = "NLG" - XCD = "XCD" - DDM = "DDM" - ECS = "ECS" - ECV = "ECV" - EGP = "EGP" - GQE = "GQE" - ERN = "ERN" - EEK = "EEK" - ETB = "ETB" - EUR = "EUR" - XBA = "XBA" - XEU = "XEU" - XBB = "XBB" - XBC = "XBC" - XBD = "XBD" - FKP = "FKP" - FJD = "FJD" - FIM = "FIM" - FRF = "FRF" - XFO = "XFO" - XFU = "XFU" - GMD = "GMD" - GEK = "GEK" - GEL = "GEL" - DEM = "DEM" - GHS = "GHS" - GHC = "GHC" - GIP = "GIP" - XAU = "XAU" - GRD = "GRD" - GTQ = "GTQ" - GWP = "GWP" - GNF = "GNF" - GNS = "GNS" - GYD = "GYD" - HTG = "HTG" - HNL = "HNL" - HKD = "HKD" - HUF = "HUF" - IMP = "IMP" - ISK = "ISK" - ISJ = "ISJ" - INR = "INR" - IDR = "IDR" - IRR = "IRR" - IQD = "IQD" - IEP = "IEP" - ILS = "ILS" - ILP = "ILP" - ILR = "ILR" - ITL = "ITL" - JMD = "JMD" - JPY = "JPY" - JOD = "JOD" - KZT = "KZT" - KES = "KES" - KWD = "KWD" - KGS = "KGS" - LAK = "LAK" - LVL = "LVL" - LVR = "LVR" - LBP = "LBP" - LSL = "LSL" - LRD = "LRD" - LYD = "LYD" - LTL = "LTL" - LTT = "LTT" - LUL = "LUL" - LUC = "LUC" - LUF = "LUF" - MOP = "MOP" - MKD = "MKD" - MKN = "MKN" - MGA = "MGA" - MGF = "MGF" - MWK = "MWK" - MYR = "MYR" - MVR = "MVR" - MVP = "MVP" - MLF = "MLF" - MTL = "MTL" - MTP = "MTP" - MRU = "MRU" - MRO = "MRO" - MUR = "MUR" - MXV = "MXV" - MXN = "MXN" - MXP = "MXP" - MDC = "MDC" - MDL = "MDL" - MCF = "MCF" - MNT = "MNT" - MAD = "MAD" - MAF = "MAF" - MZE = "MZE" - MZN = "MZN" - MZM = "MZM" - MMK = "MMK" - NAD = "NAD" - NPR = "NPR" - ANG = "ANG" - TWD = "TWD" - NZD = "NZD" - NIO = "NIO" - NIC = "NIC" - NGN = "NGN" - KPW = "KPW" - NOK = "NOK" - OMR = "OMR" - PKR = "PKR" - XPD = "XPD" - PAB = "PAB" - PGK = "PGK" - PYG = "PYG" - PEI = "PEI" - PEN = "PEN" - PES = "PES" - PHP = "PHP" - XPT = "XPT" - PLN = "PLN" - PLZ = "PLZ" - PTE = "PTE" - GWE = "GWE" - QAR = "QAR" - XRE = "XRE" - RHD = "RHD" - RON = "RON" - ROL = "ROL" - RUB = "RUB" - RUR = "RUR" - RWF = "RWF" - SVC = "SVC" - WST = "WST" - SAR = "SAR" - RSD = "RSD" - CSD = "CSD" - SCR = "SCR" - SLL = "SLL" - XAG = "XAG" - SGD = "SGD" - SKK = "SKK" - SIT = "SIT" - SBD = "SBD" - SOS = "SOS" - ZAR = "ZAR" - ZAL = "ZAL" - KRH = "KRH" - KRW = "KRW" - KRO = "KRO" - SSP = "SSP" - SUR = "SUR" - ESP = "ESP" - ESA = "ESA" - ESB = "ESB" - XDR = "XDR" - LKR = "LKR" - SHP = "SHP" - XSU = "XSU" - SDD = "SDD" - SDG = "SDG" - SDP = "SDP" - SRD = "SRD" - SRG = "SRG" - SZL = "SZL" - SEK = "SEK" - CHF = "CHF" - SYP = "SYP" - STN = "STN" - STD = "STD" - TVD = "TVD" - TJR = "TJR" - TJS = "TJS" - TZS = "TZS" - XTS = "XTS" - THB = "THB" - XXX = "XXX" - TPE = "TPE" - TOP = "TOP" - TTD = "TTD" - TND = "TND" - TRY = "TRY" - TRL = "TRL" - TMT = "TMT" - TMM = "TMM" - USD = "USD" - USN = "USN" - USS = "USS" - UGX = "UGX" - UGS = "UGS" - UAH = "UAH" - UAK = "UAK" - AED = "AED" - UYW = "UYW" - UYU = "UYU" - UYP = "UYP" - UYI = "UYI" - UZS = "UZS" - VUV = "VUV" - VES = "VES" - VEB = "VEB" - VEF = "VEF" - VND = "VND" - VNN = "VNN" - CHE = "CHE" - CHW = "CHW" - XOF = "XOF" - YDD = "YDD" - YER = "YER" - YUN = "YUN" - YUD = "YUD" - YUM = "YUM" - YUR = "YUR" - ZWN = "ZWN" - ZRN = "ZRN" - ZRZ = "ZRZ" - ZMW = "ZMW" - ZMK = "ZMK" - ZWD = "ZWD" - ZWR = "ZWR" - ZWL = "ZWL" - - def visit( - self, - xua: typing.Callable[[], T_Result], - afn: typing.Callable[[], T_Result], - afa: typing.Callable[[], T_Result], - all_: typing.Callable[[], T_Result], - alk: typing.Callable[[], T_Result], - dzd: typing.Callable[[], T_Result], - adp: typing.Callable[[], T_Result], - aoa: typing.Callable[[], T_Result], - aok: typing.Callable[[], T_Result], - aon: typing.Callable[[], T_Result], - aor: typing.Callable[[], T_Result], - ara: typing.Callable[[], T_Result], - ars: typing.Callable[[], T_Result], - arm: typing.Callable[[], T_Result], - arp: typing.Callable[[], T_Result], - arl: typing.Callable[[], T_Result], - amd: typing.Callable[[], T_Result], - awg: typing.Callable[[], T_Result], - aud: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - azn: typing.Callable[[], T_Result], - azm: typing.Callable[[], T_Result], - bsd: typing.Callable[[], T_Result], - bhd: typing.Callable[[], T_Result], - bdt: typing.Callable[[], T_Result], - bbd: typing.Callable[[], T_Result], - byn: typing.Callable[[], T_Result], - byb: typing.Callable[[], T_Result], - byr: typing.Callable[[], T_Result], - bef: typing.Callable[[], T_Result], - bec: typing.Callable[[], T_Result], - bel: typing.Callable[[], T_Result], - bzd: typing.Callable[[], T_Result], - bmd: typing.Callable[[], T_Result], - btn: typing.Callable[[], T_Result], - bob: typing.Callable[[], T_Result], - bol: typing.Callable[[], T_Result], - bov: typing.Callable[[], T_Result], - bop: typing.Callable[[], T_Result], - bam: typing.Callable[[], T_Result], - bad: typing.Callable[[], T_Result], - ban: typing.Callable[[], T_Result], - bwp: typing.Callable[[], T_Result], - brc: typing.Callable[[], T_Result], - brz: typing.Callable[[], T_Result], - bre: typing.Callable[[], T_Result], - brr: typing.Callable[[], T_Result], - brn: typing.Callable[[], T_Result], - brb: typing.Callable[[], T_Result], - brl: typing.Callable[[], T_Result], - gbp: typing.Callable[[], T_Result], - bnd: typing.Callable[[], T_Result], - bgl: typing.Callable[[], T_Result], - bgn: typing.Callable[[], T_Result], - bgo: typing.Callable[[], T_Result], - bgm: typing.Callable[[], T_Result], - buk: typing.Callable[[], T_Result], - bif: typing.Callable[[], T_Result], - xpf: typing.Callable[[], T_Result], - khr: typing.Callable[[], T_Result], - cad: typing.Callable[[], T_Result], - cve: typing.Callable[[], T_Result], - kyd: typing.Callable[[], T_Result], - xaf: typing.Callable[[], T_Result], - cle: typing.Callable[[], T_Result], - clp: typing.Callable[[], T_Result], - clf: typing.Callable[[], T_Result], - cnx: typing.Callable[[], T_Result], - cny: typing.Callable[[], T_Result], - cnh: typing.Callable[[], T_Result], - cop: typing.Callable[[], T_Result], - cou: typing.Callable[[], T_Result], - kmf: typing.Callable[[], T_Result], - cdf: typing.Callable[[], T_Result], - crc: typing.Callable[[], T_Result], - hrd: typing.Callable[[], T_Result], - hrk: typing.Callable[[], T_Result], - cuc: typing.Callable[[], T_Result], - cup: typing.Callable[[], T_Result], - cyp: typing.Callable[[], T_Result], - czk: typing.Callable[[], T_Result], - csk: typing.Callable[[], T_Result], - dkk: typing.Callable[[], T_Result], - djf: typing.Callable[[], T_Result], - dop: typing.Callable[[], T_Result], - nlg: typing.Callable[[], T_Result], - xcd: typing.Callable[[], T_Result], - ddm: typing.Callable[[], T_Result], - ecs: typing.Callable[[], T_Result], - ecv: typing.Callable[[], T_Result], - egp: typing.Callable[[], T_Result], - gqe: typing.Callable[[], T_Result], - ern: typing.Callable[[], T_Result], - eek: typing.Callable[[], T_Result], - etb: typing.Callable[[], T_Result], - eur: typing.Callable[[], T_Result], - xba: typing.Callable[[], T_Result], - xeu: typing.Callable[[], T_Result], - xbb: typing.Callable[[], T_Result], - xbc: typing.Callable[[], T_Result], - xbd: typing.Callable[[], T_Result], - fkp: typing.Callable[[], T_Result], - fjd: typing.Callable[[], T_Result], - fim: typing.Callable[[], T_Result], - frf: typing.Callable[[], T_Result], - xfo: typing.Callable[[], T_Result], - xfu: typing.Callable[[], T_Result], - gmd: typing.Callable[[], T_Result], - gek: typing.Callable[[], T_Result], - gel: typing.Callable[[], T_Result], - dem: typing.Callable[[], T_Result], - ghs: typing.Callable[[], T_Result], - ghc: typing.Callable[[], T_Result], - gip: typing.Callable[[], T_Result], - xau: typing.Callable[[], T_Result], - grd: typing.Callable[[], T_Result], - gtq: typing.Callable[[], T_Result], - gwp: typing.Callable[[], T_Result], - gnf: typing.Callable[[], T_Result], - gns: typing.Callable[[], T_Result], - gyd: typing.Callable[[], T_Result], - htg: typing.Callable[[], T_Result], - hnl: typing.Callable[[], T_Result], - hkd: typing.Callable[[], T_Result], - huf: typing.Callable[[], T_Result], - imp: typing.Callable[[], T_Result], - isk: typing.Callable[[], T_Result], - isj: typing.Callable[[], T_Result], - inr: typing.Callable[[], T_Result], - idr: typing.Callable[[], T_Result], - irr: typing.Callable[[], T_Result], - iqd: typing.Callable[[], T_Result], - iep: typing.Callable[[], T_Result], - ils: typing.Callable[[], T_Result], - ilp: typing.Callable[[], T_Result], - ilr: typing.Callable[[], T_Result], - itl: typing.Callable[[], T_Result], - jmd: typing.Callable[[], T_Result], - jpy: typing.Callable[[], T_Result], - jod: typing.Callable[[], T_Result], - kzt: typing.Callable[[], T_Result], - kes: typing.Callable[[], T_Result], - kwd: typing.Callable[[], T_Result], - kgs: typing.Callable[[], T_Result], - lak: typing.Callable[[], T_Result], - lvl: typing.Callable[[], T_Result], - lvr: typing.Callable[[], T_Result], - lbp: typing.Callable[[], T_Result], - lsl: typing.Callable[[], T_Result], - lrd: typing.Callable[[], T_Result], - lyd: typing.Callable[[], T_Result], - ltl: typing.Callable[[], T_Result], - ltt: typing.Callable[[], T_Result], - lul: typing.Callable[[], T_Result], - luc: typing.Callable[[], T_Result], - luf: typing.Callable[[], T_Result], - mop: typing.Callable[[], T_Result], - mkd: typing.Callable[[], T_Result], - mkn: typing.Callable[[], T_Result], - mga: typing.Callable[[], T_Result], - mgf: typing.Callable[[], T_Result], - mwk: typing.Callable[[], T_Result], - myr: typing.Callable[[], T_Result], - mvr: typing.Callable[[], T_Result], - mvp: typing.Callable[[], T_Result], - mlf: typing.Callable[[], T_Result], - mtl: typing.Callable[[], T_Result], - mtp: typing.Callable[[], T_Result], - mru: typing.Callable[[], T_Result], - mro: typing.Callable[[], T_Result], - mur: typing.Callable[[], T_Result], - mxv: typing.Callable[[], T_Result], - mxn: typing.Callable[[], T_Result], - mxp: typing.Callable[[], T_Result], - mdc: typing.Callable[[], T_Result], - mdl: typing.Callable[[], T_Result], - mcf: typing.Callable[[], T_Result], - mnt: typing.Callable[[], T_Result], - mad: typing.Callable[[], T_Result], - maf: typing.Callable[[], T_Result], - mze: typing.Callable[[], T_Result], - mzn: typing.Callable[[], T_Result], - mzm: typing.Callable[[], T_Result], - mmk: typing.Callable[[], T_Result], - nad: typing.Callable[[], T_Result], - npr: typing.Callable[[], T_Result], - ang: typing.Callable[[], T_Result], - twd: typing.Callable[[], T_Result], - nzd: typing.Callable[[], T_Result], - nio: typing.Callable[[], T_Result], - nic: typing.Callable[[], T_Result], - ngn: typing.Callable[[], T_Result], - kpw: typing.Callable[[], T_Result], - nok: typing.Callable[[], T_Result], - omr: typing.Callable[[], T_Result], - pkr: typing.Callable[[], T_Result], - xpd: typing.Callable[[], T_Result], - pab: typing.Callable[[], T_Result], - pgk: typing.Callable[[], T_Result], - pyg: typing.Callable[[], T_Result], - pei: typing.Callable[[], T_Result], - pen: typing.Callable[[], T_Result], - pes: typing.Callable[[], T_Result], - php: typing.Callable[[], T_Result], - xpt: typing.Callable[[], T_Result], - pln: typing.Callable[[], T_Result], - plz: typing.Callable[[], T_Result], - pte: typing.Callable[[], T_Result], - gwe: typing.Callable[[], T_Result], - qar: typing.Callable[[], T_Result], - xre: typing.Callable[[], T_Result], - rhd: typing.Callable[[], T_Result], - ron: typing.Callable[[], T_Result], - rol: typing.Callable[[], T_Result], - rub: typing.Callable[[], T_Result], - rur: typing.Callable[[], T_Result], - rwf: typing.Callable[[], T_Result], - svc: typing.Callable[[], T_Result], - wst: typing.Callable[[], T_Result], - sar: typing.Callable[[], T_Result], - rsd: typing.Callable[[], T_Result], - csd: typing.Callable[[], T_Result], - scr: typing.Callable[[], T_Result], - sll: typing.Callable[[], T_Result], - xag: typing.Callable[[], T_Result], - sgd: typing.Callable[[], T_Result], - skk: typing.Callable[[], T_Result], - sit: typing.Callable[[], T_Result], - sbd: typing.Callable[[], T_Result], - sos: typing.Callable[[], T_Result], - zar: typing.Callable[[], T_Result], - zal: typing.Callable[[], T_Result], - krh: typing.Callable[[], T_Result], - krw: typing.Callable[[], T_Result], - kro: typing.Callable[[], T_Result], - ssp: typing.Callable[[], T_Result], - sur: typing.Callable[[], T_Result], - esp: typing.Callable[[], T_Result], - esa: typing.Callable[[], T_Result], - esb: typing.Callable[[], T_Result], - xdr: typing.Callable[[], T_Result], - lkr: typing.Callable[[], T_Result], - shp: typing.Callable[[], T_Result], - xsu: typing.Callable[[], T_Result], - sdd: typing.Callable[[], T_Result], - sdg: typing.Callable[[], T_Result], - sdp: typing.Callable[[], T_Result], - srd: typing.Callable[[], T_Result], - srg: typing.Callable[[], T_Result], - szl: typing.Callable[[], T_Result], - sek: typing.Callable[[], T_Result], - chf: typing.Callable[[], T_Result], - syp: typing.Callable[[], T_Result], - stn: typing.Callable[[], T_Result], - std: typing.Callable[[], T_Result], - tvd: typing.Callable[[], T_Result], - tjr: typing.Callable[[], T_Result], - tjs: typing.Callable[[], T_Result], - tzs: typing.Callable[[], T_Result], - xts: typing.Callable[[], T_Result], - thb: typing.Callable[[], T_Result], - xxx: typing.Callable[[], T_Result], - tpe: typing.Callable[[], T_Result], - top: typing.Callable[[], T_Result], - ttd: typing.Callable[[], T_Result], - tnd: typing.Callable[[], T_Result], - try_: typing.Callable[[], T_Result], - trl: typing.Callable[[], T_Result], - tmt: typing.Callable[[], T_Result], - tmm: typing.Callable[[], T_Result], - usd: typing.Callable[[], T_Result], - usn: typing.Callable[[], T_Result], - uss: typing.Callable[[], T_Result], - ugx: typing.Callable[[], T_Result], - ugs: typing.Callable[[], T_Result], - uah: typing.Callable[[], T_Result], - uak: typing.Callable[[], T_Result], - aed: typing.Callable[[], T_Result], - uyw: typing.Callable[[], T_Result], - uyu: typing.Callable[[], T_Result], - uyp: typing.Callable[[], T_Result], - uyi: typing.Callable[[], T_Result], - uzs: typing.Callable[[], T_Result], - vuv: typing.Callable[[], T_Result], - ves: typing.Callable[[], T_Result], - veb: typing.Callable[[], T_Result], - vef: typing.Callable[[], T_Result], - vnd: typing.Callable[[], T_Result], - vnn: typing.Callable[[], T_Result], - che: typing.Callable[[], T_Result], - chw: typing.Callable[[], T_Result], - xof: typing.Callable[[], T_Result], - ydd: typing.Callable[[], T_Result], - yer: typing.Callable[[], T_Result], - yun: typing.Callable[[], T_Result], - yud: typing.Callable[[], T_Result], - yum: typing.Callable[[], T_Result], - yur: typing.Callable[[], T_Result], - zwn: typing.Callable[[], T_Result], - zrn: typing.Callable[[], T_Result], - zrz: typing.Callable[[], T_Result], - zmw: typing.Callable[[], T_Result], - zmk: typing.Callable[[], T_Result], - zwd: typing.Callable[[], T_Result], - zwr: typing.Callable[[], T_Result], - zwl: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TransactionCurrencyEnum.XUA: - return xua() - if self is TransactionCurrencyEnum.AFN: - return afn() - if self is TransactionCurrencyEnum.AFA: - return afa() - if self is TransactionCurrencyEnum.ALL: - return all_() - if self is TransactionCurrencyEnum.ALK: - return alk() - if self is TransactionCurrencyEnum.DZD: - return dzd() - if self is TransactionCurrencyEnum.ADP: - return adp() - if self is TransactionCurrencyEnum.AOA: - return aoa() - if self is TransactionCurrencyEnum.AOK: - return aok() - if self is TransactionCurrencyEnum.AON: - return aon() - if self is TransactionCurrencyEnum.AOR: - return aor() - if self is TransactionCurrencyEnum.ARA: - return ara() - if self is TransactionCurrencyEnum.ARS: - return ars() - if self is TransactionCurrencyEnum.ARM: - return arm() - if self is TransactionCurrencyEnum.ARP: - return arp() - if self is TransactionCurrencyEnum.ARL: - return arl() - if self is TransactionCurrencyEnum.AMD: - return amd() - if self is TransactionCurrencyEnum.AWG: - return awg() - if self is TransactionCurrencyEnum.AUD: - return aud() - if self is TransactionCurrencyEnum.ATS: - return ats() - if self is TransactionCurrencyEnum.AZN: - return azn() - if self is TransactionCurrencyEnum.AZM: - return azm() - if self is TransactionCurrencyEnum.BSD: - return bsd() - if self is TransactionCurrencyEnum.BHD: - return bhd() - if self is TransactionCurrencyEnum.BDT: - return bdt() - if self is TransactionCurrencyEnum.BBD: - return bbd() - if self is TransactionCurrencyEnum.BYN: - return byn() - if self is TransactionCurrencyEnum.BYB: - return byb() - if self is TransactionCurrencyEnum.BYR: - return byr() - if self is TransactionCurrencyEnum.BEF: - return bef() - if self is TransactionCurrencyEnum.BEC: - return bec() - if self is TransactionCurrencyEnum.BEL: - return bel() - if self is TransactionCurrencyEnum.BZD: - return bzd() - if self is TransactionCurrencyEnum.BMD: - return bmd() - if self is TransactionCurrencyEnum.BTN: - return btn() - if self is TransactionCurrencyEnum.BOB: - return bob() - if self is TransactionCurrencyEnum.BOL: - return bol() - if self is TransactionCurrencyEnum.BOV: - return bov() - if self is TransactionCurrencyEnum.BOP: - return bop() - if self is TransactionCurrencyEnum.BAM: - return bam() - if self is TransactionCurrencyEnum.BAD: - return bad() - if self is TransactionCurrencyEnum.BAN: - return ban() - if self is TransactionCurrencyEnum.BWP: - return bwp() - if self is TransactionCurrencyEnum.BRC: - return brc() - if self is TransactionCurrencyEnum.BRZ: - return brz() - if self is TransactionCurrencyEnum.BRE: - return bre() - if self is TransactionCurrencyEnum.BRR: - return brr() - if self is TransactionCurrencyEnum.BRN: - return brn() - if self is TransactionCurrencyEnum.BRB: - return brb() - if self is TransactionCurrencyEnum.BRL: - return brl() - if self is TransactionCurrencyEnum.GBP: - return gbp() - if self is TransactionCurrencyEnum.BND: - return bnd() - if self is TransactionCurrencyEnum.BGL: - return bgl() - if self is TransactionCurrencyEnum.BGN: - return bgn() - if self is TransactionCurrencyEnum.BGO: - return bgo() - if self is TransactionCurrencyEnum.BGM: - return bgm() - if self is TransactionCurrencyEnum.BUK: - return buk() - if self is TransactionCurrencyEnum.BIF: - return bif() - if self is TransactionCurrencyEnum.XPF: - return xpf() - if self is TransactionCurrencyEnum.KHR: - return khr() - if self is TransactionCurrencyEnum.CAD: - return cad() - if self is TransactionCurrencyEnum.CVE: - return cve() - if self is TransactionCurrencyEnum.KYD: - return kyd() - if self is TransactionCurrencyEnum.XAF: - return xaf() - if self is TransactionCurrencyEnum.CLE: - return cle() - if self is TransactionCurrencyEnum.CLP: - return clp() - if self is TransactionCurrencyEnum.CLF: - return clf() - if self is TransactionCurrencyEnum.CNX: - return cnx() - if self is TransactionCurrencyEnum.CNY: - return cny() - if self is TransactionCurrencyEnum.CNH: - return cnh() - if self is TransactionCurrencyEnum.COP: - return cop() - if self is TransactionCurrencyEnum.COU: - return cou() - if self is TransactionCurrencyEnum.KMF: - return kmf() - if self is TransactionCurrencyEnum.CDF: - return cdf() - if self is TransactionCurrencyEnum.CRC: - return crc() - if self is TransactionCurrencyEnum.HRD: - return hrd() - if self is TransactionCurrencyEnum.HRK: - return hrk() - if self is TransactionCurrencyEnum.CUC: - return cuc() - if self is TransactionCurrencyEnum.CUP: - return cup() - if self is TransactionCurrencyEnum.CYP: - return cyp() - if self is TransactionCurrencyEnum.CZK: - return czk() - if self is TransactionCurrencyEnum.CSK: - return csk() - if self is TransactionCurrencyEnum.DKK: - return dkk() - if self is TransactionCurrencyEnum.DJF: - return djf() - if self is TransactionCurrencyEnum.DOP: - return dop() - if self is TransactionCurrencyEnum.NLG: - return nlg() - if self is TransactionCurrencyEnum.XCD: - return xcd() - if self is TransactionCurrencyEnum.DDM: - return ddm() - if self is TransactionCurrencyEnum.ECS: - return ecs() - if self is TransactionCurrencyEnum.ECV: - return ecv() - if self is TransactionCurrencyEnum.EGP: - return egp() - if self is TransactionCurrencyEnum.GQE: - return gqe() - if self is TransactionCurrencyEnum.ERN: - return ern() - if self is TransactionCurrencyEnum.EEK: - return eek() - if self is TransactionCurrencyEnum.ETB: - return etb() - if self is TransactionCurrencyEnum.EUR: - return eur() - if self is TransactionCurrencyEnum.XBA: - return xba() - if self is TransactionCurrencyEnum.XEU: - return xeu() - if self is TransactionCurrencyEnum.XBB: - return xbb() - if self is TransactionCurrencyEnum.XBC: - return xbc() - if self is TransactionCurrencyEnum.XBD: - return xbd() - if self is TransactionCurrencyEnum.FKP: - return fkp() - if self is TransactionCurrencyEnum.FJD: - return fjd() - if self is TransactionCurrencyEnum.FIM: - return fim() - if self is TransactionCurrencyEnum.FRF: - return frf() - if self is TransactionCurrencyEnum.XFO: - return xfo() - if self is TransactionCurrencyEnum.XFU: - return xfu() - if self is TransactionCurrencyEnum.GMD: - return gmd() - if self is TransactionCurrencyEnum.GEK: - return gek() - if self is TransactionCurrencyEnum.GEL: - return gel() - if self is TransactionCurrencyEnum.DEM: - return dem() - if self is TransactionCurrencyEnum.GHS: - return ghs() - if self is TransactionCurrencyEnum.GHC: - return ghc() - if self is TransactionCurrencyEnum.GIP: - return gip() - if self is TransactionCurrencyEnum.XAU: - return xau() - if self is TransactionCurrencyEnum.GRD: - return grd() - if self is TransactionCurrencyEnum.GTQ: - return gtq() - if self is TransactionCurrencyEnum.GWP: - return gwp() - if self is TransactionCurrencyEnum.GNF: - return gnf() - if self is TransactionCurrencyEnum.GNS: - return gns() - if self is TransactionCurrencyEnum.GYD: - return gyd() - if self is TransactionCurrencyEnum.HTG: - return htg() - if self is TransactionCurrencyEnum.HNL: - return hnl() - if self is TransactionCurrencyEnum.HKD: - return hkd() - if self is TransactionCurrencyEnum.HUF: - return huf() - if self is TransactionCurrencyEnum.IMP: - return imp() - if self is TransactionCurrencyEnum.ISK: - return isk() - if self is TransactionCurrencyEnum.ISJ: - return isj() - if self is TransactionCurrencyEnum.INR: - return inr() - if self is TransactionCurrencyEnum.IDR: - return idr() - if self is TransactionCurrencyEnum.IRR: - return irr() - if self is TransactionCurrencyEnum.IQD: - return iqd() - if self is TransactionCurrencyEnum.IEP: - return iep() - if self is TransactionCurrencyEnum.ILS: - return ils() - if self is TransactionCurrencyEnum.ILP: - return ilp() - if self is TransactionCurrencyEnum.ILR: - return ilr() - if self is TransactionCurrencyEnum.ITL: - return itl() - if self is TransactionCurrencyEnum.JMD: - return jmd() - if self is TransactionCurrencyEnum.JPY: - return jpy() - if self is TransactionCurrencyEnum.JOD: - return jod() - if self is TransactionCurrencyEnum.KZT: - return kzt() - if self is TransactionCurrencyEnum.KES: - return kes() - if self is TransactionCurrencyEnum.KWD: - return kwd() - if self is TransactionCurrencyEnum.KGS: - return kgs() - if self is TransactionCurrencyEnum.LAK: - return lak() - if self is TransactionCurrencyEnum.LVL: - return lvl() - if self is TransactionCurrencyEnum.LVR: - return lvr() - if self is TransactionCurrencyEnum.LBP: - return lbp() - if self is TransactionCurrencyEnum.LSL: - return lsl() - if self is TransactionCurrencyEnum.LRD: - return lrd() - if self is TransactionCurrencyEnum.LYD: - return lyd() - if self is TransactionCurrencyEnum.LTL: - return ltl() - if self is TransactionCurrencyEnum.LTT: - return ltt() - if self is TransactionCurrencyEnum.LUL: - return lul() - if self is TransactionCurrencyEnum.LUC: - return luc() - if self is TransactionCurrencyEnum.LUF: - return luf() - if self is TransactionCurrencyEnum.MOP: - return mop() - if self is TransactionCurrencyEnum.MKD: - return mkd() - if self is TransactionCurrencyEnum.MKN: - return mkn() - if self is TransactionCurrencyEnum.MGA: - return mga() - if self is TransactionCurrencyEnum.MGF: - return mgf() - if self is TransactionCurrencyEnum.MWK: - return mwk() - if self is TransactionCurrencyEnum.MYR: - return myr() - if self is TransactionCurrencyEnum.MVR: - return mvr() - if self is TransactionCurrencyEnum.MVP: - return mvp() - if self is TransactionCurrencyEnum.MLF: - return mlf() - if self is TransactionCurrencyEnum.MTL: - return mtl() - if self is TransactionCurrencyEnum.MTP: - return mtp() - if self is TransactionCurrencyEnum.MRU: - return mru() - if self is TransactionCurrencyEnum.MRO: - return mro() - if self is TransactionCurrencyEnum.MUR: - return mur() - if self is TransactionCurrencyEnum.MXV: - return mxv() - if self is TransactionCurrencyEnum.MXN: - return mxn() - if self is TransactionCurrencyEnum.MXP: - return mxp() - if self is TransactionCurrencyEnum.MDC: - return mdc() - if self is TransactionCurrencyEnum.MDL: - return mdl() - if self is TransactionCurrencyEnum.MCF: - return mcf() - if self is TransactionCurrencyEnum.MNT: - return mnt() - if self is TransactionCurrencyEnum.MAD: - return mad() - if self is TransactionCurrencyEnum.MAF: - return maf() - if self is TransactionCurrencyEnum.MZE: - return mze() - if self is TransactionCurrencyEnum.MZN: - return mzn() - if self is TransactionCurrencyEnum.MZM: - return mzm() - if self is TransactionCurrencyEnum.MMK: - return mmk() - if self is TransactionCurrencyEnum.NAD: - return nad() - if self is TransactionCurrencyEnum.NPR: - return npr() - if self is TransactionCurrencyEnum.ANG: - return ang() - if self is TransactionCurrencyEnum.TWD: - return twd() - if self is TransactionCurrencyEnum.NZD: - return nzd() - if self is TransactionCurrencyEnum.NIO: - return nio() - if self is TransactionCurrencyEnum.NIC: - return nic() - if self is TransactionCurrencyEnum.NGN: - return ngn() - if self is TransactionCurrencyEnum.KPW: - return kpw() - if self is TransactionCurrencyEnum.NOK: - return nok() - if self is TransactionCurrencyEnum.OMR: - return omr() - if self is TransactionCurrencyEnum.PKR: - return pkr() - if self is TransactionCurrencyEnum.XPD: - return xpd() - if self is TransactionCurrencyEnum.PAB: - return pab() - if self is TransactionCurrencyEnum.PGK: - return pgk() - if self is TransactionCurrencyEnum.PYG: - return pyg() - if self is TransactionCurrencyEnum.PEI: - return pei() - if self is TransactionCurrencyEnum.PEN: - return pen() - if self is TransactionCurrencyEnum.PES: - return pes() - if self is TransactionCurrencyEnum.PHP: - return php() - if self is TransactionCurrencyEnum.XPT: - return xpt() - if self is TransactionCurrencyEnum.PLN: - return pln() - if self is TransactionCurrencyEnum.PLZ: - return plz() - if self is TransactionCurrencyEnum.PTE: - return pte() - if self is TransactionCurrencyEnum.GWE: - return gwe() - if self is TransactionCurrencyEnum.QAR: - return qar() - if self is TransactionCurrencyEnum.XRE: - return xre() - if self is TransactionCurrencyEnum.RHD: - return rhd() - if self is TransactionCurrencyEnum.RON: - return ron() - if self is TransactionCurrencyEnum.ROL: - return rol() - if self is TransactionCurrencyEnum.RUB: - return rub() - if self is TransactionCurrencyEnum.RUR: - return rur() - if self is TransactionCurrencyEnum.RWF: - return rwf() - if self is TransactionCurrencyEnum.SVC: - return svc() - if self is TransactionCurrencyEnum.WST: - return wst() - if self is TransactionCurrencyEnum.SAR: - return sar() - if self is TransactionCurrencyEnum.RSD: - return rsd() - if self is TransactionCurrencyEnum.CSD: - return csd() - if self is TransactionCurrencyEnum.SCR: - return scr() - if self is TransactionCurrencyEnum.SLL: - return sll() - if self is TransactionCurrencyEnum.XAG: - return xag() - if self is TransactionCurrencyEnum.SGD: - return sgd() - if self is TransactionCurrencyEnum.SKK: - return skk() - if self is TransactionCurrencyEnum.SIT: - return sit() - if self is TransactionCurrencyEnum.SBD: - return sbd() - if self is TransactionCurrencyEnum.SOS: - return sos() - if self is TransactionCurrencyEnum.ZAR: - return zar() - if self is TransactionCurrencyEnum.ZAL: - return zal() - if self is TransactionCurrencyEnum.KRH: - return krh() - if self is TransactionCurrencyEnum.KRW: - return krw() - if self is TransactionCurrencyEnum.KRO: - return kro() - if self is TransactionCurrencyEnum.SSP: - return ssp() - if self is TransactionCurrencyEnum.SUR: - return sur() - if self is TransactionCurrencyEnum.ESP: - return esp() - if self is TransactionCurrencyEnum.ESA: - return esa() - if self is TransactionCurrencyEnum.ESB: - return esb() - if self is TransactionCurrencyEnum.XDR: - return xdr() - if self is TransactionCurrencyEnum.LKR: - return lkr() - if self is TransactionCurrencyEnum.SHP: - return shp() - if self is TransactionCurrencyEnum.XSU: - return xsu() - if self is TransactionCurrencyEnum.SDD: - return sdd() - if self is TransactionCurrencyEnum.SDG: - return sdg() - if self is TransactionCurrencyEnum.SDP: - return sdp() - if self is TransactionCurrencyEnum.SRD: - return srd() - if self is TransactionCurrencyEnum.SRG: - return srg() - if self is TransactionCurrencyEnum.SZL: - return szl() - if self is TransactionCurrencyEnum.SEK: - return sek() - if self is TransactionCurrencyEnum.CHF: - return chf() - if self is TransactionCurrencyEnum.SYP: - return syp() - if self is TransactionCurrencyEnum.STN: - return stn() - if self is TransactionCurrencyEnum.STD: - return std() - if self is TransactionCurrencyEnum.TVD: - return tvd() - if self is TransactionCurrencyEnum.TJR: - return tjr() - if self is TransactionCurrencyEnum.TJS: - return tjs() - if self is TransactionCurrencyEnum.TZS: - return tzs() - if self is TransactionCurrencyEnum.XTS: - return xts() - if self is TransactionCurrencyEnum.THB: - return thb() - if self is TransactionCurrencyEnum.XXX: - return xxx() - if self is TransactionCurrencyEnum.TPE: - return tpe() - if self is TransactionCurrencyEnum.TOP: - return top() - if self is TransactionCurrencyEnum.TTD: - return ttd() - if self is TransactionCurrencyEnum.TND: - return tnd() - if self is TransactionCurrencyEnum.TRY: - return try_() - if self is TransactionCurrencyEnum.TRL: - return trl() - if self is TransactionCurrencyEnum.TMT: - return tmt() - if self is TransactionCurrencyEnum.TMM: - return tmm() - if self is TransactionCurrencyEnum.USD: - return usd() - if self is TransactionCurrencyEnum.USN: - return usn() - if self is TransactionCurrencyEnum.USS: - return uss() - if self is TransactionCurrencyEnum.UGX: - return ugx() - if self is TransactionCurrencyEnum.UGS: - return ugs() - if self is TransactionCurrencyEnum.UAH: - return uah() - if self is TransactionCurrencyEnum.UAK: - return uak() - if self is TransactionCurrencyEnum.AED: - return aed() - if self is TransactionCurrencyEnum.UYW: - return uyw() - if self is TransactionCurrencyEnum.UYU: - return uyu() - if self is TransactionCurrencyEnum.UYP: - return uyp() - if self is TransactionCurrencyEnum.UYI: - return uyi() - if self is TransactionCurrencyEnum.UZS: - return uzs() - if self is TransactionCurrencyEnum.VUV: - return vuv() - if self is TransactionCurrencyEnum.VES: - return ves() - if self is TransactionCurrencyEnum.VEB: - return veb() - if self is TransactionCurrencyEnum.VEF: - return vef() - if self is TransactionCurrencyEnum.VND: - return vnd() - if self is TransactionCurrencyEnum.VNN: - return vnn() - if self is TransactionCurrencyEnum.CHE: - return che() - if self is TransactionCurrencyEnum.CHW: - return chw() - if self is TransactionCurrencyEnum.XOF: - return xof() - if self is TransactionCurrencyEnum.YDD: - return ydd() - if self is TransactionCurrencyEnum.YER: - return yer() - if self is TransactionCurrencyEnum.YUN: - return yun() - if self is TransactionCurrencyEnum.YUD: - return yud() - if self is TransactionCurrencyEnum.YUM: - return yum() - if self is TransactionCurrencyEnum.YUR: - return yur() - if self is TransactionCurrencyEnum.ZWN: - return zwn() - if self is TransactionCurrencyEnum.ZRN: - return zrn() - if self is TransactionCurrencyEnum.ZRZ: - return zrz() - if self is TransactionCurrencyEnum.ZMW: - return zmw() - if self is TransactionCurrencyEnum.ZMK: - return zmk() - if self is TransactionCurrencyEnum.ZWD: - return zwd() - if self is TransactionCurrencyEnum.ZWR: - return zwr() - if self is TransactionCurrencyEnum.ZWL: - return zwl() diff --git a/src/merge/resources/accounting/types/transaction_line_item.py b/src/merge/resources/accounting/types/transaction_line_item.py deleted file mode 100644 index 22fe4364..00000000 --- a/src/merge/resources/accounting/types/transaction_line_item.py +++ /dev/null @@ -1,414 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .transaction_line_item_currency import TransactionLineItemCurrency -from .transaction_line_item_item import TransactionLineItemItem - - -class TransactionLineItem(UncheckedBaseModel): - """ - # The TransactionLineItem Object - ### Description - The `TransactionLineItem` object is used to represent a transaction's line items. - - ### Usage Example - Fetch from the `GET TransactionLineItem` endpoint and view the transaction's line items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - memo: typing.Optional[str] = pydantic.Field(default=None) - """ - An internal note used by the business to clarify purpose of the transaction. - """ - - unit_price: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's unit price. - """ - - quantity: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's quantity. - """ - - item: typing.Optional[TransactionLineItemItem] = None - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's account. - """ - - tracking_category: typing.Optional[str] = pydantic.Field(default=None) - """ - The line's associated tracking category. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The transaction line item's associated tracking categories. - """ - - total_line_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's total. - """ - - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - currency: typing.Optional[TransactionLineItemCurrency] = pydantic.Field(default=None) - """ - The line item's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The line item's exchange rate. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the line belongs to. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/transaction_line_item_currency.py b/src/merge/resources/accounting/types/transaction_line_item_currency.py deleted file mode 100644 index 69cbae95..00000000 --- a/src/merge/resources/accounting/types/transaction_line_item_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -TransactionLineItemCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/transaction_line_item_item.py b/src/merge/resources/accounting/types/transaction_line_item_item.py deleted file mode 100644 index 88c664ff..00000000 --- a/src/merge/resources/accounting/types/transaction_line_item_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .item import Item - -TransactionLineItemItem = typing.Union[str, Item] diff --git a/src/merge/resources/accounting/types/transaction_tracking_categories_item.py b/src/merge/resources/accounting/types/transaction_tracking_categories_item.py deleted file mode 100644 index 08b778c9..00000000 --- a/src/merge/resources/accounting/types/transaction_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -TransactionTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/type_2_bb_enum.py b/src/merge/resources/accounting/types/type_2_bb_enum.py deleted file mode 100644 index 1506d7c8..00000000 --- a/src/merge/resources/accounting/types/type_2_bb_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class Type2BbEnum(str, enum.Enum): - """ - * `INVENTORY` - INVENTORY - * `NON_INVENTORY` - NON_INVENTORY - * `SERVICE` - SERVICE - * `UNKNOWN` - UNKNOWN - """ - - INVENTORY = "INVENTORY" - NON_INVENTORY = "NON_INVENTORY" - SERVICE = "SERVICE" - UNKNOWN = "UNKNOWN" - - def visit( - self, - inventory: typing.Callable[[], T_Result], - non_inventory: typing.Callable[[], T_Result], - service: typing.Callable[[], T_Result], - unknown: typing.Callable[[], T_Result], - ) -> T_Result: - if self is Type2BbEnum.INVENTORY: - return inventory() - if self is Type2BbEnum.NON_INVENTORY: - return non_inventory() - if self is Type2BbEnum.SERVICE: - return service() - if self is Type2BbEnum.UNKNOWN: - return unknown() diff --git a/src/merge/resources/accounting/types/underlying_transaction_type_enum.py b/src/merge/resources/accounting/types/underlying_transaction_type_enum.py deleted file mode 100644 index 924dbedf..00000000 --- a/src/merge/resources/accounting/types/underlying_transaction_type_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class UnderlyingTransactionTypeEnum(str, enum.Enum): - """ - * `INVOICE` - INVOICE - * `EXPENSE` - EXPENSE - * `TRANSACTION` - TRANSACTION - * `JOURNAL_ENTRY` - JOURNAL_ENTRY - * `PAYMENT` - PAYMENT - * `VENDOR_CREDIT` - VENDOR_CREDIT - * `CREDIT_NOTE` - CREDIT_NOTE - """ - - INVOICE = "INVOICE" - EXPENSE = "EXPENSE" - TRANSACTION = "TRANSACTION" - JOURNAL_ENTRY = "JOURNAL_ENTRY" - PAYMENT = "PAYMENT" - VENDOR_CREDIT = "VENDOR_CREDIT" - CREDIT_NOTE = "CREDIT_NOTE" - - def visit( - self, - invoice: typing.Callable[[], T_Result], - expense: typing.Callable[[], T_Result], - transaction: typing.Callable[[], T_Result], - journal_entry: typing.Callable[[], T_Result], - payment: typing.Callable[[], T_Result], - vendor_credit: typing.Callable[[], T_Result], - credit_note: typing.Callable[[], T_Result], - ) -> T_Result: - if self is UnderlyingTransactionTypeEnum.INVOICE: - return invoice() - if self is UnderlyingTransactionTypeEnum.EXPENSE: - return expense() - if self is UnderlyingTransactionTypeEnum.TRANSACTION: - return transaction() - if self is UnderlyingTransactionTypeEnum.JOURNAL_ENTRY: - return journal_entry() - if self is UnderlyingTransactionTypeEnum.PAYMENT: - return payment() - if self is UnderlyingTransactionTypeEnum.VENDOR_CREDIT: - return vendor_credit() - if self is UnderlyingTransactionTypeEnum.CREDIT_NOTE: - return credit_note() diff --git a/src/merge/resources/accounting/types/validation_problem_source.py b/src/merge/resources/accounting/types/validation_problem_source.py deleted file mode 100644 index fbebe626..00000000 --- a/src/merge/resources/accounting/types/validation_problem_source.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ValidationProblemSource(UncheckedBaseModel): - pointer: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/vendor_credit.py b/src/merge/resources/accounting/types/vendor_credit.py deleted file mode 100644 index 21467ced..00000000 --- a/src/merge/resources/accounting/types/vendor_credit.py +++ /dev/null @@ -1,432 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .vendor_credit_accounting_period import VendorCreditAccountingPeriod -from .vendor_credit_company import VendorCreditCompany -from .vendor_credit_currency import VendorCreditCurrency -from .vendor_credit_line import VendorCreditLine -from .vendor_credit_tracking_categories_item import VendorCreditTrackingCategoriesItem -from .vendor_credit_vendor import VendorCreditVendor - - -class VendorCredit(UncheckedBaseModel): - """ - # The VendorCredit Object - ### Description - A `VendorCredit` is transaction issued by a vendor to the accounting company, indicating a reduction or cancellation of the amount owed to the vendor. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a purchasing transaction. A `VendorCredit` can be applied to `Accounts Payable` Invoices to decrease the overall amount of the `Invoice`. - - ### Usage Example - Fetch from the `GET VendorCredit` endpoint and view a company's vendor credits. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The vendor credit's number. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The vendor credit's transaction date. - """ - - vendor: typing.Optional[VendorCreditVendor] = pydantic.Field(default=None) - """ - The vendor that owes the gift or refund. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The vendor credit's total amount. - """ - - currency: typing.Optional[VendorCreditCurrency] = pydantic.Field(default=None) - """ - The vendor credit's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The vendor credit's exchange rate. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - company: typing.Optional[VendorCreditCompany] = pydantic.Field(default=None) - """ - The company the vendor credit belongs to. - """ - - lines: typing.Optional[typing.List[VendorCreditLine]] = None - tracking_categories: typing.Optional[typing.List[typing.Optional[VendorCreditTrackingCategoriesItem]]] = None - applied_to_lines: typing.Optional[typing.List["VendorCreditApplyLineForVendorCredit"]] = pydantic.Field( - default=None - ) - """ - A list of VendorCredit Applied to Lines objects. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - accounting_period: typing.Optional[VendorCreditAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the VendorCredit was generated in. - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(VendorCredit) diff --git a/src/merge/resources/accounting/types/vendor_credit_accounting_period.py b/src/merge/resources/accounting/types/vendor_credit_accounting_period.py deleted file mode 100644 index 3ae13422..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -VendorCreditAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_invoice.py b/src/merge/resources/accounting/types/vendor_credit_apply_line_for_invoice.py deleted file mode 100644 index 83485a9e..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_invoice.py +++ /dev/null @@ -1,72 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class VendorCreditApplyLineForInvoice(UncheckedBaseModel): - """ - # The VendorCreditApplyLine Object - ### Description - The `VendorCreditApplyLine` object is used to represent a applied vendor credit. - - ### Usage Example - Fetch from the `GET VendorCredit` endpoint and view the vendor credit's applied to lines. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - vendor_credit: typing.Optional["VendorCreditApplyLineForInvoiceVendorCredit"] = None - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date that the vendor credit is applied to the invoice. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount of the VendorCredit applied to the invoice. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice_vendor_credit import VendorCreditApplyLineForInvoiceVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(VendorCreditApplyLineForInvoice) diff --git a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_invoice_vendor_credit.py b/src/merge/resources/accounting/types/vendor_credit_apply_line_for_invoice_vendor_credit.py deleted file mode 100644 index 867acc3b..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_invoice_vendor_credit.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .vendor_credit import VendorCredit -VendorCreditApplyLineForInvoiceVendorCredit = typing.Union[str, "VendorCredit"] diff --git a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit.py b/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit.py deleted file mode 100644 index 46a8ae61..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit.py +++ /dev/null @@ -1,72 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class VendorCreditApplyLineForVendorCredit(UncheckedBaseModel): - """ - # The VendorCreditApplyLine Object - ### Description - The `VendorCreditApplyLine` object is used to represent a applied vendor credit. - - ### Usage Example - Fetch from the `GET VendorCredit` endpoint and view the vendor credit's applied to lines. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - invoice: typing.Optional["VendorCreditApplyLineForVendorCreditInvoice"] = None - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date that the vendor credit is applied to the invoice. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount of the VendorCredit applied to the invoice. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit_invoice import VendorCreditApplyLineForVendorCreditInvoice # noqa: E402, F401, I001 - -update_forward_refs(VendorCreditApplyLineForVendorCredit) diff --git a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_invoice.py b/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_invoice.py deleted file mode 100644 index 69dc0a97..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_invoice.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .invoice import Invoice -VendorCreditApplyLineForVendorCreditInvoice = typing.Union[str, "Invoice"] diff --git a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_request.py b/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_request.py deleted file mode 100644 index 402394d8..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_request.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .vendor_credit_apply_line_for_vendor_credit_request_invoice import ( - VendorCreditApplyLineForVendorCreditRequestInvoice, -) - - -class VendorCreditApplyLineForVendorCreditRequest(UncheckedBaseModel): - """ - # The VendorCreditApplyLine Object - ### Description - The `VendorCreditApplyLine` object is used to represent a applied vendor credit. - - ### Usage Example - Fetch from the `GET VendorCredit` endpoint and view the vendor credit's applied to lines. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - invoice: typing.Optional[VendorCreditApplyLineForVendorCreditRequestInvoice] = None - applied_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Date that the vendor credit is applied to the invoice. - """ - - applied_amount: typing.Optional[str] = pydantic.Field(default=None) - """ - The amount of the VendorCredit applied to the invoice. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(VendorCreditApplyLineForVendorCreditRequest) diff --git a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_request_invoice.py b/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_request_invoice.py deleted file mode 100644 index 54ce2f5f..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_apply_line_for_vendor_credit_request_invoice.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .invoice import Invoice - -VendorCreditApplyLineForVendorCreditRequestInvoice = typing.Union[str, Invoice] diff --git a/src/merge/resources/accounting/types/vendor_credit_company.py b/src/merge/resources/accounting/types/vendor_credit_company.py deleted file mode 100644 index 1219a0c8..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -VendorCreditCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/vendor_credit_currency.py b/src/merge/resources/accounting/types/vendor_credit_currency.py deleted file mode 100644 index e071598d..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -VendorCreditCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/vendor_credit_line.py b/src/merge/resources/accounting/types/vendor_credit_line.py deleted file mode 100644 index bf7ded91..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line.py +++ /dev/null @@ -1,94 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .vendor_credit_line_account import VendorCreditLineAccount -from .vendor_credit_line_contact import VendorCreditLineContact -from .vendor_credit_line_project import VendorCreditLineProject - - -class VendorCreditLine(UncheckedBaseModel): - """ - # The VendorCreditLine Object - ### Description - The `VendorCreditLine` object is used to represent a vendor credit's line items. - - ### Usage Example - Fetch from the `GET VendorCredit` endpoint and view the vendor credit's line items. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - net_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The full value of the credit. - """ - - tracking_category: typing.Optional[str] = pydantic.Field(default=None) - """ - The line's associated tracking category. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The vendor credit line item's associated tracking categories. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The line's description. - """ - - account: typing.Optional[VendorCreditLineAccount] = pydantic.Field(default=None) - """ - The line's account. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the line belongs to. - """ - - project: typing.Optional[VendorCreditLineProject] = None - contact: typing.Optional[VendorCreditLineContact] = None - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The vendor credit line item's exchange rate. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/vendor_credit_line_account.py b/src/merge/resources/accounting/types/vendor_credit_line_account.py deleted file mode 100644 index 22aad4ac..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -VendorCreditLineAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/vendor_credit_line_contact.py b/src/merge/resources/accounting/types/vendor_credit_line_contact.py deleted file mode 100644 index a974aa62..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -VendorCreditLineContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/vendor_credit_line_project.py b/src/merge/resources/accounting/types/vendor_credit_line_project.py deleted file mode 100644 index 80575a35..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -VendorCreditLineProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/vendor_credit_line_request.py b/src/merge/resources/accounting/types/vendor_credit_line_request.py deleted file mode 100644 index c346c7a5..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line_request.py +++ /dev/null @@ -1,80 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .vendor_credit_line_request_account import VendorCreditLineRequestAccount -from .vendor_credit_line_request_contact import VendorCreditLineRequestContact -from .vendor_credit_line_request_project import VendorCreditLineRequestProject - - -class VendorCreditLineRequest(UncheckedBaseModel): - """ - # The VendorCreditLine Object - ### Description - The `VendorCreditLine` object is used to represent a vendor credit's line items. - - ### Usage Example - Fetch from the `GET VendorCredit` endpoint and view the vendor credit's line items. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - net_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The full value of the credit. - """ - - tracking_category: typing.Optional[str] = pydantic.Field(default=None) - """ - The line's associated tracking category. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The vendor credit line item's associated tracking categories. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The line's description. - """ - - account: typing.Optional[VendorCreditLineRequestAccount] = pydantic.Field(default=None) - """ - The line's account. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The company the line belongs to. - """ - - project: typing.Optional[VendorCreditLineRequestProject] = None - contact: typing.Optional[VendorCreditLineRequestContact] = None - tax_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax rate that applies to this line item. - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The vendor credit line item's exchange rate. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/vendor_credit_line_request_account.py b/src/merge/resources/accounting/types/vendor_credit_line_request_account.py deleted file mode 100644 index d27254f1..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -VendorCreditLineRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/accounting/types/vendor_credit_line_request_contact.py b/src/merge/resources/accounting/types/vendor_credit_line_request_contact.py deleted file mode 100644 index c3af7c71..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -VendorCreditLineRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/vendor_credit_line_request_project.py b/src/merge/resources/accounting/types/vendor_credit_line_request_project.py deleted file mode 100644 index ba9a37c7..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_line_request_project.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .project import Project - -VendorCreditLineRequestProject = typing.Union[str, Project] diff --git a/src/merge/resources/accounting/types/vendor_credit_request.py b/src/merge/resources/accounting/types/vendor_credit_request.py deleted file mode 100644 index d8b7d4dd..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_request.py +++ /dev/null @@ -1,410 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .vendor_credit_apply_line_for_vendor_credit_request import VendorCreditApplyLineForVendorCreditRequest -from .vendor_credit_request_accounting_period import VendorCreditRequestAccountingPeriod -from .vendor_credit_request_company import VendorCreditRequestCompany -from .vendor_credit_request_currency import VendorCreditRequestCurrency -from .vendor_credit_request_tracking_categories_item import VendorCreditRequestTrackingCategoriesItem -from .vendor_credit_request_vendor import VendorCreditRequestVendor - - -class VendorCreditRequest(UncheckedBaseModel): - """ - # The VendorCredit Object - ### Description - A `VendorCredit` is transaction issued by a vendor to the accounting company, indicating a reduction or cancellation of the amount owed to the vendor. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a purchasing transaction. A `VendorCredit` can be applied to `Accounts Payable` Invoices to decrease the overall amount of the `Invoice`. - - ### Usage Example - Fetch from the `GET VendorCredit` endpoint and view a company's vendor credits. - """ - - number: typing.Optional[str] = pydantic.Field(default=None) - """ - The vendor credit's number. - """ - - transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The vendor credit's transaction date. - """ - - vendor: typing.Optional[VendorCreditRequestVendor] = pydantic.Field(default=None) - """ - The vendor that owes the gift or refund. - """ - - total_amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The vendor credit's total amount. - """ - - currency: typing.Optional[VendorCreditRequestCurrency] = pydantic.Field(default=None) - """ - The vendor credit's currency. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - exchange_rate: typing.Optional[str] = pydantic.Field(default=None) - """ - The vendor credit's exchange rate. - """ - - inclusive_of_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. - """ - - company: typing.Optional[VendorCreditRequestCompany] = pydantic.Field(default=None) - """ - The company the vendor credit belongs to. - """ - - tracking_categories: typing.Optional[typing.List[typing.Optional[VendorCreditRequestTrackingCategoriesItem]]] = None - applied_to_lines: typing.Optional[typing.List[VendorCreditApplyLineForVendorCreditRequest]] = pydantic.Field( - default=None - ) - """ - A list of VendorCredit Applied to Lines objects. - """ - - accounting_period: typing.Optional[VendorCreditRequestAccountingPeriod] = pydantic.Field(default=None) - """ - The accounting period that the VendorCredit was generated in. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(VendorCreditRequest) diff --git a/src/merge/resources/accounting/types/vendor_credit_request_accounting_period.py b/src/merge/resources/accounting/types/vendor_credit_request_accounting_period.py deleted file mode 100644 index 973e7532..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_request_accounting_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .accounting_period import AccountingPeriod - -VendorCreditRequestAccountingPeriod = typing.Union[str, AccountingPeriod] diff --git a/src/merge/resources/accounting/types/vendor_credit_request_company.py b/src/merge/resources/accounting/types/vendor_credit_request_company.py deleted file mode 100644 index 4fa76941..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company_info import CompanyInfo - -VendorCreditRequestCompany = typing.Union[str, CompanyInfo] diff --git a/src/merge/resources/accounting/types/vendor_credit_request_currency.py b/src/merge/resources/accounting/types/vendor_credit_request_currency.py deleted file mode 100644 index 82964b42..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_request_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .transaction_currency_enum import TransactionCurrencyEnum - -VendorCreditRequestCurrency = typing.Union[TransactionCurrencyEnum, str] diff --git a/src/merge/resources/accounting/types/vendor_credit_request_tracking_categories_item.py b/src/merge/resources/accounting/types/vendor_credit_request_tracking_categories_item.py deleted file mode 100644 index 197cde01..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_request_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -VendorCreditRequestTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/vendor_credit_request_vendor.py b/src/merge/resources/accounting/types/vendor_credit_request_vendor.py deleted file mode 100644 index a84987d5..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_request_vendor.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -VendorCreditRequestVendor = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/vendor_credit_response.py b/src/merge/resources/accounting/types/vendor_credit_response.py deleted file mode 100644 index 9dab6cb4..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_response.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class VendorCreditResponse(UncheckedBaseModel): - model: "VendorCredit" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .credit_note import CreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_credit_note import CreditNoteApplyLineForCreditNote # noqa: E402, F401, I001 -from .credit_note_apply_line_for_invoice import CreditNoteApplyLineForInvoice # noqa: E402, F401, I001 -from .invoice import Invoice # noqa: E402, F401, I001 -from .vendor_credit import VendorCredit # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_invoice import VendorCreditApplyLineForInvoice # noqa: E402, F401, I001 -from .vendor_credit_apply_line_for_vendor_credit import VendorCreditApplyLineForVendorCredit # noqa: E402, F401, I001 - -update_forward_refs(VendorCreditResponse) diff --git a/src/merge/resources/accounting/types/vendor_credit_tracking_categories_item.py b/src/merge/resources/accounting/types/vendor_credit_tracking_categories_item.py deleted file mode 100644 index f43c7cbe..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_tracking_categories_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tracking_category import TrackingCategory - -VendorCreditTrackingCategoriesItem = typing.Union[str, TrackingCategory] diff --git a/src/merge/resources/accounting/types/vendor_credit_vendor.py b/src/merge/resources/accounting/types/vendor_credit_vendor.py deleted file mode 100644 index 6e8012e7..00000000 --- a/src/merge/resources/accounting/types/vendor_credit_vendor.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -VendorCreditVendor = typing.Union[str, Contact] diff --git a/src/merge/resources/accounting/types/warning_validation_problem.py b/src/merge/resources/accounting/types/warning_validation_problem.py deleted file mode 100644 index 4785e836..00000000 --- a/src/merge/resources/accounting/types/warning_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class WarningValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/accounting/types/webhook_receiver.py b/src/merge/resources/accounting/types/webhook_receiver.py deleted file mode 100644 index fb49c044..00000000 --- a/src/merge/resources/accounting/types/webhook_receiver.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class WebhookReceiver(UncheckedBaseModel): - event: str - is_active: bool - key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/__init__.py b/src/merge/resources/ats/__init__.py deleted file mode 100644 index 9ddb3181..00000000 --- a/src/merge/resources/ats/__init__.py +++ /dev/null @@ -1,871 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - AccessRoleEnum, - AccountDetails, - AccountDetailsAndActions, - AccountDetailsAndActionsCategory, - AccountDetailsAndActionsIntegration, - AccountDetailsAndActionsStatus, - AccountDetailsAndActionsStatusEnum, - AccountDetailsCategory, - AccountIntegration, - AccountToken, - Activity, - ActivityActivityType, - ActivityRequest, - ActivityRequestActivityType, - ActivityRequestUser, - ActivityRequestVisibility, - ActivityResponse, - ActivityTypeEnum, - ActivityUser, - ActivityVisibility, - AdvancedMetadata, - Application, - ApplicationCandidate, - ApplicationCreditedTo, - ApplicationCurrentStage, - ApplicationJob, - ApplicationOffersItem, - ApplicationRejectReason, - ApplicationRequest, - ApplicationRequestCandidate, - ApplicationRequestCreditedTo, - ApplicationRequestCurrentStage, - ApplicationRequestJob, - ApplicationRequestOffersItem, - ApplicationRequestRejectReason, - ApplicationRequestScreeningQuestionAnswersItem, - ApplicationResponse, - ApplicationScreeningQuestionAnswersItem, - AsyncPassthroughReciept, - Attachment, - AttachmentAttachmentType, - AttachmentRequest, - AttachmentRequestAttachmentType, - AttachmentResponse, - AttachmentTypeEnum, - AuditLogEvent, - AuditLogEventEventType, - AuditLogEventRole, - AvailableActions, - Candidate, - CandidateApplicationsItem, - CandidateAttachmentsItem, - CandidateRequest, - CandidateRequestApplicationsItem, - CandidateRequestAttachmentsItem, - CandidateResponse, - CategoriesEnum, - CategoryEnum, - CommonModelScopeApi, - CommonModelScopesBodyRequest, - DataPassthroughRequest, - DebugModeLog, - DebugModelLogSummary, - Department, - DisabilityStatusEnum, - Eeoc, - EeocCandidate, - EeocDisabilityStatus, - EeocGender, - EeocRace, - EeocVeteranStatus, - EmailAddress, - EmailAddressEmailAddressType, - EmailAddressRequest, - EmailAddressRequestEmailAddressType, - EmailAddressTypeEnum, - EnabledActionsEnum, - EncodingEnum, - ErrorValidationProblem, - EventTypeEnum, - ExternalTargetFieldApi, - ExternalTargetFieldApiResponse, - FieldMappingApiInstance, - FieldMappingApiInstanceRemoteField, - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - FieldMappingApiInstanceResponse, - FieldMappingApiInstanceTargetField, - FieldMappingInstanceResponse, - FieldPermissionDeserializer, - FieldPermissionDeserializerRequest, - GenderEnum, - IndividualCommonModelScopeDeserializer, - IndividualCommonModelScopeDeserializerRequest, - Issue, - IssueStatus, - IssueStatusEnum, - Job, - JobDepartmentsItem, - JobHiringManagersItem, - JobInterviewStage, - JobInterviewStageJob, - JobOfficesItem, - JobPosting, - JobPostingJob, - JobPostingJobPostingUrlsItem, - JobPostingStatus, - JobPostingStatusEnum, - JobRecruitersItem, - JobStatus, - JobStatusEnum, - JobType, - JobTypeEnum, - LanguageEnum, - LastSyncResultEnum, - LinkToken, - LinkedAccountStatus, - MetaResponse, - MethodEnum, - ModelOperation, - ModelPermissionDeserializer, - ModelPermissionDeserializerRequest, - MultipartFormFieldRequest, - MultipartFormFieldRequestEncoding, - Offer, - OfferApplication, - OfferCreator, - OfferStatus, - OfferStatusEnum, - Office, - OverallRecommendationEnum, - PaginatedAccountDetailsAndActionsList, - PaginatedActivityList, - PaginatedApplicationList, - PaginatedAttachmentList, - PaginatedAuditLogEventList, - PaginatedCandidateList, - PaginatedDepartmentList, - PaginatedEeocList, - PaginatedIssueList, - PaginatedJobInterviewStageList, - PaginatedJobList, - PaginatedJobPostingList, - PaginatedOfferList, - PaginatedOfficeList, - PaginatedRejectReasonList, - PaginatedRemoteUserList, - PaginatedScheduledInterviewList, - PaginatedScorecardList, - PaginatedScreeningQuestionList, - PaginatedSyncStatusList, - PaginatedTagList, - PatchedCandidateRequest, - PhoneNumber, - PhoneNumberPhoneNumberType, - PhoneNumberRequest, - PhoneNumberRequestPhoneNumberType, - PhoneNumberTypeEnum, - RaceEnum, - ReasonEnum, - RejectReason, - RemoteData, - RemoteEndpointInfo, - RemoteFieldApi, - RemoteFieldApiCoverage, - RemoteFieldApiResponse, - RemoteKey, - RemoteResponse, - RemoteResponseResponseType, - RemoteUser, - RemoteUserAccessRole, - RequestFormatEnum, - ResponseTypeEnum, - RoleEnum, - ScheduledInterview, - ScheduledInterviewApplication, - ScheduledInterviewInterviewersItem, - ScheduledInterviewJobInterviewStage, - ScheduledInterviewOrganizer, - ScheduledInterviewRequest, - ScheduledInterviewRequestApplication, - ScheduledInterviewRequestInterviewersItem, - ScheduledInterviewRequestJobInterviewStage, - ScheduledInterviewRequestOrganizer, - ScheduledInterviewRequestStatus, - ScheduledInterviewResponse, - ScheduledInterviewStatus, - ScheduledInterviewStatusEnum, - Scorecard, - ScorecardApplication, - ScorecardInterview, - ScorecardInterviewer, - ScorecardOverallRecommendation, - ScreeningQuestion, - ScreeningQuestionAnswer, - ScreeningQuestionAnswerQuestion, - ScreeningQuestionAnswerRequest, - ScreeningQuestionAnswerRequestQuestion, - ScreeningQuestionJob, - ScreeningQuestionOption, - ScreeningQuestionType, - ScreeningQuestionTypeEnum, - SelectiveSyncConfigurationsUsageEnum, - StatusFd5Enum, - SyncStatus, - SyncStatusLastSyncResult, - SyncStatusStatus, - Tag, - Url, - UrlRequest, - UrlRequestUrlType, - UrlTypeEnum, - UrlUrlType, - ValidationProblemSource, - VeteranStatusEnum, - VisibilityEnum, - WarningValidationProblem, - WebhookReceiver, - ) - from .resources import ( - ActivitiesListRequestRemoteFields, - ActivitiesListRequestShowEnumOrigins, - ActivitiesRetrieveRequestRemoteFields, - ActivitiesRetrieveRequestShowEnumOrigins, - ApplicationsListRequestExpand, - ApplicationsRetrieveRequestExpand, - AsyncPassthroughRetrieveResponse, - CandidatesListRequestExpand, - CandidatesRetrieveRequestExpand, - EeocsListRequestRemoteFields, - EeocsListRequestShowEnumOrigins, - EeocsRetrieveRequestRemoteFields, - EeocsRetrieveRequestShowEnumOrigins, - EndUserDetailsRequestLanguage, - IgnoreCommonModelRequestReason, - InterviewsListRequestExpand, - InterviewsRetrieveRequestExpand, - IssuesListRequestStatus, - JobPostingsListRequestStatus, - JobsListRequestExpand, - JobsListRequestStatus, - JobsRetrieveRequestExpand, - JobsScreeningQuestionsListRequestExpand, - LinkedAccountsListRequestCategory, - OffersListRequestExpand, - OffersRetrieveRequestExpand, - ScorecardsListRequestExpand, - ScorecardsRetrieveRequestExpand, - account_details, - account_token, - activities, - applications, - async_passthrough, - attachments, - audit_trail, - available_actions, - candidates, - delete_account, - departments, - eeocs, - field_mapping, - force_resync, - generate_key, - interviews, - issues, - job_interview_stages, - job_postings, - jobs, - link_token, - linked_accounts, - offers, - offices, - passthrough, - regenerate_key, - reject_reasons, - scopes, - scorecards, - sync_status, - tags, - users, - webhook_receivers, - ) -_dynamic_imports: typing.Dict[str, str] = { - "AccessRoleEnum": ".types", - "AccountDetails": ".types", - "AccountDetailsAndActions": ".types", - "AccountDetailsAndActionsCategory": ".types", - "AccountDetailsAndActionsIntegration": ".types", - "AccountDetailsAndActionsStatus": ".types", - "AccountDetailsAndActionsStatusEnum": ".types", - "AccountDetailsCategory": ".types", - "AccountIntegration": ".types", - "AccountToken": ".types", - "ActivitiesListRequestRemoteFields": ".resources", - "ActivitiesListRequestShowEnumOrigins": ".resources", - "ActivitiesRetrieveRequestRemoteFields": ".resources", - "ActivitiesRetrieveRequestShowEnumOrigins": ".resources", - "Activity": ".types", - "ActivityActivityType": ".types", - "ActivityRequest": ".types", - "ActivityRequestActivityType": ".types", - "ActivityRequestUser": ".types", - "ActivityRequestVisibility": ".types", - "ActivityResponse": ".types", - "ActivityTypeEnum": ".types", - "ActivityUser": ".types", - "ActivityVisibility": ".types", - "AdvancedMetadata": ".types", - "Application": ".types", - "ApplicationCandidate": ".types", - "ApplicationCreditedTo": ".types", - "ApplicationCurrentStage": ".types", - "ApplicationJob": ".types", - "ApplicationOffersItem": ".types", - "ApplicationRejectReason": ".types", - "ApplicationRequest": ".types", - "ApplicationRequestCandidate": ".types", - "ApplicationRequestCreditedTo": ".types", - "ApplicationRequestCurrentStage": ".types", - "ApplicationRequestJob": ".types", - "ApplicationRequestOffersItem": ".types", - "ApplicationRequestRejectReason": ".types", - "ApplicationRequestScreeningQuestionAnswersItem": ".types", - "ApplicationResponse": ".types", - "ApplicationScreeningQuestionAnswersItem": ".types", - "ApplicationsListRequestExpand": ".resources", - "ApplicationsRetrieveRequestExpand": ".resources", - "AsyncPassthroughReciept": ".types", - "AsyncPassthroughRetrieveResponse": ".resources", - "Attachment": ".types", - "AttachmentAttachmentType": ".types", - "AttachmentRequest": ".types", - "AttachmentRequestAttachmentType": ".types", - "AttachmentResponse": ".types", - "AttachmentTypeEnum": ".types", - "AuditLogEvent": ".types", - "AuditLogEventEventType": ".types", - "AuditLogEventRole": ".types", - "AvailableActions": ".types", - "Candidate": ".types", - "CandidateApplicationsItem": ".types", - "CandidateAttachmentsItem": ".types", - "CandidateRequest": ".types", - "CandidateRequestApplicationsItem": ".types", - "CandidateRequestAttachmentsItem": ".types", - "CandidateResponse": ".types", - "CandidatesListRequestExpand": ".resources", - "CandidatesRetrieveRequestExpand": ".resources", - "CategoriesEnum": ".types", - "CategoryEnum": ".types", - "CommonModelScopeApi": ".types", - "CommonModelScopesBodyRequest": ".types", - "DataPassthroughRequest": ".types", - "DebugModeLog": ".types", - "DebugModelLogSummary": ".types", - "Department": ".types", - "DisabilityStatusEnum": ".types", - "Eeoc": ".types", - "EeocCandidate": ".types", - "EeocDisabilityStatus": ".types", - "EeocGender": ".types", - "EeocRace": ".types", - "EeocVeteranStatus": ".types", - "EeocsListRequestRemoteFields": ".resources", - "EeocsListRequestShowEnumOrigins": ".resources", - "EeocsRetrieveRequestRemoteFields": ".resources", - "EeocsRetrieveRequestShowEnumOrigins": ".resources", - "EmailAddress": ".types", - "EmailAddressEmailAddressType": ".types", - "EmailAddressRequest": ".types", - "EmailAddressRequestEmailAddressType": ".types", - "EmailAddressTypeEnum": ".types", - "EnabledActionsEnum": ".types", - "EncodingEnum": ".types", - "EndUserDetailsRequestLanguage": ".resources", - "ErrorValidationProblem": ".types", - "EventTypeEnum": ".types", - "ExternalTargetFieldApi": ".types", - "ExternalTargetFieldApiResponse": ".types", - "FieldMappingApiInstance": ".types", - "FieldMappingApiInstanceRemoteField": ".types", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".types", - "FieldMappingApiInstanceResponse": ".types", - "FieldMappingApiInstanceTargetField": ".types", - "FieldMappingInstanceResponse": ".types", - "FieldPermissionDeserializer": ".types", - "FieldPermissionDeserializerRequest": ".types", - "GenderEnum": ".types", - "IgnoreCommonModelRequestReason": ".resources", - "IndividualCommonModelScopeDeserializer": ".types", - "IndividualCommonModelScopeDeserializerRequest": ".types", - "InterviewsListRequestExpand": ".resources", - "InterviewsRetrieveRequestExpand": ".resources", - "Issue": ".types", - "IssueStatus": ".types", - "IssueStatusEnum": ".types", - "IssuesListRequestStatus": ".resources", - "Job": ".types", - "JobDepartmentsItem": ".types", - "JobHiringManagersItem": ".types", - "JobInterviewStage": ".types", - "JobInterviewStageJob": ".types", - "JobOfficesItem": ".types", - "JobPosting": ".types", - "JobPostingJob": ".types", - "JobPostingJobPostingUrlsItem": ".types", - "JobPostingStatus": ".types", - "JobPostingStatusEnum": ".types", - "JobPostingsListRequestStatus": ".resources", - "JobRecruitersItem": ".types", - "JobStatus": ".types", - "JobStatusEnum": ".types", - "JobType": ".types", - "JobTypeEnum": ".types", - "JobsListRequestExpand": ".resources", - "JobsListRequestStatus": ".resources", - "JobsRetrieveRequestExpand": ".resources", - "JobsScreeningQuestionsListRequestExpand": ".resources", - "LanguageEnum": ".types", - "LastSyncResultEnum": ".types", - "LinkToken": ".types", - "LinkedAccountStatus": ".types", - "LinkedAccountsListRequestCategory": ".resources", - "MetaResponse": ".types", - "MethodEnum": ".types", - "ModelOperation": ".types", - "ModelPermissionDeserializer": ".types", - "ModelPermissionDeserializerRequest": ".types", - "MultipartFormFieldRequest": ".types", - "MultipartFormFieldRequestEncoding": ".types", - "Offer": ".types", - "OfferApplication": ".types", - "OfferCreator": ".types", - "OfferStatus": ".types", - "OfferStatusEnum": ".types", - "OffersListRequestExpand": ".resources", - "OffersRetrieveRequestExpand": ".resources", - "Office": ".types", - "OverallRecommendationEnum": ".types", - "PaginatedAccountDetailsAndActionsList": ".types", - "PaginatedActivityList": ".types", - "PaginatedApplicationList": ".types", - "PaginatedAttachmentList": ".types", - "PaginatedAuditLogEventList": ".types", - "PaginatedCandidateList": ".types", - "PaginatedDepartmentList": ".types", - "PaginatedEeocList": ".types", - "PaginatedIssueList": ".types", - "PaginatedJobInterviewStageList": ".types", - "PaginatedJobList": ".types", - "PaginatedJobPostingList": ".types", - "PaginatedOfferList": ".types", - "PaginatedOfficeList": ".types", - "PaginatedRejectReasonList": ".types", - "PaginatedRemoteUserList": ".types", - "PaginatedScheduledInterviewList": ".types", - "PaginatedScorecardList": ".types", - "PaginatedScreeningQuestionList": ".types", - "PaginatedSyncStatusList": ".types", - "PaginatedTagList": ".types", - "PatchedCandidateRequest": ".types", - "PhoneNumber": ".types", - "PhoneNumberPhoneNumberType": ".types", - "PhoneNumberRequest": ".types", - "PhoneNumberRequestPhoneNumberType": ".types", - "PhoneNumberTypeEnum": ".types", - "RaceEnum": ".types", - "ReasonEnum": ".types", - "RejectReason": ".types", - "RemoteData": ".types", - "RemoteEndpointInfo": ".types", - "RemoteFieldApi": ".types", - "RemoteFieldApiCoverage": ".types", - "RemoteFieldApiResponse": ".types", - "RemoteKey": ".types", - "RemoteResponse": ".types", - "RemoteResponseResponseType": ".types", - "RemoteUser": ".types", - "RemoteUserAccessRole": ".types", - "RequestFormatEnum": ".types", - "ResponseTypeEnum": ".types", - "RoleEnum": ".types", - "ScheduledInterview": ".types", - "ScheduledInterviewApplication": ".types", - "ScheduledInterviewInterviewersItem": ".types", - "ScheduledInterviewJobInterviewStage": ".types", - "ScheduledInterviewOrganizer": ".types", - "ScheduledInterviewRequest": ".types", - "ScheduledInterviewRequestApplication": ".types", - "ScheduledInterviewRequestInterviewersItem": ".types", - "ScheduledInterviewRequestJobInterviewStage": ".types", - "ScheduledInterviewRequestOrganizer": ".types", - "ScheduledInterviewRequestStatus": ".types", - "ScheduledInterviewResponse": ".types", - "ScheduledInterviewStatus": ".types", - "ScheduledInterviewStatusEnum": ".types", - "Scorecard": ".types", - "ScorecardApplication": ".types", - "ScorecardInterview": ".types", - "ScorecardInterviewer": ".types", - "ScorecardOverallRecommendation": ".types", - "ScorecardsListRequestExpand": ".resources", - "ScorecardsRetrieveRequestExpand": ".resources", - "ScreeningQuestion": ".types", - "ScreeningQuestionAnswer": ".types", - "ScreeningQuestionAnswerQuestion": ".types", - "ScreeningQuestionAnswerRequest": ".types", - "ScreeningQuestionAnswerRequestQuestion": ".types", - "ScreeningQuestionJob": ".types", - "ScreeningQuestionOption": ".types", - "ScreeningQuestionType": ".types", - "ScreeningQuestionTypeEnum": ".types", - "SelectiveSyncConfigurationsUsageEnum": ".types", - "StatusFd5Enum": ".types", - "SyncStatus": ".types", - "SyncStatusLastSyncResult": ".types", - "SyncStatusStatus": ".types", - "Tag": ".types", - "Url": ".types", - "UrlRequest": ".types", - "UrlRequestUrlType": ".types", - "UrlTypeEnum": ".types", - "UrlUrlType": ".types", - "ValidationProblemSource": ".types", - "VeteranStatusEnum": ".types", - "VisibilityEnum": ".types", - "WarningValidationProblem": ".types", - "WebhookReceiver": ".types", - "account_details": ".resources", - "account_token": ".resources", - "activities": ".resources", - "applications": ".resources", - "async_passthrough": ".resources", - "attachments": ".resources", - "audit_trail": ".resources", - "available_actions": ".resources", - "candidates": ".resources", - "delete_account": ".resources", - "departments": ".resources", - "eeocs": ".resources", - "field_mapping": ".resources", - "force_resync": ".resources", - "generate_key": ".resources", - "interviews": ".resources", - "issues": ".resources", - "job_interview_stages": ".resources", - "job_postings": ".resources", - "jobs": ".resources", - "link_token": ".resources", - "linked_accounts": ".resources", - "offers": ".resources", - "offices": ".resources", - "passthrough": ".resources", - "regenerate_key": ".resources", - "reject_reasons": ".resources", - "scopes": ".resources", - "scorecards": ".resources", - "sync_status": ".resources", - "tags": ".resources", - "users": ".resources", - "webhook_receivers": ".resources", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccessRoleEnum", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "ActivitiesListRequestRemoteFields", - "ActivitiesListRequestShowEnumOrigins", - "ActivitiesRetrieveRequestRemoteFields", - "ActivitiesRetrieveRequestShowEnumOrigins", - "Activity", - "ActivityActivityType", - "ActivityRequest", - "ActivityRequestActivityType", - "ActivityRequestUser", - "ActivityRequestVisibility", - "ActivityResponse", - "ActivityTypeEnum", - "ActivityUser", - "ActivityVisibility", - "AdvancedMetadata", - "Application", - "ApplicationCandidate", - "ApplicationCreditedTo", - "ApplicationCurrentStage", - "ApplicationJob", - "ApplicationOffersItem", - "ApplicationRejectReason", - "ApplicationRequest", - "ApplicationRequestCandidate", - "ApplicationRequestCreditedTo", - "ApplicationRequestCurrentStage", - "ApplicationRequestJob", - "ApplicationRequestOffersItem", - "ApplicationRequestRejectReason", - "ApplicationRequestScreeningQuestionAnswersItem", - "ApplicationResponse", - "ApplicationScreeningQuestionAnswersItem", - "ApplicationsListRequestExpand", - "ApplicationsRetrieveRequestExpand", - "AsyncPassthroughReciept", - "AsyncPassthroughRetrieveResponse", - "Attachment", - "AttachmentAttachmentType", - "AttachmentRequest", - "AttachmentRequestAttachmentType", - "AttachmentResponse", - "AttachmentTypeEnum", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "Candidate", - "CandidateApplicationsItem", - "CandidateAttachmentsItem", - "CandidateRequest", - "CandidateRequestApplicationsItem", - "CandidateRequestAttachmentsItem", - "CandidateResponse", - "CandidatesListRequestExpand", - "CandidatesRetrieveRequestExpand", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "Department", - "DisabilityStatusEnum", - "Eeoc", - "EeocCandidate", - "EeocDisabilityStatus", - "EeocGender", - "EeocRace", - "EeocVeteranStatus", - "EeocsListRequestRemoteFields", - "EeocsListRequestShowEnumOrigins", - "EeocsRetrieveRequestRemoteFields", - "EeocsRetrieveRequestShowEnumOrigins", - "EmailAddress", - "EmailAddressEmailAddressType", - "EmailAddressRequest", - "EmailAddressRequestEmailAddressType", - "EmailAddressTypeEnum", - "EnabledActionsEnum", - "EncodingEnum", - "EndUserDetailsRequestLanguage", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "GenderEnum", - "IgnoreCommonModelRequestReason", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "InterviewsListRequestExpand", - "InterviewsRetrieveRequestExpand", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "IssuesListRequestStatus", - "Job", - "JobDepartmentsItem", - "JobHiringManagersItem", - "JobInterviewStage", - "JobInterviewStageJob", - "JobOfficesItem", - "JobPosting", - "JobPostingJob", - "JobPostingJobPostingUrlsItem", - "JobPostingStatus", - "JobPostingStatusEnum", - "JobPostingsListRequestStatus", - "JobRecruitersItem", - "JobStatus", - "JobStatusEnum", - "JobType", - "JobTypeEnum", - "JobsListRequestExpand", - "JobsListRequestStatus", - "JobsRetrieveRequestExpand", - "JobsScreeningQuestionsListRequestExpand", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "LinkedAccountsListRequestCategory", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "Offer", - "OfferApplication", - "OfferCreator", - "OfferStatus", - "OfferStatusEnum", - "OffersListRequestExpand", - "OffersRetrieveRequestExpand", - "Office", - "OverallRecommendationEnum", - "PaginatedAccountDetailsAndActionsList", - "PaginatedActivityList", - "PaginatedApplicationList", - "PaginatedAttachmentList", - "PaginatedAuditLogEventList", - "PaginatedCandidateList", - "PaginatedDepartmentList", - "PaginatedEeocList", - "PaginatedIssueList", - "PaginatedJobInterviewStageList", - "PaginatedJobList", - "PaginatedJobPostingList", - "PaginatedOfferList", - "PaginatedOfficeList", - "PaginatedRejectReasonList", - "PaginatedRemoteUserList", - "PaginatedScheduledInterviewList", - "PaginatedScorecardList", - "PaginatedScreeningQuestionList", - "PaginatedSyncStatusList", - "PaginatedTagList", - "PatchedCandidateRequest", - "PhoneNumber", - "PhoneNumberPhoneNumberType", - "PhoneNumberRequest", - "PhoneNumberRequestPhoneNumberType", - "PhoneNumberTypeEnum", - "RaceEnum", - "ReasonEnum", - "RejectReason", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RemoteUser", - "RemoteUserAccessRole", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "ScheduledInterview", - "ScheduledInterviewApplication", - "ScheduledInterviewInterviewersItem", - "ScheduledInterviewJobInterviewStage", - "ScheduledInterviewOrganizer", - "ScheduledInterviewRequest", - "ScheduledInterviewRequestApplication", - "ScheduledInterviewRequestInterviewersItem", - "ScheduledInterviewRequestJobInterviewStage", - "ScheduledInterviewRequestOrganizer", - "ScheduledInterviewRequestStatus", - "ScheduledInterviewResponse", - "ScheduledInterviewStatus", - "ScheduledInterviewStatusEnum", - "Scorecard", - "ScorecardApplication", - "ScorecardInterview", - "ScorecardInterviewer", - "ScorecardOverallRecommendation", - "ScorecardsListRequestExpand", - "ScorecardsRetrieveRequestExpand", - "ScreeningQuestion", - "ScreeningQuestionAnswer", - "ScreeningQuestionAnswerQuestion", - "ScreeningQuestionAnswerRequest", - "ScreeningQuestionAnswerRequestQuestion", - "ScreeningQuestionJob", - "ScreeningQuestionOption", - "ScreeningQuestionType", - "ScreeningQuestionTypeEnum", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "Tag", - "Url", - "UrlRequest", - "UrlRequestUrlType", - "UrlTypeEnum", - "UrlUrlType", - "ValidationProblemSource", - "VeteranStatusEnum", - "VisibilityEnum", - "WarningValidationProblem", - "WebhookReceiver", - "account_details", - "account_token", - "activities", - "applications", - "async_passthrough", - "attachments", - "audit_trail", - "available_actions", - "candidates", - "delete_account", - "departments", - "eeocs", - "field_mapping", - "force_resync", - "generate_key", - "interviews", - "issues", - "job_interview_stages", - "job_postings", - "jobs", - "link_token", - "linked_accounts", - "offers", - "offices", - "passthrough", - "regenerate_key", - "reject_reasons", - "scopes", - "scorecards", - "sync_status", - "tags", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/ats/client.py b/src/merge/resources/ats/client.py deleted file mode 100644 index cb5551d7..00000000 --- a/src/merge/resources/ats/client.py +++ /dev/null @@ -1,687 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawAtsClient, RawAtsClient - -if typing.TYPE_CHECKING: - from .resources.account_details.client import AccountDetailsClient, AsyncAccountDetailsClient - from .resources.account_token.client import AccountTokenClient, AsyncAccountTokenClient - from .resources.activities.client import ActivitiesClient, AsyncActivitiesClient - from .resources.applications.client import ApplicationsClient, AsyncApplicationsClient - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_ats_resources_async_passthrough_client_AsyncPassthroughClient, - ) - from .resources.attachments.client import AsyncAttachmentsClient, AttachmentsClient - from .resources.audit_trail.client import AsyncAuditTrailClient, AuditTrailClient - from .resources.available_actions.client import AsyncAvailableActionsClient, AvailableActionsClient - from .resources.candidates.client import AsyncCandidatesClient, CandidatesClient - from .resources.delete_account.client import AsyncDeleteAccountClient, DeleteAccountClient - from .resources.departments.client import AsyncDepartmentsClient, DepartmentsClient - from .resources.eeocs.client import AsyncEeocsClient, EeocsClient - from .resources.field_mapping.client import AsyncFieldMappingClient, FieldMappingClient - from .resources.force_resync.client import AsyncForceResyncClient, ForceResyncClient - from .resources.generate_key.client import AsyncGenerateKeyClient, GenerateKeyClient - from .resources.interviews.client import AsyncInterviewsClient, InterviewsClient - from .resources.issues.client import AsyncIssuesClient, IssuesClient - from .resources.job_interview_stages.client import AsyncJobInterviewStagesClient, JobInterviewStagesClient - from .resources.job_postings.client import AsyncJobPostingsClient, JobPostingsClient - from .resources.jobs.client import AsyncJobsClient, JobsClient - from .resources.link_token.client import AsyncLinkTokenClient, LinkTokenClient - from .resources.linked_accounts.client import AsyncLinkedAccountsClient, LinkedAccountsClient - from .resources.offers.client import AsyncOffersClient, OffersClient - from .resources.offices.client import AsyncOfficesClient, OfficesClient - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_ats_resources_passthrough_client_AsyncPassthroughClient, - ) - from .resources.passthrough.client import PassthroughClient - from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient - from .resources.reject_reasons.client import AsyncRejectReasonsClient, RejectReasonsClient - from .resources.scopes.client import AsyncScopesClient, ScopesClient - from .resources.scorecards.client import AsyncScorecardsClient, ScorecardsClient - from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient - from .resources.tags.client import AsyncTagsClient, TagsClient - from .resources.users.client import AsyncUsersClient, UsersClient - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient - - -class AtsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAtsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AccountDetailsClient] = None - self._account_token: typing.Optional[AccountTokenClient] = None - self._activities: typing.Optional[ActivitiesClient] = None - self._applications: typing.Optional[ApplicationsClient] = None - self._async_passthrough: typing.Optional[ - resources_ats_resources_async_passthrough_client_AsyncPassthroughClient - ] = None - self._attachments: typing.Optional[AttachmentsClient] = None - self._audit_trail: typing.Optional[AuditTrailClient] = None - self._available_actions: typing.Optional[AvailableActionsClient] = None - self._candidates: typing.Optional[CandidatesClient] = None - self._scopes: typing.Optional[ScopesClient] = None - self._delete_account: typing.Optional[DeleteAccountClient] = None - self._departments: typing.Optional[DepartmentsClient] = None - self._eeocs: typing.Optional[EeocsClient] = None - self._field_mapping: typing.Optional[FieldMappingClient] = None - self._generate_key: typing.Optional[GenerateKeyClient] = None - self._interviews: typing.Optional[InterviewsClient] = None - self._issues: typing.Optional[IssuesClient] = None - self._job_interview_stages: typing.Optional[JobInterviewStagesClient] = None - self._job_postings: typing.Optional[JobPostingsClient] = None - self._jobs: typing.Optional[JobsClient] = None - self._link_token: typing.Optional[LinkTokenClient] = None - self._linked_accounts: typing.Optional[LinkedAccountsClient] = None - self._offers: typing.Optional[OffersClient] = None - self._offices: typing.Optional[OfficesClient] = None - self._passthrough: typing.Optional[PassthroughClient] = None - self._regenerate_key: typing.Optional[RegenerateKeyClient] = None - self._reject_reasons: typing.Optional[RejectReasonsClient] = None - self._scorecards: typing.Optional[ScorecardsClient] = None - self._sync_status: typing.Optional[SyncStatusClient] = None - self._force_resync: typing.Optional[ForceResyncClient] = None - self._tags: typing.Optional[TagsClient] = None - self._users: typing.Optional[UsersClient] = None - self._webhook_receivers: typing.Optional[WebhookReceiversClient] = None - - @property - def with_raw_response(self) -> RawAtsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAtsClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AccountDetailsClient # noqa: E402 - - self._account_details = AccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AccountTokenClient # noqa: E402 - - self._account_token = AccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def activities(self): - if self._activities is None: - from .resources.activities.client import ActivitiesClient # noqa: E402 - - self._activities = ActivitiesClient(client_wrapper=self._client_wrapper) - return self._activities - - @property - def applications(self): - if self._applications is None: - from .resources.applications.client import ApplicationsClient # noqa: E402 - - self._applications = ApplicationsClient(client_wrapper=self._client_wrapper) - return self._applications - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_ats_resources_async_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._async_passthrough = resources_ats_resources_async_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._async_passthrough - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AttachmentsClient # noqa: E402 - - self._attachments = AttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AuditTrailClient # noqa: E402 - - self._audit_trail = AuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AvailableActionsClient # noqa: E402 - - self._available_actions = AvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def candidates(self): - if self._candidates is None: - from .resources.candidates.client import CandidatesClient # noqa: E402 - - self._candidates = CandidatesClient(client_wrapper=self._client_wrapper) - return self._candidates - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import ScopesClient # noqa: E402 - - self._scopes = ScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import DeleteAccountClient # noqa: E402 - - self._delete_account = DeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def departments(self): - if self._departments is None: - from .resources.departments.client import DepartmentsClient # noqa: E402 - - self._departments = DepartmentsClient(client_wrapper=self._client_wrapper) - return self._departments - - @property - def eeocs(self): - if self._eeocs is None: - from .resources.eeocs.client import EeocsClient # noqa: E402 - - self._eeocs = EeocsClient(client_wrapper=self._client_wrapper) - return self._eeocs - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import FieldMappingClient # noqa: E402 - - self._field_mapping = FieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import GenerateKeyClient # noqa: E402 - - self._generate_key = GenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def interviews(self): - if self._interviews is None: - from .resources.interviews.client import InterviewsClient # noqa: E402 - - self._interviews = InterviewsClient(client_wrapper=self._client_wrapper) - return self._interviews - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import IssuesClient # noqa: E402 - - self._issues = IssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def job_interview_stages(self): - if self._job_interview_stages is None: - from .resources.job_interview_stages.client import JobInterviewStagesClient # noqa: E402 - - self._job_interview_stages = JobInterviewStagesClient(client_wrapper=self._client_wrapper) - return self._job_interview_stages - - @property - def job_postings(self): - if self._job_postings is None: - from .resources.job_postings.client import JobPostingsClient # noqa: E402 - - self._job_postings = JobPostingsClient(client_wrapper=self._client_wrapper) - return self._job_postings - - @property - def jobs(self): - if self._jobs is None: - from .resources.jobs.client import JobsClient # noqa: E402 - - self._jobs = JobsClient(client_wrapper=self._client_wrapper) - return self._jobs - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import LinkTokenClient # noqa: E402 - - self._link_token = LinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import LinkedAccountsClient # noqa: E402 - - self._linked_accounts = LinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def offers(self): - if self._offers is None: - from .resources.offers.client import OffersClient # noqa: E402 - - self._offers = OffersClient(client_wrapper=self._client_wrapper) - return self._offers - - @property - def offices(self): - if self._offices is None: - from .resources.offices.client import OfficesClient # noqa: E402 - - self._offices = OfficesClient(client_wrapper=self._client_wrapper) - return self._offices - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import PassthroughClient # noqa: E402 - - self._passthrough = PassthroughClient(client_wrapper=self._client_wrapper) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import RegenerateKeyClient # noqa: E402 - - self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def reject_reasons(self): - if self._reject_reasons is None: - from .resources.reject_reasons.client import RejectReasonsClient # noqa: E402 - - self._reject_reasons = RejectReasonsClient(client_wrapper=self._client_wrapper) - return self._reject_reasons - - @property - def scorecards(self): - if self._scorecards is None: - from .resources.scorecards.client import ScorecardsClient # noqa: E402 - - self._scorecards = ScorecardsClient(client_wrapper=self._client_wrapper) - return self._scorecards - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import SyncStatusClient # noqa: E402 - - self._sync_status = SyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import ForceResyncClient # noqa: E402 - - self._force_resync = ForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tags(self): - if self._tags is None: - from .resources.tags.client import TagsClient # noqa: E402 - - self._tags = TagsClient(client_wrapper=self._client_wrapper) - return self._tags - - @property - def users(self): - if self._users is None: - from .resources.users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import WebhookReceiversClient # noqa: E402 - - self._webhook_receivers = WebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers - - -class AsyncAtsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAtsClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AsyncAccountDetailsClient] = None - self._account_token: typing.Optional[AsyncAccountTokenClient] = None - self._activities: typing.Optional[AsyncActivitiesClient] = None - self._applications: typing.Optional[AsyncApplicationsClient] = None - self._async_passthrough: typing.Optional[AsyncAsyncPassthroughClient] = None - self._attachments: typing.Optional[AsyncAttachmentsClient] = None - self._audit_trail: typing.Optional[AsyncAuditTrailClient] = None - self._available_actions: typing.Optional[AsyncAvailableActionsClient] = None - self._candidates: typing.Optional[AsyncCandidatesClient] = None - self._scopes: typing.Optional[AsyncScopesClient] = None - self._delete_account: typing.Optional[AsyncDeleteAccountClient] = None - self._departments: typing.Optional[AsyncDepartmentsClient] = None - self._eeocs: typing.Optional[AsyncEeocsClient] = None - self._field_mapping: typing.Optional[AsyncFieldMappingClient] = None - self._generate_key: typing.Optional[AsyncGenerateKeyClient] = None - self._interviews: typing.Optional[AsyncInterviewsClient] = None - self._issues: typing.Optional[AsyncIssuesClient] = None - self._job_interview_stages: typing.Optional[AsyncJobInterviewStagesClient] = None - self._job_postings: typing.Optional[AsyncJobPostingsClient] = None - self._jobs: typing.Optional[AsyncJobsClient] = None - self._link_token: typing.Optional[AsyncLinkTokenClient] = None - self._linked_accounts: typing.Optional[AsyncLinkedAccountsClient] = None - self._offers: typing.Optional[AsyncOffersClient] = None - self._offices: typing.Optional[AsyncOfficesClient] = None - self._passthrough: typing.Optional[resources_ats_resources_passthrough_client_AsyncPassthroughClient] = None - self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None - self._reject_reasons: typing.Optional[AsyncRejectReasonsClient] = None - self._scorecards: typing.Optional[AsyncScorecardsClient] = None - self._sync_status: typing.Optional[AsyncSyncStatusClient] = None - self._force_resync: typing.Optional[AsyncForceResyncClient] = None - self._tags: typing.Optional[AsyncTagsClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - self._webhook_receivers: typing.Optional[AsyncWebhookReceiversClient] = None - - @property - def with_raw_response(self) -> AsyncRawAtsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAtsClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AsyncAccountDetailsClient # noqa: E402 - - self._account_details = AsyncAccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AsyncAccountTokenClient # noqa: E402 - - self._account_token = AsyncAccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def activities(self): - if self._activities is None: - from .resources.activities.client import AsyncActivitiesClient # noqa: E402 - - self._activities = AsyncActivitiesClient(client_wrapper=self._client_wrapper) - return self._activities - - @property - def applications(self): - if self._applications is None: - from .resources.applications.client import AsyncApplicationsClient # noqa: E402 - - self._applications = AsyncApplicationsClient(client_wrapper=self._client_wrapper) - return self._applications - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient # noqa: E402 - - self._async_passthrough = AsyncAsyncPassthroughClient(client_wrapper=self._client_wrapper) - return self._async_passthrough - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AsyncAttachmentsClient # noqa: E402 - - self._attachments = AsyncAttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AsyncAuditTrailClient # noqa: E402 - - self._audit_trail = AsyncAuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AsyncAvailableActionsClient # noqa: E402 - - self._available_actions = AsyncAvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def candidates(self): - if self._candidates is None: - from .resources.candidates.client import AsyncCandidatesClient # noqa: E402 - - self._candidates = AsyncCandidatesClient(client_wrapper=self._client_wrapper) - return self._candidates - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import AsyncScopesClient # noqa: E402 - - self._scopes = AsyncScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import AsyncDeleteAccountClient # noqa: E402 - - self._delete_account = AsyncDeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def departments(self): - if self._departments is None: - from .resources.departments.client import AsyncDepartmentsClient # noqa: E402 - - self._departments = AsyncDepartmentsClient(client_wrapper=self._client_wrapper) - return self._departments - - @property - def eeocs(self): - if self._eeocs is None: - from .resources.eeocs.client import AsyncEeocsClient # noqa: E402 - - self._eeocs = AsyncEeocsClient(client_wrapper=self._client_wrapper) - return self._eeocs - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import AsyncFieldMappingClient # noqa: E402 - - self._field_mapping = AsyncFieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import AsyncGenerateKeyClient # noqa: E402 - - self._generate_key = AsyncGenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def interviews(self): - if self._interviews is None: - from .resources.interviews.client import AsyncInterviewsClient # noqa: E402 - - self._interviews = AsyncInterviewsClient(client_wrapper=self._client_wrapper) - return self._interviews - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import AsyncIssuesClient # noqa: E402 - - self._issues = AsyncIssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def job_interview_stages(self): - if self._job_interview_stages is None: - from .resources.job_interview_stages.client import AsyncJobInterviewStagesClient # noqa: E402 - - self._job_interview_stages = AsyncJobInterviewStagesClient(client_wrapper=self._client_wrapper) - return self._job_interview_stages - - @property - def job_postings(self): - if self._job_postings is None: - from .resources.job_postings.client import AsyncJobPostingsClient # noqa: E402 - - self._job_postings = AsyncJobPostingsClient(client_wrapper=self._client_wrapper) - return self._job_postings - - @property - def jobs(self): - if self._jobs is None: - from .resources.jobs.client import AsyncJobsClient # noqa: E402 - - self._jobs = AsyncJobsClient(client_wrapper=self._client_wrapper) - return self._jobs - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import AsyncLinkTokenClient # noqa: E402 - - self._link_token = AsyncLinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import AsyncLinkedAccountsClient # noqa: E402 - - self._linked_accounts = AsyncLinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def offers(self): - if self._offers is None: - from .resources.offers.client import AsyncOffersClient # noqa: E402 - - self._offers = AsyncOffersClient(client_wrapper=self._client_wrapper) - return self._offers - - @property - def offices(self): - if self._offices is None: - from .resources.offices.client import AsyncOfficesClient # noqa: E402 - - self._offices = AsyncOfficesClient(client_wrapper=self._client_wrapper) - return self._offices - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_ats_resources_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._passthrough = resources_ats_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import AsyncRegenerateKeyClient # noqa: E402 - - self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def reject_reasons(self): - if self._reject_reasons is None: - from .resources.reject_reasons.client import AsyncRejectReasonsClient # noqa: E402 - - self._reject_reasons = AsyncRejectReasonsClient(client_wrapper=self._client_wrapper) - return self._reject_reasons - - @property - def scorecards(self): - if self._scorecards is None: - from .resources.scorecards.client import AsyncScorecardsClient # noqa: E402 - - self._scorecards = AsyncScorecardsClient(client_wrapper=self._client_wrapper) - return self._scorecards - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import AsyncSyncStatusClient # noqa: E402 - - self._sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import AsyncForceResyncClient # noqa: E402 - - self._force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tags(self): - if self._tags is None: - from .resources.tags.client import AsyncTagsClient # noqa: E402 - - self._tags = AsyncTagsClient(client_wrapper=self._client_wrapper) - return self._tags - - @property - def users(self): - if self._users is None: - from .resources.users.client import AsyncUsersClient # noqa: E402 - - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient # noqa: E402 - - self._webhook_receivers = AsyncWebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers diff --git a/src/merge/resources/ats/raw_client.py b/src/merge/resources/ats/raw_client.py deleted file mode 100644 index 920ebc04..00000000 --- a/src/merge/resources/ats/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawAtsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawAtsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/merge/resources/ats/resources/__init__.py b/src/merge/resources/ats/resources/__init__.py deleted file mode 100644 index c04b082b..00000000 --- a/src/merge/resources/ats/resources/__init__.py +++ /dev/null @@ -1,218 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - account_details, - account_token, - activities, - applications, - async_passthrough, - attachments, - audit_trail, - available_actions, - candidates, - delete_account, - departments, - eeocs, - field_mapping, - force_resync, - generate_key, - interviews, - issues, - job_interview_stages, - job_postings, - jobs, - link_token, - linked_accounts, - offers, - offices, - passthrough, - regenerate_key, - reject_reasons, - scopes, - scorecards, - sync_status, - tags, - users, - webhook_receivers, - ) - from .activities import ( - ActivitiesListRequestRemoteFields, - ActivitiesListRequestShowEnumOrigins, - ActivitiesRetrieveRequestRemoteFields, - ActivitiesRetrieveRequestShowEnumOrigins, - ) - from .applications import ApplicationsListRequestExpand, ApplicationsRetrieveRequestExpand - from .async_passthrough import AsyncPassthroughRetrieveResponse - from .candidates import CandidatesListRequestExpand, CandidatesRetrieveRequestExpand, IgnoreCommonModelRequestReason - from .eeocs import ( - EeocsListRequestRemoteFields, - EeocsListRequestShowEnumOrigins, - EeocsRetrieveRequestRemoteFields, - EeocsRetrieveRequestShowEnumOrigins, - ) - from .interviews import InterviewsListRequestExpand, InterviewsRetrieveRequestExpand - from .issues import IssuesListRequestStatus - from .job_postings import JobPostingsListRequestStatus - from .jobs import ( - JobsListRequestExpand, - JobsListRequestStatus, - JobsRetrieveRequestExpand, - JobsScreeningQuestionsListRequestExpand, - ) - from .link_token import EndUserDetailsRequestLanguage - from .linked_accounts import LinkedAccountsListRequestCategory - from .offers import OffersListRequestExpand, OffersRetrieveRequestExpand - from .scorecards import ScorecardsListRequestExpand, ScorecardsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ActivitiesListRequestRemoteFields": ".activities", - "ActivitiesListRequestShowEnumOrigins": ".activities", - "ActivitiesRetrieveRequestRemoteFields": ".activities", - "ActivitiesRetrieveRequestShowEnumOrigins": ".activities", - "ApplicationsListRequestExpand": ".applications", - "ApplicationsRetrieveRequestExpand": ".applications", - "AsyncPassthroughRetrieveResponse": ".async_passthrough", - "CandidatesListRequestExpand": ".candidates", - "CandidatesRetrieveRequestExpand": ".candidates", - "EeocsListRequestRemoteFields": ".eeocs", - "EeocsListRequestShowEnumOrigins": ".eeocs", - "EeocsRetrieveRequestRemoteFields": ".eeocs", - "EeocsRetrieveRequestShowEnumOrigins": ".eeocs", - "EndUserDetailsRequestLanguage": ".link_token", - "IgnoreCommonModelRequestReason": ".candidates", - "InterviewsListRequestExpand": ".interviews", - "InterviewsRetrieveRequestExpand": ".interviews", - "IssuesListRequestStatus": ".issues", - "JobPostingsListRequestStatus": ".job_postings", - "JobsListRequestExpand": ".jobs", - "JobsListRequestStatus": ".jobs", - "JobsRetrieveRequestExpand": ".jobs", - "JobsScreeningQuestionsListRequestExpand": ".jobs", - "LinkedAccountsListRequestCategory": ".linked_accounts", - "OffersListRequestExpand": ".offers", - "OffersRetrieveRequestExpand": ".offers", - "ScorecardsListRequestExpand": ".scorecards", - "ScorecardsRetrieveRequestExpand": ".scorecards", - "account_details": ".", - "account_token": ".", - "activities": ".", - "applications": ".", - "async_passthrough": ".", - "attachments": ".", - "audit_trail": ".", - "available_actions": ".", - "candidates": ".", - "delete_account": ".", - "departments": ".", - "eeocs": ".", - "field_mapping": ".", - "force_resync": ".", - "generate_key": ".", - "interviews": ".", - "issues": ".", - "job_interview_stages": ".", - "job_postings": ".", - "jobs": ".", - "link_token": ".", - "linked_accounts": ".", - "offers": ".", - "offices": ".", - "passthrough": ".", - "regenerate_key": ".", - "reject_reasons": ".", - "scopes": ".", - "scorecards": ".", - "sync_status": ".", - "tags": ".", - "users": ".", - "webhook_receivers": ".", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "ActivitiesListRequestRemoteFields", - "ActivitiesListRequestShowEnumOrigins", - "ActivitiesRetrieveRequestRemoteFields", - "ActivitiesRetrieveRequestShowEnumOrigins", - "ApplicationsListRequestExpand", - "ApplicationsRetrieveRequestExpand", - "AsyncPassthroughRetrieveResponse", - "CandidatesListRequestExpand", - "CandidatesRetrieveRequestExpand", - "EeocsListRequestRemoteFields", - "EeocsListRequestShowEnumOrigins", - "EeocsRetrieveRequestRemoteFields", - "EeocsRetrieveRequestShowEnumOrigins", - "EndUserDetailsRequestLanguage", - "IgnoreCommonModelRequestReason", - "InterviewsListRequestExpand", - "InterviewsRetrieveRequestExpand", - "IssuesListRequestStatus", - "JobPostingsListRequestStatus", - "JobsListRequestExpand", - "JobsListRequestStatus", - "JobsRetrieveRequestExpand", - "JobsScreeningQuestionsListRequestExpand", - "LinkedAccountsListRequestCategory", - "OffersListRequestExpand", - "OffersRetrieveRequestExpand", - "ScorecardsListRequestExpand", - "ScorecardsRetrieveRequestExpand", - "account_details", - "account_token", - "activities", - "applications", - "async_passthrough", - "attachments", - "audit_trail", - "available_actions", - "candidates", - "delete_account", - "departments", - "eeocs", - "field_mapping", - "force_resync", - "generate_key", - "interviews", - "issues", - "job_interview_stages", - "job_postings", - "jobs", - "link_token", - "linked_accounts", - "offers", - "offices", - "passthrough", - "regenerate_key", - "reject_reasons", - "scopes", - "scorecards", - "sync_status", - "tags", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/ats/resources/account_details/__init__.py b/src/merge/resources/ats/resources/account_details/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/account_details/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/account_details/client.py b/src/merge/resources/ats/resources/account_details/client.py deleted file mode 100644 index 97e0ebde..00000000 --- a/src/merge/resources/ats/resources/account_details/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_details import AccountDetails -from .raw_client import AsyncRawAccountDetailsClient, RawAccountDetailsClient - - -class AccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountDetailsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.account_details.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountDetailsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.account_details.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/account_details/raw_client.py b/src/merge/resources/ats/resources/account_details/raw_client.py deleted file mode 100644 index 53941b58..00000000 --- a/src/merge/resources/ats/resources/account_details/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_details import AccountDetails - - -class RawAccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountDetails] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountDetails] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/account_token/__init__.py b/src/merge/resources/ats/resources/account_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/account_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/account_token/client.py b/src/merge/resources/ats/resources/account_token/client.py deleted file mode 100644 index eadd660b..00000000 --- a/src/merge/resources/ats/resources/account_token/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_token import AccountToken -from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient - - -class AccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountTokenClient - """ - return self._raw_client - - def retrieve(self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.account_token.retrieve( - public_token="public_token", - ) - """ - _response = self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data - - -class AsyncAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountTokenClient - """ - return self._raw_client - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.account_token.retrieve( - public_token="public_token", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/account_token/raw_client.py b/src/merge/resources/ats/resources/account_token/raw_client.py deleted file mode 100644 index c8478970..00000000 --- a/src/merge/resources/ats/resources/account_token/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_token import AccountToken - - -class RawAccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountToken] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/activities/__init__.py b/src/merge/resources/ats/resources/activities/__init__.py deleted file mode 100644 index a365e7bc..00000000 --- a/src/merge/resources/ats/resources/activities/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - ActivitiesListRequestRemoteFields, - ActivitiesListRequestShowEnumOrigins, - ActivitiesRetrieveRequestRemoteFields, - ActivitiesRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "ActivitiesListRequestRemoteFields": ".types", - "ActivitiesListRequestShowEnumOrigins": ".types", - "ActivitiesRetrieveRequestRemoteFields": ".types", - "ActivitiesRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "ActivitiesListRequestRemoteFields", - "ActivitiesListRequestShowEnumOrigins", - "ActivitiesRetrieveRequestRemoteFields", - "ActivitiesRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/ats/resources/activities/client.py b/src/merge/resources/ats/resources/activities/client.py deleted file mode 100644 index f7499b30..00000000 --- a/src/merge/resources/ats/resources/activities/client.py +++ /dev/null @@ -1,657 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.activity import Activity -from ...types.activity_request import ActivityRequest -from ...types.activity_response import ActivityResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_activity_list import PaginatedActivityList -from .raw_client import AsyncRawActivitiesClient, RawActivitiesClient -from .types.activities_list_request_remote_fields import ActivitiesListRequestRemoteFields -from .types.activities_list_request_show_enum_origins import ActivitiesListRequestShowEnumOrigins -from .types.activities_retrieve_request_remote_fields import ActivitiesRetrieveRequestRemoteFields -from .types.activities_retrieve_request_show_enum_origins import ActivitiesRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ActivitiesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawActivitiesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawActivitiesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawActivitiesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["user"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[ActivitiesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[ActivitiesListRequestShowEnumOrigins] = None, - user_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedActivityList: - """ - Returns a list of `Activity` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[ActivitiesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[ActivitiesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - user_id : typing.Optional[str] - If provided, will only return activities done by this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedActivityList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.activities import ( - ActivitiesListRequestRemoteFields, - ActivitiesListRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.activities.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=ActivitiesListRequestRemoteFields.ACTIVITY_TYPE, - remote_id="remote_id", - show_enum_origins=ActivitiesListRequestShowEnumOrigins.ACTIVITY_TYPE, - user_id="user_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - user_id=user_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ActivityRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ActivityResponse: - """ - Creates an `Activity` object with the given values. - - Parameters - ---------- - model : ActivityRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ActivityResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ats import ActivityRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.activities.create( - is_debug_mode=True, - run_async=True, - model=ActivityRequest(), - remote_user_id="remote_user_id", - ) - """ - _response = self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["user"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[ActivitiesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Activity: - """ - Returns an `Activity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[ActivitiesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Activity - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.activities import ( - ActivitiesRetrieveRequestRemoteFields, - ActivitiesRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.activities.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=ActivitiesRetrieveRequestRemoteFields.ACTIVITY_TYPE, - show_enum_origins=ActivitiesRetrieveRequestShowEnumOrigins.ACTIVITY_TYPE, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Activity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.activities.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncActivitiesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawActivitiesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawActivitiesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawActivitiesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["user"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[ActivitiesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[ActivitiesListRequestShowEnumOrigins] = None, - user_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedActivityList: - """ - Returns a list of `Activity` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[ActivitiesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[ActivitiesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - user_id : typing.Optional[str] - If provided, will only return activities done by this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedActivityList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.activities import ( - ActivitiesListRequestRemoteFields, - ActivitiesListRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.activities.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=ActivitiesListRequestRemoteFields.ACTIVITY_TYPE, - remote_id="remote_id", - show_enum_origins=ActivitiesListRequestShowEnumOrigins.ACTIVITY_TYPE, - user_id="user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - user_id=user_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ActivityRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ActivityResponse: - """ - Creates an `Activity` object with the given values. - - Parameters - ---------- - model : ActivityRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ActivityResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import ActivityRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.activities.create( - is_debug_mode=True, - run_async=True, - model=ActivityRequest(), - remote_user_id="remote_user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["user"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[ActivitiesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Activity: - """ - Returns an `Activity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[ActivitiesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Activity - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.activities import ( - ActivitiesRetrieveRequestRemoteFields, - ActivitiesRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.activities.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=ActivitiesRetrieveRequestRemoteFields.ACTIVITY_TYPE, - show_enum_origins=ActivitiesRetrieveRequestShowEnumOrigins.ACTIVITY_TYPE, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Activity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.activities.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/activities/raw_client.py b/src/merge/resources/ats/resources/activities/raw_client.py deleted file mode 100644 index f707a679..00000000 --- a/src/merge/resources/ats/resources/activities/raw_client.py +++ /dev/null @@ -1,591 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.activity import Activity -from ...types.activity_request import ActivityRequest -from ...types.activity_response import ActivityResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_activity_list import PaginatedActivityList -from .types.activities_list_request_remote_fields import ActivitiesListRequestRemoteFields -from .types.activities_list_request_show_enum_origins import ActivitiesListRequestShowEnumOrigins -from .types.activities_retrieve_request_remote_fields import ActivitiesRetrieveRequestRemoteFields -from .types.activities_retrieve_request_show_enum_origins import ActivitiesRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawActivitiesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["user"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[ActivitiesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[ActivitiesListRequestShowEnumOrigins] = None, - user_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedActivityList]: - """ - Returns a list of `Activity` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[ActivitiesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[ActivitiesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - user_id : typing.Optional[str] - If provided, will only return activities done by this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedActivityList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/activities", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "user_id": user_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedActivityList, - construct_type( - type_=PaginatedActivityList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ActivityRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ActivityResponse]: - """ - Creates an `Activity` object with the given values. - - Parameters - ---------- - model : ActivityRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ActivityResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/activities", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ActivityResponse, - construct_type( - type_=ActivityResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["user"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[ActivitiesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Activity]: - """ - Returns an `Activity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[ActivitiesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Activity] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/activities/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Activity, - construct_type( - type_=Activity, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Activity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/activities/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawActivitiesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["user"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[ActivitiesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[ActivitiesListRequestShowEnumOrigins] = None, - user_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedActivityList]: - """ - Returns a list of `Activity` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[ActivitiesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[ActivitiesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - user_id : typing.Optional[str] - If provided, will only return activities done by this user. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedActivityList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/activities", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "user_id": user_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedActivityList, - construct_type( - type_=PaginatedActivityList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ActivityRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ActivityResponse]: - """ - Creates an `Activity` object with the given values. - - Parameters - ---------- - model : ActivityRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ActivityResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/activities", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ActivityResponse, - construct_type( - type_=ActivityResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["user"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[ActivitiesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Activity]: - """ - Returns an `Activity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["user"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[ActivitiesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[ActivitiesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Activity] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/activities/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Activity, - construct_type( - type_=Activity, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Activity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/activities/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/activities/types/__init__.py b/src/merge/resources/ats/resources/activities/types/__init__.py deleted file mode 100644 index 319b7dae..00000000 --- a/src/merge/resources/ats/resources/activities/types/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .activities_list_request_remote_fields import ActivitiesListRequestRemoteFields - from .activities_list_request_show_enum_origins import ActivitiesListRequestShowEnumOrigins - from .activities_retrieve_request_remote_fields import ActivitiesRetrieveRequestRemoteFields - from .activities_retrieve_request_show_enum_origins import ActivitiesRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "ActivitiesListRequestRemoteFields": ".activities_list_request_remote_fields", - "ActivitiesListRequestShowEnumOrigins": ".activities_list_request_show_enum_origins", - "ActivitiesRetrieveRequestRemoteFields": ".activities_retrieve_request_remote_fields", - "ActivitiesRetrieveRequestShowEnumOrigins": ".activities_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "ActivitiesListRequestRemoteFields", - "ActivitiesListRequestShowEnumOrigins", - "ActivitiesRetrieveRequestRemoteFields", - "ActivitiesRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/ats/resources/activities/types/activities_list_request_remote_fields.py b/src/merge/resources/ats/resources/activities/types/activities_list_request_remote_fields.py deleted file mode 100644 index bd203f38..00000000 --- a/src/merge/resources/ats/resources/activities/types/activities_list_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ActivitiesListRequestRemoteFields(str, enum.Enum): - ACTIVITY_TYPE = "activity_type" - ACTIVITY_TYPE_VISIBILITY = "activity_type,visibility" - VISIBILITY = "visibility" - - def visit( - self, - activity_type: typing.Callable[[], T_Result], - activity_type_visibility: typing.Callable[[], T_Result], - visibility: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ActivitiesListRequestRemoteFields.ACTIVITY_TYPE: - return activity_type() - if self is ActivitiesListRequestRemoteFields.ACTIVITY_TYPE_VISIBILITY: - return activity_type_visibility() - if self is ActivitiesListRequestRemoteFields.VISIBILITY: - return visibility() diff --git a/src/merge/resources/ats/resources/activities/types/activities_list_request_show_enum_origins.py b/src/merge/resources/ats/resources/activities/types/activities_list_request_show_enum_origins.py deleted file mode 100644 index c38d72ac..00000000 --- a/src/merge/resources/ats/resources/activities/types/activities_list_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ActivitiesListRequestShowEnumOrigins(str, enum.Enum): - ACTIVITY_TYPE = "activity_type" - ACTIVITY_TYPE_VISIBILITY = "activity_type,visibility" - VISIBILITY = "visibility" - - def visit( - self, - activity_type: typing.Callable[[], T_Result], - activity_type_visibility: typing.Callable[[], T_Result], - visibility: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ActivitiesListRequestShowEnumOrigins.ACTIVITY_TYPE: - return activity_type() - if self is ActivitiesListRequestShowEnumOrigins.ACTIVITY_TYPE_VISIBILITY: - return activity_type_visibility() - if self is ActivitiesListRequestShowEnumOrigins.VISIBILITY: - return visibility() diff --git a/src/merge/resources/ats/resources/activities/types/activities_retrieve_request_remote_fields.py b/src/merge/resources/ats/resources/activities/types/activities_retrieve_request_remote_fields.py deleted file mode 100644 index 3290370e..00000000 --- a/src/merge/resources/ats/resources/activities/types/activities_retrieve_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ActivitiesRetrieveRequestRemoteFields(str, enum.Enum): - ACTIVITY_TYPE = "activity_type" - ACTIVITY_TYPE_VISIBILITY = "activity_type,visibility" - VISIBILITY = "visibility" - - def visit( - self, - activity_type: typing.Callable[[], T_Result], - activity_type_visibility: typing.Callable[[], T_Result], - visibility: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ActivitiesRetrieveRequestRemoteFields.ACTIVITY_TYPE: - return activity_type() - if self is ActivitiesRetrieveRequestRemoteFields.ACTIVITY_TYPE_VISIBILITY: - return activity_type_visibility() - if self is ActivitiesRetrieveRequestRemoteFields.VISIBILITY: - return visibility() diff --git a/src/merge/resources/ats/resources/activities/types/activities_retrieve_request_show_enum_origins.py b/src/merge/resources/ats/resources/activities/types/activities_retrieve_request_show_enum_origins.py deleted file mode 100644 index 26439eb1..00000000 --- a/src/merge/resources/ats/resources/activities/types/activities_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ActivitiesRetrieveRequestShowEnumOrigins(str, enum.Enum): - ACTIVITY_TYPE = "activity_type" - ACTIVITY_TYPE_VISIBILITY = "activity_type,visibility" - VISIBILITY = "visibility" - - def visit( - self, - activity_type: typing.Callable[[], T_Result], - activity_type_visibility: typing.Callable[[], T_Result], - visibility: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ActivitiesRetrieveRequestShowEnumOrigins.ACTIVITY_TYPE: - return activity_type() - if self is ActivitiesRetrieveRequestShowEnumOrigins.ACTIVITY_TYPE_VISIBILITY: - return activity_type_visibility() - if self is ActivitiesRetrieveRequestShowEnumOrigins.VISIBILITY: - return visibility() diff --git a/src/merge/resources/ats/resources/applications/__init__.py b/src/merge/resources/ats/resources/applications/__init__.py deleted file mode 100644 index 1dddf3ff..00000000 --- a/src/merge/resources/ats/resources/applications/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ApplicationsListRequestExpand, ApplicationsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ApplicationsListRequestExpand": ".types", - "ApplicationsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ApplicationsListRequestExpand", "ApplicationsRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/applications/client.py b/src/merge/resources/ats/resources/applications/client.py deleted file mode 100644 index a9eafd97..00000000 --- a/src/merge/resources/ats/resources/applications/client.py +++ /dev/null @@ -1,825 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.application import Application -from ...types.application_request import ApplicationRequest -from ...types.application_response import ApplicationResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_application_list import PaginatedApplicationList -from .raw_client import AsyncRawApplicationsClient, RawApplicationsClient -from .types.applications_list_request_expand import ApplicationsListRequestExpand -from .types.applications_retrieve_request_expand import ApplicationsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ApplicationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawApplicationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawApplicationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawApplicationsClient - """ - return self._raw_client - - def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - credited_to_id: typing.Optional[str] = None, - current_stage_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ApplicationsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - reject_reason_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - source: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedApplicationList: - """ - Returns a list of `Application` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return applications for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - credited_to_id : typing.Optional[str] - If provided, will only return applications credited to this user. - - current_stage_id : typing.Optional[str] - If provided, will only return applications at this interview stage. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ApplicationsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return applications for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - reject_reason_id : typing.Optional[str] - If provided, will only return applications with this reject reason. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - source : typing.Optional[str] - If provided, will only return applications with this source. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedApplicationList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.applications import ( - ApplicationsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.applications.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - credited_to_id="credited_to_id", - current_stage_id="current_stage_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ApplicationsListRequestExpand.CANDIDATE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - reject_reason_id="reject_reason_id", - remote_id="remote_id", - source="source", - ) - """ - _response = self._raw_client.list( - candidate_id=candidate_id, - created_after=created_after, - created_before=created_before, - credited_to_id=credited_to_id, - current_stage_id=current_stage_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - job_id=job_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - reject_reason_id=reject_reason_id, - remote_id=remote_id, - source=source, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ApplicationRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ApplicationResponse: - """ - Creates an `Application` object with the given values. - For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - - See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. - - Parameters - ---------- - model : ApplicationRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ApplicationResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ats import ApplicationRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.applications.create( - is_debug_mode=True, - run_async=True, - model=ApplicationRequest(), - remote_user_id="remote_user_id", - ) - """ - _response = self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ApplicationsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Application: - """ - Returns an `Application` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ApplicationsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Application - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.applications import ( - ApplicationsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.applications.retrieve( - id="id", - expand=ApplicationsRetrieveRequestExpand.CANDIDATE, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def change_stage_create( - self, - id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - job_interview_stage: typing.Optional[str] = OMIT, - remote_user_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ApplicationResponse: - """ - Updates the `current_stage` field of an `Application` object - - Parameters - ---------- - id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - job_interview_stage : typing.Optional[str] - The interview stage to move the application to. - - remote_user_id : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ApplicationResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.applications.change_stage_create( - id="id", - is_debug_mode=True, - run_async=True, - ) - """ - _response = self._raw_client.change_stage_create( - id, - is_debug_mode=is_debug_mode, - run_async=run_async, - job_interview_stage=job_interview_stage, - remote_user_id=remote_user_id, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve( - self, - *, - application_remote_template_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> MetaResponse: - """ - Returns metadata for `Application` POSTs. - - Parameters - ---------- - application_remote_template_id : typing.Optional[str] - The template ID associated with the nested application in the request. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.applications.meta_post_retrieve( - application_remote_template_id="application_remote_template_id", - ) - """ - _response = self._raw_client.meta_post_retrieve( - application_remote_template_id=application_remote_template_id, request_options=request_options - ) - return _response.data - - -class AsyncApplicationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawApplicationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawApplicationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawApplicationsClient - """ - return self._raw_client - - async def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - credited_to_id: typing.Optional[str] = None, - current_stage_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ApplicationsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - reject_reason_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - source: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedApplicationList: - """ - Returns a list of `Application` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return applications for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - credited_to_id : typing.Optional[str] - If provided, will only return applications credited to this user. - - current_stage_id : typing.Optional[str] - If provided, will only return applications at this interview stage. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ApplicationsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return applications for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - reject_reason_id : typing.Optional[str] - If provided, will only return applications with this reject reason. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - source : typing.Optional[str] - If provided, will only return applications with this source. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedApplicationList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.applications import ( - ApplicationsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.applications.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - credited_to_id="credited_to_id", - current_stage_id="current_stage_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ApplicationsListRequestExpand.CANDIDATE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - reject_reason_id="reject_reason_id", - remote_id="remote_id", - source="source", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - candidate_id=candidate_id, - created_after=created_after, - created_before=created_before, - credited_to_id=credited_to_id, - current_stage_id=current_stage_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - job_id=job_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - reject_reason_id=reject_reason_id, - remote_id=remote_id, - source=source, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ApplicationRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ApplicationResponse: - """ - Creates an `Application` object with the given values. - For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - - See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. - - Parameters - ---------- - model : ApplicationRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ApplicationResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import ApplicationRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.applications.create( - is_debug_mode=True, - run_async=True, - model=ApplicationRequest(), - remote_user_id="remote_user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ApplicationsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Application: - """ - Returns an `Application` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ApplicationsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Application - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.applications import ( - ApplicationsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.applications.retrieve( - id="id", - expand=ApplicationsRetrieveRequestExpand.CANDIDATE, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def change_stage_create( - self, - id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - job_interview_stage: typing.Optional[str] = OMIT, - remote_user_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> ApplicationResponse: - """ - Updates the `current_stage` field of an `Application` object - - Parameters - ---------- - id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - job_interview_stage : typing.Optional[str] - The interview stage to move the application to. - - remote_user_id : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ApplicationResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.applications.change_stage_create( - id="id", - is_debug_mode=True, - run_async=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.change_stage_create( - id, - is_debug_mode=is_debug_mode, - run_async=run_async, - job_interview_stage=job_interview_stage, - remote_user_id=remote_user_id, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve( - self, - *, - application_remote_template_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> MetaResponse: - """ - Returns metadata for `Application` POSTs. - - Parameters - ---------- - application_remote_template_id : typing.Optional[str] - The template ID associated with the nested application in the request. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.applications.meta_post_retrieve( - application_remote_template_id="application_remote_template_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve( - application_remote_template_id=application_remote_template_id, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/ats/resources/applications/raw_client.py b/src/merge/resources/ats/resources/applications/raw_client.py deleted file mode 100644 index a6d3ec0e..00000000 --- a/src/merge/resources/ats/resources/applications/raw_client.py +++ /dev/null @@ -1,759 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.application import Application -from ...types.application_request import ApplicationRequest -from ...types.application_response import ApplicationResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_application_list import PaginatedApplicationList -from .types.applications_list_request_expand import ApplicationsListRequestExpand -from .types.applications_retrieve_request_expand import ApplicationsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawApplicationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - credited_to_id: typing.Optional[str] = None, - current_stage_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ApplicationsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - reject_reason_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - source: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedApplicationList]: - """ - Returns a list of `Application` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return applications for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - credited_to_id : typing.Optional[str] - If provided, will only return applications credited to this user. - - current_stage_id : typing.Optional[str] - If provided, will only return applications at this interview stage. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ApplicationsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return applications for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - reject_reason_id : typing.Optional[str] - If provided, will only return applications with this reject reason. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - source : typing.Optional[str] - If provided, will only return applications with this source. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedApplicationList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/applications", - method="GET", - params={ - "candidate_id": candidate_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "credited_to_id": credited_to_id, - "current_stage_id": current_stage_id, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "job_id": job_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "reject_reason_id": reject_reason_id, - "remote_id": remote_id, - "source": source, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedApplicationList, - construct_type( - type_=PaginatedApplicationList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ApplicationRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ApplicationResponse]: - """ - Creates an `Application` object with the given values. - For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - - See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. - - Parameters - ---------- - model : ApplicationRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ApplicationResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/applications", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ApplicationResponse, - construct_type( - type_=ApplicationResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ApplicationsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Application]: - """ - Returns an `Application` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ApplicationsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Application] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/applications/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Application, - construct_type( - type_=Application, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def change_stage_create( - self, - id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - job_interview_stage: typing.Optional[str] = OMIT, - remote_user_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ApplicationResponse]: - """ - Updates the `current_stage` field of an `Application` object - - Parameters - ---------- - id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - job_interview_stage : typing.Optional[str] - The interview stage to move the application to. - - remote_user_id : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ApplicationResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/applications/{jsonable_encoder(id)}/change-stage", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "job_interview_stage": job_interview_stage, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ApplicationResponse, - construct_type( - type_=ApplicationResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, - *, - application_remote_template_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Application` POSTs. - - Parameters - ---------- - application_remote_template_id : typing.Optional[str] - The template ID associated with the nested application in the request. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/applications/meta/post", - method="GET", - params={ - "application_remote_template_id": application_remote_template_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawApplicationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - credited_to_id: typing.Optional[str] = None, - current_stage_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ApplicationsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - reject_reason_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - source: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedApplicationList]: - """ - Returns a list of `Application` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return applications for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - credited_to_id : typing.Optional[str] - If provided, will only return applications credited to this user. - - current_stage_id : typing.Optional[str] - If provided, will only return applications at this interview stage. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ApplicationsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return applications for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - reject_reason_id : typing.Optional[str] - If provided, will only return applications with this reject reason. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - source : typing.Optional[str] - If provided, will only return applications with this source. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedApplicationList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/applications", - method="GET", - params={ - "candidate_id": candidate_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "credited_to_id": credited_to_id, - "current_stage_id": current_stage_id, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "job_id": job_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "reject_reason_id": reject_reason_id, - "remote_id": remote_id, - "source": source, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedApplicationList, - construct_type( - type_=PaginatedApplicationList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ApplicationRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ApplicationResponse]: - """ - Creates an `Application` object with the given values. - For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - - See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. - - Parameters - ---------- - model : ApplicationRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ApplicationResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/applications", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ApplicationResponse, - construct_type( - type_=ApplicationResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ApplicationsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Application]: - """ - Returns an `Application` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ApplicationsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Application] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/applications/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Application, - construct_type( - type_=Application, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def change_stage_create( - self, - id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - job_interview_stage: typing.Optional[str] = OMIT, - remote_user_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ApplicationResponse]: - """ - Updates the `current_stage` field of an `Application` object - - Parameters - ---------- - id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - job_interview_stage : typing.Optional[str] - The interview stage to move the application to. - - remote_user_id : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ApplicationResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/applications/{jsonable_encoder(id)}/change-stage", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "job_interview_stage": job_interview_stage, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ApplicationResponse, - construct_type( - type_=ApplicationResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, - *, - application_remote_template_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Application` POSTs. - - Parameters - ---------- - application_remote_template_id : typing.Optional[str] - The template ID associated with the nested application in the request. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/applications/meta/post", - method="GET", - params={ - "application_remote_template_id": application_remote_template_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/applications/types/__init__.py b/src/merge/resources/ats/resources/applications/types/__init__.py deleted file mode 100644 index 7a14f0e3..00000000 --- a/src/merge/resources/ats/resources/applications/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .applications_list_request_expand import ApplicationsListRequestExpand - from .applications_retrieve_request_expand import ApplicationsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ApplicationsListRequestExpand": ".applications_list_request_expand", - "ApplicationsRetrieveRequestExpand": ".applications_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ApplicationsListRequestExpand", "ApplicationsRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/applications/types/applications_list_request_expand.py b/src/merge/resources/ats/resources/applications/types/applications_list_request_expand.py deleted file mode 100644 index bdef9e51..00000000 --- a/src/merge/resources/ats/resources/applications/types/applications_list_request_expand.py +++ /dev/null @@ -1,1737 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ApplicationsListRequestExpand(str, enum.Enum): - CANDIDATE = "candidate" - CANDIDATE_CREDITED_TO = "candidate,credited_to" - CANDIDATE_CREDITED_TO_CURRENT_STAGE = "candidate,credited_to,current_stage" - CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "candidate,credited_to,current_stage,reject_reason" - CANDIDATE_CREDITED_TO_REJECT_REASON = "candidate,credited_to,reject_reason" - CANDIDATE_CURRENT_STAGE = "candidate,current_stage" - CANDIDATE_CURRENT_STAGE_REJECT_REASON = "candidate,current_stage,reject_reason" - CANDIDATE_JOB = "candidate,job" - CANDIDATE_JOB_CREDITED_TO = "candidate,job,credited_to" - CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = "candidate,job,credited_to,current_stage" - CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "candidate,job,credited_to,current_stage,reject_reason" - CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = "candidate,job,credited_to,reject_reason" - CANDIDATE_JOB_CURRENT_STAGE = "candidate,job,current_stage" - CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = "candidate,job,current_stage,reject_reason" - CANDIDATE_JOB_REJECT_REASON = "candidate,job,reject_reason" - CANDIDATE_REJECT_REASON = "candidate,reject_reason" - CREDITED_TO = "credited_to" - CREDITED_TO_CURRENT_STAGE = "credited_to,current_stage" - CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "credited_to,current_stage,reject_reason" - CREDITED_TO_REJECT_REASON = "credited_to,reject_reason" - CURRENT_STAGE = "current_stage" - CURRENT_STAGE_REJECT_REASON = "current_stage,reject_reason" - JOB = "job" - JOB_CREDITED_TO = "job,credited_to" - JOB_CREDITED_TO_CURRENT_STAGE = "job,credited_to,current_stage" - JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "job,credited_to,current_stage,reject_reason" - JOB_CREDITED_TO_REJECT_REASON = "job,credited_to,reject_reason" - JOB_CURRENT_STAGE = "job,current_stage" - JOB_CURRENT_STAGE_REJECT_REASON = "job,current_stage,reject_reason" - JOB_REJECT_REASON = "job,reject_reason" - OFFERS = "offers" - OFFERS_CANDIDATE = "offers,candidate" - OFFERS_CANDIDATE_CREDITED_TO = "offers,candidate,credited_to" - OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE = "offers,candidate,credited_to,current_stage" - OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,candidate,credited_to,current_stage,reject_reason" - ) - OFFERS_CANDIDATE_CREDITED_TO_REJECT_REASON = "offers,candidate,credited_to,reject_reason" - OFFERS_CANDIDATE_CURRENT_STAGE = "offers,candidate,current_stage" - OFFERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON = "offers,candidate,current_stage,reject_reason" - OFFERS_CANDIDATE_JOB = "offers,candidate,job" - OFFERS_CANDIDATE_JOB_CREDITED_TO = "offers,candidate,job,credited_to" - OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = "offers,candidate,job,credited_to,current_stage" - OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,candidate,job,credited_to,current_stage,reject_reason" - ) - OFFERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = "offers,candidate,job,credited_to,reject_reason" - OFFERS_CANDIDATE_JOB_CURRENT_STAGE = "offers,candidate,job,current_stage" - OFFERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = "offers,candidate,job,current_stage,reject_reason" - OFFERS_CANDIDATE_JOB_REJECT_REASON = "offers,candidate,job,reject_reason" - OFFERS_CANDIDATE_REJECT_REASON = "offers,candidate,reject_reason" - OFFERS_CREDITED_TO = "offers,credited_to" - OFFERS_CREDITED_TO_CURRENT_STAGE = "offers,credited_to,current_stage" - OFFERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,credited_to,current_stage,reject_reason" - OFFERS_CREDITED_TO_REJECT_REASON = "offers,credited_to,reject_reason" - OFFERS_CURRENT_STAGE = "offers,current_stage" - OFFERS_CURRENT_STAGE_REJECT_REASON = "offers,current_stage,reject_reason" - OFFERS_JOB = "offers,job" - OFFERS_JOB_CREDITED_TO = "offers,job,credited_to" - OFFERS_JOB_CREDITED_TO_CURRENT_STAGE = "offers,job,credited_to,current_stage" - OFFERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,job,credited_to,current_stage,reject_reason" - OFFERS_JOB_CREDITED_TO_REJECT_REASON = "offers,job,credited_to,reject_reason" - OFFERS_JOB_CURRENT_STAGE = "offers,job,current_stage" - OFFERS_JOB_CURRENT_STAGE_REJECT_REASON = "offers,job,current_stage,reject_reason" - OFFERS_JOB_REJECT_REASON = "offers,job,reject_reason" - OFFERS_REJECT_REASON = "offers,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS = "offers,screening_question_answers" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE = "offers,screening_question_answers,candidate" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO = "offers,screening_question_answers,candidate,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,candidate,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB = "offers,screening_question_answers,candidate,job" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO = ( - "offers,screening_question_answers,candidate,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO = "offers,screening_question_answers,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE = "offers,screening_question_answers,current_stage" - OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB = "offers,screening_question_answers,job" - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO = "offers,screening_question_answers,job,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE = "offers,screening_question_answers,job,current_stage" - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON = "offers,screening_question_answers,job,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_REJECT_REASON = "offers,screening_question_answers,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION = ( - "offers,screening_question_answers,screening_question_answers.question" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB = ( - "offers,screening_question_answers,screening_question_answers.question,job" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION = "offers,screening_question_answers.question" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = "offers,screening_question_answers.question,candidate" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "offers,screening_question_answers.question,candidate,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = ( - "offers,screening_question_answers.question,candidate,job" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "offers,screening_question_answers.question,candidate,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = "offers,screening_question_answers.question,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = ( - "offers,screening_question_answers.question,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB = "offers,screening_question_answers.question,job" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = ( - "offers,screening_question_answers.question,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers.question,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = ( - "offers,screening_question_answers.question,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = ( - "offers,screening_question_answers.question,reject_reason" - ) - REJECT_REASON = "reject_reason" - SCREENING_QUESTION_ANSWERS = "screening_question_answers" - SCREENING_QUESTION_ANSWERS_CANDIDATE = "screening_question_answers,candidate" - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO = "screening_question_answers,candidate,credited_to" - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,candidate,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,candidate,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE = "screening_question_answers,candidate,current_stage" - SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB = "screening_question_answers,candidate,job" - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO = "screening_question_answers,candidate,job,credited_to" - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,candidate,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,candidate,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE = "screening_question_answers,candidate,job,current_stage" - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON = "screening_question_answers,candidate,job,reject_reason" - SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON = "screening_question_answers,candidate,reject_reason" - SCREENING_QUESTION_ANSWERS_CREDITED_TO = "screening_question_answers,credited_to" - SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE = "screening_question_answers,credited_to,current_stage" - SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON = "screening_question_answers,credited_to,reject_reason" - SCREENING_QUESTION_ANSWERS_CURRENT_STAGE = "screening_question_answers,current_stage" - SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON = "screening_question_answers,current_stage,reject_reason" - SCREENING_QUESTION_ANSWERS_JOB = "screening_question_answers,job" - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO = "screening_question_answers,job,credited_to" - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE = "screening_question_answers,job,current_stage" - SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON = "screening_question_answers,job,reject_reason" - SCREENING_QUESTION_ANSWERS_REJECT_REASON = "screening_question_answers,reject_reason" - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION = ( - "screening_question_answers,screening_question_answers.question" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = ( - "screening_question_answers,screening_question_answers.question,candidate" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,candidate,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = ( - "screening_question_answers,screening_question_answers.question,candidate,job" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB = ( - "screening_question_answers,screening_question_answers.question,job" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,job,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,job,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION = "screening_question_answers.question" - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = "screening_question_answers.question,candidate" - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "screening_question_answers.question,candidate,credited_to" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,candidate,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = "screening_question_answers.question,candidate,job" - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "screening_question_answers.question,candidate,job,credited_to" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,job,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "screening_question_answers.question,candidate,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = "screening_question_answers.question,credited_to" - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = "screening_question_answers.question,current_stage" - SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB = "screening_question_answers.question,job" - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = "screening_question_answers.question,job,credited_to" - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = "screening_question_answers.question,job,current_stage" - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = "screening_question_answers.question,job,reject_reason" - SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = "screening_question_answers.question,reject_reason" - - def visit( - self, - candidate: typing.Callable[[], T_Result], - candidate_credited_to: typing.Callable[[], T_Result], - candidate_credited_to_current_stage: typing.Callable[[], T_Result], - candidate_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - candidate_current_stage: typing.Callable[[], T_Result], - candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_job: typing.Callable[[], T_Result], - candidate_job_credited_to: typing.Callable[[], T_Result], - candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - candidate_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - candidate_job_current_stage: typing.Callable[[], T_Result], - candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_job_reject_reason: typing.Callable[[], T_Result], - candidate_reject_reason: typing.Callable[[], T_Result], - credited_to: typing.Callable[[], T_Result], - credited_to_current_stage: typing.Callable[[], T_Result], - credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - credited_to_reject_reason: typing.Callable[[], T_Result], - current_stage: typing.Callable[[], T_Result], - current_stage_reject_reason: typing.Callable[[], T_Result], - job: typing.Callable[[], T_Result], - job_credited_to: typing.Callable[[], T_Result], - job_credited_to_current_stage: typing.Callable[[], T_Result], - job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - job_credited_to_reject_reason: typing.Callable[[], T_Result], - job_current_stage: typing.Callable[[], T_Result], - job_current_stage_reject_reason: typing.Callable[[], T_Result], - job_reject_reason: typing.Callable[[], T_Result], - offers: typing.Callable[[], T_Result], - offers_candidate: typing.Callable[[], T_Result], - offers_candidate_credited_to: typing.Callable[[], T_Result], - offers_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - offers_candidate_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_candidate_current_stage: typing.Callable[[], T_Result], - offers_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job: typing.Callable[[], T_Result], - offers_candidate_job_credited_to: typing.Callable[[], T_Result], - offers_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job_current_stage: typing.Callable[[], T_Result], - offers_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job_reject_reason: typing.Callable[[], T_Result], - offers_candidate_reject_reason: typing.Callable[[], T_Result], - offers_credited_to: typing.Callable[[], T_Result], - offers_credited_to_current_stage: typing.Callable[[], T_Result], - offers_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_current_stage: typing.Callable[[], T_Result], - offers_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_job: typing.Callable[[], T_Result], - offers_job_credited_to: typing.Callable[[], T_Result], - offers_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_job_current_stage: typing.Callable[[], T_Result], - offers_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_job_reject_reason: typing.Callable[[], T_Result], - offers_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question_candidate: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question_job_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_reject_reason: typing.Callable[[], T_Result], - reject_reason: typing.Callable[[], T_Result], - screening_question_answers: typing.Callable[[], T_Result], - screening_question_answers_candidate: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_credited_to: typing.Callable[[], T_Result], - screening_question_answers_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_current_stage: typing.Callable[[], T_Result], - screening_question_answers_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_candidate: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_candidate_credited_to: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_credited_to: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_current_stage: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question: typing.Callable[[], T_Result], - screening_question_answers_question_candidate: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_reject_reason: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ApplicationsListRequestExpand.CANDIDATE: - return candidate() - if self is ApplicationsListRequestExpand.CANDIDATE_CREDITED_TO: - return candidate_credited_to() - if self is ApplicationsListRequestExpand.CANDIDATE_CREDITED_TO_CURRENT_STAGE: - return candidate_credited_to_current_stage() - if self is ApplicationsListRequestExpand.CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return candidate_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.CANDIDATE_CREDITED_TO_REJECT_REASON: - return candidate_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.CANDIDATE_CURRENT_STAGE: - return candidate_current_stage() - if self is ApplicationsListRequestExpand.CANDIDATE_CURRENT_STAGE_REJECT_REASON: - return candidate_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB: - return candidate_job() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB_CREDITED_TO: - return candidate_job_credited_to() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE: - return candidate_job_credited_to_current_stage() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return candidate_job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB_CREDITED_TO_REJECT_REASON: - return candidate_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB_CURRENT_STAGE: - return candidate_job_current_stage() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON: - return candidate_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.CANDIDATE_JOB_REJECT_REASON: - return candidate_job_reject_reason() - if self is ApplicationsListRequestExpand.CANDIDATE_REJECT_REASON: - return candidate_reject_reason() - if self is ApplicationsListRequestExpand.CREDITED_TO: - return credited_to() - if self is ApplicationsListRequestExpand.CREDITED_TO_CURRENT_STAGE: - return credited_to_current_stage() - if self is ApplicationsListRequestExpand.CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.CREDITED_TO_REJECT_REASON: - return credited_to_reject_reason() - if self is ApplicationsListRequestExpand.CURRENT_STAGE: - return current_stage() - if self is ApplicationsListRequestExpand.CURRENT_STAGE_REJECT_REASON: - return current_stage_reject_reason() - if self is ApplicationsListRequestExpand.JOB: - return job() - if self is ApplicationsListRequestExpand.JOB_CREDITED_TO: - return job_credited_to() - if self is ApplicationsListRequestExpand.JOB_CREDITED_TO_CURRENT_STAGE: - return job_credited_to_current_stage() - if self is ApplicationsListRequestExpand.JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.JOB_CREDITED_TO_REJECT_REASON: - return job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.JOB_CURRENT_STAGE: - return job_current_stage() - if self is ApplicationsListRequestExpand.JOB_CURRENT_STAGE_REJECT_REASON: - return job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.JOB_REJECT_REASON: - return job_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS: - return offers() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE: - return offers_candidate() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_CREDITED_TO: - return offers_candidate_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE: - return offers_candidate_credited_to_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_CREDITED_TO_REJECT_REASON: - return offers_candidate_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_CURRENT_STAGE: - return offers_candidate_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB: - return offers_candidate_job() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO: - return offers_candidate_job_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE: - return offers_candidate_job_credited_to_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON: - return offers_candidate_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB_CURRENT_STAGE: - return offers_candidate_job_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_JOB_REJECT_REASON: - return offers_candidate_job_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CANDIDATE_REJECT_REASON: - return offers_candidate_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CREDITED_TO: - return offers_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_CREDITED_TO_CURRENT_STAGE: - return offers_credited_to_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CREDITED_TO_REJECT_REASON: - return offers_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_CURRENT_STAGE: - return offers_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_CURRENT_STAGE_REJECT_REASON: - return offers_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_JOB: - return offers_job() - if self is ApplicationsListRequestExpand.OFFERS_JOB_CREDITED_TO: - return offers_job_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_JOB_CREDITED_TO_CURRENT_STAGE: - return offers_job_credited_to_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_JOB_CREDITED_TO_REJECT_REASON: - return offers_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_JOB_CURRENT_STAGE: - return offers_job_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_JOB_CURRENT_STAGE_REJECT_REASON: - return offers_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_JOB_REJECT_REASON: - return offers_job_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_REJECT_REASON: - return offers_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS: - return offers_screening_question_answers() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE: - return offers_screening_question_answers_candidate() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO: - return offers_screening_question_answers_candidate_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE: - return offers_screening_question_answers_candidate_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON: - return offers_screening_question_answers_candidate_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE: - return offers_screening_question_answers_candidate_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB: - return offers_screening_question_answers_candidate_job() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO: - return offers_screening_question_answers_candidate_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_candidate_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE: - return offers_screening_question_answers_candidate_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON: - return offers_screening_question_answers_candidate_job_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON: - return offers_screening_question_answers_candidate_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO: - return offers_screening_question_answers_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE: - return offers_screening_question_answers_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON: - return offers_screening_question_answers_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE: - return offers_screening_question_answers_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON: - return offers_screening_question_answers_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB: - return offers_screening_question_answers_job() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO: - return offers_screening_question_answers_job_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE: - return offers_screening_question_answers_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON: - return offers_screening_question_answers_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE: - return offers_screening_question_answers_job_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON: - return offers_screening_question_answers_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON: - return offers_screening_question_answers_job_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_REJECT_REASON: - return offers_screening_question_answers_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION: - return offers_screening_question_answers_screening_question_answers_question() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB - ): - return offers_screening_question_answers_screening_question_answers_question_job() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON - ): - return ( - offers_screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason() - ) - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_job_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION: - return offers_screening_question_answers_question() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE: - return offers_screening_question_answers_question_candidate() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO: - return offers_screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE: - return offers_screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB: - return offers_screening_question_answers_question_candidate_job() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO: - return offers_screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_question_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE: - return offers_screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON: - return offers_screening_question_answers_question_candidate_job_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON: - return offers_screening_question_answers_question_candidate_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO: - return offers_screening_question_answers_question_credited_to() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE: - return offers_screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON: - return offers_screening_question_answers_question_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE: - return offers_screening_question_answers_question_current_stage() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON: - return offers_screening_question_answers_question_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB: - return offers_screening_question_answers_question_job() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO: - return offers_screening_question_answers_question_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_question_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE: - return offers_screening_question_answers_question_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON: - return offers_screening_question_answers_question_job_reject_reason() - if self is ApplicationsListRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON: - return offers_screening_question_answers_question_reject_reason() - if self is ApplicationsListRequestExpand.REJECT_REASON: - return reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS: - return screening_question_answers() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE: - return screening_question_answers_candidate() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO: - return screening_question_answers_candidate_credited_to() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_candidate_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_candidate_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON: - return screening_question_answers_candidate_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE: - return screening_question_answers_candidate_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_candidate_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB: - return screening_question_answers_candidate_job() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO: - return screening_question_answers_candidate_job_credited_to() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_candidate_job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON: - return screening_question_answers_candidate_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE: - return screening_question_answers_candidate_job_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_candidate_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON: - return screening_question_answers_candidate_job_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON: - return screening_question_answers_candidate_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO: - return screening_question_answers_credited_to() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_credited_to_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON: - return screening_question_answers_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CURRENT_STAGE: - return screening_question_answers_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB: - return screening_question_answers_job() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO: - return screening_question_answers_job_credited_to() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_job_credited_to_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON: - return screening_question_answers_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE: - return screening_question_answers_job_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON: - return screening_question_answers_job_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_REJECT_REASON: - return screening_question_answers_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION: - return screening_question_answers_screening_question_answers_question() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE - ): - return screening_question_answers_screening_question_answers_question_candidate() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return ( - screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason() - ) - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB - ): - return screening_question_answers_screening_question_answers_question_candidate_job() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return ( - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage() - ) - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return ( - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason() - ) - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_job_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_credited_to() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return ( - screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason() - ) - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_credited_to_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB: - return screening_question_answers_screening_question_answers_question_job() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION: - return screening_question_answers_question() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE: - return screening_question_answers_question_candidate() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO: - return screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_question_candidate_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE: - return screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB: - return screening_question_answers_question_candidate_job() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO: - return screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_question_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_question_candidate_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE: - return screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON: - return screening_question_answers_question_candidate_job_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON: - return screening_question_answers_question_candidate_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO: - return screening_question_answers_question_credited_to() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON: - return screening_question_answers_question_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE: - return screening_question_answers_question_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_question_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB: - return screening_question_answers_question_job() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO: - return screening_question_answers_question_job_credited_to() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON: - return screening_question_answers_question_job_credited_to_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE: - return screening_question_answers_question_job_current_stage() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_question_job_current_stage_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON: - return screening_question_answers_question_job_reject_reason() - if self is ApplicationsListRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON: - return screening_question_answers_question_reject_reason() diff --git a/src/merge/resources/ats/resources/applications/types/applications_retrieve_request_expand.py b/src/merge/resources/ats/resources/applications/types/applications_retrieve_request_expand.py deleted file mode 100644 index c0c519ed..00000000 --- a/src/merge/resources/ats/resources/applications/types/applications_retrieve_request_expand.py +++ /dev/null @@ -1,1773 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ApplicationsRetrieveRequestExpand(str, enum.Enum): - CANDIDATE = "candidate" - CANDIDATE_CREDITED_TO = "candidate,credited_to" - CANDIDATE_CREDITED_TO_CURRENT_STAGE = "candidate,credited_to,current_stage" - CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "candidate,credited_to,current_stage,reject_reason" - CANDIDATE_CREDITED_TO_REJECT_REASON = "candidate,credited_to,reject_reason" - CANDIDATE_CURRENT_STAGE = "candidate,current_stage" - CANDIDATE_CURRENT_STAGE_REJECT_REASON = "candidate,current_stage,reject_reason" - CANDIDATE_JOB = "candidate,job" - CANDIDATE_JOB_CREDITED_TO = "candidate,job,credited_to" - CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = "candidate,job,credited_to,current_stage" - CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "candidate,job,credited_to,current_stage,reject_reason" - CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = "candidate,job,credited_to,reject_reason" - CANDIDATE_JOB_CURRENT_STAGE = "candidate,job,current_stage" - CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = "candidate,job,current_stage,reject_reason" - CANDIDATE_JOB_REJECT_REASON = "candidate,job,reject_reason" - CANDIDATE_REJECT_REASON = "candidate,reject_reason" - CREDITED_TO = "credited_to" - CREDITED_TO_CURRENT_STAGE = "credited_to,current_stage" - CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "credited_to,current_stage,reject_reason" - CREDITED_TO_REJECT_REASON = "credited_to,reject_reason" - CURRENT_STAGE = "current_stage" - CURRENT_STAGE_REJECT_REASON = "current_stage,reject_reason" - JOB = "job" - JOB_CREDITED_TO = "job,credited_to" - JOB_CREDITED_TO_CURRENT_STAGE = "job,credited_to,current_stage" - JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "job,credited_to,current_stage,reject_reason" - JOB_CREDITED_TO_REJECT_REASON = "job,credited_to,reject_reason" - JOB_CURRENT_STAGE = "job,current_stage" - JOB_CURRENT_STAGE_REJECT_REASON = "job,current_stage,reject_reason" - JOB_REJECT_REASON = "job,reject_reason" - OFFERS = "offers" - OFFERS_CANDIDATE = "offers,candidate" - OFFERS_CANDIDATE_CREDITED_TO = "offers,candidate,credited_to" - OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE = "offers,candidate,credited_to,current_stage" - OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,candidate,credited_to,current_stage,reject_reason" - ) - OFFERS_CANDIDATE_CREDITED_TO_REJECT_REASON = "offers,candidate,credited_to,reject_reason" - OFFERS_CANDIDATE_CURRENT_STAGE = "offers,candidate,current_stage" - OFFERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON = "offers,candidate,current_stage,reject_reason" - OFFERS_CANDIDATE_JOB = "offers,candidate,job" - OFFERS_CANDIDATE_JOB_CREDITED_TO = "offers,candidate,job,credited_to" - OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = "offers,candidate,job,credited_to,current_stage" - OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,candidate,job,credited_to,current_stage,reject_reason" - ) - OFFERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = "offers,candidate,job,credited_to,reject_reason" - OFFERS_CANDIDATE_JOB_CURRENT_STAGE = "offers,candidate,job,current_stage" - OFFERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = "offers,candidate,job,current_stage,reject_reason" - OFFERS_CANDIDATE_JOB_REJECT_REASON = "offers,candidate,job,reject_reason" - OFFERS_CANDIDATE_REJECT_REASON = "offers,candidate,reject_reason" - OFFERS_CREDITED_TO = "offers,credited_to" - OFFERS_CREDITED_TO_CURRENT_STAGE = "offers,credited_to,current_stage" - OFFERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,credited_to,current_stage,reject_reason" - OFFERS_CREDITED_TO_REJECT_REASON = "offers,credited_to,reject_reason" - OFFERS_CURRENT_STAGE = "offers,current_stage" - OFFERS_CURRENT_STAGE_REJECT_REASON = "offers,current_stage,reject_reason" - OFFERS_JOB = "offers,job" - OFFERS_JOB_CREDITED_TO = "offers,job,credited_to" - OFFERS_JOB_CREDITED_TO_CURRENT_STAGE = "offers,job,credited_to,current_stage" - OFFERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,job,credited_to,current_stage,reject_reason" - OFFERS_JOB_CREDITED_TO_REJECT_REASON = "offers,job,credited_to,reject_reason" - OFFERS_JOB_CURRENT_STAGE = "offers,job,current_stage" - OFFERS_JOB_CURRENT_STAGE_REJECT_REASON = "offers,job,current_stage,reject_reason" - OFFERS_JOB_REJECT_REASON = "offers,job,reject_reason" - OFFERS_REJECT_REASON = "offers,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS = "offers,screening_question_answers" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE = "offers,screening_question_answers,candidate" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO = "offers,screening_question_answers,candidate,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,candidate,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB = "offers,screening_question_answers,candidate,job" - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO = ( - "offers,screening_question_answers,candidate,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers,candidate,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON = ( - "offers,screening_question_answers,candidate,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON = ( - "offers,screening_question_answers,candidate,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO = "offers,screening_question_answers,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE = "offers,screening_question_answers,current_stage" - OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB = "offers,screening_question_answers,job" - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO = "offers,screening_question_answers,job,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE = "offers,screening_question_answers,job,current_stage" - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON = "offers,screening_question_answers,job,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_REJECT_REASON = "offers,screening_question_answers,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION = ( - "offers,screening_question_answers,screening_question_answers.question" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB = ( - "offers,screening_question_answers,screening_question_answers.question,job" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = ( - "offers,screening_question_answers,screening_question_answers.question,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers,screening_question_answers.question,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = ( - "offers,screening_question_answers,screening_question_answers.question,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION = "offers,screening_question_answers.question" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = "offers,screening_question_answers.question,candidate" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "offers,screening_question_answers.question,candidate,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = ( - "offers,screening_question_answers.question,candidate,job" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "offers,screening_question_answers.question,candidate,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers.question,candidate,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "offers,screening_question_answers.question,candidate,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = "offers,screening_question_answers.question,credited_to" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = ( - "offers,screening_question_answers.question,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB = "offers,screening_question_answers.question,job" - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = ( - "offers,screening_question_answers.question,job,credited_to" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "offers,screening_question_answers.question,job,credited_to,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "offers,screening_question_answers.question,job,credited_to,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = ( - "offers,screening_question_answers.question,job,current_stage" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "offers,screening_question_answers.question,job,current_stage,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = ( - "offers,screening_question_answers.question,job,reject_reason" - ) - OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = ( - "offers,screening_question_answers.question,reject_reason" - ) - REJECT_REASON = "reject_reason" - SCREENING_QUESTION_ANSWERS = "screening_question_answers" - SCREENING_QUESTION_ANSWERS_CANDIDATE = "screening_question_answers,candidate" - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO = "screening_question_answers,candidate,credited_to" - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,candidate,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,candidate,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE = "screening_question_answers,candidate,current_stage" - SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB = "screening_question_answers,candidate,job" - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO = "screening_question_answers,candidate,job,credited_to" - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,candidate,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,candidate,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE = "screening_question_answers,candidate,job,current_stage" - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,candidate,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON = "screening_question_answers,candidate,job,reject_reason" - SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON = "screening_question_answers,candidate,reject_reason" - SCREENING_QUESTION_ANSWERS_CREDITED_TO = "screening_question_answers,credited_to" - SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE = "screening_question_answers,credited_to,current_stage" - SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON = "screening_question_answers,credited_to,reject_reason" - SCREENING_QUESTION_ANSWERS_CURRENT_STAGE = "screening_question_answers,current_stage" - SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON = "screening_question_answers,current_stage,reject_reason" - SCREENING_QUESTION_ANSWERS_JOB = "screening_question_answers,job" - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO = "screening_question_answers,job,credited_to" - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE = "screening_question_answers,job,current_stage" - SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON = "screening_question_answers,job,reject_reason" - SCREENING_QUESTION_ANSWERS_REJECT_REASON = "screening_question_answers,reject_reason" - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION = ( - "screening_question_answers,screening_question_answers.question" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = ( - "screening_question_answers,screening_question_answers.question,candidate" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,candidate,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = ( - "screening_question_answers,screening_question_answers.question,candidate,job" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,candidate,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB = ( - "screening_question_answers,screening_question_answers.question,job" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = ( - "screening_question_answers,screening_question_answers.question,job,credited_to" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = ( - "screening_question_answers,screening_question_answers.question,job,current_stage" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,job,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = ( - "screening_question_answers,screening_question_answers.question,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION = "screening_question_answers.question" - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE = "screening_question_answers.question,candidate" - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO = ( - "screening_question_answers.question,candidate,credited_to" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,candidate,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB = "screening_question_answers.question,candidate,job" - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO = ( - "screening_question_answers.question,candidate,job,credited_to" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE = ( - "screening_question_answers.question,candidate,job,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON = ( - "screening_question_answers.question,candidate,job,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON = ( - "screening_question_answers.question,candidate,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO = "screening_question_answers.question,credited_to" - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE = "screening_question_answers.question,current_stage" - SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB = "screening_question_answers.question,job" - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO = "screening_question_answers.question,job,credited_to" - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE = ( - "screening_question_answers.question,job,credited_to,current_stage" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,job,credited_to,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON = ( - "screening_question_answers.question,job,credited_to,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE = "screening_question_answers.question,job,current_stage" - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON = ( - "screening_question_answers.question,job,current_stage,reject_reason" - ) - SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON = "screening_question_answers.question,job,reject_reason" - SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON = "screening_question_answers.question,reject_reason" - - def visit( - self, - candidate: typing.Callable[[], T_Result], - candidate_credited_to: typing.Callable[[], T_Result], - candidate_credited_to_current_stage: typing.Callable[[], T_Result], - candidate_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - candidate_current_stage: typing.Callable[[], T_Result], - candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_job: typing.Callable[[], T_Result], - candidate_job_credited_to: typing.Callable[[], T_Result], - candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - candidate_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - candidate_job_current_stage: typing.Callable[[], T_Result], - candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - candidate_job_reject_reason: typing.Callable[[], T_Result], - candidate_reject_reason: typing.Callable[[], T_Result], - credited_to: typing.Callable[[], T_Result], - credited_to_current_stage: typing.Callable[[], T_Result], - credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - credited_to_reject_reason: typing.Callable[[], T_Result], - current_stage: typing.Callable[[], T_Result], - current_stage_reject_reason: typing.Callable[[], T_Result], - job: typing.Callable[[], T_Result], - job_credited_to: typing.Callable[[], T_Result], - job_credited_to_current_stage: typing.Callable[[], T_Result], - job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - job_credited_to_reject_reason: typing.Callable[[], T_Result], - job_current_stage: typing.Callable[[], T_Result], - job_current_stage_reject_reason: typing.Callable[[], T_Result], - job_reject_reason: typing.Callable[[], T_Result], - offers: typing.Callable[[], T_Result], - offers_candidate: typing.Callable[[], T_Result], - offers_candidate_credited_to: typing.Callable[[], T_Result], - offers_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - offers_candidate_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_candidate_current_stage: typing.Callable[[], T_Result], - offers_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job: typing.Callable[[], T_Result], - offers_candidate_job_credited_to: typing.Callable[[], T_Result], - offers_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job_current_stage: typing.Callable[[], T_Result], - offers_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_candidate_job_reject_reason: typing.Callable[[], T_Result], - offers_candidate_reject_reason: typing.Callable[[], T_Result], - offers_credited_to: typing.Callable[[], T_Result], - offers_credited_to_current_stage: typing.Callable[[], T_Result], - offers_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_current_stage: typing.Callable[[], T_Result], - offers_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_job: typing.Callable[[], T_Result], - offers_job_credited_to: typing.Callable[[], T_Result], - offers_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_job_current_stage: typing.Callable[[], T_Result], - offers_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_job_reject_reason: typing.Callable[[], T_Result], - offers_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_candidate_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question_candidate: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_job_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_candidate_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job: typing.Callable[[], T_Result], - offers_screening_question_answers_screening_question_answers_question_job_credited_to: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_job_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_screening_question_answers_question_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_candidate_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_candidate_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_credited_to: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_credited_to_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - offers_screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_current_stage: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_job_reject_reason: typing.Callable[[], T_Result], - offers_screening_question_answers_question_reject_reason: typing.Callable[[], T_Result], - reject_reason: typing.Callable[[], T_Result], - screening_question_answers: typing.Callable[[], T_Result], - screening_question_answers_candidate: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_candidate_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_credited_to: typing.Callable[[], T_Result], - screening_question_answers_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_current_stage: typing.Callable[[], T_Result], - screening_question_answers_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_candidate: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_candidate_credited_to: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_job_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_candidate_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_credited_to: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_current_stage: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_job_credited_to_current_stage: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_screening_question_answers_question_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_screening_question_answers_question_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question: typing.Callable[[], T_Result], - screening_question_answers_question_candidate: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_question_candidate_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason: typing.Callable[ - [], T_Result - ], - screening_question_answers_question_candidate_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_candidate_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job_credited_to_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job_current_stage: typing.Callable[[], T_Result], - screening_question_answers_question_job_current_stage_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_job_reject_reason: typing.Callable[[], T_Result], - screening_question_answers_question_reject_reason: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ApplicationsRetrieveRequestExpand.CANDIDATE: - return candidate() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_CREDITED_TO: - return candidate_credited_to() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_CREDITED_TO_CURRENT_STAGE: - return candidate_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return candidate_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_CREDITED_TO_REJECT_REASON: - return candidate_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_CURRENT_STAGE: - return candidate_current_stage() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_CURRENT_STAGE_REJECT_REASON: - return candidate_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB: - return candidate_job() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB_CREDITED_TO: - return candidate_job_credited_to() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE: - return candidate_job_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return candidate_job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB_CREDITED_TO_REJECT_REASON: - return candidate_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB_CURRENT_STAGE: - return candidate_job_current_stage() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON: - return candidate_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_JOB_REJECT_REASON: - return candidate_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CANDIDATE_REJECT_REASON: - return candidate_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CREDITED_TO: - return credited_to() - if self is ApplicationsRetrieveRequestExpand.CREDITED_TO_CURRENT_STAGE: - return credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CREDITED_TO_REJECT_REASON: - return credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.CURRENT_STAGE: - return current_stage() - if self is ApplicationsRetrieveRequestExpand.CURRENT_STAGE_REJECT_REASON: - return current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.JOB: - return job() - if self is ApplicationsRetrieveRequestExpand.JOB_CREDITED_TO: - return job_credited_to() - if self is ApplicationsRetrieveRequestExpand.JOB_CREDITED_TO_CURRENT_STAGE: - return job_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.JOB_CREDITED_TO_REJECT_REASON: - return job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.JOB_CURRENT_STAGE: - return job_current_stage() - if self is ApplicationsRetrieveRequestExpand.JOB_CURRENT_STAGE_REJECT_REASON: - return job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.JOB_REJECT_REASON: - return job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS: - return offers() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE: - return offers_candidate() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_CREDITED_TO: - return offers_candidate_credited_to() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE: - return offers_candidate_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_CREDITED_TO_REJECT_REASON: - return offers_candidate_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_CURRENT_STAGE: - return offers_candidate_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB: - return offers_candidate_job() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO: - return offers_candidate_job_credited_to() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE: - return offers_candidate_job_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON: - return offers_candidate_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB_CURRENT_STAGE: - return offers_candidate_job_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON: - return offers_candidate_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_JOB_REJECT_REASON: - return offers_candidate_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CANDIDATE_REJECT_REASON: - return offers_candidate_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CREDITED_TO: - return offers_credited_to() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CREDITED_TO_CURRENT_STAGE: - return offers_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CREDITED_TO_REJECT_REASON: - return offers_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CURRENT_STAGE: - return offers_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_CURRENT_STAGE_REJECT_REASON: - return offers_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB: - return offers_job() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB_CREDITED_TO: - return offers_job_credited_to() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB_CREDITED_TO_CURRENT_STAGE: - return offers_job_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return offers_job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB_CREDITED_TO_REJECT_REASON: - return offers_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB_CURRENT_STAGE: - return offers_job_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB_CURRENT_STAGE_REJECT_REASON: - return offers_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_JOB_REJECT_REASON: - return offers_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_REJECT_REASON: - return offers_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS: - return offers_screening_question_answers() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE: - return offers_screening_question_answers_candidate() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO: - return offers_screening_question_answers_candidate_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_candidate_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_candidate_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE: - return offers_screening_question_answers_candidate_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB: - return offers_screening_question_answers_candidate_job() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO: - return offers_screening_question_answers_candidate_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_candidate_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE: - return offers_screening_question_answers_candidate_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_candidate_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON: - return offers_screening_question_answers_candidate_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON: - return offers_screening_question_answers_candidate_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO: - return offers_screening_question_answers_credited_to() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE: - return offers_screening_question_answers_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON: - return offers_screening_question_answers_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE: - return offers_screening_question_answers_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON: - return offers_screening_question_answers_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB: - return offers_screening_question_answers_job() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO: - return offers_screening_question_answers_job_credited_to() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE: - return offers_screening_question_answers_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON: - return offers_screening_question_answers_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE: - return offers_screening_question_answers_job_current_stage() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON: - return offers_screening_question_answers_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON: - return offers_screening_question_answers_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_REJECT_REASON: - return offers_screening_question_answers_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION - ): - return offers_screening_question_answers_screening_question_answers_question() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_job_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_candidate_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB - ): - return offers_screening_question_answers_screening_question_answers_question_job() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE - ): - return offers_screening_question_answers_screening_question_answers_question_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON - ): - return ( - offers_screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason() - ) - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_job_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON - ): - return offers_screening_question_answers_screening_question_answers_question_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION: - return offers_screening_question_answers_question() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE: - return offers_screening_question_answers_question_candidate() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO: - return offers_screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE: - return offers_screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB: - return offers_screening_question_answers_question_candidate_job() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO - ): - return offers_screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_question_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_job_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE - ): - return offers_screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_job_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON - ): - return offers_screening_question_answers_question_candidate_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON: - return offers_screening_question_answers_question_candidate_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO: - return offers_screening_question_answers_question_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_question_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE: - return offers_screening_question_answers_question_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB: - return offers_screening_question_answers_question_job() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO: - return offers_screening_question_answers_question_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE - ): - return offers_screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON - ): - return offers_screening_question_answers_question_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE: - return offers_screening_question_answers_question_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON - ): - return offers_screening_question_answers_question_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON: - return offers_screening_question_answers_question_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.OFFERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON: - return offers_screening_question_answers_question_reject_reason() - if self is ApplicationsRetrieveRequestExpand.REJECT_REASON: - return reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS: - return screening_question_answers() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE: - return screening_question_answers_candidate() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO: - return screening_question_answers_candidate_credited_to() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_candidate_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_candidate_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CREDITED_TO_REJECT_REASON: - return screening_question_answers_candidate_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE: - return screening_question_answers_candidate_current_stage() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_candidate_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB: - return screening_question_answers_candidate_job() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO: - return screening_question_answers_candidate_job_credited_to() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_candidate_job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON: - return screening_question_answers_candidate_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE: - return screening_question_answers_candidate_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_candidate_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_JOB_REJECT_REASON: - return screening_question_answers_candidate_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CANDIDATE_REJECT_REASON: - return screening_question_answers_candidate_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO: - return screening_question_answers_credited_to() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_credited_to_current_stage() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CREDITED_TO_REJECT_REASON: - return screening_question_answers_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CURRENT_STAGE: - return screening_question_answers_current_stage() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB: - return screening_question_answers_job() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO: - return screening_question_answers_job_credited_to() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CREDITED_TO_REJECT_REASON: - return screening_question_answers_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE: - return screening_question_answers_job_current_stage() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_JOB_REJECT_REASON: - return screening_question_answers_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_REJECT_REASON: - return screening_question_answers_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION: - return screening_question_answers_screening_question_answers_question() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE - ): - return screening_question_answers_screening_question_answers_question_candidate() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return ( - screening_question_answers_screening_question_answers_question_candidate_current_stage_reject_reason() - ) - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB - ): - return screening_question_answers_screening_question_answers_question_candidate_job() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return ( - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage() - ) - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return ( - screening_question_answers_screening_question_answers_question_candidate_job_credited_to_reject_reason() - ) - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_job_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_job_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_candidate_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return ( - screening_question_answers_screening_question_answers_question_credited_to_current_stage_reject_reason() - ) - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB: - return screening_question_answers_screening_question_answers_question_job() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO - ): - return screening_question_answers_screening_question_answers_question_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_credited_to_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE - ): - return screening_question_answers_screening_question_answers_question_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_job_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON - ): - return screening_question_answers_screening_question_answers_question_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION: - return screening_question_answers_question() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE: - return screening_question_answers_question_candidate() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO: - return screening_question_answers_question_candidate_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_question_candidate_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_question_candidate_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE: - return screening_question_answers_question_candidate_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB: - return screening_question_answers_question_candidate_job() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO: - return screening_question_answers_question_candidate_job_credited_to() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE - ): - return screening_question_answers_question_candidate_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_job_credited_to_current_stage_reject_reason() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CREDITED_TO_REJECT_REASON - ): - return screening_question_answers_question_candidate_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE: - return screening_question_answers_question_candidate_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_candidate_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_JOB_REJECT_REASON: - return screening_question_answers_question_candidate_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CANDIDATE_REJECT_REASON: - return screening_question_answers_question_candidate_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO: - return screening_question_answers_question_credited_to() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_question_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CREDITED_TO_REJECT_REASON: - return screening_question_answers_question_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE: - return screening_question_answers_question_current_stage() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_CURRENT_STAGE_REJECT_REASON: - return screening_question_answers_question_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB: - return screening_question_answers_question_job() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO: - return screening_question_answers_question_job_credited_to() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE: - return screening_question_answers_question_job_credited_to_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_job_credited_to_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CREDITED_TO_REJECT_REASON: - return screening_question_answers_question_job_credited_to_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE: - return screening_question_answers_question_job_current_stage() - if ( - self - is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_CURRENT_STAGE_REJECT_REASON - ): - return screening_question_answers_question_job_current_stage_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_JOB_REJECT_REASON: - return screening_question_answers_question_job_reject_reason() - if self is ApplicationsRetrieveRequestExpand.SCREENING_QUESTION_ANSWERS_QUESTION_REJECT_REASON: - return screening_question_answers_question_reject_reason() diff --git a/src/merge/resources/ats/resources/async_passthrough/__init__.py b/src/merge/resources/ats/resources/async_passthrough/__init__.py deleted file mode 100644 index 375c7953..00000000 --- a/src/merge/resources/ats/resources/async_passthrough/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/ats/resources/async_passthrough/client.py b/src/merge/resources/ats/resources/async_passthrough/client.py deleted file mode 100644 index c877943e..00000000 --- a/src/merge/resources/ats/resources/async_passthrough/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .raw_client import AsyncRawAsyncPassthroughClient, RawAsyncPassthroughClient -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - from merge import Merge - from merge.resources.ats import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - """ - _response = self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data - - -class AsyncAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/async_passthrough/raw_client.py b/src/merge/resources/ats/resources/async_passthrough/raw_client.py deleted file mode 100644 index e5c894c1..00000000 --- a/src/merge/resources/ats/resources/async_passthrough/raw_client.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughReciept] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughReciept] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/async_passthrough/types/__init__.py b/src/merge/resources/ats/resources/async_passthrough/types/__init__.py deleted file mode 100644 index f6e9bec9..00000000 --- a/src/merge/resources/ats/resources/async_passthrough/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".async_passthrough_retrieve_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/ats/resources/async_passthrough/types/async_passthrough_retrieve_response.py b/src/merge/resources/ats/resources/async_passthrough/types/async_passthrough_retrieve_response.py deleted file mode 100644 index f8f87c18..00000000 --- a/src/merge/resources/ats/resources/async_passthrough/types/async_passthrough_retrieve_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.remote_response import RemoteResponse - -AsyncPassthroughRetrieveResponse = typing.Union[RemoteResponse, str] diff --git a/src/merge/resources/ats/resources/attachments/__init__.py b/src/merge/resources/ats/resources/attachments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/attachments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/attachments/client.py b/src/merge/resources/ats/resources/attachments/client.py deleted file mode 100644 index df51bb47..00000000 --- a/src/merge/resources/ats/resources/attachments/client.py +++ /dev/null @@ -1,629 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.attachment import Attachment -from ...types.attachment_request import AttachmentRequest -from ...types.attachment_response import AttachmentResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_attachment_list import PaginatedAttachmentList -from .raw_client import AsyncRawAttachmentsClient, RawAttachmentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAttachmentsClient - """ - return self._raw_client - - def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAttachmentList: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return attachments for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAttachmentList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.attachments.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - candidate_id=candidate_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: AttachmentRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AttachmentResponse: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AttachmentResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ats import AttachmentRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.attachments.create( - is_debug_mode=True, - run_async=True, - model=AttachmentRequest(), - remote_user_id="remote_user_id", - ) - """ - _response = self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Attachment: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Attachment - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Attachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.attachments.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAttachmentsClient - """ - return self._raw_client - - async def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAttachmentList: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return attachments for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAttachmentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.attachments.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - candidate_id=candidate_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: AttachmentRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AttachmentResponse: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AttachmentResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import AttachmentRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.attachments.create( - is_debug_mode=True, - run_async=True, - model=AttachmentRequest(), - remote_user_id="remote_user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Attachment: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Attachment - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Attachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.attachments.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/attachments/raw_client.py b/src/merge/resources/ats/resources/attachments/raw_client.py deleted file mode 100644 index cb05fc3d..00000000 --- a/src/merge/resources/ats/resources/attachments/raw_client.py +++ /dev/null @@ -1,587 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.attachment import Attachment -from ...types.attachment_request import AttachmentRequest -from ...types.attachment_response import AttachmentResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_attachment_list import PaginatedAttachmentList - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAttachmentList]: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return attachments for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAttachmentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/attachments", - method="GET", - params={ - "candidate_id": candidate_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAttachmentList, - construct_type( - type_=PaginatedAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: AttachmentRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AttachmentResponse]: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AttachmentResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/attachments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AttachmentResponse, - construct_type( - type_=AttachmentResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Attachment]: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Attachment] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Attachment, - construct_type( - type_=Attachment, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Attachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/attachments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAttachmentList]: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return attachments for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAttachmentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/attachments", - method="GET", - params={ - "candidate_id": candidate_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAttachmentList, - construct_type( - type_=PaginatedAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: AttachmentRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AttachmentResponse]: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AttachmentResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/attachments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AttachmentResponse, - construct_type( - type_=AttachmentResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["attachment_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["attachment_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Attachment]: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["attachment_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["attachment_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Attachment] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Attachment, - construct_type( - type_=Attachment, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Attachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/attachments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/audit_trail/__init__.py b/src/merge/resources/ats/resources/audit_trail/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/audit_trail/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/audit_trail/client.py b/src/merge/resources/ats/resources/audit_trail/client.py deleted file mode 100644 index 78d801de..00000000 --- a/src/merge/resources/ats/resources/audit_trail/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList -from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient - - -class AuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuditTrailClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - """ - _response = self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data - - -class AsyncAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuditTrailClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/audit_trail/raw_client.py b/src/merge/resources/ats/resources/audit_trail/raw_client.py deleted file mode 100644 index 296a6041..00000000 --- a/src/merge/resources/ats/resources/audit_trail/raw_client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList - - -class RawAuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAuditLogEventList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAuditLogEventList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/available_actions/__init__.py b/src/merge/resources/ats/resources/available_actions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/available_actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/available_actions/client.py b/src/merge/resources/ats/resources/available_actions/client.py deleted file mode 100644 index 5cd5e55f..00000000 --- a/src/merge/resources/ats/resources/available_actions/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.available_actions import AvailableActions -from .raw_client import AsyncRawAvailableActionsClient, RawAvailableActionsClient - - -class AvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAvailableActionsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.available_actions.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAvailableActionsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.available_actions.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/available_actions/raw_client.py b/src/merge/resources/ats/resources/available_actions/raw_client.py deleted file mode 100644 index 6157a71b..00000000 --- a/src/merge/resources/ats/resources/available_actions/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.available_actions import AvailableActions - - -class RawAvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AvailableActions] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AvailableActions] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/candidates/__init__.py b/src/merge/resources/ats/resources/candidates/__init__.py deleted file mode 100644 index f9e7fc5a..00000000 --- a/src/merge/resources/ats/resources/candidates/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import CandidatesListRequestExpand, CandidatesRetrieveRequestExpand, IgnoreCommonModelRequestReason -_dynamic_imports: typing.Dict[str, str] = { - "CandidatesListRequestExpand": ".types", - "CandidatesRetrieveRequestExpand": ".types", - "IgnoreCommonModelRequestReason": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CandidatesListRequestExpand", "CandidatesRetrieveRequestExpand", "IgnoreCommonModelRequestReason"] diff --git a/src/merge/resources/ats/resources/candidates/client.py b/src/merge/resources/ats/resources/candidates/client.py deleted file mode 100644 index 3cf356a4..00000000 --- a/src/merge/resources/ats/resources/candidates/client.py +++ /dev/null @@ -1,943 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.candidate import Candidate -from ...types.candidate_request import CandidateRequest -from ...types.candidate_response import CandidateResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_candidate_list import PaginatedCandidateList -from ...types.patched_candidate_request import PatchedCandidateRequest -from .raw_client import AsyncRawCandidatesClient, RawCandidatesClient -from .types.candidates_list_request_expand import CandidatesListRequestExpand -from .types.candidates_retrieve_request_expand import CandidatesRetrieveRequestExpand -from .types.ignore_common_model_request_reason import IgnoreCommonModelRequestReason - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CandidatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCandidatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCandidatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCandidatesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[CandidatesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - last_name: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - tags: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCandidateList: - """ - Returns a list of `Candidate` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas. - - expand : typing.Optional[CandidatesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return candidates with this first name. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - last_name : typing.Optional[str] - If provided, will only return candidates with this last name. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - tags : typing.Optional[str] - If provided, will only return candidates with these tags; multiple tags can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCandidateList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.candidates import CandidatesListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.candidates.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=CandidatesListRequestExpand.APPLICATIONS, - first_name="first_name", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - last_name="last_name", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - tags="tags", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_addresses=email_addresses, - expand=expand, - first_name=first_name, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - last_name=last_name, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - tags=tags, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: CandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CandidateResponse: - """ - Creates a `Candidate` object with the given values. - - Parameters - ---------- - model : CandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CandidateResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ats import CandidateRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.candidates.create( - is_debug_mode=True, - run_async=True, - model=CandidateRequest(), - remote_user_id="remote_user_id", - ) - """ - _response = self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CandidatesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Candidate: - """ - Returns a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CandidatesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Candidate - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.candidates import ( - CandidatesRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.candidates.retrieve( - id="id", - expand=CandidatesRetrieveRequestExpand.APPLICATIONS, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedCandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CandidateResponse: - """ - Updates a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedCandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CandidateResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ats import PatchedCandidateRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.candidates.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedCandidateRequest(), - remote_user_id="remote_user_id", - ) - """ - _response = self._raw_client.partial_update( - id, - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - from merge.resources.ats import ReasonEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.candidates.ignore_create( - model_id="model_id", - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ) - """ - _response = self._raw_client.ignore_create( - model_id, reason=reason, message=message, request_options=request_options - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Candidate` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.candidates.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Candidate` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.candidates.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncCandidatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCandidatesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCandidatesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCandidatesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[CandidatesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - last_name: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - tags: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCandidateList: - """ - Returns a list of `Candidate` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas. - - expand : typing.Optional[CandidatesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return candidates with this first name. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - last_name : typing.Optional[str] - If provided, will only return candidates with this last name. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - tags : typing.Optional[str] - If provided, will only return candidates with these tags; multiple tags can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCandidateList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.candidates import CandidatesListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.candidates.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=CandidatesListRequestExpand.APPLICATIONS, - first_name="first_name", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - last_name="last_name", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - tags="tags", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_addresses=email_addresses, - expand=expand, - first_name=first_name, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - last_name=last_name, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - tags=tags, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: CandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CandidateResponse: - """ - Creates a `Candidate` object with the given values. - - Parameters - ---------- - model : CandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CandidateResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import CandidateRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.candidates.create( - is_debug_mode=True, - run_async=True, - model=CandidateRequest(), - remote_user_id="remote_user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CandidatesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Candidate: - """ - Returns a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CandidatesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Candidate - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.candidates import ( - CandidatesRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.candidates.retrieve( - id="id", - expand=CandidatesRetrieveRequestExpand.APPLICATIONS, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedCandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CandidateResponse: - """ - Updates a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedCandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CandidateResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import PatchedCandidateRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.candidates.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedCandidateRequest(), - remote_user_id="remote_user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import ReasonEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.candidates.ignore_create( - model_id="model_id", - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.ignore_create( - model_id, reason=reason, message=message, request_options=request_options - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Candidate` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.candidates.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Candidate` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.candidates.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/candidates/raw_client.py b/src/merge/resources/ats/resources/candidates/raw_client.py deleted file mode 100644 index c4fbc46d..00000000 --- a/src/merge/resources/ats/resources/candidates/raw_client.py +++ /dev/null @@ -1,885 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.candidate import Candidate -from ...types.candidate_request import CandidateRequest -from ...types.candidate_response import CandidateResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_candidate_list import PaginatedCandidateList -from ...types.patched_candidate_request import PatchedCandidateRequest -from .types.candidates_list_request_expand import CandidatesListRequestExpand -from .types.candidates_retrieve_request_expand import CandidatesRetrieveRequestExpand -from .types.ignore_common_model_request_reason import IgnoreCommonModelRequestReason - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCandidatesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[CandidatesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - last_name: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - tags: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCandidateList]: - """ - Returns a list of `Candidate` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas. - - expand : typing.Optional[CandidatesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return candidates with this first name. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - last_name : typing.Optional[str] - If provided, will only return candidates with this last name. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - tags : typing.Optional[str] - If provided, will only return candidates with these tags; multiple tags can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCandidateList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/candidates", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_addresses": email_addresses, - "expand": expand, - "first_name": first_name, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "last_name": last_name, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "tags": tags, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCandidateList, - construct_type( - type_=PaginatedCandidateList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: CandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CandidateResponse]: - """ - Creates a `Candidate` object with the given values. - - Parameters - ---------- - model : CandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CandidateResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/candidates", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CandidateResponse, - construct_type( - type_=CandidateResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CandidatesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Candidate]: - """ - Returns a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CandidatesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Candidate] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Candidate, - construct_type( - type_=Candidate, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedCandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CandidateResponse]: - """ - Updates a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedCandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CandidateResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CandidateResponse, - construct_type( - type_=CandidateResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/ignore/{jsonable_encoder(model_id)}", - method="POST", - json={ - "reason": reason, - "message": message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Candidate` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Candidate` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/candidates/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCandidatesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[CandidatesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - last_name: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - tags: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCandidateList]: - """ - Returns a list of `Candidate` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas. - - expand : typing.Optional[CandidatesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return candidates with this first name. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - last_name : typing.Optional[str] - If provided, will only return candidates with this last name. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - tags : typing.Optional[str] - If provided, will only return candidates with these tags; multiple tags can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCandidateList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/candidates", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_addresses": email_addresses, - "expand": expand, - "first_name": first_name, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "last_name": last_name, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "tags": tags, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCandidateList, - construct_type( - type_=PaginatedCandidateList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: CandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CandidateResponse]: - """ - Creates a `Candidate` object with the given values. - - Parameters - ---------- - model : CandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CandidateResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/candidates", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CandidateResponse, - construct_type( - type_=CandidateResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CandidatesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Candidate]: - """ - Returns a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CandidatesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Candidate] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Candidate, - construct_type( - type_=Candidate, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedCandidateRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CandidateResponse]: - """ - Updates a `Candidate` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedCandidateRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CandidateResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CandidateResponse, - construct_type( - type_=CandidateResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/ignore/{jsonable_encoder(model_id)}", - method="POST", - json={ - "reason": reason, - "message": message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Candidate` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/candidates/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Candidate` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/candidates/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/candidates/types/__init__.py b/src/merge/resources/ats/resources/candidates/types/__init__.py deleted file mode 100644 index dd320363..00000000 --- a/src/merge/resources/ats/resources/candidates/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .candidates_list_request_expand import CandidatesListRequestExpand - from .candidates_retrieve_request_expand import CandidatesRetrieveRequestExpand - from .ignore_common_model_request_reason import IgnoreCommonModelRequestReason -_dynamic_imports: typing.Dict[str, str] = { - "CandidatesListRequestExpand": ".candidates_list_request_expand", - "CandidatesRetrieveRequestExpand": ".candidates_retrieve_request_expand", - "IgnoreCommonModelRequestReason": ".ignore_common_model_request_reason", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CandidatesListRequestExpand", "CandidatesRetrieveRequestExpand", "IgnoreCommonModelRequestReason"] diff --git a/src/merge/resources/ats/resources/candidates/types/candidates_list_request_expand.py b/src/merge/resources/ats/resources/candidates/types/candidates_list_request_expand.py deleted file mode 100644 index 3d234138..00000000 --- a/src/merge/resources/ats/resources/candidates/types/candidates_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CandidatesListRequestExpand(str, enum.Enum): - APPLICATIONS = "applications" - APPLICATIONS_ATTACHMENTS = "applications,attachments" - ATTACHMENTS = "attachments" - - def visit( - self, - applications: typing.Callable[[], T_Result], - applications_attachments: typing.Callable[[], T_Result], - attachments: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CandidatesListRequestExpand.APPLICATIONS: - return applications() - if self is CandidatesListRequestExpand.APPLICATIONS_ATTACHMENTS: - return applications_attachments() - if self is CandidatesListRequestExpand.ATTACHMENTS: - return attachments() diff --git a/src/merge/resources/ats/resources/candidates/types/candidates_retrieve_request_expand.py b/src/merge/resources/ats/resources/candidates/types/candidates_retrieve_request_expand.py deleted file mode 100644 index 20a7a734..00000000 --- a/src/merge/resources/ats/resources/candidates/types/candidates_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CandidatesRetrieveRequestExpand(str, enum.Enum): - APPLICATIONS = "applications" - APPLICATIONS_ATTACHMENTS = "applications,attachments" - ATTACHMENTS = "attachments" - - def visit( - self, - applications: typing.Callable[[], T_Result], - applications_attachments: typing.Callable[[], T_Result], - attachments: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CandidatesRetrieveRequestExpand.APPLICATIONS: - return applications() - if self is CandidatesRetrieveRequestExpand.APPLICATIONS_ATTACHMENTS: - return applications_attachments() - if self is CandidatesRetrieveRequestExpand.ATTACHMENTS: - return attachments() diff --git a/src/merge/resources/ats/resources/candidates/types/ignore_common_model_request_reason.py b/src/merge/resources/ats/resources/candidates/types/ignore_common_model_request_reason.py deleted file mode 100644 index 4baf20f1..00000000 --- a/src/merge/resources/ats/resources/candidates/types/ignore_common_model_request_reason.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.reason_enum import ReasonEnum - -IgnoreCommonModelRequestReason = typing.Union[ReasonEnum, str] diff --git a/src/merge/resources/ats/resources/delete_account/__init__.py b/src/merge/resources/ats/resources/delete_account/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/delete_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/delete_account/client.py b/src/merge/resources/ats/resources/delete_account/client.py deleted file mode 100644 index adaa6a40..00000000 --- a/src/merge/resources/ats/resources/delete_account/client.py +++ /dev/null @@ -1,99 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .raw_client import AsyncRawDeleteAccountClient, RawDeleteAccountClient - - -class DeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeleteAccountClient - """ - return self._raw_client - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.delete_account.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeleteAccountClient - """ - return self._raw_client - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.delete_account.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/delete_account/raw_client.py b/src/merge/resources/ats/resources/delete_account/raw_client.py deleted file mode 100644 index e9752440..00000000 --- a/src/merge/resources/ats/resources/delete_account/raw_client.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions - - -class RawDeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/departments/__init__.py b/src/merge/resources/ats/resources/departments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/departments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/departments/client.py b/src/merge/resources/ats/resources/departments/client.py deleted file mode 100644 index f70cd0ba..00000000 --- a/src/merge/resources/ats/resources/departments/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.department import Department -from ...types.paginated_department_list import PaginatedDepartmentList -from .raw_client import AsyncRawDepartmentsClient, RawDepartmentsClient - - -class DepartmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDepartmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDepartmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDepartmentsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDepartmentList: - """ - Returns a list of `Department` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedDepartmentList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.departments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Department: - """ - Returns a `Department` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Department - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.departments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncDepartmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDepartmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDepartmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDepartmentsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDepartmentList: - """ - Returns a list of `Department` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedDepartmentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.departments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Department: - """ - Returns a `Department` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Department - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.departments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/departments/raw_client.py b/src/merge/resources/ats/resources/departments/raw_client.py deleted file mode 100644 index 3e6908a0..00000000 --- a/src/merge/resources/ats/resources/departments/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.department import Department -from ...types.paginated_department_list import PaginatedDepartmentList - - -class RawDepartmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedDepartmentList]: - """ - Returns a list of `Department` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedDepartmentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/departments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedDepartmentList, - construct_type( - type_=PaginatedDepartmentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Department]: - """ - Returns a `Department` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Department] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/departments/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Department, - construct_type( - type_=Department, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDepartmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedDepartmentList]: - """ - Returns a list of `Department` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedDepartmentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/departments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedDepartmentList, - construct_type( - type_=PaginatedDepartmentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Department]: - """ - Returns a `Department` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Department] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/departments/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Department, - construct_type( - type_=Department, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/eeocs/__init__.py b/src/merge/resources/ats/resources/eeocs/__init__.py deleted file mode 100644 index 76956393..00000000 --- a/src/merge/resources/ats/resources/eeocs/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - EeocsListRequestRemoteFields, - EeocsListRequestShowEnumOrigins, - EeocsRetrieveRequestRemoteFields, - EeocsRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "EeocsListRequestRemoteFields": ".types", - "EeocsListRequestShowEnumOrigins": ".types", - "EeocsRetrieveRequestRemoteFields": ".types", - "EeocsRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "EeocsListRequestRemoteFields", - "EeocsListRequestShowEnumOrigins", - "EeocsRetrieveRequestRemoteFields", - "EeocsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/ats/resources/eeocs/client.py b/src/merge/resources/ats/resources/eeocs/client.py deleted file mode 100644 index 5a54567c..00000000 --- a/src/merge/resources/ats/resources/eeocs/client.py +++ /dev/null @@ -1,467 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.eeoc import Eeoc -from ...types.paginated_eeoc_list import PaginatedEeocList -from .raw_client import AsyncRawEeocsClient, RawEeocsClient -from .types.eeocs_list_request_remote_fields import EeocsListRequestRemoteFields -from .types.eeocs_list_request_show_enum_origins import EeocsListRequestShowEnumOrigins -from .types.eeocs_retrieve_request_remote_fields import EeocsRetrieveRequestRemoteFields -from .types.eeocs_retrieve_request_show_enum_origins import EeocsRetrieveRequestShowEnumOrigins - - -class EeocsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEeocsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEeocsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEeocsClient - """ - return self._raw_client - - def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EeocsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EeocsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEeocList: - """ - Returns a list of `EEOC` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return EEOC info for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[EeocsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EeocsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEeocList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.eeocs import ( - EeocsListRequestRemoteFields, - EeocsListRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.eeocs.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=EeocsListRequestRemoteFields.DISABILITY_STATUS, - remote_id="remote_id", - show_enum_origins=EeocsListRequestShowEnumOrigins.DISABILITY_STATUS, - ) - """ - _response = self._raw_client.list( - candidate_id=candidate_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EeocsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EeocsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Eeoc: - """ - Returns an `EEOC` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EeocsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EeocsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Eeoc - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.eeocs import ( - EeocsRetrieveRequestRemoteFields, - EeocsRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.eeocs.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS, - show_enum_origins=EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncEeocsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEeocsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEeocsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEeocsClient - """ - return self._raw_client - - async def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EeocsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EeocsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEeocList: - """ - Returns a list of `EEOC` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return EEOC info for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[EeocsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EeocsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEeocList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.eeocs import ( - EeocsListRequestRemoteFields, - EeocsListRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.eeocs.list( - candidate_id="candidate_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=EeocsListRequestRemoteFields.DISABILITY_STATUS, - remote_id="remote_id", - show_enum_origins=EeocsListRequestShowEnumOrigins.DISABILITY_STATUS, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - candidate_id=candidate_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EeocsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EeocsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Eeoc: - """ - Returns an `EEOC` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EeocsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EeocsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Eeoc - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.eeocs import ( - EeocsRetrieveRequestRemoteFields, - EeocsRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.eeocs.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS, - show_enum_origins=EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/eeocs/raw_client.py b/src/merge/resources/ats/resources/eeocs/raw_client.py deleted file mode 100644 index 1f8f24b9..00000000 --- a/src/merge/resources/ats/resources/eeocs/raw_client.py +++ /dev/null @@ -1,385 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.eeoc import Eeoc -from ...types.paginated_eeoc_list import PaginatedEeocList -from .types.eeocs_list_request_remote_fields import EeocsListRequestRemoteFields -from .types.eeocs_list_request_show_enum_origins import EeocsListRequestShowEnumOrigins -from .types.eeocs_retrieve_request_remote_fields import EeocsRetrieveRequestRemoteFields -from .types.eeocs_retrieve_request_show_enum_origins import EeocsRetrieveRequestShowEnumOrigins - - -class RawEeocsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EeocsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EeocsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEeocList]: - """ - Returns a list of `EEOC` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return EEOC info for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[EeocsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EeocsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEeocList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/eeocs", - method="GET", - params={ - "candidate_id": candidate_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEeocList, - construct_type( - type_=PaginatedEeocList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EeocsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EeocsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Eeoc]: - """ - Returns an `EEOC` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EeocsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EeocsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Eeoc] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/eeocs/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Eeoc, - construct_type( - type_=Eeoc, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEeocsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - candidate_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EeocsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EeocsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEeocList]: - """ - Returns a list of `EEOC` objects. - - Parameters - ---------- - candidate_id : typing.Optional[str] - If provided, will only return EEOC info for this candidate. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[EeocsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EeocsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEeocList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/eeocs", - method="GET", - params={ - "candidate_id": candidate_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEeocList, - construct_type( - type_=PaginatedEeocList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["candidate"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EeocsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EeocsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Eeoc]: - """ - Returns an `EEOC` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["candidate"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EeocsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EeocsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Eeoc] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/eeocs/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Eeoc, - construct_type( - type_=Eeoc, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/eeocs/types/__init__.py b/src/merge/resources/ats/resources/eeocs/types/__init__.py deleted file mode 100644 index 31361448..00000000 --- a/src/merge/resources/ats/resources/eeocs/types/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .eeocs_list_request_remote_fields import EeocsListRequestRemoteFields - from .eeocs_list_request_show_enum_origins import EeocsListRequestShowEnumOrigins - from .eeocs_retrieve_request_remote_fields import EeocsRetrieveRequestRemoteFields - from .eeocs_retrieve_request_show_enum_origins import EeocsRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "EeocsListRequestRemoteFields": ".eeocs_list_request_remote_fields", - "EeocsListRequestShowEnumOrigins": ".eeocs_list_request_show_enum_origins", - "EeocsRetrieveRequestRemoteFields": ".eeocs_retrieve_request_remote_fields", - "EeocsRetrieveRequestShowEnumOrigins": ".eeocs_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "EeocsListRequestRemoteFields", - "EeocsListRequestShowEnumOrigins", - "EeocsRetrieveRequestRemoteFields", - "EeocsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/ats/resources/eeocs/types/eeocs_list_request_remote_fields.py b/src/merge/resources/ats/resources/eeocs/types/eeocs_list_request_remote_fields.py deleted file mode 100644 index 97aa5294..00000000 --- a/src/merge/resources/ats/resources/eeocs/types/eeocs_list_request_remote_fields.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EeocsListRequestRemoteFields(str, enum.Enum): - DISABILITY_STATUS = "disability_status" - DISABILITY_STATUS_GENDER = "disability_status,gender" - DISABILITY_STATUS_GENDER_RACE = "disability_status,gender,race" - DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS = "disability_status,gender,race,veteran_status" - DISABILITY_STATUS_GENDER_VETERAN_STATUS = "disability_status,gender,veteran_status" - DISABILITY_STATUS_RACE = "disability_status,race" - DISABILITY_STATUS_RACE_VETERAN_STATUS = "disability_status,race,veteran_status" - DISABILITY_STATUS_VETERAN_STATUS = "disability_status,veteran_status" - GENDER = "gender" - GENDER_RACE = "gender,race" - GENDER_RACE_VETERAN_STATUS = "gender,race,veteran_status" - GENDER_VETERAN_STATUS = "gender,veteran_status" - RACE = "race" - RACE_VETERAN_STATUS = "race,veteran_status" - VETERAN_STATUS = "veteran_status" - - def visit( - self, - disability_status: typing.Callable[[], T_Result], - disability_status_gender: typing.Callable[[], T_Result], - disability_status_gender_race: typing.Callable[[], T_Result], - disability_status_gender_race_veteran_status: typing.Callable[[], T_Result], - disability_status_gender_veteran_status: typing.Callable[[], T_Result], - disability_status_race: typing.Callable[[], T_Result], - disability_status_race_veteran_status: typing.Callable[[], T_Result], - disability_status_veteran_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_race: typing.Callable[[], T_Result], - gender_race_veteran_status: typing.Callable[[], T_Result], - gender_veteran_status: typing.Callable[[], T_Result], - race: typing.Callable[[], T_Result], - race_veteran_status: typing.Callable[[], T_Result], - veteran_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS: - return disability_status() - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS_GENDER: - return disability_status_gender() - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS_GENDER_RACE: - return disability_status_gender_race() - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS: - return disability_status_gender_race_veteran_status() - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS_GENDER_VETERAN_STATUS: - return disability_status_gender_veteran_status() - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS_RACE: - return disability_status_race() - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS_RACE_VETERAN_STATUS: - return disability_status_race_veteran_status() - if self is EeocsListRequestRemoteFields.DISABILITY_STATUS_VETERAN_STATUS: - return disability_status_veteran_status() - if self is EeocsListRequestRemoteFields.GENDER: - return gender() - if self is EeocsListRequestRemoteFields.GENDER_RACE: - return gender_race() - if self is EeocsListRequestRemoteFields.GENDER_RACE_VETERAN_STATUS: - return gender_race_veteran_status() - if self is EeocsListRequestRemoteFields.GENDER_VETERAN_STATUS: - return gender_veteran_status() - if self is EeocsListRequestRemoteFields.RACE: - return race() - if self is EeocsListRequestRemoteFields.RACE_VETERAN_STATUS: - return race_veteran_status() - if self is EeocsListRequestRemoteFields.VETERAN_STATUS: - return veteran_status() diff --git a/src/merge/resources/ats/resources/eeocs/types/eeocs_list_request_show_enum_origins.py b/src/merge/resources/ats/resources/eeocs/types/eeocs_list_request_show_enum_origins.py deleted file mode 100644 index 0955f416..00000000 --- a/src/merge/resources/ats/resources/eeocs/types/eeocs_list_request_show_enum_origins.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EeocsListRequestShowEnumOrigins(str, enum.Enum): - DISABILITY_STATUS = "disability_status" - DISABILITY_STATUS_GENDER = "disability_status,gender" - DISABILITY_STATUS_GENDER_RACE = "disability_status,gender,race" - DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS = "disability_status,gender,race,veteran_status" - DISABILITY_STATUS_GENDER_VETERAN_STATUS = "disability_status,gender,veteran_status" - DISABILITY_STATUS_RACE = "disability_status,race" - DISABILITY_STATUS_RACE_VETERAN_STATUS = "disability_status,race,veteran_status" - DISABILITY_STATUS_VETERAN_STATUS = "disability_status,veteran_status" - GENDER = "gender" - GENDER_RACE = "gender,race" - GENDER_RACE_VETERAN_STATUS = "gender,race,veteran_status" - GENDER_VETERAN_STATUS = "gender,veteran_status" - RACE = "race" - RACE_VETERAN_STATUS = "race,veteran_status" - VETERAN_STATUS = "veteran_status" - - def visit( - self, - disability_status: typing.Callable[[], T_Result], - disability_status_gender: typing.Callable[[], T_Result], - disability_status_gender_race: typing.Callable[[], T_Result], - disability_status_gender_race_veteran_status: typing.Callable[[], T_Result], - disability_status_gender_veteran_status: typing.Callable[[], T_Result], - disability_status_race: typing.Callable[[], T_Result], - disability_status_race_veteran_status: typing.Callable[[], T_Result], - disability_status_veteran_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_race: typing.Callable[[], T_Result], - gender_race_veteran_status: typing.Callable[[], T_Result], - gender_veteran_status: typing.Callable[[], T_Result], - race: typing.Callable[[], T_Result], - race_veteran_status: typing.Callable[[], T_Result], - veteran_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS: - return disability_status() - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS_GENDER: - return disability_status_gender() - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS_GENDER_RACE: - return disability_status_gender_race() - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS: - return disability_status_gender_race_veteran_status() - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS_GENDER_VETERAN_STATUS: - return disability_status_gender_veteran_status() - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS_RACE: - return disability_status_race() - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS_RACE_VETERAN_STATUS: - return disability_status_race_veteran_status() - if self is EeocsListRequestShowEnumOrigins.DISABILITY_STATUS_VETERAN_STATUS: - return disability_status_veteran_status() - if self is EeocsListRequestShowEnumOrigins.GENDER: - return gender() - if self is EeocsListRequestShowEnumOrigins.GENDER_RACE: - return gender_race() - if self is EeocsListRequestShowEnumOrigins.GENDER_RACE_VETERAN_STATUS: - return gender_race_veteran_status() - if self is EeocsListRequestShowEnumOrigins.GENDER_VETERAN_STATUS: - return gender_veteran_status() - if self is EeocsListRequestShowEnumOrigins.RACE: - return race() - if self is EeocsListRequestShowEnumOrigins.RACE_VETERAN_STATUS: - return race_veteran_status() - if self is EeocsListRequestShowEnumOrigins.VETERAN_STATUS: - return veteran_status() diff --git a/src/merge/resources/ats/resources/eeocs/types/eeocs_retrieve_request_remote_fields.py b/src/merge/resources/ats/resources/eeocs/types/eeocs_retrieve_request_remote_fields.py deleted file mode 100644 index 7c69e5bc..00000000 --- a/src/merge/resources/ats/resources/eeocs/types/eeocs_retrieve_request_remote_fields.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EeocsRetrieveRequestRemoteFields(str, enum.Enum): - DISABILITY_STATUS = "disability_status" - DISABILITY_STATUS_GENDER = "disability_status,gender" - DISABILITY_STATUS_GENDER_RACE = "disability_status,gender,race" - DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS = "disability_status,gender,race,veteran_status" - DISABILITY_STATUS_GENDER_VETERAN_STATUS = "disability_status,gender,veteran_status" - DISABILITY_STATUS_RACE = "disability_status,race" - DISABILITY_STATUS_RACE_VETERAN_STATUS = "disability_status,race,veteran_status" - DISABILITY_STATUS_VETERAN_STATUS = "disability_status,veteran_status" - GENDER = "gender" - GENDER_RACE = "gender,race" - GENDER_RACE_VETERAN_STATUS = "gender,race,veteran_status" - GENDER_VETERAN_STATUS = "gender,veteran_status" - RACE = "race" - RACE_VETERAN_STATUS = "race,veteran_status" - VETERAN_STATUS = "veteran_status" - - def visit( - self, - disability_status: typing.Callable[[], T_Result], - disability_status_gender: typing.Callable[[], T_Result], - disability_status_gender_race: typing.Callable[[], T_Result], - disability_status_gender_race_veteran_status: typing.Callable[[], T_Result], - disability_status_gender_veteran_status: typing.Callable[[], T_Result], - disability_status_race: typing.Callable[[], T_Result], - disability_status_race_veteran_status: typing.Callable[[], T_Result], - disability_status_veteran_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_race: typing.Callable[[], T_Result], - gender_race_veteran_status: typing.Callable[[], T_Result], - gender_veteran_status: typing.Callable[[], T_Result], - race: typing.Callable[[], T_Result], - race_veteran_status: typing.Callable[[], T_Result], - veteran_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS: - return disability_status() - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS_GENDER: - return disability_status_gender() - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS_GENDER_RACE: - return disability_status_gender_race() - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS: - return disability_status_gender_race_veteran_status() - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS_GENDER_VETERAN_STATUS: - return disability_status_gender_veteran_status() - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS_RACE: - return disability_status_race() - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS_RACE_VETERAN_STATUS: - return disability_status_race_veteran_status() - if self is EeocsRetrieveRequestRemoteFields.DISABILITY_STATUS_VETERAN_STATUS: - return disability_status_veteran_status() - if self is EeocsRetrieveRequestRemoteFields.GENDER: - return gender() - if self is EeocsRetrieveRequestRemoteFields.GENDER_RACE: - return gender_race() - if self is EeocsRetrieveRequestRemoteFields.GENDER_RACE_VETERAN_STATUS: - return gender_race_veteran_status() - if self is EeocsRetrieveRequestRemoteFields.GENDER_VETERAN_STATUS: - return gender_veteran_status() - if self is EeocsRetrieveRequestRemoteFields.RACE: - return race() - if self is EeocsRetrieveRequestRemoteFields.RACE_VETERAN_STATUS: - return race_veteran_status() - if self is EeocsRetrieveRequestRemoteFields.VETERAN_STATUS: - return veteran_status() diff --git a/src/merge/resources/ats/resources/eeocs/types/eeocs_retrieve_request_show_enum_origins.py b/src/merge/resources/ats/resources/eeocs/types/eeocs_retrieve_request_show_enum_origins.py deleted file mode 100644 index 6ee784a3..00000000 --- a/src/merge/resources/ats/resources/eeocs/types/eeocs_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EeocsRetrieveRequestShowEnumOrigins(str, enum.Enum): - DISABILITY_STATUS = "disability_status" - DISABILITY_STATUS_GENDER = "disability_status,gender" - DISABILITY_STATUS_GENDER_RACE = "disability_status,gender,race" - DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS = "disability_status,gender,race,veteran_status" - DISABILITY_STATUS_GENDER_VETERAN_STATUS = "disability_status,gender,veteran_status" - DISABILITY_STATUS_RACE = "disability_status,race" - DISABILITY_STATUS_RACE_VETERAN_STATUS = "disability_status,race,veteran_status" - DISABILITY_STATUS_VETERAN_STATUS = "disability_status,veteran_status" - GENDER = "gender" - GENDER_RACE = "gender,race" - GENDER_RACE_VETERAN_STATUS = "gender,race,veteran_status" - GENDER_VETERAN_STATUS = "gender,veteran_status" - RACE = "race" - RACE_VETERAN_STATUS = "race,veteran_status" - VETERAN_STATUS = "veteran_status" - - def visit( - self, - disability_status: typing.Callable[[], T_Result], - disability_status_gender: typing.Callable[[], T_Result], - disability_status_gender_race: typing.Callable[[], T_Result], - disability_status_gender_race_veteran_status: typing.Callable[[], T_Result], - disability_status_gender_veteran_status: typing.Callable[[], T_Result], - disability_status_race: typing.Callable[[], T_Result], - disability_status_race_veteran_status: typing.Callable[[], T_Result], - disability_status_veteran_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_race: typing.Callable[[], T_Result], - gender_race_veteran_status: typing.Callable[[], T_Result], - gender_veteran_status: typing.Callable[[], T_Result], - race: typing.Callable[[], T_Result], - race_veteran_status: typing.Callable[[], T_Result], - veteran_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS: - return disability_status() - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS_GENDER: - return disability_status_gender() - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS_GENDER_RACE: - return disability_status_gender_race() - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS_GENDER_RACE_VETERAN_STATUS: - return disability_status_gender_race_veteran_status() - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS_GENDER_VETERAN_STATUS: - return disability_status_gender_veteran_status() - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS_RACE: - return disability_status_race() - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS_RACE_VETERAN_STATUS: - return disability_status_race_veteran_status() - if self is EeocsRetrieveRequestShowEnumOrigins.DISABILITY_STATUS_VETERAN_STATUS: - return disability_status_veteran_status() - if self is EeocsRetrieveRequestShowEnumOrigins.GENDER: - return gender() - if self is EeocsRetrieveRequestShowEnumOrigins.GENDER_RACE: - return gender_race() - if self is EeocsRetrieveRequestShowEnumOrigins.GENDER_RACE_VETERAN_STATUS: - return gender_race_veteran_status() - if self is EeocsRetrieveRequestShowEnumOrigins.GENDER_VETERAN_STATUS: - return gender_veteran_status() - if self is EeocsRetrieveRequestShowEnumOrigins.RACE: - return race() - if self is EeocsRetrieveRequestShowEnumOrigins.RACE_VETERAN_STATUS: - return race_veteran_status() - if self is EeocsRetrieveRequestShowEnumOrigins.VETERAN_STATUS: - return veteran_status() diff --git a/src/merge/resources/ats/resources/field_mapping/__init__.py b/src/merge/resources/ats/resources/field_mapping/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/field_mapping/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/field_mapping/client.py b/src/merge/resources/ats/resources/field_mapping/client.py deleted file mode 100644 index 8e5e68a8..00000000 --- a/src/merge/resources/ats/resources/field_mapping/client.py +++ /dev/null @@ -1,644 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse -from .raw_client import AsyncRawFieldMappingClient, RawFieldMappingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFieldMappingClient - """ - return self._raw_client - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - """ - _response = self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - """ - _response = self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - request_options=request_options, - ) - return _response.data - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - request_options=request_options, - ) - return _response.data - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - """ - _response = self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.field_mapping.target_fields_retrieve() - """ - _response = self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data - - -class AsyncFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFieldMappingClient - """ - return self._raw_client - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - request_options=request_options, - ) - return _response.data - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - request_options=request_options, - ) - return _response.data - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.field_mapping.target_fields_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/field_mapping/raw_client.py b/src/merge/resources/ats/resources/field_mapping/raw_client.py deleted file mode 100644 index df161ca0..00000000 --- a/src/merge/resources/ats/resources/field_mapping/raw_client.py +++ /dev/null @@ -1,652 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/force_resync/__init__.py b/src/merge/resources/ats/resources/force_resync/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/force_resync/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/force_resync/client.py b/src/merge/resources/ats/resources/force_resync/client.py deleted file mode 100644 index 8213df1d..00000000 --- a/src/merge/resources/ats/resources/force_resync/client.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.sync_status import SyncStatus -from .raw_client import AsyncRawForceResyncClient, RawForceResyncClient - - -class ForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawForceResyncClient - """ - return self._raw_client - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.force_resync.sync_status_resync_create() - """ - _response = self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data - - -class AsyncForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawForceResyncClient - """ - return self._raw_client - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.force_resync.sync_status_resync_create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/force_resync/raw_client.py b/src/merge/resources/ats/resources/force_resync/raw_client.py deleted file mode 100644 index 49601e04..00000000 --- a/src/merge/resources/ats/resources/force_resync/raw_client.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.sync_status import SyncStatus - - -class RawForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SyncStatus]] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SyncStatus]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/generate_key/__init__.py b/src/merge/resources/ats/resources/generate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/generate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/generate_key/client.py b/src/merge/resources/ats/resources/generate_key/client.py deleted file mode 100644 index 93955743..00000000 --- a/src/merge/resources/ats/resources/generate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawGenerateKeyClient, RawGenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.generate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.generate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/generate_key/raw_client.py b/src/merge/resources/ats/resources/generate_key/raw_client.py deleted file mode 100644 index 91614905..00000000 --- a/src/merge/resources/ats/resources/generate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/interviews/__init__.py b/src/merge/resources/ats/resources/interviews/__init__.py deleted file mode 100644 index 738a94e5..00000000 --- a/src/merge/resources/ats/resources/interviews/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import InterviewsListRequestExpand, InterviewsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "InterviewsListRequestExpand": ".types", - "InterviewsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["InterviewsListRequestExpand", "InterviewsRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/interviews/client.py b/src/merge/resources/ats/resources/interviews/client.py deleted file mode 100644 index 8745eaaf..00000000 --- a/src/merge/resources/ats/resources/interviews/client.py +++ /dev/null @@ -1,679 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_scheduled_interview_list import PaginatedScheduledInterviewList -from ...types.scheduled_interview import ScheduledInterview -from ...types.scheduled_interview_request import ScheduledInterviewRequest -from ...types.scheduled_interview_response import ScheduledInterviewResponse -from .raw_client import AsyncRawInterviewsClient, RawInterviewsClient -from .types.interviews_list_request_expand import InterviewsListRequestExpand -from .types.interviews_retrieve_request_expand import InterviewsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class InterviewsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawInterviewsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawInterviewsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawInterviewsClient - """ - return self._raw_client - - def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InterviewsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - job_interview_stage_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - organizer_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedScheduledInterviewList: - """ - Returns a list of `ScheduledInterview` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return interviews for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InterviewsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, wll only return interviews organized for this job. - - job_interview_stage_id : typing.Optional[str] - If provided, will only return interviews at this stage. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - organizer_id : typing.Optional[str] - If provided, will only return interviews organized by this user. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedScheduledInterviewList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.interviews import InterviewsListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.interviews.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=InterviewsListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - job_interview_stage_id="job_interview_stage_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - organizer_id="organizer_id", - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - application_id=application_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - job_id=job_id, - job_interview_stage_id=job_interview_stage_id, - modified_after=modified_after, - modified_before=modified_before, - organizer_id=organizer_id, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ScheduledInterviewRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ScheduledInterviewResponse: - """ - Creates a `ScheduledInterview` object with the given values. - - Parameters - ---------- - model : ScheduledInterviewRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ScheduledInterviewResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ats import ScheduledInterviewRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.interviews.create( - is_debug_mode=True, - run_async=True, - model=ScheduledInterviewRequest(), - remote_user_id="remote_user_id", - ) - """ - _response = self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[InterviewsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ScheduledInterview: - """ - Returns a `ScheduledInterview` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InterviewsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ScheduledInterview - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.interviews import ( - InterviewsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.interviews.retrieve( - id="id", - expand=InterviewsRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `ScheduledInterview` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.interviews.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncInterviewsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawInterviewsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawInterviewsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawInterviewsClient - """ - return self._raw_client - - async def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InterviewsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - job_interview_stage_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - organizer_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedScheduledInterviewList: - """ - Returns a list of `ScheduledInterview` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return interviews for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InterviewsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, wll only return interviews organized for this job. - - job_interview_stage_id : typing.Optional[str] - If provided, will only return interviews at this stage. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - organizer_id : typing.Optional[str] - If provided, will only return interviews organized by this user. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedScheduledInterviewList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.interviews import InterviewsListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.interviews.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=InterviewsListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - job_interview_stage_id="job_interview_stage_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - organizer_id="organizer_id", - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - application_id=application_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - job_id=job_id, - job_interview_stage_id=job_interview_stage_id, - modified_after=modified_after, - modified_before=modified_before, - organizer_id=organizer_id, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ScheduledInterviewRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ScheduledInterviewResponse: - """ - Creates a `ScheduledInterview` object with the given values. - - Parameters - ---------- - model : ScheduledInterviewRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ScheduledInterviewResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import ScheduledInterviewRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.interviews.create( - is_debug_mode=True, - run_async=True, - model=ScheduledInterviewRequest(), - remote_user_id="remote_user_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, - remote_user_id=remote_user_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[InterviewsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> ScheduledInterview: - """ - Returns a `ScheduledInterview` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InterviewsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ScheduledInterview - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.interviews import ( - InterviewsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.interviews.retrieve( - id="id", - expand=InterviewsRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `ScheduledInterview` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.interviews.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/interviews/raw_client.py b/src/merge/resources/ats/resources/interviews/raw_client.py deleted file mode 100644 index 92c42e5e..00000000 --- a/src/merge/resources/ats/resources/interviews/raw_client.py +++ /dev/null @@ -1,619 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_scheduled_interview_list import PaginatedScheduledInterviewList -from ...types.scheduled_interview import ScheduledInterview -from ...types.scheduled_interview_request import ScheduledInterviewRequest -from ...types.scheduled_interview_response import ScheduledInterviewResponse -from .types.interviews_list_request_expand import InterviewsListRequestExpand -from .types.interviews_retrieve_request_expand import InterviewsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawInterviewsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InterviewsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - job_interview_stage_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - organizer_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedScheduledInterviewList]: - """ - Returns a list of `ScheduledInterview` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return interviews for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InterviewsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, wll only return interviews organized for this job. - - job_interview_stage_id : typing.Optional[str] - If provided, will only return interviews at this stage. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - organizer_id : typing.Optional[str] - If provided, will only return interviews organized by this user. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedScheduledInterviewList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/interviews", - method="GET", - params={ - "application_id": application_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "job_id": job_id, - "job_interview_stage_id": job_interview_stage_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "organizer_id": organizer_id, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedScheduledInterviewList, - construct_type( - type_=PaginatedScheduledInterviewList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ScheduledInterviewRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ScheduledInterviewResponse]: - """ - Creates a `ScheduledInterview` object with the given values. - - Parameters - ---------- - model : ScheduledInterviewRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ScheduledInterviewResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/interviews", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ScheduledInterviewResponse, - construct_type( - type_=ScheduledInterviewResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[InterviewsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[ScheduledInterview]: - """ - Returns a `ScheduledInterview` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InterviewsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ScheduledInterview] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/interviews/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ScheduledInterview, - construct_type( - type_=ScheduledInterview, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `ScheduledInterview` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/interviews/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawInterviewsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[InterviewsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - job_interview_stage_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - organizer_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedScheduledInterviewList]: - """ - Returns a list of `ScheduledInterview` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return interviews for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[InterviewsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, wll only return interviews organized for this job. - - job_interview_stage_id : typing.Optional[str] - If provided, will only return interviews at this stage. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - organizer_id : typing.Optional[str] - If provided, will only return interviews organized by this user. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedScheduledInterviewList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/interviews", - method="GET", - params={ - "application_id": application_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "job_id": job_id, - "job_interview_stage_id": job_interview_stage_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "organizer_id": organizer_id, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedScheduledInterviewList, - construct_type( - type_=PaginatedScheduledInterviewList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ScheduledInterviewRequest, - remote_user_id: str, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ScheduledInterviewResponse]: - """ - Creates a `ScheduledInterview` object with the given values. - - Parameters - ---------- - model : ScheduledInterviewRequest - - remote_user_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ScheduledInterviewResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/interviews", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - "remote_user_id": remote_user_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ScheduledInterviewResponse, - construct_type( - type_=ScheduledInterviewResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[InterviewsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[ScheduledInterview]: - """ - Returns a `ScheduledInterview` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[InterviewsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ScheduledInterview] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/interviews/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ScheduledInterview, - construct_type( - type_=ScheduledInterview, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `ScheduledInterview` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/interviews/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/interviews/types/__init__.py b/src/merge/resources/ats/resources/interviews/types/__init__.py deleted file mode 100644 index 107a6425..00000000 --- a/src/merge/resources/ats/resources/interviews/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .interviews_list_request_expand import InterviewsListRequestExpand - from .interviews_retrieve_request_expand import InterviewsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "InterviewsListRequestExpand": ".interviews_list_request_expand", - "InterviewsRetrieveRequestExpand": ".interviews_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["InterviewsListRequestExpand", "InterviewsRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/interviews/types/interviews_list_request_expand.py b/src/merge/resources/ats/resources/interviews/types/interviews_list_request_expand.py deleted file mode 100644 index b2883326..00000000 --- a/src/merge/resources/ats/resources/interviews/types/interviews_list_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InterviewsListRequestExpand(str, enum.Enum): - APPLICATION = "application" - APPLICATION_JOB_INTERVIEW_STAGE = "application,job_interview_stage" - INTERVIEWERS = "interviewers" - INTERVIEWERS_APPLICATION = "interviewers,application" - INTERVIEWERS_APPLICATION_JOB_INTERVIEW_STAGE = "interviewers,application,job_interview_stage" - INTERVIEWERS_JOB_INTERVIEW_STAGE = "interviewers,job_interview_stage" - INTERVIEWERS_ORGANIZER = "interviewers,organizer" - INTERVIEWERS_ORGANIZER_APPLICATION = "interviewers,organizer,application" - INTERVIEWERS_ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE = "interviewers,organizer,application,job_interview_stage" - INTERVIEWERS_ORGANIZER_JOB_INTERVIEW_STAGE = "interviewers,organizer,job_interview_stage" - JOB_INTERVIEW_STAGE = "job_interview_stage" - ORGANIZER = "organizer" - ORGANIZER_APPLICATION = "organizer,application" - ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE = "organizer,application,job_interview_stage" - ORGANIZER_JOB_INTERVIEW_STAGE = "organizer,job_interview_stage" - - def visit( - self, - application: typing.Callable[[], T_Result], - application_job_interview_stage: typing.Callable[[], T_Result], - interviewers: typing.Callable[[], T_Result], - interviewers_application: typing.Callable[[], T_Result], - interviewers_application_job_interview_stage: typing.Callable[[], T_Result], - interviewers_job_interview_stage: typing.Callable[[], T_Result], - interviewers_organizer: typing.Callable[[], T_Result], - interviewers_organizer_application: typing.Callable[[], T_Result], - interviewers_organizer_application_job_interview_stage: typing.Callable[[], T_Result], - interviewers_organizer_job_interview_stage: typing.Callable[[], T_Result], - job_interview_stage: typing.Callable[[], T_Result], - organizer: typing.Callable[[], T_Result], - organizer_application: typing.Callable[[], T_Result], - organizer_application_job_interview_stage: typing.Callable[[], T_Result], - organizer_job_interview_stage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is InterviewsListRequestExpand.APPLICATION: - return application() - if self is InterviewsListRequestExpand.APPLICATION_JOB_INTERVIEW_STAGE: - return application_job_interview_stage() - if self is InterviewsListRequestExpand.INTERVIEWERS: - return interviewers() - if self is InterviewsListRequestExpand.INTERVIEWERS_APPLICATION: - return interviewers_application() - if self is InterviewsListRequestExpand.INTERVIEWERS_APPLICATION_JOB_INTERVIEW_STAGE: - return interviewers_application_job_interview_stage() - if self is InterviewsListRequestExpand.INTERVIEWERS_JOB_INTERVIEW_STAGE: - return interviewers_job_interview_stage() - if self is InterviewsListRequestExpand.INTERVIEWERS_ORGANIZER: - return interviewers_organizer() - if self is InterviewsListRequestExpand.INTERVIEWERS_ORGANIZER_APPLICATION: - return interviewers_organizer_application() - if self is InterviewsListRequestExpand.INTERVIEWERS_ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE: - return interviewers_organizer_application_job_interview_stage() - if self is InterviewsListRequestExpand.INTERVIEWERS_ORGANIZER_JOB_INTERVIEW_STAGE: - return interviewers_organizer_job_interview_stage() - if self is InterviewsListRequestExpand.JOB_INTERVIEW_STAGE: - return job_interview_stage() - if self is InterviewsListRequestExpand.ORGANIZER: - return organizer() - if self is InterviewsListRequestExpand.ORGANIZER_APPLICATION: - return organizer_application() - if self is InterviewsListRequestExpand.ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE: - return organizer_application_job_interview_stage() - if self is InterviewsListRequestExpand.ORGANIZER_JOB_INTERVIEW_STAGE: - return organizer_job_interview_stage() diff --git a/src/merge/resources/ats/resources/interviews/types/interviews_retrieve_request_expand.py b/src/merge/resources/ats/resources/interviews/types/interviews_retrieve_request_expand.py deleted file mode 100644 index 874440e0..00000000 --- a/src/merge/resources/ats/resources/interviews/types/interviews_retrieve_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class InterviewsRetrieveRequestExpand(str, enum.Enum): - APPLICATION = "application" - APPLICATION_JOB_INTERVIEW_STAGE = "application,job_interview_stage" - INTERVIEWERS = "interviewers" - INTERVIEWERS_APPLICATION = "interviewers,application" - INTERVIEWERS_APPLICATION_JOB_INTERVIEW_STAGE = "interviewers,application,job_interview_stage" - INTERVIEWERS_JOB_INTERVIEW_STAGE = "interviewers,job_interview_stage" - INTERVIEWERS_ORGANIZER = "interviewers,organizer" - INTERVIEWERS_ORGANIZER_APPLICATION = "interviewers,organizer,application" - INTERVIEWERS_ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE = "interviewers,organizer,application,job_interview_stage" - INTERVIEWERS_ORGANIZER_JOB_INTERVIEW_STAGE = "interviewers,organizer,job_interview_stage" - JOB_INTERVIEW_STAGE = "job_interview_stage" - ORGANIZER = "organizer" - ORGANIZER_APPLICATION = "organizer,application" - ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE = "organizer,application,job_interview_stage" - ORGANIZER_JOB_INTERVIEW_STAGE = "organizer,job_interview_stage" - - def visit( - self, - application: typing.Callable[[], T_Result], - application_job_interview_stage: typing.Callable[[], T_Result], - interviewers: typing.Callable[[], T_Result], - interviewers_application: typing.Callable[[], T_Result], - interviewers_application_job_interview_stage: typing.Callable[[], T_Result], - interviewers_job_interview_stage: typing.Callable[[], T_Result], - interviewers_organizer: typing.Callable[[], T_Result], - interviewers_organizer_application: typing.Callable[[], T_Result], - interviewers_organizer_application_job_interview_stage: typing.Callable[[], T_Result], - interviewers_organizer_job_interview_stage: typing.Callable[[], T_Result], - job_interview_stage: typing.Callable[[], T_Result], - organizer: typing.Callable[[], T_Result], - organizer_application: typing.Callable[[], T_Result], - organizer_application_job_interview_stage: typing.Callable[[], T_Result], - organizer_job_interview_stage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is InterviewsRetrieveRequestExpand.APPLICATION: - return application() - if self is InterviewsRetrieveRequestExpand.APPLICATION_JOB_INTERVIEW_STAGE: - return application_job_interview_stage() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS: - return interviewers() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS_APPLICATION: - return interviewers_application() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS_APPLICATION_JOB_INTERVIEW_STAGE: - return interviewers_application_job_interview_stage() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS_JOB_INTERVIEW_STAGE: - return interviewers_job_interview_stage() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS_ORGANIZER: - return interviewers_organizer() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS_ORGANIZER_APPLICATION: - return interviewers_organizer_application() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS_ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE: - return interviewers_organizer_application_job_interview_stage() - if self is InterviewsRetrieveRequestExpand.INTERVIEWERS_ORGANIZER_JOB_INTERVIEW_STAGE: - return interviewers_organizer_job_interview_stage() - if self is InterviewsRetrieveRequestExpand.JOB_INTERVIEW_STAGE: - return job_interview_stage() - if self is InterviewsRetrieveRequestExpand.ORGANIZER: - return organizer() - if self is InterviewsRetrieveRequestExpand.ORGANIZER_APPLICATION: - return organizer_application() - if self is InterviewsRetrieveRequestExpand.ORGANIZER_APPLICATION_JOB_INTERVIEW_STAGE: - return organizer_application_job_interview_stage() - if self is InterviewsRetrieveRequestExpand.ORGANIZER_JOB_INTERVIEW_STAGE: - return organizer_job_interview_stage() diff --git a/src/merge/resources/ats/resources/issues/__init__.py b/src/merge/resources/ats/resources/issues/__init__.py deleted file mode 100644 index 3ca1094b..00000000 --- a/src/merge/resources/ats/resources/issues/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/ats/resources/issues/client.py b/src/merge/resources/ats/resources/issues/client.py deleted file mode 100644 index 247d273f..00000000 --- a/src/merge/resources/ats/resources/issues/client.py +++ /dev/null @@ -1,378 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .raw_client import AsyncRawIssuesClient, RawIssuesClient -from .types.issues_list_request_status import IssuesListRequestStatus - - -class IssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIssuesClient - """ - return self._raw_client - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.issues import IssuesListRequestStatus - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - """ - _response = self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.issues.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIssuesClient - """ - return self._raw_client - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.issues import IssuesListRequestStatus - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.issues.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/issues/raw_client.py b/src/merge/resources/ats/resources/issues/raw_client.py deleted file mode 100644 index 00602bce..00000000 --- a/src/merge/resources/ats/resources/issues/raw_client.py +++ /dev/null @@ -1,336 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .types.issues_list_request_status import IssuesListRequestStatus - - -class RawIssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIssueList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Issue] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIssueList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Issue] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/issues/types/__init__.py b/src/merge/resources/ats/resources/issues/types/__init__.py deleted file mode 100644 index 88fbf977..00000000 --- a/src/merge/resources/ats/resources/issues/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .issues_list_request_status import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/ats/resources/issues/types/issues_list_request_status.py b/src/merge/resources/ats/resources/issues/types/issues_list_request_status.py deleted file mode 100644 index 2bd3521e..00000000 --- a/src/merge/resources/ats/resources/issues/types/issues_list_request_status.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssuesListRequestStatus(str, enum.Enum): - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssuesListRequestStatus.ONGOING: - return ongoing() - if self is IssuesListRequestStatus.RESOLVED: - return resolved() diff --git a/src/merge/resources/ats/resources/job_interview_stages/__init__.py b/src/merge/resources/ats/resources/job_interview_stages/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/job_interview_stages/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/job_interview_stages/client.py b/src/merge/resources/ats/resources/job_interview_stages/client.py deleted file mode 100644 index 65748ba2..00000000 --- a/src/merge/resources/ats/resources/job_interview_stages/client.py +++ /dev/null @@ -1,399 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.job_interview_stage import JobInterviewStage -from ...types.paginated_job_interview_stage_list import PaginatedJobInterviewStageList -from .raw_client import AsyncRawJobInterviewStagesClient, RawJobInterviewStagesClient - - -class JobInterviewStagesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawJobInterviewStagesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawJobInterviewStagesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawJobInterviewStagesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJobInterviewStageList: - """ - Returns a list of `JobInterviewStage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return interview stages for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJobInterviewStageList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.job_interview_stages.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - job_id=job_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JobInterviewStage: - """ - Returns a `JobInterviewStage` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JobInterviewStage - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.job_interview_stages.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncJobInterviewStagesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawJobInterviewStagesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawJobInterviewStagesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawJobInterviewStagesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJobInterviewStageList: - """ - Returns a list of `JobInterviewStage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return interview stages for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJobInterviewStageList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.job_interview_stages.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - job_id="job_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - job_id=job_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JobInterviewStage: - """ - Returns a `JobInterviewStage` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JobInterviewStage - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.job_interview_stages.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/job_interview_stages/raw_client.py b/src/merge/resources/ats/resources/job_interview_stages/raw_client.py deleted file mode 100644 index 8d2bd2da..00000000 --- a/src/merge/resources/ats/resources/job_interview_stages/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.job_interview_stage import JobInterviewStage -from ...types.paginated_job_interview_stage_list import PaginatedJobInterviewStageList - - -class RawJobInterviewStagesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedJobInterviewStageList]: - """ - Returns a list of `JobInterviewStage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return interview stages for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedJobInterviewStageList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/job-interview-stages", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "job_id": job_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJobInterviewStageList, - construct_type( - type_=PaginatedJobInterviewStageList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[JobInterviewStage]: - """ - Returns a `JobInterviewStage` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[JobInterviewStage] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/job-interview-stages/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JobInterviewStage, - construct_type( - type_=JobInterviewStage, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawJobInterviewStagesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedJobInterviewStageList]: - """ - Returns a list of `JobInterviewStage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_id : typing.Optional[str] - If provided, will only return interview stages for this job. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedJobInterviewStageList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/job-interview-stages", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "job_id": job_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJobInterviewStageList, - construct_type( - type_=PaginatedJobInterviewStageList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[JobInterviewStage]: - """ - Returns a `JobInterviewStage` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[JobInterviewStage] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/job-interview-stages/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JobInterviewStage, - construct_type( - type_=JobInterviewStage, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/job_postings/__init__.py b/src/merge/resources/ats/resources/job_postings/__init__.py deleted file mode 100644 index 64d6e432..00000000 --- a/src/merge/resources/ats/resources/job_postings/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import JobPostingsListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"JobPostingsListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["JobPostingsListRequestStatus"] diff --git a/src/merge/resources/ats/resources/job_postings/client.py b/src/merge/resources/ats/resources/job_postings/client.py deleted file mode 100644 index d3847a9b..00000000 --- a/src/merge/resources/ats/resources/job_postings/client.py +++ /dev/null @@ -1,418 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.job_posting import JobPosting -from ...types.paginated_job_posting_list import PaginatedJobPostingList -from .raw_client import AsyncRawJobPostingsClient, RawJobPostingsClient -from .types.job_postings_list_request_status import JobPostingsListRequestStatus - - -class JobPostingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawJobPostingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawJobPostingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawJobPostingsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - status: typing.Optional[JobPostingsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJobPostingList: - """ - Returns a list of `JobPosting` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - status : typing.Optional[JobPostingsListRequestStatus] - If provided, will only return Job Postings with this status. Options: ('PUBLISHED', 'CLOSED', 'DRAFT', 'INTERNAL', 'PENDING') - - * `PUBLISHED` - PUBLISHED - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `INTERNAL` - INTERNAL - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJobPostingList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.job_postings import ( - JobPostingsListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.job_postings.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - status=JobPostingsListRequestStatus.CLOSED, - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JobPosting: - """ - Returns a `JobPosting` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JobPosting - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.job_postings.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncJobPostingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawJobPostingsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawJobPostingsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawJobPostingsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - status: typing.Optional[JobPostingsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJobPostingList: - """ - Returns a list of `JobPosting` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - status : typing.Optional[JobPostingsListRequestStatus] - If provided, will only return Job Postings with this status. Options: ('PUBLISHED', 'CLOSED', 'DRAFT', 'INTERNAL', 'PENDING') - - * `PUBLISHED` - PUBLISHED - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `INTERNAL` - INTERNAL - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJobPostingList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.job_postings import ( - JobPostingsListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.job_postings.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - status=JobPostingsListRequestStatus.CLOSED, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> JobPosting: - """ - Returns a `JobPosting` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - JobPosting - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.job_postings.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/job_postings/raw_client.py b/src/merge/resources/ats/resources/job_postings/raw_client.py deleted file mode 100644 index 93e9742a..00000000 --- a/src/merge/resources/ats/resources/job_postings/raw_client.py +++ /dev/null @@ -1,354 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.job_posting import JobPosting -from ...types.paginated_job_posting_list import PaginatedJobPostingList -from .types.job_postings_list_request_status import JobPostingsListRequestStatus - - -class RawJobPostingsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - status: typing.Optional[JobPostingsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedJobPostingList]: - """ - Returns a list of `JobPosting` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - status : typing.Optional[JobPostingsListRequestStatus] - If provided, will only return Job Postings with this status. Options: ('PUBLISHED', 'CLOSED', 'DRAFT', 'INTERNAL', 'PENDING') - - * `PUBLISHED` - PUBLISHED - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `INTERNAL` - INTERNAL - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedJobPostingList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/job-postings", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJobPostingList, - construct_type( - type_=PaginatedJobPostingList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[JobPosting]: - """ - Returns a `JobPosting` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[JobPosting] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/job-postings/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JobPosting, - construct_type( - type_=JobPosting, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawJobPostingsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["job"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - status: typing.Optional[JobPostingsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedJobPostingList]: - """ - Returns a list of `JobPosting` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - status : typing.Optional[JobPostingsListRequestStatus] - If provided, will only return Job Postings with this status. Options: ('PUBLISHED', 'CLOSED', 'DRAFT', 'INTERNAL', 'PENDING') - - * `PUBLISHED` - PUBLISHED - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `INTERNAL` - INTERNAL - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedJobPostingList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/job-postings", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJobPostingList, - construct_type( - type_=PaginatedJobPostingList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["job"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[JobPosting]: - """ - Returns a `JobPosting` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["job"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[JobPosting] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/job-postings/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - JobPosting, - construct_type( - type_=JobPosting, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/job_postings/types/__init__.py b/src/merge/resources/ats/resources/job_postings/types/__init__.py deleted file mode 100644 index 1e05a87a..00000000 --- a/src/merge/resources/ats/resources/job_postings/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .job_postings_list_request_status import JobPostingsListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"JobPostingsListRequestStatus": ".job_postings_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["JobPostingsListRequestStatus"] diff --git a/src/merge/resources/ats/resources/job_postings/types/job_postings_list_request_status.py b/src/merge/resources/ats/resources/job_postings/types/job_postings_list_request_status.py deleted file mode 100644 index adbba7ee..00000000 --- a/src/merge/resources/ats/resources/job_postings/types/job_postings_list_request_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobPostingsListRequestStatus(str, enum.Enum): - CLOSED = "CLOSED" - DRAFT = "DRAFT" - INTERNAL = "INTERNAL" - PENDING = "PENDING" - PUBLISHED = "PUBLISHED" - - def visit( - self, - closed: typing.Callable[[], T_Result], - draft: typing.Callable[[], T_Result], - internal: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - published: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobPostingsListRequestStatus.CLOSED: - return closed() - if self is JobPostingsListRequestStatus.DRAFT: - return draft() - if self is JobPostingsListRequestStatus.INTERNAL: - return internal() - if self is JobPostingsListRequestStatus.PENDING: - return pending() - if self is JobPostingsListRequestStatus.PUBLISHED: - return published() diff --git a/src/merge/resources/ats/resources/jobs/__init__.py b/src/merge/resources/ats/resources/jobs/__init__.py deleted file mode 100644 index dfa70893..00000000 --- a/src/merge/resources/ats/resources/jobs/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - JobsListRequestExpand, - JobsListRequestStatus, - JobsRetrieveRequestExpand, - JobsScreeningQuestionsListRequestExpand, - ) -_dynamic_imports: typing.Dict[str, str] = { - "JobsListRequestExpand": ".types", - "JobsListRequestStatus": ".types", - "JobsRetrieveRequestExpand": ".types", - "JobsScreeningQuestionsListRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "JobsListRequestExpand", - "JobsListRequestStatus", - "JobsRetrieveRequestExpand", - "JobsScreeningQuestionsListRequestExpand", -] diff --git a/src/merge/resources/ats/resources/jobs/client.py b/src/merge/resources/ats/resources/jobs/client.py deleted file mode 100644 index 732d144c..00000000 --- a/src/merge/resources/ats/resources/jobs/client.py +++ /dev/null @@ -1,658 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.job import Job -from ...types.paginated_job_list import PaginatedJobList -from ...types.paginated_screening_question_list import PaginatedScreeningQuestionList -from .raw_client import AsyncRawJobsClient, RawJobsClient -from .types.jobs_list_request_expand import JobsListRequestExpand -from .types.jobs_list_request_status import JobsListRequestStatus -from .types.jobs_retrieve_request_expand import JobsRetrieveRequestExpand -from .types.jobs_screening_questions_list_request_expand import JobsScreeningQuestionsListRequestExpand - - -class JobsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawJobsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawJobsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawJobsClient - """ - return self._raw_client - - def list( - self, - *, - code: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - offices: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[JobsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJobList: - """ - Returns a list of `Job` objects. - - Parameters - ---------- - code : typing.Optional[str] - If provided, will only return jobs with this code. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - offices : typing.Optional[str] - If provided, will only return jobs for this office; multiple offices can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[JobsListRequestStatus] - If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `ARCHIVED` - ARCHIVED - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJobList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.jobs import ( - JobsListRequestExpand, - JobsListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.jobs.list( - code="code", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JobsListRequestExpand.DEPARTMENTS, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - offices="offices", - page_size=1, - remote_id="remote_id", - status=JobsListRequestStatus.ARCHIVED, - ) - """ - _response = self._raw_client.list( - code=code, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - offices=offices, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[JobsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Job: - """ - Returns a `Job` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JobsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Job - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.jobs import JobsRetrieveRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.jobs.retrieve( - id="id", - expand=JobsRetrieveRequestExpand.DEPARTMENTS, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def screening_questions_list( - self, - job_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsScreeningQuestionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedScreeningQuestionList: - """ - Returns a list of `ScreeningQuestion` objects. - - Parameters - ---------- - job_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsScreeningQuestionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedScreeningQuestionList - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.jobs import ( - JobsScreeningQuestionsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.jobs.screening_questions_list( - job_id="job_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JobsScreeningQuestionsListRequestExpand.JOB, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.screening_questions_list( - job_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncJobsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawJobsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawJobsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawJobsClient - """ - return self._raw_client - - async def list( - self, - *, - code: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - offices: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[JobsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedJobList: - """ - Returns a list of `Job` objects. - - Parameters - ---------- - code : typing.Optional[str] - If provided, will only return jobs with this code. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - offices : typing.Optional[str] - If provided, will only return jobs for this office; multiple offices can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[JobsListRequestStatus] - If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `ARCHIVED` - ARCHIVED - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedJobList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.jobs import ( - JobsListRequestExpand, - JobsListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.jobs.list( - code="code", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JobsListRequestExpand.DEPARTMENTS, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - offices="offices", - page_size=1, - remote_id="remote_id", - status=JobsListRequestStatus.ARCHIVED, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - code=code, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - offices=offices, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[JobsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Job: - """ - Returns a `Job` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JobsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Job - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.jobs import JobsRetrieveRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.jobs.retrieve( - id="id", - expand=JobsRetrieveRequestExpand.DEPARTMENTS, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def screening_questions_list( - self, - job_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsScreeningQuestionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedScreeningQuestionList: - """ - Returns a list of `ScreeningQuestion` objects. - - Parameters - ---------- - job_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsScreeningQuestionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedScreeningQuestionList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.jobs import ( - JobsScreeningQuestionsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.jobs.screening_questions_list( - job_id="job_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=JobsScreeningQuestionsListRequestExpand.JOB, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.screening_questions_list( - job_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/jobs/raw_client.py b/src/merge/resources/ats/resources/jobs/raw_client.py deleted file mode 100644 index 2bfca594..00000000 --- a/src/merge/resources/ats/resources/jobs/raw_client.py +++ /dev/null @@ -1,564 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.job import Job -from ...types.paginated_job_list import PaginatedJobList -from ...types.paginated_screening_question_list import PaginatedScreeningQuestionList -from .types.jobs_list_request_expand import JobsListRequestExpand -from .types.jobs_list_request_status import JobsListRequestStatus -from .types.jobs_retrieve_request_expand import JobsRetrieveRequestExpand -from .types.jobs_screening_questions_list_request_expand import JobsScreeningQuestionsListRequestExpand - - -class RawJobsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - code: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - offices: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[JobsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedJobList]: - """ - Returns a list of `Job` objects. - - Parameters - ---------- - code : typing.Optional[str] - If provided, will only return jobs with this code. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - offices : typing.Optional[str] - If provided, will only return jobs for this office; multiple offices can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[JobsListRequestStatus] - If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `ARCHIVED` - ARCHIVED - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedJobList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/jobs", - method="GET", - params={ - "code": code, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "offices": offices, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJobList, - construct_type( - type_=PaginatedJobList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[JobsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Job]: - """ - Returns a `Job` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JobsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Job] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/jobs/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Job, - construct_type( - type_=Job, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def screening_questions_list( - self, - job_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsScreeningQuestionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedScreeningQuestionList]: - """ - Returns a list of `ScreeningQuestion` objects. - - Parameters - ---------- - job_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsScreeningQuestionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedScreeningQuestionList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/jobs/{jsonable_encoder(job_id)}/screening-questions", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedScreeningQuestionList, - construct_type( - type_=PaginatedScreeningQuestionList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawJobsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - code: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - offices: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - status: typing.Optional[JobsListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedJobList]: - """ - Returns a list of `Job` objects. - - Parameters - ---------- - code : typing.Optional[str] - If provided, will only return jobs with this code. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - offices : typing.Optional[str] - If provided, will only return jobs for this office; multiple offices can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[JobsListRequestStatus] - If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `ARCHIVED` - ARCHIVED - * `PENDING` - PENDING - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedJobList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/jobs", - method="GET", - params={ - "code": code, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "offices": offices, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedJobList, - construct_type( - type_=PaginatedJobList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[JobsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Job]: - """ - Returns a `Job` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[JobsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Job] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/jobs/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Job, - construct_type( - type_=Job, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def screening_questions_list( - self, - job_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[JobsScreeningQuestionsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedScreeningQuestionList]: - """ - Returns a list of `ScreeningQuestion` objects. - - Parameters - ---------- - job_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[JobsScreeningQuestionsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedScreeningQuestionList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/jobs/{jsonable_encoder(job_id)}/screening-questions", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedScreeningQuestionList, - construct_type( - type_=PaginatedScreeningQuestionList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/jobs/types/__init__.py b/src/merge/resources/ats/resources/jobs/types/__init__.py deleted file mode 100644 index a0a63aa0..00000000 --- a/src/merge/resources/ats/resources/jobs/types/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .jobs_list_request_expand import JobsListRequestExpand - from .jobs_list_request_status import JobsListRequestStatus - from .jobs_retrieve_request_expand import JobsRetrieveRequestExpand - from .jobs_screening_questions_list_request_expand import JobsScreeningQuestionsListRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "JobsListRequestExpand": ".jobs_list_request_expand", - "JobsListRequestStatus": ".jobs_list_request_status", - "JobsRetrieveRequestExpand": ".jobs_retrieve_request_expand", - "JobsScreeningQuestionsListRequestExpand": ".jobs_screening_questions_list_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "JobsListRequestExpand", - "JobsListRequestStatus", - "JobsRetrieveRequestExpand", - "JobsScreeningQuestionsListRequestExpand", -] diff --git a/src/merge/resources/ats/resources/jobs/types/jobs_list_request_expand.py b/src/merge/resources/ats/resources/jobs/types/jobs_list_request_expand.py deleted file mode 100644 index c6d97321..00000000 --- a/src/merge/resources/ats/resources/jobs/types/jobs_list_request_expand.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobsListRequestExpand(str, enum.Enum): - DEPARTMENTS = "departments" - DEPARTMENTS_HIRING_MANAGERS = "departments,hiring_managers" - DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS = "departments,hiring_managers,job_postings" - DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = "departments,hiring_managers,job_postings,recruiters" - DEPARTMENTS_HIRING_MANAGERS_RECRUITERS = "departments,hiring_managers,recruiters" - DEPARTMENTS_JOB_POSTINGS = "departments,job_postings" - DEPARTMENTS_JOB_POSTINGS_RECRUITERS = "departments,job_postings,recruiters" - DEPARTMENTS_OFFICES = "departments,offices" - DEPARTMENTS_OFFICES_HIRING_MANAGERS = "departments,offices,hiring_managers" - DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS = "departments,offices,hiring_managers,job_postings" - DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = ( - "departments,offices,hiring_managers,job_postings,recruiters" - ) - DEPARTMENTS_OFFICES_HIRING_MANAGERS_RECRUITERS = "departments,offices,hiring_managers,recruiters" - DEPARTMENTS_OFFICES_JOB_POSTINGS = "departments,offices,job_postings" - DEPARTMENTS_OFFICES_JOB_POSTINGS_RECRUITERS = "departments,offices,job_postings,recruiters" - DEPARTMENTS_OFFICES_RECRUITERS = "departments,offices,recruiters" - DEPARTMENTS_RECRUITERS = "departments,recruiters" - HIRING_MANAGERS = "hiring_managers" - HIRING_MANAGERS_JOB_POSTINGS = "hiring_managers,job_postings" - HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = "hiring_managers,job_postings,recruiters" - HIRING_MANAGERS_RECRUITERS = "hiring_managers,recruiters" - JOB_POSTINGS = "job_postings" - JOB_POSTINGS_RECRUITERS = "job_postings,recruiters" - OFFICES = "offices" - OFFICES_HIRING_MANAGERS = "offices,hiring_managers" - OFFICES_HIRING_MANAGERS_JOB_POSTINGS = "offices,hiring_managers,job_postings" - OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = "offices,hiring_managers,job_postings,recruiters" - OFFICES_HIRING_MANAGERS_RECRUITERS = "offices,hiring_managers,recruiters" - OFFICES_JOB_POSTINGS = "offices,job_postings" - OFFICES_JOB_POSTINGS_RECRUITERS = "offices,job_postings,recruiters" - OFFICES_RECRUITERS = "offices,recruiters" - RECRUITERS = "recruiters" - - def visit( - self, - departments: typing.Callable[[], T_Result], - departments_hiring_managers: typing.Callable[[], T_Result], - departments_hiring_managers_job_postings: typing.Callable[[], T_Result], - departments_hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - departments_hiring_managers_recruiters: typing.Callable[[], T_Result], - departments_job_postings: typing.Callable[[], T_Result], - departments_job_postings_recruiters: typing.Callable[[], T_Result], - departments_offices: typing.Callable[[], T_Result], - departments_offices_hiring_managers: typing.Callable[[], T_Result], - departments_offices_hiring_managers_job_postings: typing.Callable[[], T_Result], - departments_offices_hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - departments_offices_hiring_managers_recruiters: typing.Callable[[], T_Result], - departments_offices_job_postings: typing.Callable[[], T_Result], - departments_offices_job_postings_recruiters: typing.Callable[[], T_Result], - departments_offices_recruiters: typing.Callable[[], T_Result], - departments_recruiters: typing.Callable[[], T_Result], - hiring_managers: typing.Callable[[], T_Result], - hiring_managers_job_postings: typing.Callable[[], T_Result], - hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - hiring_managers_recruiters: typing.Callable[[], T_Result], - job_postings: typing.Callable[[], T_Result], - job_postings_recruiters: typing.Callable[[], T_Result], - offices: typing.Callable[[], T_Result], - offices_hiring_managers: typing.Callable[[], T_Result], - offices_hiring_managers_job_postings: typing.Callable[[], T_Result], - offices_hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - offices_hiring_managers_recruiters: typing.Callable[[], T_Result], - offices_job_postings: typing.Callable[[], T_Result], - offices_job_postings_recruiters: typing.Callable[[], T_Result], - offices_recruiters: typing.Callable[[], T_Result], - recruiters: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobsListRequestExpand.DEPARTMENTS: - return departments() - if self is JobsListRequestExpand.DEPARTMENTS_HIRING_MANAGERS: - return departments_hiring_managers() - if self is JobsListRequestExpand.DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS: - return departments_hiring_managers_job_postings() - if self is JobsListRequestExpand.DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return departments_hiring_managers_job_postings_recruiters() - if self is JobsListRequestExpand.DEPARTMENTS_HIRING_MANAGERS_RECRUITERS: - return departments_hiring_managers_recruiters() - if self is JobsListRequestExpand.DEPARTMENTS_JOB_POSTINGS: - return departments_job_postings() - if self is JobsListRequestExpand.DEPARTMENTS_JOB_POSTINGS_RECRUITERS: - return departments_job_postings_recruiters() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES: - return departments_offices() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS: - return departments_offices_hiring_managers() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS: - return departments_offices_hiring_managers_job_postings() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return departments_offices_hiring_managers_job_postings_recruiters() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS_RECRUITERS: - return departments_offices_hiring_managers_recruiters() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES_JOB_POSTINGS: - return departments_offices_job_postings() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES_JOB_POSTINGS_RECRUITERS: - return departments_offices_job_postings_recruiters() - if self is JobsListRequestExpand.DEPARTMENTS_OFFICES_RECRUITERS: - return departments_offices_recruiters() - if self is JobsListRequestExpand.DEPARTMENTS_RECRUITERS: - return departments_recruiters() - if self is JobsListRequestExpand.HIRING_MANAGERS: - return hiring_managers() - if self is JobsListRequestExpand.HIRING_MANAGERS_JOB_POSTINGS: - return hiring_managers_job_postings() - if self is JobsListRequestExpand.HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return hiring_managers_job_postings_recruiters() - if self is JobsListRequestExpand.HIRING_MANAGERS_RECRUITERS: - return hiring_managers_recruiters() - if self is JobsListRequestExpand.JOB_POSTINGS: - return job_postings() - if self is JobsListRequestExpand.JOB_POSTINGS_RECRUITERS: - return job_postings_recruiters() - if self is JobsListRequestExpand.OFFICES: - return offices() - if self is JobsListRequestExpand.OFFICES_HIRING_MANAGERS: - return offices_hiring_managers() - if self is JobsListRequestExpand.OFFICES_HIRING_MANAGERS_JOB_POSTINGS: - return offices_hiring_managers_job_postings() - if self is JobsListRequestExpand.OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return offices_hiring_managers_job_postings_recruiters() - if self is JobsListRequestExpand.OFFICES_HIRING_MANAGERS_RECRUITERS: - return offices_hiring_managers_recruiters() - if self is JobsListRequestExpand.OFFICES_JOB_POSTINGS: - return offices_job_postings() - if self is JobsListRequestExpand.OFFICES_JOB_POSTINGS_RECRUITERS: - return offices_job_postings_recruiters() - if self is JobsListRequestExpand.OFFICES_RECRUITERS: - return offices_recruiters() - if self is JobsListRequestExpand.RECRUITERS: - return recruiters() diff --git a/src/merge/resources/ats/resources/jobs/types/jobs_list_request_status.py b/src/merge/resources/ats/resources/jobs/types/jobs_list_request_status.py deleted file mode 100644 index 08fec15e..00000000 --- a/src/merge/resources/ats/resources/jobs/types/jobs_list_request_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobsListRequestStatus(str, enum.Enum): - ARCHIVED = "ARCHIVED" - CLOSED = "CLOSED" - DRAFT = "DRAFT" - OPEN = "OPEN" - PENDING = "PENDING" - - def visit( - self, - archived: typing.Callable[[], T_Result], - closed: typing.Callable[[], T_Result], - draft: typing.Callable[[], T_Result], - open: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobsListRequestStatus.ARCHIVED: - return archived() - if self is JobsListRequestStatus.CLOSED: - return closed() - if self is JobsListRequestStatus.DRAFT: - return draft() - if self is JobsListRequestStatus.OPEN: - return open() - if self is JobsListRequestStatus.PENDING: - return pending() diff --git a/src/merge/resources/ats/resources/jobs/types/jobs_retrieve_request_expand.py b/src/merge/resources/ats/resources/jobs/types/jobs_retrieve_request_expand.py deleted file mode 100644 index 8075a8c9..00000000 --- a/src/merge/resources/ats/resources/jobs/types/jobs_retrieve_request_expand.py +++ /dev/null @@ -1,139 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobsRetrieveRequestExpand(str, enum.Enum): - DEPARTMENTS = "departments" - DEPARTMENTS_HIRING_MANAGERS = "departments,hiring_managers" - DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS = "departments,hiring_managers,job_postings" - DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = "departments,hiring_managers,job_postings,recruiters" - DEPARTMENTS_HIRING_MANAGERS_RECRUITERS = "departments,hiring_managers,recruiters" - DEPARTMENTS_JOB_POSTINGS = "departments,job_postings" - DEPARTMENTS_JOB_POSTINGS_RECRUITERS = "departments,job_postings,recruiters" - DEPARTMENTS_OFFICES = "departments,offices" - DEPARTMENTS_OFFICES_HIRING_MANAGERS = "departments,offices,hiring_managers" - DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS = "departments,offices,hiring_managers,job_postings" - DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = ( - "departments,offices,hiring_managers,job_postings,recruiters" - ) - DEPARTMENTS_OFFICES_HIRING_MANAGERS_RECRUITERS = "departments,offices,hiring_managers,recruiters" - DEPARTMENTS_OFFICES_JOB_POSTINGS = "departments,offices,job_postings" - DEPARTMENTS_OFFICES_JOB_POSTINGS_RECRUITERS = "departments,offices,job_postings,recruiters" - DEPARTMENTS_OFFICES_RECRUITERS = "departments,offices,recruiters" - DEPARTMENTS_RECRUITERS = "departments,recruiters" - HIRING_MANAGERS = "hiring_managers" - HIRING_MANAGERS_JOB_POSTINGS = "hiring_managers,job_postings" - HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = "hiring_managers,job_postings,recruiters" - HIRING_MANAGERS_RECRUITERS = "hiring_managers,recruiters" - JOB_POSTINGS = "job_postings" - JOB_POSTINGS_RECRUITERS = "job_postings,recruiters" - OFFICES = "offices" - OFFICES_HIRING_MANAGERS = "offices,hiring_managers" - OFFICES_HIRING_MANAGERS_JOB_POSTINGS = "offices,hiring_managers,job_postings" - OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS = "offices,hiring_managers,job_postings,recruiters" - OFFICES_HIRING_MANAGERS_RECRUITERS = "offices,hiring_managers,recruiters" - OFFICES_JOB_POSTINGS = "offices,job_postings" - OFFICES_JOB_POSTINGS_RECRUITERS = "offices,job_postings,recruiters" - OFFICES_RECRUITERS = "offices,recruiters" - RECRUITERS = "recruiters" - - def visit( - self, - departments: typing.Callable[[], T_Result], - departments_hiring_managers: typing.Callable[[], T_Result], - departments_hiring_managers_job_postings: typing.Callable[[], T_Result], - departments_hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - departments_hiring_managers_recruiters: typing.Callable[[], T_Result], - departments_job_postings: typing.Callable[[], T_Result], - departments_job_postings_recruiters: typing.Callable[[], T_Result], - departments_offices: typing.Callable[[], T_Result], - departments_offices_hiring_managers: typing.Callable[[], T_Result], - departments_offices_hiring_managers_job_postings: typing.Callable[[], T_Result], - departments_offices_hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - departments_offices_hiring_managers_recruiters: typing.Callable[[], T_Result], - departments_offices_job_postings: typing.Callable[[], T_Result], - departments_offices_job_postings_recruiters: typing.Callable[[], T_Result], - departments_offices_recruiters: typing.Callable[[], T_Result], - departments_recruiters: typing.Callable[[], T_Result], - hiring_managers: typing.Callable[[], T_Result], - hiring_managers_job_postings: typing.Callable[[], T_Result], - hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - hiring_managers_recruiters: typing.Callable[[], T_Result], - job_postings: typing.Callable[[], T_Result], - job_postings_recruiters: typing.Callable[[], T_Result], - offices: typing.Callable[[], T_Result], - offices_hiring_managers: typing.Callable[[], T_Result], - offices_hiring_managers_job_postings: typing.Callable[[], T_Result], - offices_hiring_managers_job_postings_recruiters: typing.Callable[[], T_Result], - offices_hiring_managers_recruiters: typing.Callable[[], T_Result], - offices_job_postings: typing.Callable[[], T_Result], - offices_job_postings_recruiters: typing.Callable[[], T_Result], - offices_recruiters: typing.Callable[[], T_Result], - recruiters: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobsRetrieveRequestExpand.DEPARTMENTS: - return departments() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_HIRING_MANAGERS: - return departments_hiring_managers() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS: - return departments_hiring_managers_job_postings() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return departments_hiring_managers_job_postings_recruiters() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_HIRING_MANAGERS_RECRUITERS: - return departments_hiring_managers_recruiters() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_JOB_POSTINGS: - return departments_job_postings() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_JOB_POSTINGS_RECRUITERS: - return departments_job_postings_recruiters() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES: - return departments_offices() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS: - return departments_offices_hiring_managers() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS: - return departments_offices_hiring_managers_job_postings() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return departments_offices_hiring_managers_job_postings_recruiters() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES_HIRING_MANAGERS_RECRUITERS: - return departments_offices_hiring_managers_recruiters() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES_JOB_POSTINGS: - return departments_offices_job_postings() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES_JOB_POSTINGS_RECRUITERS: - return departments_offices_job_postings_recruiters() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_OFFICES_RECRUITERS: - return departments_offices_recruiters() - if self is JobsRetrieveRequestExpand.DEPARTMENTS_RECRUITERS: - return departments_recruiters() - if self is JobsRetrieveRequestExpand.HIRING_MANAGERS: - return hiring_managers() - if self is JobsRetrieveRequestExpand.HIRING_MANAGERS_JOB_POSTINGS: - return hiring_managers_job_postings() - if self is JobsRetrieveRequestExpand.HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return hiring_managers_job_postings_recruiters() - if self is JobsRetrieveRequestExpand.HIRING_MANAGERS_RECRUITERS: - return hiring_managers_recruiters() - if self is JobsRetrieveRequestExpand.JOB_POSTINGS: - return job_postings() - if self is JobsRetrieveRequestExpand.JOB_POSTINGS_RECRUITERS: - return job_postings_recruiters() - if self is JobsRetrieveRequestExpand.OFFICES: - return offices() - if self is JobsRetrieveRequestExpand.OFFICES_HIRING_MANAGERS: - return offices_hiring_managers() - if self is JobsRetrieveRequestExpand.OFFICES_HIRING_MANAGERS_JOB_POSTINGS: - return offices_hiring_managers_job_postings() - if self is JobsRetrieveRequestExpand.OFFICES_HIRING_MANAGERS_JOB_POSTINGS_RECRUITERS: - return offices_hiring_managers_job_postings_recruiters() - if self is JobsRetrieveRequestExpand.OFFICES_HIRING_MANAGERS_RECRUITERS: - return offices_hiring_managers_recruiters() - if self is JobsRetrieveRequestExpand.OFFICES_JOB_POSTINGS: - return offices_job_postings() - if self is JobsRetrieveRequestExpand.OFFICES_JOB_POSTINGS_RECRUITERS: - return offices_job_postings_recruiters() - if self is JobsRetrieveRequestExpand.OFFICES_RECRUITERS: - return offices_recruiters() - if self is JobsRetrieveRequestExpand.RECRUITERS: - return recruiters() diff --git a/src/merge/resources/ats/resources/jobs/types/jobs_screening_questions_list_request_expand.py b/src/merge/resources/ats/resources/jobs/types/jobs_screening_questions_list_request_expand.py deleted file mode 100644 index 8fa46bd6..00000000 --- a/src/merge/resources/ats/resources/jobs/types/jobs_screening_questions_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobsScreeningQuestionsListRequestExpand(str, enum.Enum): - JOB = "job" - OPTIONS = "options" - OPTIONS_JOB = "options,job" - - def visit( - self, - job: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - options_job: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobsScreeningQuestionsListRequestExpand.JOB: - return job() - if self is JobsScreeningQuestionsListRequestExpand.OPTIONS: - return options() - if self is JobsScreeningQuestionsListRequestExpand.OPTIONS_JOB: - return options_job() diff --git a/src/merge/resources/ats/resources/link_token/__init__.py b/src/merge/resources/ats/resources/link_token/__init__.py deleted file mode 100644 index 3bad6adf..00000000 --- a/src/merge/resources/ats/resources/link_token/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/ats/resources/link_token/client.py b/src/merge/resources/ats/resources/link_token/client.py deleted file mode 100644 index 63de9768..00000000 --- a/src/merge/resources/ats/resources/link_token/client.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkTokenClient - """ - return self._raw_client - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - from merge import Merge - from merge.resources.ats import CategoriesEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - """ - _response = self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkTokenClient - """ - return self._raw_client - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import CategoriesEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/link_token/raw_client.py b/src/merge/resources/ats/resources/link_token/raw_client.py deleted file mode 100644 index 8051f896..00000000 --- a/src/merge/resources/ats/resources/link_token/raw_client.py +++ /dev/null @@ -1,256 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LinkToken] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LinkToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/link_token/types/__init__.py b/src/merge/resources/ats/resources/link_token/types/__init__.py deleted file mode 100644 index e9a7d3b9..00000000 --- a/src/merge/resources/ats/resources/link_token/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .end_user_details_request_language import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".end_user_details_request_language"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/ats/resources/link_token/types/end_user_details_request_language.py b/src/merge/resources/ats/resources/link_token/types/end_user_details_request_language.py deleted file mode 100644 index 65c4b44a..00000000 --- a/src/merge/resources/ats/resources/link_token/types/end_user_details_request_language.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.language_enum import LanguageEnum - -EndUserDetailsRequestLanguage = typing.Union[LanguageEnum, str] diff --git a/src/merge/resources/ats/resources/linked_accounts/__init__.py b/src/merge/resources/ats/resources/linked_accounts/__init__.py deleted file mode 100644 index 0b9e42b4..00000000 --- a/src/merge/resources/ats/resources/linked_accounts/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/ats/resources/linked_accounts/client.py b/src/merge/resources/ats/resources/linked_accounts/client.py deleted file mode 100644 index 6bce4b50..00000000 --- a/src/merge/resources/ats/resources/linked_accounts/client.py +++ /dev/null @@ -1,293 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class LinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - """ - _response = self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/linked_accounts/raw_client.py b/src/merge/resources/ats/resources/linked_accounts/raw_client.py deleted file mode 100644 index ff1e240c..00000000 --- a/src/merge/resources/ats/resources/linked_accounts/raw_client.py +++ /dev/null @@ -1,246 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class RawLinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/linked_accounts/types/__init__.py b/src/merge/resources/ats/resources/linked_accounts/types/__init__.py deleted file mode 100644 index a28f38cc..00000000 --- a/src/merge/resources/ats/resources/linked_accounts/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/ats/resources/linked_accounts/types/linked_accounts_list_request_category.py b/src/merge/resources/ats/resources/linked_accounts/types/linked_accounts_list_request_category.py deleted file mode 100644 index bd873ea8..00000000 --- a/src/merge/resources/ats/resources/linked_accounts/types/linked_accounts_list_request_category.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LinkedAccountsListRequestCategory(str, enum.Enum): - ACCOUNTING = "accounting" - ATS = "ats" - CRM = "crm" - FILESTORAGE = "filestorage" - HRIS = "hris" - MKTG = "mktg" - TICKETING = "ticketing" - - def visit( - self, - accounting: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - hris: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LinkedAccountsListRequestCategory.ACCOUNTING: - return accounting() - if self is LinkedAccountsListRequestCategory.ATS: - return ats() - if self is LinkedAccountsListRequestCategory.CRM: - return crm() - if self is LinkedAccountsListRequestCategory.FILESTORAGE: - return filestorage() - if self is LinkedAccountsListRequestCategory.HRIS: - return hris() - if self is LinkedAccountsListRequestCategory.MKTG: - return mktg() - if self is LinkedAccountsListRequestCategory.TICKETING: - return ticketing() diff --git a/src/merge/resources/ats/resources/offers/__init__.py b/src/merge/resources/ats/resources/offers/__init__.py deleted file mode 100644 index a02284e3..00000000 --- a/src/merge/resources/ats/resources/offers/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import OffersListRequestExpand, OffersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"OffersListRequestExpand": ".types", "OffersRetrieveRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["OffersListRequestExpand", "OffersRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/offers/client.py b/src/merge/resources/ats/resources/offers/client.py deleted file mode 100644 index 4d47e1b4..00000000 --- a/src/merge/resources/ats/resources/offers/client.py +++ /dev/null @@ -1,461 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.offer import Offer -from ...types.paginated_offer_list import PaginatedOfferList -from .raw_client import AsyncRawOffersClient, RawOffersClient -from .types.offers_list_request_expand import OffersListRequestExpand -from .types.offers_retrieve_request_expand import OffersRetrieveRequestExpand - - -class OffersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawOffersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawOffersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawOffersClient - """ - return self._raw_client - - def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OffersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedOfferList: - """ - Returns a list of `Offer` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return offers for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return offers created by this user. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OffersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedOfferList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.offers import OffersListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.offers.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - creator_id="creator_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=OffersListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - application_id=application_id, - created_after=created_after, - created_before=created_before, - creator_id=creator_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[OffersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Offer: - """ - Returns an `Offer` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OffersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Offer - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.offers import OffersRetrieveRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.offers.retrieve( - id="id", - expand=OffersRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncOffersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawOffersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawOffersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawOffersClient - """ - return self._raw_client - - async def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OffersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedOfferList: - """ - Returns a list of `Offer` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return offers for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return offers created by this user. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OffersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedOfferList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.offers import OffersListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.offers.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - creator_id="creator_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=OffersListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - application_id=application_id, - created_after=created_after, - created_before=created_before, - creator_id=creator_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[OffersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Offer: - """ - Returns an `Offer` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OffersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Offer - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.offers import OffersRetrieveRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.offers.retrieve( - id="id", - expand=OffersRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/offers/raw_client.py b/src/merge/resources/ats/resources/offers/raw_client.py deleted file mode 100644 index dceccd3d..00000000 --- a/src/merge/resources/ats/resources/offers/raw_client.py +++ /dev/null @@ -1,393 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.offer import Offer -from ...types.paginated_offer_list import PaginatedOfferList -from .types.offers_list_request_expand import OffersListRequestExpand -from .types.offers_retrieve_request_expand import OffersRetrieveRequestExpand - - -class RawOffersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OffersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedOfferList]: - """ - Returns a list of `Offer` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return offers for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return offers created by this user. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OffersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedOfferList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/offers", - method="GET", - params={ - "application_id": application_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "creator_id": creator_id, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedOfferList, - construct_type( - type_=PaginatedOfferList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[OffersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Offer]: - """ - Returns an `Offer` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OffersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Offer] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/offers/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Offer, - construct_type( - type_=Offer, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawOffersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OffersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedOfferList]: - """ - Returns a list of `Offer` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return offers for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return offers created by this user. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OffersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedOfferList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/offers", - method="GET", - params={ - "application_id": application_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "creator_id": creator_id, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedOfferList, - construct_type( - type_=PaginatedOfferList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[OffersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Offer]: - """ - Returns an `Offer` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OffersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Offer] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/offers/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Offer, - construct_type( - type_=Offer, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/offers/types/__init__.py b/src/merge/resources/ats/resources/offers/types/__init__.py deleted file mode 100644 index f8f79582..00000000 --- a/src/merge/resources/ats/resources/offers/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .offers_list_request_expand import OffersListRequestExpand - from .offers_retrieve_request_expand import OffersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "OffersListRequestExpand": ".offers_list_request_expand", - "OffersRetrieveRequestExpand": ".offers_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["OffersListRequestExpand", "OffersRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/offers/types/offers_list_request_expand.py b/src/merge/resources/ats/resources/offers/types/offers_list_request_expand.py deleted file mode 100644 index 385eba96..00000000 --- a/src/merge/resources/ats/resources/offers/types/offers_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OffersListRequestExpand(str, enum.Enum): - APPLICATION = "application" - APPLICATION_CREATOR = "application,creator" - CREATOR = "creator" - - def visit( - self, - application: typing.Callable[[], T_Result], - application_creator: typing.Callable[[], T_Result], - creator: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OffersListRequestExpand.APPLICATION: - return application() - if self is OffersListRequestExpand.APPLICATION_CREATOR: - return application_creator() - if self is OffersListRequestExpand.CREATOR: - return creator() diff --git a/src/merge/resources/ats/resources/offers/types/offers_retrieve_request_expand.py b/src/merge/resources/ats/resources/offers/types/offers_retrieve_request_expand.py deleted file mode 100644 index 38a7c9d1..00000000 --- a/src/merge/resources/ats/resources/offers/types/offers_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OffersRetrieveRequestExpand(str, enum.Enum): - APPLICATION = "application" - APPLICATION_CREATOR = "application,creator" - CREATOR = "creator" - - def visit( - self, - application: typing.Callable[[], T_Result], - application_creator: typing.Callable[[], T_Result], - creator: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OffersRetrieveRequestExpand.APPLICATION: - return application() - if self is OffersRetrieveRequestExpand.APPLICATION_CREATOR: - return application_creator() - if self is OffersRetrieveRequestExpand.CREATOR: - return creator() diff --git a/src/merge/resources/ats/resources/offices/__init__.py b/src/merge/resources/ats/resources/offices/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/offices/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/offices/client.py b/src/merge/resources/ats/resources/offices/client.py deleted file mode 100644 index b4892b81..00000000 --- a/src/merge/resources/ats/resources/offices/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.office import Office -from ...types.paginated_office_list import PaginatedOfficeList -from .raw_client import AsyncRawOfficesClient, RawOfficesClient - - -class OfficesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawOfficesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawOfficesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawOfficesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedOfficeList: - """ - Returns a list of `Office` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedOfficeList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.offices.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Office: - """ - Returns an `Office` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Office - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.offices.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncOfficesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawOfficesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawOfficesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawOfficesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedOfficeList: - """ - Returns a list of `Office` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedOfficeList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.offices.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Office: - """ - Returns an `Office` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Office - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.offices.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/offices/raw_client.py b/src/merge/resources/ats/resources/offices/raw_client.py deleted file mode 100644 index 826a5f60..00000000 --- a/src/merge/resources/ats/resources/offices/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.office import Office -from ...types.paginated_office_list import PaginatedOfficeList - - -class RawOfficesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedOfficeList]: - """ - Returns a list of `Office` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedOfficeList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/offices", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedOfficeList, - construct_type( - type_=PaginatedOfficeList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Office]: - """ - Returns an `Office` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Office] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/offices/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Office, - construct_type( - type_=Office, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawOfficesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedOfficeList]: - """ - Returns a list of `Office` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedOfficeList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/offices", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedOfficeList, - construct_type( - type_=PaginatedOfficeList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Office]: - """ - Returns an `Office` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Office] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/offices/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Office, - construct_type( - type_=Office, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/passthrough/__init__.py b/src/merge/resources/ats/resources/passthrough/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/passthrough/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/passthrough/client.py b/src/merge/resources/ats/resources/passthrough/client.py deleted file mode 100644 index f7a23fcc..00000000 --- a/src/merge/resources/ats/resources/passthrough/client.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse -from .raw_client import AsyncRawPassthroughClient, RawPassthroughClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ats import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/passthrough/raw_client.py b/src/merge/resources/ats/resources/passthrough/raw_client.py deleted file mode 100644 index 610aae4f..00000000 --- a/src/merge/resources/ats/resources/passthrough/raw_client.py +++ /dev/null @@ -1,111 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/regenerate_key/__init__.py b/src/merge/resources/ats/resources/regenerate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/regenerate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/regenerate_key/client.py b/src/merge/resources/ats/resources/regenerate_key/client.py deleted file mode 100644 index 0caa9f4d..00000000 --- a/src/merge/resources/ats/resources/regenerate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawRegenerateKeyClient, RawRegenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRegenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.regenerate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRegenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.regenerate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/regenerate_key/raw_client.py b/src/merge/resources/ats/resources/regenerate_key/raw_client.py deleted file mode 100644 index 7c563aa6..00000000 --- a/src/merge/resources/ats/resources/regenerate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/reject_reasons/__init__.py b/src/merge/resources/ats/resources/reject_reasons/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/reject_reasons/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/reject_reasons/client.py b/src/merge/resources/ats/resources/reject_reasons/client.py deleted file mode 100644 index f86f8194..00000000 --- a/src/merge/resources/ats/resources/reject_reasons/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_reject_reason_list import PaginatedRejectReasonList -from ...types.reject_reason import RejectReason -from .raw_client import AsyncRawRejectReasonsClient, RawRejectReasonsClient - - -class RejectReasonsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRejectReasonsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRejectReasonsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRejectReasonsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRejectReasonList: - """ - Returns a list of `RejectReason` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRejectReasonList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.reject_reasons.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RejectReason: - """ - Returns a `RejectReason` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RejectReason - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.reject_reasons.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncRejectReasonsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRejectReasonsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRejectReasonsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRejectReasonsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRejectReasonList: - """ - Returns a list of `RejectReason` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRejectReasonList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.reject_reasons.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RejectReason: - """ - Returns a `RejectReason` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RejectReason - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.reject_reasons.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/reject_reasons/raw_client.py b/src/merge/resources/ats/resources/reject_reasons/raw_client.py deleted file mode 100644 index b7951868..00000000 --- a/src/merge/resources/ats/resources/reject_reasons/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_reject_reason_list import PaginatedRejectReasonList -from ...types.reject_reason import RejectReason - - -class RawRejectReasonsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRejectReasonList]: - """ - Returns a list of `RejectReason` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRejectReasonList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/reject-reasons", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRejectReasonList, - construct_type( - type_=PaginatedRejectReasonList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RejectReason]: - """ - Returns a `RejectReason` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RejectReason] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/reject-reasons/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RejectReason, - construct_type( - type_=RejectReason, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRejectReasonsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRejectReasonList]: - """ - Returns a list of `RejectReason` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRejectReasonList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/reject-reasons", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRejectReasonList, - construct_type( - type_=PaginatedRejectReasonList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RejectReason]: - """ - Returns a `RejectReason` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RejectReason] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/reject-reasons/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RejectReason, - construct_type( - type_=RejectReason, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/scopes/__init__.py b/src/merge/resources/ats/resources/scopes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/scopes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/scopes/client.py b/src/merge/resources/ats/resources/scopes/client.py deleted file mode 100644 index 705e23c9..00000000 --- a/src/merge/resources/ats/resources/scopes/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from .raw_client import AsyncRawScopesClient, RawScopesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScopesClient - """ - return self._raw_client - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.scopes.default_scopes_retrieve() - """ - _response = self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.scopes.linked_account_scopes_retrieve() - """ - _response = self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - from merge.resources.ats import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - """ - _response = self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data - - -class AsyncScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScopesClient - """ - return self._raw_client - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.scopes.default_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.scopes.linked_account_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/ats/resources/scopes/raw_client.py b/src/merge/resources/ats/resources/scopes/raw_client.py deleted file mode 100644 index 498b5489..00000000 --- a/src/merge/resources/ats/resources/scopes/raw_client.py +++ /dev/null @@ -1,267 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/scorecards/__init__.py b/src/merge/resources/ats/resources/scorecards/__init__.py deleted file mode 100644 index a40efa74..00000000 --- a/src/merge/resources/ats/resources/scorecards/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ScorecardsListRequestExpand, ScorecardsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ScorecardsListRequestExpand": ".types", - "ScorecardsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ScorecardsListRequestExpand", "ScorecardsRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/scorecards/client.py b/src/merge/resources/ats/resources/scorecards/client.py deleted file mode 100644 index 071dddab..00000000 --- a/src/merge/resources/ats/resources/scorecards/client.py +++ /dev/null @@ -1,477 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_scorecard_list import PaginatedScorecardList -from ...types.scorecard import Scorecard -from .raw_client import AsyncRawScorecardsClient, RawScorecardsClient -from .types.scorecards_list_request_expand import ScorecardsListRequestExpand -from .types.scorecards_retrieve_request_expand import ScorecardsRetrieveRequestExpand - - -class ScorecardsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScorecardsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScorecardsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScorecardsClient - """ - return self._raw_client - - def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ScorecardsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - interview_id: typing.Optional[str] = None, - interviewer_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedScorecardList: - """ - Returns a list of `Scorecard` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return scorecards for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ScorecardsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - interview_id : typing.Optional[str] - If provided, will only return scorecards for this interview. - - interviewer_id : typing.Optional[str] - If provided, will only return scorecards for this interviewer. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedScorecardList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ats.resources.scorecards import ScorecardsListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.scorecards.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ScorecardsListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - interview_id="interview_id", - interviewer_id="interviewer_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - application_id=application_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - interview_id=interview_id, - interviewer_id=interviewer_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ScorecardsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Scorecard: - """ - Returns a `Scorecard` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ScorecardsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Scorecard - - - Examples - -------- - from merge import Merge - from merge.resources.ats.resources.scorecards import ( - ScorecardsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.scorecards.retrieve( - id="id", - expand=ScorecardsRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncScorecardsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScorecardsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScorecardsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScorecardsClient - """ - return self._raw_client - - async def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ScorecardsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - interview_id: typing.Optional[str] = None, - interviewer_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedScorecardList: - """ - Returns a list of `Scorecard` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return scorecards for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ScorecardsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - interview_id : typing.Optional[str] - If provided, will only return scorecards for this interview. - - interviewer_id : typing.Optional[str] - If provided, will only return scorecards for this interviewer. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedScorecardList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ats.resources.scorecards import ScorecardsListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.scorecards.list( - application_id="application_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ScorecardsListRequestExpand.APPLICATION, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - interview_id="interview_id", - interviewer_id="interviewer_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - application_id=application_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - interview_id=interview_id, - interviewer_id=interviewer_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ScorecardsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Scorecard: - """ - Returns a `Scorecard` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ScorecardsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Scorecard - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ats.resources.scorecards import ( - ScorecardsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.scorecards.retrieve( - id="id", - expand=ScorecardsRetrieveRequestExpand.APPLICATION, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/scorecards/raw_client.py b/src/merge/resources/ats/resources/scorecards/raw_client.py deleted file mode 100644 index 0bdb8fa2..00000000 --- a/src/merge/resources/ats/resources/scorecards/raw_client.py +++ /dev/null @@ -1,403 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_scorecard_list import PaginatedScorecardList -from ...types.scorecard import Scorecard -from .types.scorecards_list_request_expand import ScorecardsListRequestExpand -from .types.scorecards_retrieve_request_expand import ScorecardsRetrieveRequestExpand - - -class RawScorecardsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ScorecardsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - interview_id: typing.Optional[str] = None, - interviewer_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedScorecardList]: - """ - Returns a list of `Scorecard` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return scorecards for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ScorecardsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - interview_id : typing.Optional[str] - If provided, will only return scorecards for this interview. - - interviewer_id : typing.Optional[str] - If provided, will only return scorecards for this interviewer. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedScorecardList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/scorecards", - method="GET", - params={ - "application_id": application_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "interview_id": interview_id, - "interviewer_id": interviewer_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedScorecardList, - construct_type( - type_=PaginatedScorecardList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ScorecardsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Scorecard]: - """ - Returns a `Scorecard` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ScorecardsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Scorecard] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/scorecards/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Scorecard, - construct_type( - type_=Scorecard, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScorecardsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - application_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ScorecardsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - interview_id: typing.Optional[str] = None, - interviewer_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedScorecardList]: - """ - Returns a list of `Scorecard` objects. - - Parameters - ---------- - application_id : typing.Optional[str] - If provided, will only return scorecards for this application. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ScorecardsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - interview_id : typing.Optional[str] - If provided, will only return scorecards for this interview. - - interviewer_id : typing.Optional[str] - If provided, will only return scorecards for this interviewer. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedScorecardList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/scorecards", - method="GET", - params={ - "application_id": application_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "interview_id": interview_id, - "interviewer_id": interviewer_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedScorecardList, - construct_type( - type_=PaginatedScorecardList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ScorecardsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["overall_recommendation"]] = None, - show_enum_origins: typing.Optional[typing.Literal["overall_recommendation"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Scorecard]: - """ - Returns a `Scorecard` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ScorecardsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["overall_recommendation"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["overall_recommendation"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Scorecard] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/scorecards/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Scorecard, - construct_type( - type_=Scorecard, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/scorecards/types/__init__.py b/src/merge/resources/ats/resources/scorecards/types/__init__.py deleted file mode 100644 index 11221107..00000000 --- a/src/merge/resources/ats/resources/scorecards/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .scorecards_list_request_expand import ScorecardsListRequestExpand - from .scorecards_retrieve_request_expand import ScorecardsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ScorecardsListRequestExpand": ".scorecards_list_request_expand", - "ScorecardsRetrieveRequestExpand": ".scorecards_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ScorecardsListRequestExpand", "ScorecardsRetrieveRequestExpand"] diff --git a/src/merge/resources/ats/resources/scorecards/types/scorecards_list_request_expand.py b/src/merge/resources/ats/resources/scorecards/types/scorecards_list_request_expand.py deleted file mode 100644 index 0c9598b4..00000000 --- a/src/merge/resources/ats/resources/scorecards/types/scorecards_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ScorecardsListRequestExpand(str, enum.Enum): - APPLICATION = "application" - APPLICATION_INTERVIEW = "application,interview" - APPLICATION_INTERVIEW_INTERVIEWER = "application,interview,interviewer" - APPLICATION_INTERVIEWER = "application,interviewer" - INTERVIEW = "interview" - INTERVIEW_INTERVIEWER = "interview,interviewer" - INTERVIEWER = "interviewer" - - def visit( - self, - application: typing.Callable[[], T_Result], - application_interview: typing.Callable[[], T_Result], - application_interview_interviewer: typing.Callable[[], T_Result], - application_interviewer: typing.Callable[[], T_Result], - interview: typing.Callable[[], T_Result], - interview_interviewer: typing.Callable[[], T_Result], - interviewer: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ScorecardsListRequestExpand.APPLICATION: - return application() - if self is ScorecardsListRequestExpand.APPLICATION_INTERVIEW: - return application_interview() - if self is ScorecardsListRequestExpand.APPLICATION_INTERVIEW_INTERVIEWER: - return application_interview_interviewer() - if self is ScorecardsListRequestExpand.APPLICATION_INTERVIEWER: - return application_interviewer() - if self is ScorecardsListRequestExpand.INTERVIEW: - return interview() - if self is ScorecardsListRequestExpand.INTERVIEW_INTERVIEWER: - return interview_interviewer() - if self is ScorecardsListRequestExpand.INTERVIEWER: - return interviewer() diff --git a/src/merge/resources/ats/resources/scorecards/types/scorecards_retrieve_request_expand.py b/src/merge/resources/ats/resources/scorecards/types/scorecards_retrieve_request_expand.py deleted file mode 100644 index 980629df..00000000 --- a/src/merge/resources/ats/resources/scorecards/types/scorecards_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ScorecardsRetrieveRequestExpand(str, enum.Enum): - APPLICATION = "application" - APPLICATION_INTERVIEW = "application,interview" - APPLICATION_INTERVIEW_INTERVIEWER = "application,interview,interviewer" - APPLICATION_INTERVIEWER = "application,interviewer" - INTERVIEW = "interview" - INTERVIEW_INTERVIEWER = "interview,interviewer" - INTERVIEWER = "interviewer" - - def visit( - self, - application: typing.Callable[[], T_Result], - application_interview: typing.Callable[[], T_Result], - application_interview_interviewer: typing.Callable[[], T_Result], - application_interviewer: typing.Callable[[], T_Result], - interview: typing.Callable[[], T_Result], - interview_interviewer: typing.Callable[[], T_Result], - interviewer: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ScorecardsRetrieveRequestExpand.APPLICATION: - return application() - if self is ScorecardsRetrieveRequestExpand.APPLICATION_INTERVIEW: - return application_interview() - if self is ScorecardsRetrieveRequestExpand.APPLICATION_INTERVIEW_INTERVIEWER: - return application_interview_interviewer() - if self is ScorecardsRetrieveRequestExpand.APPLICATION_INTERVIEWER: - return application_interviewer() - if self is ScorecardsRetrieveRequestExpand.INTERVIEW: - return interview() - if self is ScorecardsRetrieveRequestExpand.INTERVIEW_INTERVIEWER: - return interview_interviewer() - if self is ScorecardsRetrieveRequestExpand.INTERVIEWER: - return interviewer() diff --git a/src/merge/resources/ats/resources/sync_status/__init__.py b/src/merge/resources/ats/resources/sync_status/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/sync_status/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/sync_status/client.py b/src/merge/resources/ats/resources/sync_status/client.py deleted file mode 100644 index ca78911a..00000000 --- a/src/merge/resources/ats/resources/sync_status/client.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList -from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient - - -class SyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSyncStatusClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data - - -class AsyncSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSyncStatusClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ats/resources/sync_status/raw_client.py b/src/merge/resources/ats/resources/sync_status/raw_client.py deleted file mode 100644 index 857f6dcb..00000000 --- a/src/merge/resources/ats/resources/sync_status/raw_client.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_sync_status_list import PaginatedSyncStatusList - - -class RawSyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedSyncStatusList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedSyncStatusList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/tags/__init__.py b/src/merge/resources/ats/resources/tags/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/tags/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/tags/client.py b/src/merge/resources/ats/resources/tags/client.py deleted file mode 100644 index 4bd24041..00000000 --- a/src/merge/resources/ats/resources/tags/client.py +++ /dev/null @@ -1,256 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_tag_list import PaginatedTagList -from .raw_client import AsyncRawTagsClient, RawTagsClient - - -class TagsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTagsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTagsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTagsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTagList: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTagList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.tags.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - -class AsyncTagsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTagsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTagsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTagsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTagList: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTagList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.tags.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/tags/raw_client.py b/src/merge/resources/ats/resources/tags/raw_client.py deleted file mode 100644 index 9137b708..00000000 --- a/src/merge/resources/ats/resources/tags/raw_client.py +++ /dev/null @@ -1,203 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_tag_list import PaginatedTagList - - -class RawTagsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTagList]: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTagList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/tags", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTagList, - construct_type( - type_=PaginatedTagList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTagsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTagList]: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTagList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/tags", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTagList, - construct_type( - type_=PaginatedTagList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/users/__init__.py b/src/merge/resources/ats/resources/users/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/users/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/users/client.py b/src/merge/resources/ats/resources/users/client.py deleted file mode 100644 index df8e2b2f..00000000 --- a/src/merge/resources/ats/resources/users/client.py +++ /dev/null @@ -1,419 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_remote_user_list import PaginatedRemoteUserList -from ...types.remote_user import RemoteUser -from .raw_client import AsyncRawUsersClient, RawUsersClient - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteUserList: - """ - Returns a list of `RemoteUser` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return remote users with the given email address - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteUserList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email="email", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email=email, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteUser: - """ - Returns a `RemoteUser` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteUser - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteUserList: - """ - Returns a list of `RemoteUser` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return remote users with the given email address - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteUserList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email="email", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email=email, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteUser: - """ - Returns a `RemoteUser` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteUser - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ats/resources/users/raw_client.py b/src/merge/resources/ats/resources/users/raw_client.py deleted file mode 100644 index cadd27a9..00000000 --- a/src/merge/resources/ats/resources/users/raw_client.py +++ /dev/null @@ -1,361 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_remote_user_list import PaginatedRemoteUserList -from ...types.remote_user import RemoteUser - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteUserList]: - """ - Returns a list of `RemoteUser` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return remote users with the given email address - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteUserList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email": email, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteUserList, - construct_type( - type_=PaginatedRemoteUserList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteUser]: - """ - Returns a `RemoteUser` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteUser] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ats/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteUser, - construct_type( - type_=RemoteUser, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteUserList]: - """ - Returns a list of `RemoteUser` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return remote users with the given email address - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteUserList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email": email, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteUserList, - construct_type( - type_=PaginatedRemoteUserList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["access_role"]] = None, - show_enum_origins: typing.Optional[typing.Literal["access_role"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteUser]: - """ - Returns a `RemoteUser` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["access_role"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["access_role"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteUser] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ats/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteUser, - construct_type( - type_=RemoteUser, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/resources/webhook_receivers/__init__.py b/src/merge/resources/ats/resources/webhook_receivers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ats/resources/webhook_receivers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ats/resources/webhook_receivers/client.py b/src/merge/resources/ats/resources/webhook_receivers/client.py deleted file mode 100644 index 0dcb5e69..00000000 --- a/src/merge/resources/ats/resources/webhook_receivers/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.webhook_receiver import WebhookReceiver -from .raw_client import AsyncRawWebhookReceiversClient, RawWebhookReceiversClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class WebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawWebhookReceiversClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.webhook_receivers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ats.webhook_receivers.create( - event="event", - is_active=True, - ) - """ - _response = self._raw_client.create(event=event, is_active=is_active, key=key, request_options=request_options) - return _response.data - - -class AsyncWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawWebhookReceiversClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.webhook_receivers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ats.webhook_receivers.create( - event="event", - is_active=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - event=event, is_active=is_active, key=key, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/ats/resources/webhook_receivers/raw_client.py b/src/merge/resources/ats/resources/webhook_receivers/raw_client.py deleted file mode 100644 index 0df96f9e..00000000 --- a/src/merge/resources/ats/resources/webhook_receivers/raw_client.py +++ /dev/null @@ -1,208 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.webhook_receiver import WebhookReceiver - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawWebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[WebhookReceiver]] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[WebhookReceiver] - - """ - _response = self._client_wrapper.httpx_client.request( - "ats/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[WebhookReceiver]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[WebhookReceiver] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ats/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ats/types/__init__.py b/src/merge/resources/ats/types/__init__.py deleted file mode 100644 index 72d3bd86..00000000 --- a/src/merge/resources/ats/types/__init__.py +++ /dev/null @@ -1,686 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .access_role_enum import AccessRoleEnum - from .account_details import AccountDetails - from .account_details_and_actions import AccountDetailsAndActions - from .account_details_and_actions_category import AccountDetailsAndActionsCategory - from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration - from .account_details_and_actions_status import AccountDetailsAndActionsStatus - from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - from .account_details_category import AccountDetailsCategory - from .account_integration import AccountIntegration - from .account_token import AccountToken - from .activity import Activity - from .activity_activity_type import ActivityActivityType - from .activity_request import ActivityRequest - from .activity_request_activity_type import ActivityRequestActivityType - from .activity_request_user import ActivityRequestUser - from .activity_request_visibility import ActivityRequestVisibility - from .activity_response import ActivityResponse - from .activity_type_enum import ActivityTypeEnum - from .activity_user import ActivityUser - from .activity_visibility import ActivityVisibility - from .advanced_metadata import AdvancedMetadata - from .application import Application - from .application_candidate import ApplicationCandidate - from .application_credited_to import ApplicationCreditedTo - from .application_current_stage import ApplicationCurrentStage - from .application_job import ApplicationJob - from .application_offers_item import ApplicationOffersItem - from .application_reject_reason import ApplicationRejectReason - from .application_request import ApplicationRequest - from .application_request_candidate import ApplicationRequestCandidate - from .application_request_credited_to import ApplicationRequestCreditedTo - from .application_request_current_stage import ApplicationRequestCurrentStage - from .application_request_job import ApplicationRequestJob - from .application_request_offers_item import ApplicationRequestOffersItem - from .application_request_reject_reason import ApplicationRequestRejectReason - from .application_request_screening_question_answers_item import ApplicationRequestScreeningQuestionAnswersItem - from .application_response import ApplicationResponse - from .application_screening_question_answers_item import ApplicationScreeningQuestionAnswersItem - from .async_passthrough_reciept import AsyncPassthroughReciept - from .attachment import Attachment - from .attachment_attachment_type import AttachmentAttachmentType - from .attachment_request import AttachmentRequest - from .attachment_request_attachment_type import AttachmentRequestAttachmentType - from .attachment_response import AttachmentResponse - from .attachment_type_enum import AttachmentTypeEnum - from .audit_log_event import AuditLogEvent - from .audit_log_event_event_type import AuditLogEventEventType - from .audit_log_event_role import AuditLogEventRole - from .available_actions import AvailableActions - from .candidate import Candidate - from .candidate_applications_item import CandidateApplicationsItem - from .candidate_attachments_item import CandidateAttachmentsItem - from .candidate_request import CandidateRequest - from .candidate_request_applications_item import CandidateRequestApplicationsItem - from .candidate_request_attachments_item import CandidateRequestAttachmentsItem - from .candidate_response import CandidateResponse - from .categories_enum import CategoriesEnum - from .category_enum import CategoryEnum - from .common_model_scope_api import CommonModelScopeApi - from .common_model_scopes_body_request import CommonModelScopesBodyRequest - from .data_passthrough_request import DataPassthroughRequest - from .debug_mode_log import DebugModeLog - from .debug_model_log_summary import DebugModelLogSummary - from .department import Department - from .disability_status_enum import DisabilityStatusEnum - from .eeoc import Eeoc - from .eeoc_candidate import EeocCandidate - from .eeoc_disability_status import EeocDisabilityStatus - from .eeoc_gender import EeocGender - from .eeoc_race import EeocRace - from .eeoc_veteran_status import EeocVeteranStatus - from .email_address import EmailAddress - from .email_address_email_address_type import EmailAddressEmailAddressType - from .email_address_request import EmailAddressRequest - from .email_address_request_email_address_type import EmailAddressRequestEmailAddressType - from .email_address_type_enum import EmailAddressTypeEnum - from .enabled_actions_enum import EnabledActionsEnum - from .encoding_enum import EncodingEnum - from .error_validation_problem import ErrorValidationProblem - from .event_type_enum import EventTypeEnum - from .external_target_field_api import ExternalTargetFieldApi - from .external_target_field_api_response import ExternalTargetFieldApiResponse - from .field_mapping_api_instance import FieldMappingApiInstance - from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField - from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ) - from .field_mapping_api_instance_response import FieldMappingApiInstanceResponse - from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - from .field_mapping_instance_response import FieldMappingInstanceResponse - from .field_permission_deserializer import FieldPermissionDeserializer - from .field_permission_deserializer_request import FieldPermissionDeserializerRequest - from .gender_enum import GenderEnum - from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - from .individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - from .issue import Issue - from .issue_status import IssueStatus - from .issue_status_enum import IssueStatusEnum - from .job import Job - from .job_departments_item import JobDepartmentsItem - from .job_hiring_managers_item import JobHiringManagersItem - from .job_interview_stage import JobInterviewStage - from .job_interview_stage_job import JobInterviewStageJob - from .job_offices_item import JobOfficesItem - from .job_posting import JobPosting - from .job_posting_job import JobPostingJob - from .job_posting_job_posting_urls_item import JobPostingJobPostingUrlsItem - from .job_posting_status import JobPostingStatus - from .job_posting_status_enum import JobPostingStatusEnum - from .job_recruiters_item import JobRecruitersItem - from .job_status import JobStatus - from .job_status_enum import JobStatusEnum - from .job_type import JobType - from .job_type_enum import JobTypeEnum - from .language_enum import LanguageEnum - from .last_sync_result_enum import LastSyncResultEnum - from .link_token import LinkToken - from .linked_account_status import LinkedAccountStatus - from .meta_response import MetaResponse - from .method_enum import MethodEnum - from .model_operation import ModelOperation - from .model_permission_deserializer import ModelPermissionDeserializer - from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - from .multipart_form_field_request import MultipartFormFieldRequest - from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - from .offer import Offer - from .offer_application import OfferApplication - from .offer_creator import OfferCreator - from .offer_status import OfferStatus - from .offer_status_enum import OfferStatusEnum - from .office import Office - from .overall_recommendation_enum import OverallRecommendationEnum - from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList - from .paginated_activity_list import PaginatedActivityList - from .paginated_application_list import PaginatedApplicationList - from .paginated_attachment_list import PaginatedAttachmentList - from .paginated_audit_log_event_list import PaginatedAuditLogEventList - from .paginated_candidate_list import PaginatedCandidateList - from .paginated_department_list import PaginatedDepartmentList - from .paginated_eeoc_list import PaginatedEeocList - from .paginated_issue_list import PaginatedIssueList - from .paginated_job_interview_stage_list import PaginatedJobInterviewStageList - from .paginated_job_list import PaginatedJobList - from .paginated_job_posting_list import PaginatedJobPostingList - from .paginated_offer_list import PaginatedOfferList - from .paginated_office_list import PaginatedOfficeList - from .paginated_reject_reason_list import PaginatedRejectReasonList - from .paginated_remote_user_list import PaginatedRemoteUserList - from .paginated_scheduled_interview_list import PaginatedScheduledInterviewList - from .paginated_scorecard_list import PaginatedScorecardList - from .paginated_screening_question_list import PaginatedScreeningQuestionList - from .paginated_sync_status_list import PaginatedSyncStatusList - from .paginated_tag_list import PaginatedTagList - from .patched_candidate_request import PatchedCandidateRequest - from .phone_number import PhoneNumber - from .phone_number_phone_number_type import PhoneNumberPhoneNumberType - from .phone_number_request import PhoneNumberRequest - from .phone_number_request_phone_number_type import PhoneNumberRequestPhoneNumberType - from .phone_number_type_enum import PhoneNumberTypeEnum - from .race_enum import RaceEnum - from .reason_enum import ReasonEnum - from .reject_reason import RejectReason - from .remote_data import RemoteData - from .remote_endpoint_info import RemoteEndpointInfo - from .remote_field_api import RemoteFieldApi - from .remote_field_api_coverage import RemoteFieldApiCoverage - from .remote_field_api_response import RemoteFieldApiResponse - from .remote_key import RemoteKey - from .remote_response import RemoteResponse - from .remote_response_response_type import RemoteResponseResponseType - from .remote_user import RemoteUser - from .remote_user_access_role import RemoteUserAccessRole - from .request_format_enum import RequestFormatEnum - from .response_type_enum import ResponseTypeEnum - from .role_enum import RoleEnum - from .scheduled_interview import ScheduledInterview - from .scheduled_interview_application import ScheduledInterviewApplication - from .scheduled_interview_interviewers_item import ScheduledInterviewInterviewersItem - from .scheduled_interview_job_interview_stage import ScheduledInterviewJobInterviewStage - from .scheduled_interview_organizer import ScheduledInterviewOrganizer - from .scheduled_interview_request import ScheduledInterviewRequest - from .scheduled_interview_request_application import ScheduledInterviewRequestApplication - from .scheduled_interview_request_interviewers_item import ScheduledInterviewRequestInterviewersItem - from .scheduled_interview_request_job_interview_stage import ScheduledInterviewRequestJobInterviewStage - from .scheduled_interview_request_organizer import ScheduledInterviewRequestOrganizer - from .scheduled_interview_request_status import ScheduledInterviewRequestStatus - from .scheduled_interview_response import ScheduledInterviewResponse - from .scheduled_interview_status import ScheduledInterviewStatus - from .scheduled_interview_status_enum import ScheduledInterviewStatusEnum - from .scorecard import Scorecard - from .scorecard_application import ScorecardApplication - from .scorecard_interview import ScorecardInterview - from .scorecard_interviewer import ScorecardInterviewer - from .scorecard_overall_recommendation import ScorecardOverallRecommendation - from .screening_question import ScreeningQuestion - from .screening_question_answer import ScreeningQuestionAnswer - from .screening_question_answer_question import ScreeningQuestionAnswerQuestion - from .screening_question_answer_request import ScreeningQuestionAnswerRequest - from .screening_question_answer_request_question import ScreeningQuestionAnswerRequestQuestion - from .screening_question_job import ScreeningQuestionJob - from .screening_question_option import ScreeningQuestionOption - from .screening_question_type import ScreeningQuestionType - from .screening_question_type_enum import ScreeningQuestionTypeEnum - from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum - from .status_fd_5_enum import StatusFd5Enum - from .sync_status import SyncStatus - from .sync_status_last_sync_result import SyncStatusLastSyncResult - from .sync_status_status import SyncStatusStatus - from .tag import Tag - from .url import Url - from .url_request import UrlRequest - from .url_request_url_type import UrlRequestUrlType - from .url_type_enum import UrlTypeEnum - from .url_url_type import UrlUrlType - from .validation_problem_source import ValidationProblemSource - from .veteran_status_enum import VeteranStatusEnum - from .visibility_enum import VisibilityEnum - from .warning_validation_problem import WarningValidationProblem - from .webhook_receiver import WebhookReceiver -_dynamic_imports: typing.Dict[str, str] = { - "AccessRoleEnum": ".access_role_enum", - "AccountDetails": ".account_details", - "AccountDetailsAndActions": ".account_details_and_actions", - "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", - "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", - "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", - "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", - "AccountDetailsCategory": ".account_details_category", - "AccountIntegration": ".account_integration", - "AccountToken": ".account_token", - "Activity": ".activity", - "ActivityActivityType": ".activity_activity_type", - "ActivityRequest": ".activity_request", - "ActivityRequestActivityType": ".activity_request_activity_type", - "ActivityRequestUser": ".activity_request_user", - "ActivityRequestVisibility": ".activity_request_visibility", - "ActivityResponse": ".activity_response", - "ActivityTypeEnum": ".activity_type_enum", - "ActivityUser": ".activity_user", - "ActivityVisibility": ".activity_visibility", - "AdvancedMetadata": ".advanced_metadata", - "Application": ".application", - "ApplicationCandidate": ".application_candidate", - "ApplicationCreditedTo": ".application_credited_to", - "ApplicationCurrentStage": ".application_current_stage", - "ApplicationJob": ".application_job", - "ApplicationOffersItem": ".application_offers_item", - "ApplicationRejectReason": ".application_reject_reason", - "ApplicationRequest": ".application_request", - "ApplicationRequestCandidate": ".application_request_candidate", - "ApplicationRequestCreditedTo": ".application_request_credited_to", - "ApplicationRequestCurrentStage": ".application_request_current_stage", - "ApplicationRequestJob": ".application_request_job", - "ApplicationRequestOffersItem": ".application_request_offers_item", - "ApplicationRequestRejectReason": ".application_request_reject_reason", - "ApplicationRequestScreeningQuestionAnswersItem": ".application_request_screening_question_answers_item", - "ApplicationResponse": ".application_response", - "ApplicationScreeningQuestionAnswersItem": ".application_screening_question_answers_item", - "AsyncPassthroughReciept": ".async_passthrough_reciept", - "Attachment": ".attachment", - "AttachmentAttachmentType": ".attachment_attachment_type", - "AttachmentRequest": ".attachment_request", - "AttachmentRequestAttachmentType": ".attachment_request_attachment_type", - "AttachmentResponse": ".attachment_response", - "AttachmentTypeEnum": ".attachment_type_enum", - "AuditLogEvent": ".audit_log_event", - "AuditLogEventEventType": ".audit_log_event_event_type", - "AuditLogEventRole": ".audit_log_event_role", - "AvailableActions": ".available_actions", - "Candidate": ".candidate", - "CandidateApplicationsItem": ".candidate_applications_item", - "CandidateAttachmentsItem": ".candidate_attachments_item", - "CandidateRequest": ".candidate_request", - "CandidateRequestApplicationsItem": ".candidate_request_applications_item", - "CandidateRequestAttachmentsItem": ".candidate_request_attachments_item", - "CandidateResponse": ".candidate_response", - "CategoriesEnum": ".categories_enum", - "CategoryEnum": ".category_enum", - "CommonModelScopeApi": ".common_model_scope_api", - "CommonModelScopesBodyRequest": ".common_model_scopes_body_request", - "DataPassthroughRequest": ".data_passthrough_request", - "DebugModeLog": ".debug_mode_log", - "DebugModelLogSummary": ".debug_model_log_summary", - "Department": ".department", - "DisabilityStatusEnum": ".disability_status_enum", - "Eeoc": ".eeoc", - "EeocCandidate": ".eeoc_candidate", - "EeocDisabilityStatus": ".eeoc_disability_status", - "EeocGender": ".eeoc_gender", - "EeocRace": ".eeoc_race", - "EeocVeteranStatus": ".eeoc_veteran_status", - "EmailAddress": ".email_address", - "EmailAddressEmailAddressType": ".email_address_email_address_type", - "EmailAddressRequest": ".email_address_request", - "EmailAddressRequestEmailAddressType": ".email_address_request_email_address_type", - "EmailAddressTypeEnum": ".email_address_type_enum", - "EnabledActionsEnum": ".enabled_actions_enum", - "EncodingEnum": ".encoding_enum", - "ErrorValidationProblem": ".error_validation_problem", - "EventTypeEnum": ".event_type_enum", - "ExternalTargetFieldApi": ".external_target_field_api", - "ExternalTargetFieldApiResponse": ".external_target_field_api_response", - "FieldMappingApiInstance": ".field_mapping_api_instance", - "FieldMappingApiInstanceRemoteField": ".field_mapping_api_instance_remote_field", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".field_mapping_api_instance_remote_field_remote_endpoint_info", - "FieldMappingApiInstanceResponse": ".field_mapping_api_instance_response", - "FieldMappingApiInstanceTargetField": ".field_mapping_api_instance_target_field", - "FieldMappingInstanceResponse": ".field_mapping_instance_response", - "FieldPermissionDeserializer": ".field_permission_deserializer", - "FieldPermissionDeserializerRequest": ".field_permission_deserializer_request", - "GenderEnum": ".gender_enum", - "IndividualCommonModelScopeDeserializer": ".individual_common_model_scope_deserializer", - "IndividualCommonModelScopeDeserializerRequest": ".individual_common_model_scope_deserializer_request", - "Issue": ".issue", - "IssueStatus": ".issue_status", - "IssueStatusEnum": ".issue_status_enum", - "Job": ".job", - "JobDepartmentsItem": ".job_departments_item", - "JobHiringManagersItem": ".job_hiring_managers_item", - "JobInterviewStage": ".job_interview_stage", - "JobInterviewStageJob": ".job_interview_stage_job", - "JobOfficesItem": ".job_offices_item", - "JobPosting": ".job_posting", - "JobPostingJob": ".job_posting_job", - "JobPostingJobPostingUrlsItem": ".job_posting_job_posting_urls_item", - "JobPostingStatus": ".job_posting_status", - "JobPostingStatusEnum": ".job_posting_status_enum", - "JobRecruitersItem": ".job_recruiters_item", - "JobStatus": ".job_status", - "JobStatusEnum": ".job_status_enum", - "JobType": ".job_type", - "JobTypeEnum": ".job_type_enum", - "LanguageEnum": ".language_enum", - "LastSyncResultEnum": ".last_sync_result_enum", - "LinkToken": ".link_token", - "LinkedAccountStatus": ".linked_account_status", - "MetaResponse": ".meta_response", - "MethodEnum": ".method_enum", - "ModelOperation": ".model_operation", - "ModelPermissionDeserializer": ".model_permission_deserializer", - "ModelPermissionDeserializerRequest": ".model_permission_deserializer_request", - "MultipartFormFieldRequest": ".multipart_form_field_request", - "MultipartFormFieldRequestEncoding": ".multipart_form_field_request_encoding", - "Offer": ".offer", - "OfferApplication": ".offer_application", - "OfferCreator": ".offer_creator", - "OfferStatus": ".offer_status", - "OfferStatusEnum": ".offer_status_enum", - "Office": ".office", - "OverallRecommendationEnum": ".overall_recommendation_enum", - "PaginatedAccountDetailsAndActionsList": ".paginated_account_details_and_actions_list", - "PaginatedActivityList": ".paginated_activity_list", - "PaginatedApplicationList": ".paginated_application_list", - "PaginatedAttachmentList": ".paginated_attachment_list", - "PaginatedAuditLogEventList": ".paginated_audit_log_event_list", - "PaginatedCandidateList": ".paginated_candidate_list", - "PaginatedDepartmentList": ".paginated_department_list", - "PaginatedEeocList": ".paginated_eeoc_list", - "PaginatedIssueList": ".paginated_issue_list", - "PaginatedJobInterviewStageList": ".paginated_job_interview_stage_list", - "PaginatedJobList": ".paginated_job_list", - "PaginatedJobPostingList": ".paginated_job_posting_list", - "PaginatedOfferList": ".paginated_offer_list", - "PaginatedOfficeList": ".paginated_office_list", - "PaginatedRejectReasonList": ".paginated_reject_reason_list", - "PaginatedRemoteUserList": ".paginated_remote_user_list", - "PaginatedScheduledInterviewList": ".paginated_scheduled_interview_list", - "PaginatedScorecardList": ".paginated_scorecard_list", - "PaginatedScreeningQuestionList": ".paginated_screening_question_list", - "PaginatedSyncStatusList": ".paginated_sync_status_list", - "PaginatedTagList": ".paginated_tag_list", - "PatchedCandidateRequest": ".patched_candidate_request", - "PhoneNumber": ".phone_number", - "PhoneNumberPhoneNumberType": ".phone_number_phone_number_type", - "PhoneNumberRequest": ".phone_number_request", - "PhoneNumberRequestPhoneNumberType": ".phone_number_request_phone_number_type", - "PhoneNumberTypeEnum": ".phone_number_type_enum", - "RaceEnum": ".race_enum", - "ReasonEnum": ".reason_enum", - "RejectReason": ".reject_reason", - "RemoteData": ".remote_data", - "RemoteEndpointInfo": ".remote_endpoint_info", - "RemoteFieldApi": ".remote_field_api", - "RemoteFieldApiCoverage": ".remote_field_api_coverage", - "RemoteFieldApiResponse": ".remote_field_api_response", - "RemoteKey": ".remote_key", - "RemoteResponse": ".remote_response", - "RemoteResponseResponseType": ".remote_response_response_type", - "RemoteUser": ".remote_user", - "RemoteUserAccessRole": ".remote_user_access_role", - "RequestFormatEnum": ".request_format_enum", - "ResponseTypeEnum": ".response_type_enum", - "RoleEnum": ".role_enum", - "ScheduledInterview": ".scheduled_interview", - "ScheduledInterviewApplication": ".scheduled_interview_application", - "ScheduledInterviewInterviewersItem": ".scheduled_interview_interviewers_item", - "ScheduledInterviewJobInterviewStage": ".scheduled_interview_job_interview_stage", - "ScheduledInterviewOrganizer": ".scheduled_interview_organizer", - "ScheduledInterviewRequest": ".scheduled_interview_request", - "ScheduledInterviewRequestApplication": ".scheduled_interview_request_application", - "ScheduledInterviewRequestInterviewersItem": ".scheduled_interview_request_interviewers_item", - "ScheduledInterviewRequestJobInterviewStage": ".scheduled_interview_request_job_interview_stage", - "ScheduledInterviewRequestOrganizer": ".scheduled_interview_request_organizer", - "ScheduledInterviewRequestStatus": ".scheduled_interview_request_status", - "ScheduledInterviewResponse": ".scheduled_interview_response", - "ScheduledInterviewStatus": ".scheduled_interview_status", - "ScheduledInterviewStatusEnum": ".scheduled_interview_status_enum", - "Scorecard": ".scorecard", - "ScorecardApplication": ".scorecard_application", - "ScorecardInterview": ".scorecard_interview", - "ScorecardInterviewer": ".scorecard_interviewer", - "ScorecardOverallRecommendation": ".scorecard_overall_recommendation", - "ScreeningQuestion": ".screening_question", - "ScreeningQuestionAnswer": ".screening_question_answer", - "ScreeningQuestionAnswerQuestion": ".screening_question_answer_question", - "ScreeningQuestionAnswerRequest": ".screening_question_answer_request", - "ScreeningQuestionAnswerRequestQuestion": ".screening_question_answer_request_question", - "ScreeningQuestionJob": ".screening_question_job", - "ScreeningQuestionOption": ".screening_question_option", - "ScreeningQuestionType": ".screening_question_type", - "ScreeningQuestionTypeEnum": ".screening_question_type_enum", - "SelectiveSyncConfigurationsUsageEnum": ".selective_sync_configurations_usage_enum", - "StatusFd5Enum": ".status_fd_5_enum", - "SyncStatus": ".sync_status", - "SyncStatusLastSyncResult": ".sync_status_last_sync_result", - "SyncStatusStatus": ".sync_status_status", - "Tag": ".tag", - "Url": ".url", - "UrlRequest": ".url_request", - "UrlRequestUrlType": ".url_request_url_type", - "UrlTypeEnum": ".url_type_enum", - "UrlUrlType": ".url_url_type", - "ValidationProblemSource": ".validation_problem_source", - "VeteranStatusEnum": ".veteran_status_enum", - "VisibilityEnum": ".visibility_enum", - "WarningValidationProblem": ".warning_validation_problem", - "WebhookReceiver": ".webhook_receiver", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccessRoleEnum", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "Activity", - "ActivityActivityType", - "ActivityRequest", - "ActivityRequestActivityType", - "ActivityRequestUser", - "ActivityRequestVisibility", - "ActivityResponse", - "ActivityTypeEnum", - "ActivityUser", - "ActivityVisibility", - "AdvancedMetadata", - "Application", - "ApplicationCandidate", - "ApplicationCreditedTo", - "ApplicationCurrentStage", - "ApplicationJob", - "ApplicationOffersItem", - "ApplicationRejectReason", - "ApplicationRequest", - "ApplicationRequestCandidate", - "ApplicationRequestCreditedTo", - "ApplicationRequestCurrentStage", - "ApplicationRequestJob", - "ApplicationRequestOffersItem", - "ApplicationRequestRejectReason", - "ApplicationRequestScreeningQuestionAnswersItem", - "ApplicationResponse", - "ApplicationScreeningQuestionAnswersItem", - "AsyncPassthroughReciept", - "Attachment", - "AttachmentAttachmentType", - "AttachmentRequest", - "AttachmentRequestAttachmentType", - "AttachmentResponse", - "AttachmentTypeEnum", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "Candidate", - "CandidateApplicationsItem", - "CandidateAttachmentsItem", - "CandidateRequest", - "CandidateRequestApplicationsItem", - "CandidateRequestAttachmentsItem", - "CandidateResponse", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "Department", - "DisabilityStatusEnum", - "Eeoc", - "EeocCandidate", - "EeocDisabilityStatus", - "EeocGender", - "EeocRace", - "EeocVeteranStatus", - "EmailAddress", - "EmailAddressEmailAddressType", - "EmailAddressRequest", - "EmailAddressRequestEmailAddressType", - "EmailAddressTypeEnum", - "EnabledActionsEnum", - "EncodingEnum", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "GenderEnum", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "Job", - "JobDepartmentsItem", - "JobHiringManagersItem", - "JobInterviewStage", - "JobInterviewStageJob", - "JobOfficesItem", - "JobPosting", - "JobPostingJob", - "JobPostingJobPostingUrlsItem", - "JobPostingStatus", - "JobPostingStatusEnum", - "JobRecruitersItem", - "JobStatus", - "JobStatusEnum", - "JobType", - "JobTypeEnum", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "Offer", - "OfferApplication", - "OfferCreator", - "OfferStatus", - "OfferStatusEnum", - "Office", - "OverallRecommendationEnum", - "PaginatedAccountDetailsAndActionsList", - "PaginatedActivityList", - "PaginatedApplicationList", - "PaginatedAttachmentList", - "PaginatedAuditLogEventList", - "PaginatedCandidateList", - "PaginatedDepartmentList", - "PaginatedEeocList", - "PaginatedIssueList", - "PaginatedJobInterviewStageList", - "PaginatedJobList", - "PaginatedJobPostingList", - "PaginatedOfferList", - "PaginatedOfficeList", - "PaginatedRejectReasonList", - "PaginatedRemoteUserList", - "PaginatedScheduledInterviewList", - "PaginatedScorecardList", - "PaginatedScreeningQuestionList", - "PaginatedSyncStatusList", - "PaginatedTagList", - "PatchedCandidateRequest", - "PhoneNumber", - "PhoneNumberPhoneNumberType", - "PhoneNumberRequest", - "PhoneNumberRequestPhoneNumberType", - "PhoneNumberTypeEnum", - "RaceEnum", - "ReasonEnum", - "RejectReason", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RemoteUser", - "RemoteUserAccessRole", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "ScheduledInterview", - "ScheduledInterviewApplication", - "ScheduledInterviewInterviewersItem", - "ScheduledInterviewJobInterviewStage", - "ScheduledInterviewOrganizer", - "ScheduledInterviewRequest", - "ScheduledInterviewRequestApplication", - "ScheduledInterviewRequestInterviewersItem", - "ScheduledInterviewRequestJobInterviewStage", - "ScheduledInterviewRequestOrganizer", - "ScheduledInterviewRequestStatus", - "ScheduledInterviewResponse", - "ScheduledInterviewStatus", - "ScheduledInterviewStatusEnum", - "Scorecard", - "ScorecardApplication", - "ScorecardInterview", - "ScorecardInterviewer", - "ScorecardOverallRecommendation", - "ScreeningQuestion", - "ScreeningQuestionAnswer", - "ScreeningQuestionAnswerQuestion", - "ScreeningQuestionAnswerRequest", - "ScreeningQuestionAnswerRequestQuestion", - "ScreeningQuestionJob", - "ScreeningQuestionOption", - "ScreeningQuestionType", - "ScreeningQuestionTypeEnum", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "Tag", - "Url", - "UrlRequest", - "UrlRequestUrlType", - "UrlTypeEnum", - "UrlUrlType", - "ValidationProblemSource", - "VeteranStatusEnum", - "VisibilityEnum", - "WarningValidationProblem", - "WebhookReceiver", -] diff --git a/src/merge/resources/ats/types/access_role_enum.py b/src/merge/resources/ats/types/access_role_enum.py deleted file mode 100644 index fc75b705..00000000 --- a/src/merge/resources/ats/types/access_role_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccessRoleEnum(str, enum.Enum): - """ - * `SUPER_ADMIN` - SUPER_ADMIN - * `ADMIN` - ADMIN - * `TEAM_MEMBER` - TEAM_MEMBER - * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER - * `INTERVIEWER` - INTERVIEWER - """ - - SUPER_ADMIN = "SUPER_ADMIN" - ADMIN = "ADMIN" - TEAM_MEMBER = "TEAM_MEMBER" - LIMITED_TEAM_MEMBER = "LIMITED_TEAM_MEMBER" - INTERVIEWER = "INTERVIEWER" - - def visit( - self, - super_admin: typing.Callable[[], T_Result], - admin: typing.Callable[[], T_Result], - team_member: typing.Callable[[], T_Result], - limited_team_member: typing.Callable[[], T_Result], - interviewer: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccessRoleEnum.SUPER_ADMIN: - return super_admin() - if self is AccessRoleEnum.ADMIN: - return admin() - if self is AccessRoleEnum.TEAM_MEMBER: - return team_member() - if self is AccessRoleEnum.LIMITED_TEAM_MEMBER: - return limited_team_member() - if self is AccessRoleEnum.INTERVIEWER: - return interviewer() diff --git a/src/merge/resources/ats/types/account_details.py b/src/merge/resources/ats/types/account_details.py deleted file mode 100644 index 98923cd8..00000000 --- a/src/merge/resources/ats/types/account_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_category import AccountDetailsCategory - - -class AccountDetails(UncheckedBaseModel): - id: typing.Optional[str] = None - integration: typing.Optional[str] = None - integration_slug: typing.Optional[str] = None - category: typing.Optional[AccountDetailsCategory] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: typing.Optional[str] = None - end_user_email_address: typing.Optional[str] = None - status: typing.Optional[str] = None - webhook_listener_url: typing.Optional[str] = None - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - account_type: typing.Optional[str] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which account completes the linking flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/account_details_and_actions.py b/src/merge/resources/ats/types/account_details_and_actions.py deleted file mode 100644 index 93c874ed..00000000 --- a/src/merge/resources/ats/types/account_details_and_actions.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions_category import AccountDetailsAndActionsCategory -from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status import AccountDetailsAndActionsStatus - - -class AccountDetailsAndActions(UncheckedBaseModel): - """ - # The LinkedAccount Object - ### Description - The `LinkedAccount` object is used to represent an end user's link with a specific integration. - - ### Usage Example - View a list of your organization's `LinkedAccount` objects. - """ - - id: str - category: typing.Optional[AccountDetailsAndActionsCategory] = None - status: AccountDetailsAndActionsStatus - status_detail: typing.Optional[str] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: str - end_user_email_address: str - subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The tenant or domain the customer has provided access to. - """ - - webhook_listener_url: str - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - integration: typing.Optional[AccountDetailsAndActionsIntegration] = None - account_type: str - completed_at: dt.datetime - integration_specific_fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/account_details_and_actions_category.py b/src/merge/resources/ats/types/account_details_and_actions_category.py deleted file mode 100644 index 93b4188b..00000000 --- a/src/merge/resources/ats/types/account_details_and_actions_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsAndActionsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/ats/types/account_details_and_actions_integration.py b/src/merge/resources/ats/types/account_details_and_actions_integration.py deleted file mode 100644 index 73467bbb..00000000 --- a/src/merge/resources/ats/types/account_details_and_actions_integration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum -from .model_operation import ModelOperation - - -class AccountDetailsAndActionsIntegration(UncheckedBaseModel): - name: str - categories: typing.List[CategoriesEnum] - image: typing.Optional[str] = None - square_image: typing.Optional[str] = None - color: str - slug: str - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/account_details_and_actions_status.py b/src/merge/resources/ats/types/account_details_and_actions_status.py deleted file mode 100644 index 445922f8..00000000 --- a/src/merge/resources/ats/types/account_details_and_actions_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - -AccountDetailsAndActionsStatus = typing.Union[AccountDetailsAndActionsStatusEnum, str] diff --git a/src/merge/resources/ats/types/account_details_and_actions_status_enum.py b/src/merge/resources/ats/types/account_details_and_actions_status_enum.py deleted file mode 100644 index df37f582..00000000 --- a/src/merge/resources/ats/types/account_details_and_actions_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountDetailsAndActionsStatusEnum(str, enum.Enum): - """ - * `COMPLETE` - COMPLETE - * `INCOMPLETE` - INCOMPLETE - * `RELINK_NEEDED` - RELINK_NEEDED - * `IDLE` - IDLE - """ - - COMPLETE = "COMPLETE" - INCOMPLETE = "INCOMPLETE" - RELINK_NEEDED = "RELINK_NEEDED" - IDLE = "IDLE" - - def visit( - self, - complete: typing.Callable[[], T_Result], - incomplete: typing.Callable[[], T_Result], - relink_needed: typing.Callable[[], T_Result], - idle: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountDetailsAndActionsStatusEnum.COMPLETE: - return complete() - if self is AccountDetailsAndActionsStatusEnum.INCOMPLETE: - return incomplete() - if self is AccountDetailsAndActionsStatusEnum.RELINK_NEEDED: - return relink_needed() - if self is AccountDetailsAndActionsStatusEnum.IDLE: - return idle() diff --git a/src/merge/resources/ats/types/account_details_category.py b/src/merge/resources/ats/types/account_details_category.py deleted file mode 100644 index 8a0cc59c..00000000 --- a/src/merge/resources/ats/types/account_details_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/ats/types/account_integration.py b/src/merge/resources/ats/types/account_integration.py deleted file mode 100644 index ef8b260d..00000000 --- a/src/merge/resources/ats/types/account_integration.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum - - -class AccountIntegration(UncheckedBaseModel): - name: str = pydantic.Field() - """ - Company name. - """ - - abbreviated_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) - """ - - categories: typing.Optional[typing.List[CategoriesEnum]] = pydantic.Field(default=None) - """ - Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. - """ - - image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in rectangular shape. - """ - - square_image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in square shape. - """ - - color: typing.Optional[str] = pydantic.Field(default=None) - """ - The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. - """ - - slug: typing.Optional[str] = None - api_endpoints_to_documentation_urls: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = ( - pydantic.Field(default=None) - ) - """ - Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} - """ - - webhook_setup_guide_url: typing.Optional[str] = pydantic.Field(default=None) - """ - Setup guide URL for third party webhook creation. Exposed in Merge Docs. - """ - - category_beta_status: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Category or categories this integration is in beta status for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/account_token.py b/src/merge/resources/ats/types/account_token.py deleted file mode 100644 index 6e82c8ac..00000000 --- a/src/merge/resources/ats/types/account_token.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration - - -class AccountToken(UncheckedBaseModel): - account_token: str - integration: AccountIntegration - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/activity.py b/src/merge/resources/ats/types/activity.py deleted file mode 100644 index 3a794363..00000000 --- a/src/merge/resources/ats/types/activity.py +++ /dev/null @@ -1,94 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .activity_activity_type import ActivityActivityType -from .activity_user import ActivityUser -from .activity_visibility import ActivityVisibility -from .remote_data import RemoteData - - -class Activity(UncheckedBaseModel): - """ - # The Activity Object - ### Description - The `Activity` object is used to represent an activity for a candidate performed by a user. - ### Usage Example - Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - user: typing.Optional[ActivityUser] = pydantic.Field(default=None) - """ - The user that performed the action. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's activity was created. - """ - - activity_type: typing.Optional[ActivityActivityType] = pydantic.Field(default=None) - """ - The activity's type. - - * `NOTE` - NOTE - * `EMAIL` - EMAIL - * `OTHER` - OTHER - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The activity's subject. - """ - - body: typing.Optional[str] = pydantic.Field(default=None) - """ - The activity's body. - """ - - visibility: typing.Optional[ActivityVisibility] = pydantic.Field(default=None) - """ - The activity's visibility. - - * `ADMIN_ONLY` - ADMIN_ONLY - * `PUBLIC` - PUBLIC - * `PRIVATE` - PRIVATE - """ - - candidate: typing.Optional[str] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/activity_activity_type.py b/src/merge/resources/ats/types/activity_activity_type.py deleted file mode 100644 index f369e7f0..00000000 --- a/src/merge/resources/ats/types/activity_activity_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .activity_type_enum import ActivityTypeEnum - -ActivityActivityType = typing.Union[ActivityTypeEnum, str] diff --git a/src/merge/resources/ats/types/activity_request.py b/src/merge/resources/ats/types/activity_request.py deleted file mode 100644 index 5a6a4f30..00000000 --- a/src/merge/resources/ats/types/activity_request.py +++ /dev/null @@ -1,66 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .activity_request_activity_type import ActivityRequestActivityType -from .activity_request_user import ActivityRequestUser -from .activity_request_visibility import ActivityRequestVisibility - - -class ActivityRequest(UncheckedBaseModel): - """ - # The Activity Object - ### Description - The `Activity` object is used to represent an activity for a candidate performed by a user. - ### Usage Example - Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities. - """ - - user: typing.Optional[ActivityRequestUser] = pydantic.Field(default=None) - """ - The user that performed the action. - """ - - activity_type: typing.Optional[ActivityRequestActivityType] = pydantic.Field(default=None) - """ - The activity's type. - - * `NOTE` - NOTE - * `EMAIL` - EMAIL - * `OTHER` - OTHER - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The activity's subject. - """ - - body: typing.Optional[str] = pydantic.Field(default=None) - """ - The activity's body. - """ - - visibility: typing.Optional[ActivityRequestVisibility] = pydantic.Field(default=None) - """ - The activity's visibility. - - * `ADMIN_ONLY` - ADMIN_ONLY - * `PUBLIC` - PUBLIC - * `PRIVATE` - PRIVATE - """ - - candidate: typing.Optional[str] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/activity_request_activity_type.py b/src/merge/resources/ats/types/activity_request_activity_type.py deleted file mode 100644 index f4236ee0..00000000 --- a/src/merge/resources/ats/types/activity_request_activity_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .activity_type_enum import ActivityTypeEnum - -ActivityRequestActivityType = typing.Union[ActivityTypeEnum, str] diff --git a/src/merge/resources/ats/types/activity_request_user.py b/src/merge/resources/ats/types/activity_request_user.py deleted file mode 100644 index 9c4dfb0f..00000000 --- a/src/merge/resources/ats/types/activity_request_user.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ActivityRequestUser = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/activity_request_visibility.py b/src/merge/resources/ats/types/activity_request_visibility.py deleted file mode 100644 index 07ab9c7a..00000000 --- a/src/merge/resources/ats/types/activity_request_visibility.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .visibility_enum import VisibilityEnum - -ActivityRequestVisibility = typing.Union[VisibilityEnum, str] diff --git a/src/merge/resources/ats/types/activity_response.py b/src/merge/resources/ats/types/activity_response.py deleted file mode 100644 index 054189ea..00000000 --- a/src/merge/resources/ats/types/activity_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .activity import Activity -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class ActivityResponse(UncheckedBaseModel): - model: Activity - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/activity_type_enum.py b/src/merge/resources/ats/types/activity_type_enum.py deleted file mode 100644 index 1ce3bf63..00000000 --- a/src/merge/resources/ats/types/activity_type_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ActivityTypeEnum(str, enum.Enum): - """ - * `NOTE` - NOTE - * `EMAIL` - EMAIL - * `OTHER` - OTHER - """ - - NOTE = "NOTE" - EMAIL = "EMAIL" - OTHER = "OTHER" - - def visit( - self, - note: typing.Callable[[], T_Result], - email: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ActivityTypeEnum.NOTE: - return note() - if self is ActivityTypeEnum.EMAIL: - return email() - if self is ActivityTypeEnum.OTHER: - return other() diff --git a/src/merge/resources/ats/types/activity_user.py b/src/merge/resources/ats/types/activity_user.py deleted file mode 100644 index db261e0f..00000000 --- a/src/merge/resources/ats/types/activity_user.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ActivityUser = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/activity_visibility.py b/src/merge/resources/ats/types/activity_visibility.py deleted file mode 100644 index a6d51ff6..00000000 --- a/src/merge/resources/ats/types/activity_visibility.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .visibility_enum import VisibilityEnum - -ActivityVisibility = typing.Union[VisibilityEnum, str] diff --git a/src/merge/resources/ats/types/advanced_metadata.py b/src/merge/resources/ats/types/advanced_metadata.py deleted file mode 100644 index 60b5d072..00000000 --- a/src/merge/resources/ats/types/advanced_metadata.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AdvancedMetadata(UncheckedBaseModel): - id: str - display_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - is_custom: typing.Optional[bool] = None - field_choices: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/application.py b/src/merge/resources/ats/types/application.py deleted file mode 100644 index 8aad0835..00000000 --- a/src/merge/resources/ats/types/application.py +++ /dev/null @@ -1,110 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .application_credited_to import ApplicationCreditedTo -from .application_current_stage import ApplicationCurrentStage -from .application_job import ApplicationJob -from .application_reject_reason import ApplicationRejectReason -from .application_screening_question_answers_item import ApplicationScreeningQuestionAnswersItem -from .remote_data import RemoteData - - -class Application(UncheckedBaseModel): - """ - # The Application Object - ### Description - The Application Object is used to represent a candidate's journey through a particular Job's recruiting process. If a Candidate applies for multiple Jobs, there will be a separate Application for each Job if the third-party integration allows it. - - ### Usage Example - Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - candidate: typing.Optional["ApplicationCandidate"] = pydantic.Field(default=None) - """ - The candidate applying. - """ - - job: typing.Optional[ApplicationJob] = pydantic.Field(default=None) - """ - The job being applied for. - """ - - applied_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the application was submitted. - """ - - rejected_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the application was rejected. - """ - - offers: typing.Optional[typing.List[typing.Optional["ApplicationOffersItem"]]] = None - source: typing.Optional[str] = pydantic.Field(default=None) - """ - The application's source. - """ - - credited_to: typing.Optional[ApplicationCreditedTo] = pydantic.Field(default=None) - """ - The user credited for this application. - """ - - screening_question_answers: typing.Optional[typing.List[ApplicationScreeningQuestionAnswersItem]] = None - current_stage: typing.Optional[ApplicationCurrentStage] = pydantic.Field(default=None) - """ - The application's current stage. - """ - - reject_reason: typing.Optional[ApplicationRejectReason] = pydantic.Field(default=None) - """ - The application's reason for rejection. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 -from .application_candidate import ApplicationCandidate # noqa: E402, F401, I001 -from .application_offers_item import ApplicationOffersItem # noqa: E402, F401, I001 - -update_forward_refs(Application) diff --git a/src/merge/resources/ats/types/application_candidate.py b/src/merge/resources/ats/types/application_candidate.py deleted file mode 100644 index 9126f29b..00000000 --- a/src/merge/resources/ats/types/application_candidate.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .candidate import Candidate -ApplicationCandidate = typing.Union[str, "Candidate"] diff --git a/src/merge/resources/ats/types/application_credited_to.py b/src/merge/resources/ats/types/application_credited_to.py deleted file mode 100644 index 9e58ac83..00000000 --- a/src/merge/resources/ats/types/application_credited_to.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ApplicationCreditedTo = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/application_current_stage.py b/src/merge/resources/ats/types/application_current_stage.py deleted file mode 100644 index 599a3159..00000000 --- a/src/merge/resources/ats/types/application_current_stage.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job_interview_stage import JobInterviewStage - -ApplicationCurrentStage = typing.Union[str, JobInterviewStage] diff --git a/src/merge/resources/ats/types/application_job.py b/src/merge/resources/ats/types/application_job.py deleted file mode 100644 index 17285343..00000000 --- a/src/merge/resources/ats/types/application_job.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job import Job - -ApplicationJob = typing.Union[str, Job] diff --git a/src/merge/resources/ats/types/application_offers_item.py b/src/merge/resources/ats/types/application_offers_item.py deleted file mode 100644 index 70dffb5f..00000000 --- a/src/merge/resources/ats/types/application_offers_item.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .offer import Offer -ApplicationOffersItem = typing.Union[str, "Offer"] diff --git a/src/merge/resources/ats/types/application_reject_reason.py b/src/merge/resources/ats/types/application_reject_reason.py deleted file mode 100644 index c4a28a8e..00000000 --- a/src/merge/resources/ats/types/application_reject_reason.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .reject_reason import RejectReason - -ApplicationRejectReason = typing.Union[str, RejectReason] diff --git a/src/merge/resources/ats/types/application_request.py b/src/merge/resources/ats/types/application_request.py deleted file mode 100644 index ca0a600e..00000000 --- a/src/merge/resources/ats/types/application_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .application_request_candidate import ApplicationRequestCandidate -from .application_request_credited_to import ApplicationRequestCreditedTo -from .application_request_current_stage import ApplicationRequestCurrentStage -from .application_request_job import ApplicationRequestJob -from .application_request_offers_item import ApplicationRequestOffersItem -from .application_request_reject_reason import ApplicationRequestRejectReason -from .application_request_screening_question_answers_item import ApplicationRequestScreeningQuestionAnswersItem - - -class ApplicationRequest(UncheckedBaseModel): - """ - # The Application Object - ### Description - The Application Object is used to represent a candidate's journey through a particular Job's recruiting process. If a Candidate applies for multiple Jobs, there will be a separate Application for each Job if the third-party integration allows it. - - ### Usage Example - Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications. - """ - - candidate: typing.Optional[ApplicationRequestCandidate] = pydantic.Field(default=None) - """ - The candidate applying. - """ - - job: typing.Optional[ApplicationRequestJob] = pydantic.Field(default=None) - """ - The job being applied for. - """ - - applied_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the application was submitted. - """ - - rejected_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the application was rejected. - """ - - offers: typing.Optional[typing.List[typing.Optional[ApplicationRequestOffersItem]]] = None - source: typing.Optional[str] = pydantic.Field(default=None) - """ - The application's source. - """ - - credited_to: typing.Optional[ApplicationRequestCreditedTo] = pydantic.Field(default=None) - """ - The user credited for this application. - """ - - screening_question_answers: typing.Optional[typing.List[ApplicationRequestScreeningQuestionAnswersItem]] = None - current_stage: typing.Optional[ApplicationRequestCurrentStage] = pydantic.Field(default=None) - """ - The application's current stage. - """ - - reject_reason: typing.Optional[ApplicationRequestRejectReason] = pydantic.Field(default=None) - """ - The application's reason for rejection. - """ - - remote_template_id: typing.Optional[str] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(ApplicationRequest) diff --git a/src/merge/resources/ats/types/application_request_candidate.py b/src/merge/resources/ats/types/application_request_candidate.py deleted file mode 100644 index f931b70e..00000000 --- a/src/merge/resources/ats/types/application_request_candidate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .candidate import Candidate - -ApplicationRequestCandidate = typing.Union[str, Candidate] diff --git a/src/merge/resources/ats/types/application_request_credited_to.py b/src/merge/resources/ats/types/application_request_credited_to.py deleted file mode 100644 index a8ccaeff..00000000 --- a/src/merge/resources/ats/types/application_request_credited_to.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ApplicationRequestCreditedTo = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/application_request_current_stage.py b/src/merge/resources/ats/types/application_request_current_stage.py deleted file mode 100644 index dd56a6d3..00000000 --- a/src/merge/resources/ats/types/application_request_current_stage.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job_interview_stage import JobInterviewStage - -ApplicationRequestCurrentStage = typing.Union[str, JobInterviewStage] diff --git a/src/merge/resources/ats/types/application_request_job.py b/src/merge/resources/ats/types/application_request_job.py deleted file mode 100644 index 354968cd..00000000 --- a/src/merge/resources/ats/types/application_request_job.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job import Job - -ApplicationRequestJob = typing.Union[str, Job] diff --git a/src/merge/resources/ats/types/application_request_offers_item.py b/src/merge/resources/ats/types/application_request_offers_item.py deleted file mode 100644 index 1c727579..00000000 --- a/src/merge/resources/ats/types/application_request_offers_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .offer import Offer - -ApplicationRequestOffersItem = typing.Union[str, Offer] diff --git a/src/merge/resources/ats/types/application_request_reject_reason.py b/src/merge/resources/ats/types/application_request_reject_reason.py deleted file mode 100644 index 03e47492..00000000 --- a/src/merge/resources/ats/types/application_request_reject_reason.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .reject_reason import RejectReason - -ApplicationRequestRejectReason = typing.Union[str, RejectReason] diff --git a/src/merge/resources/ats/types/application_request_screening_question_answers_item.py b/src/merge/resources/ats/types/application_request_screening_question_answers_item.py deleted file mode 100644 index 810e10fa..00000000 --- a/src/merge/resources/ats/types/application_request_screening_question_answers_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .screening_question_answer_request import ScreeningQuestionAnswerRequest - -ApplicationRequestScreeningQuestionAnswersItem = typing.Union[str, ScreeningQuestionAnswerRequest] diff --git a/src/merge/resources/ats/types/application_response.py b/src/merge/resources/ats/types/application_response.py deleted file mode 100644 index 8f5121a7..00000000 --- a/src/merge/resources/ats/types/application_response.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class ApplicationResponse(UncheckedBaseModel): - model: "Application" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(ApplicationResponse) diff --git a/src/merge/resources/ats/types/application_screening_question_answers_item.py b/src/merge/resources/ats/types/application_screening_question_answers_item.py deleted file mode 100644 index 42cc4b76..00000000 --- a/src/merge/resources/ats/types/application_screening_question_answers_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .screening_question_answer import ScreeningQuestionAnswer - -ApplicationScreeningQuestionAnswersItem = typing.Union[str, ScreeningQuestionAnswer] diff --git a/src/merge/resources/ats/types/async_passthrough_reciept.py b/src/merge/resources/ats/types/async_passthrough_reciept.py deleted file mode 100644 index 21c95080..00000000 --- a/src/merge/resources/ats/types/async_passthrough_reciept.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPassthroughReciept(UncheckedBaseModel): - async_passthrough_receipt_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/attachment.py b/src/merge/resources/ats/types/attachment.py deleted file mode 100644 index 8e988378..00000000 --- a/src/merge/resources/ats/types/attachment.py +++ /dev/null @@ -1,78 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .attachment_attachment_type import AttachmentAttachmentType -from .remote_data import RemoteData - - -class Attachment(UncheckedBaseModel): - """ - # The Attachment Object - ### Description - The `Attachment` object is used to represent a file attached to a candidate. - ### Usage Example - Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's name. - """ - - file_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's url. - """ - - candidate: typing.Optional[str] = pydantic.Field(default=None) - """ - - """ - - attachment_type: typing.Optional[AttachmentAttachmentType] = pydantic.Field(default=None) - """ - The attachment's type. - - * `RESUME` - RESUME - * `COVER_LETTER` - COVER_LETTER - * `OFFER_LETTER` - OFFER_LETTER - * `OTHER` - OTHER - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/attachment_attachment_type.py b/src/merge/resources/ats/types/attachment_attachment_type.py deleted file mode 100644 index e767759b..00000000 --- a/src/merge/resources/ats/types/attachment_attachment_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .attachment_type_enum import AttachmentTypeEnum - -AttachmentAttachmentType = typing.Union[AttachmentTypeEnum, str] diff --git a/src/merge/resources/ats/types/attachment_request.py b/src/merge/resources/ats/types/attachment_request.py deleted file mode 100644 index 55ebdfff..00000000 --- a/src/merge/resources/ats/types/attachment_request.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .attachment_request_attachment_type import AttachmentRequestAttachmentType - - -class AttachmentRequest(UncheckedBaseModel): - """ - # The Attachment Object - ### Description - The `Attachment` object is used to represent a file attached to a candidate. - ### Usage Example - Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company. - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's name. - """ - - file_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's url. - """ - - candidate: typing.Optional[str] = pydantic.Field(default=None) - """ - - """ - - attachment_type: typing.Optional[AttachmentRequestAttachmentType] = pydantic.Field(default=None) - """ - The attachment's type. - - * `RESUME` - RESUME - * `COVER_LETTER` - COVER_LETTER - * `OFFER_LETTER` - OFFER_LETTER - * `OTHER` - OTHER - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/attachment_request_attachment_type.py b/src/merge/resources/ats/types/attachment_request_attachment_type.py deleted file mode 100644 index c3d6d377..00000000 --- a/src/merge/resources/ats/types/attachment_request_attachment_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .attachment_type_enum import AttachmentTypeEnum - -AttachmentRequestAttachmentType = typing.Union[AttachmentTypeEnum, str] diff --git a/src/merge/resources/ats/types/attachment_response.py b/src/merge/resources/ats/types/attachment_response.py deleted file mode 100644 index 6b0721b6..00000000 --- a/src/merge/resources/ats/types/attachment_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .attachment import Attachment -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class AttachmentResponse(UncheckedBaseModel): - model: Attachment - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/attachment_type_enum.py b/src/merge/resources/ats/types/attachment_type_enum.py deleted file mode 100644 index 51124af9..00000000 --- a/src/merge/resources/ats/types/attachment_type_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AttachmentTypeEnum(str, enum.Enum): - """ - * `RESUME` - RESUME - * `COVER_LETTER` - COVER_LETTER - * `OFFER_LETTER` - OFFER_LETTER - * `OTHER` - OTHER - """ - - RESUME = "RESUME" - COVER_LETTER = "COVER_LETTER" - OFFER_LETTER = "OFFER_LETTER" - OTHER = "OTHER" - - def visit( - self, - resume: typing.Callable[[], T_Result], - cover_letter: typing.Callable[[], T_Result], - offer_letter: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AttachmentTypeEnum.RESUME: - return resume() - if self is AttachmentTypeEnum.COVER_LETTER: - return cover_letter() - if self is AttachmentTypeEnum.OFFER_LETTER: - return offer_letter() - if self is AttachmentTypeEnum.OTHER: - return other() diff --git a/src/merge/resources/ats/types/audit_log_event.py b/src/merge/resources/ats/types/audit_log_event.py deleted file mode 100644 index ab69fd32..00000000 --- a/src/merge/resources/ats/types/audit_log_event.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event_event_type import AuditLogEventEventType -from .audit_log_event_role import AuditLogEventRole - - -class AuditLogEvent(UncheckedBaseModel): - id: typing.Optional[str] = None - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's full name at the time of this Event occurring. - """ - - user_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's email at the time of this Event occurring. - """ - - role: AuditLogEventRole = pydantic.Field() - """ - Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ip_address: str - event_type: AuditLogEventEventType = pydantic.Field() - """ - Designates the type of event that occurred. - - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - event_description: str - created_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/audit_log_event_event_type.py b/src/merge/resources/ats/types/audit_log_event_event_type.py deleted file mode 100644 index f9c9d2b3..00000000 --- a/src/merge/resources/ats/types/audit_log_event_event_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_type_enum import EventTypeEnum - -AuditLogEventEventType = typing.Union[EventTypeEnum, str] diff --git a/src/merge/resources/ats/types/audit_log_event_role.py b/src/merge/resources/ats/types/audit_log_event_role.py deleted file mode 100644 index fe91ed6f..00000000 --- a/src/merge/resources/ats/types/audit_log_event_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role_enum import RoleEnum - -AuditLogEventRole = typing.Union[RoleEnum, str] diff --git a/src/merge/resources/ats/types/available_actions.py b/src/merge/resources/ats/types/available_actions.py deleted file mode 100644 index 8b5019d7..00000000 --- a/src/merge/resources/ats/types/available_actions.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration -from .model_operation import ModelOperation - - -class AvailableActions(UncheckedBaseModel): - """ - # The AvailableActions Object - ### Description - The `Activity` object is used to see all available model/operation combinations for an integration. - - ### Usage Example - Fetch all the actions available for the `Zenefits` integration. - """ - - integration: AccountIntegration - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/candidate.py b/src/merge/resources/ats/types/candidate.py deleted file mode 100644 index 38f223dc..00000000 --- a/src/merge/resources/ats/types/candidate.py +++ /dev/null @@ -1,135 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .candidate_attachments_item import CandidateAttachmentsItem -from .email_address import EmailAddress -from .phone_number import PhoneNumber -from .remote_data import RemoteData -from .url import Url - - -class Candidate(UncheckedBaseModel): - """ - # The Candidate Object - ### Description - The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. - ### Usage Example - Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's last name. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's current company. - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's current title. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's candidate was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's candidate was updated. - """ - - last_interaction_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the most recent interaction with the candidate occurred. - """ - - is_private: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the candidate is private. - """ - - can_email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the candidate can be emailed. - """ - - locations: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The candidate's locations. - """ - - phone_numbers: typing.Optional[typing.List[PhoneNumber]] = None - email_addresses: typing.Optional[typing.List[EmailAddress]] = None - urls: typing.Optional[typing.List[Url]] = None - tags: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - Array of `Tag` names as strings. - """ - - applications: typing.Optional[typing.List[typing.Optional["CandidateApplicationsItem"]]] = pydantic.Field( - default=None - ) - """ - Array of `Application` object IDs. - """ - - attachments: typing.Optional[typing.List[typing.Optional[CandidateAttachmentsItem]]] = pydantic.Field(default=None) - """ - Array of `Attachment` object IDs. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 -from .candidate_applications_item import CandidateApplicationsItem # noqa: E402, F401, I001 - -update_forward_refs(Candidate) diff --git a/src/merge/resources/ats/types/candidate_applications_item.py b/src/merge/resources/ats/types/candidate_applications_item.py deleted file mode 100644 index 80934c66..00000000 --- a/src/merge/resources/ats/types/candidate_applications_item.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .application import Application -CandidateApplicationsItem = typing.Union[str, "Application"] diff --git a/src/merge/resources/ats/types/candidate_attachments_item.py b/src/merge/resources/ats/types/candidate_attachments_item.py deleted file mode 100644 index b5076acd..00000000 --- a/src/merge/resources/ats/types/candidate_attachments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .attachment import Attachment - -CandidateAttachmentsItem = typing.Union[str, Attachment] diff --git a/src/merge/resources/ats/types/candidate_request.py b/src/merge/resources/ats/types/candidate_request.py deleted file mode 100644 index bc8cf926..00000000 --- a/src/merge/resources/ats/types/candidate_request.py +++ /dev/null @@ -1,107 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .candidate_request_applications_item import CandidateRequestApplicationsItem -from .candidate_request_attachments_item import CandidateRequestAttachmentsItem -from .email_address_request import EmailAddressRequest -from .phone_number_request import PhoneNumberRequest -from .url_request import UrlRequest - - -class CandidateRequest(UncheckedBaseModel): - """ - # The Candidate Object - ### Description - The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. - ### Usage Example - Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's last name. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's current company. - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's current title. - """ - - last_interaction_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the most recent interaction with the candidate occurred. - """ - - is_private: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the candidate is private. - """ - - can_email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the candidate can be emailed. - """ - - locations: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The candidate's locations. - """ - - phone_numbers: typing.Optional[typing.List[PhoneNumberRequest]] = None - email_addresses: typing.Optional[typing.List[EmailAddressRequest]] = None - urls: typing.Optional[typing.List[UrlRequest]] = None - tags: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - Array of `Tag` names as strings. - """ - - applications: typing.Optional[typing.List[typing.Optional[CandidateRequestApplicationsItem]]] = pydantic.Field( - default=None - ) - """ - Array of `Application` object IDs. - """ - - attachments: typing.Optional[typing.List[typing.Optional[CandidateRequestAttachmentsItem]]] = pydantic.Field( - default=None - ) - """ - Array of `Attachment` object IDs. - """ - - remote_template_id: typing.Optional[str] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(CandidateRequest) diff --git a/src/merge/resources/ats/types/candidate_request_applications_item.py b/src/merge/resources/ats/types/candidate_request_applications_item.py deleted file mode 100644 index 4c31a29e..00000000 --- a/src/merge/resources/ats/types/candidate_request_applications_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .application import Application - -CandidateRequestApplicationsItem = typing.Union[str, Application] diff --git a/src/merge/resources/ats/types/candidate_request_attachments_item.py b/src/merge/resources/ats/types/candidate_request_attachments_item.py deleted file mode 100644 index be6c3558..00000000 --- a/src/merge/resources/ats/types/candidate_request_attachments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .attachment import Attachment - -CandidateRequestAttachmentsItem = typing.Union[str, Attachment] diff --git a/src/merge/resources/ats/types/candidate_response.py b/src/merge/resources/ats/types/candidate_response.py deleted file mode 100644 index 56292f9f..00000000 --- a/src/merge/resources/ats/types/candidate_response.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class CandidateResponse(UncheckedBaseModel): - model: "Candidate" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(CandidateResponse) diff --git a/src/merge/resources/ats/types/categories_enum.py b/src/merge/resources/ats/types/categories_enum.py deleted file mode 100644 index 3f2dc5a9..00000000 --- a/src/merge/resources/ats/types/categories_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoriesEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoriesEnum.HRIS: - return hris() - if self is CategoriesEnum.ATS: - return ats() - if self is CategoriesEnum.ACCOUNTING: - return accounting() - if self is CategoriesEnum.TICKETING: - return ticketing() - if self is CategoriesEnum.CRM: - return crm() - if self is CategoriesEnum.MKTG: - return mktg() - if self is CategoriesEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/ats/types/category_enum.py b/src/merge/resources/ats/types/category_enum.py deleted file mode 100644 index d37e48f5..00000000 --- a/src/merge/resources/ats/types/category_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoryEnum.HRIS: - return hris() - if self is CategoryEnum.ATS: - return ats() - if self is CategoryEnum.ACCOUNTING: - return accounting() - if self is CategoryEnum.TICKETING: - return ticketing() - if self is CategoryEnum.CRM: - return crm() - if self is CategoryEnum.MKTG: - return mktg() - if self is CategoryEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/ats/types/common_model_scope_api.py b/src/merge/resources/ats/types/common_model_scope_api.py deleted file mode 100644 index 5484808d..00000000 --- a/src/merge/resources/ats/types/common_model_scope_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - - -class CommonModelScopeApi(UncheckedBaseModel): - common_models: typing.List[IndividualCommonModelScopeDeserializer] = pydantic.Field() - """ - The common models you want to update the scopes for - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/common_model_scopes_body_request.py b/src/merge/resources/ats/types/common_model_scopes_body_request.py deleted file mode 100644 index a9fed25b..00000000 --- a/src/merge/resources/ats/types/common_model_scopes_body_request.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .enabled_actions_enum import EnabledActionsEnum - - -class CommonModelScopesBodyRequest(UncheckedBaseModel): - model_id: str - enabled_actions: typing.List[EnabledActionsEnum] - disabled_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/data_passthrough_request.py b/src/merge/resources/ats/types/data_passthrough_request.py deleted file mode 100644 index c9f0a799..00000000 --- a/src/merge/resources/ats/types/data_passthrough_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .method_enum import MethodEnum -from .multipart_form_field_request import MultipartFormFieldRequest -from .request_format_enum import RequestFormatEnum - - -class DataPassthroughRequest(UncheckedBaseModel): - """ - # The DataPassthrough Object - ### Description - The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - - ### Usage Example - Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - """ - - method: MethodEnum - path: str = pydantic.Field() - """ - The path of the request in the third party's platform. - """ - - base_url_override: typing.Optional[str] = pydantic.Field(default=None) - """ - An optional override of the third party's base url for the request. - """ - - data: typing.Optional[str] = pydantic.Field(default=None) - """ - The data with the request. You must include a `request_format` parameter matching the data's format - """ - - multipart_form_data: typing.Optional[typing.List[MultipartFormFieldRequest]] = pydantic.Field(default=None) - """ - Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. - """ - - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. - """ - - request_format: typing.Optional[RequestFormatEnum] = None - normalize_response: typing.Optional[bool] = pydantic.Field(default=None) - """ - Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/debug_mode_log.py b/src/merge/resources/ats/types/debug_mode_log.py deleted file mode 100644 index 9c7d2a3f..00000000 --- a/src/merge/resources/ats/types/debug_mode_log.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_model_log_summary import DebugModelLogSummary - - -class DebugModeLog(UncheckedBaseModel): - log_id: str - dashboard_view: str - log_summary: DebugModelLogSummary - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/debug_model_log_summary.py b/src/merge/resources/ats/types/debug_model_log_summary.py deleted file mode 100644 index d7e1d3e6..00000000 --- a/src/merge/resources/ats/types/debug_model_log_summary.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class DebugModelLogSummary(UncheckedBaseModel): - url: str - method: str - status_code: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/department.py b/src/merge/resources/ats/types/department.py deleted file mode 100644 index 7098c001..00000000 --- a/src/merge/resources/ats/types/department.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Department(UncheckedBaseModel): - """ - # The Department Object - ### Description - The `Department` object is used to represent a department within a company. - ### Usage Example - Fetch from the `LIST Departments` endpoint and view the departments within a company. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The department's name. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/disability_status_enum.py b/src/merge/resources/ats/types/disability_status_enum.py deleted file mode 100644 index e0987cfe..00000000 --- a/src/merge/resources/ats/types/disability_status_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class DisabilityStatusEnum(str, enum.Enum): - """ - * `YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY` - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - * `NO_I_DONT_HAVE_A_DISABILITY` - NO_I_DONT_HAVE_A_DISABILITY - * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - """ - - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY = "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY" - NO_I_DONT_HAVE_A_DISABILITY = "NO_I_DONT_HAVE_A_DISABILITY" - I_DONT_WISH_TO_ANSWER = "I_DONT_WISH_TO_ANSWER" - - def visit( - self, - yes_i_have_a_disability_or_previously_had_a_disability: typing.Callable[[], T_Result], - no_i_dont_have_a_disability: typing.Callable[[], T_Result], - i_dont_wish_to_answer: typing.Callable[[], T_Result], - ) -> T_Result: - if self is DisabilityStatusEnum.YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY: - return yes_i_have_a_disability_or_previously_had_a_disability() - if self is DisabilityStatusEnum.NO_I_DONT_HAVE_A_DISABILITY: - return no_i_dont_have_a_disability() - if self is DisabilityStatusEnum.I_DONT_WISH_TO_ANSWER: - return i_dont_wish_to_answer() diff --git a/src/merge/resources/ats/types/eeoc.py b/src/merge/resources/ats/types/eeoc.py deleted file mode 100644 index 8091638f..00000000 --- a/src/merge/resources/ats/types/eeoc.py +++ /dev/null @@ -1,119 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .eeoc_candidate import EeocCandidate -from .eeoc_disability_status import EeocDisabilityStatus -from .eeoc_gender import EeocGender -from .eeoc_race import EeocRace -from .eeoc_veteran_status import EeocVeteranStatus -from .remote_data import RemoteData - - -class Eeoc(UncheckedBaseModel): - """ - # The EEOC Object - ### Description - The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate (race, gender, veteran status, disability status). - ### Usage Example - Fetch from the `LIST EEOCs` endpoint and filter by `candidate` to show all EEOC information for a candidate. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - candidate: typing.Optional[EeocCandidate] = pydantic.Field(default=None) - """ - The candidate being represented. - """ - - submitted_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the information was submitted. - """ - - race: typing.Optional[EeocRace] = pydantic.Field(default=None) - """ - The candidate's race. - - * `AMERICAN_INDIAN_OR_ALASKAN_NATIVE` - AMERICAN_INDIAN_OR_ALASKAN_NATIVE - * `ASIAN` - ASIAN - * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * `WHITE` - WHITE - * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - """ - - gender: typing.Optional[EeocGender] = pydantic.Field(default=None) - """ - The candidate's gender. - - * `MALE` - MALE - * `FEMALE` - FEMALE - * `NON-BINARY` - NON-BINARY - * `OTHER` - OTHER - * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - """ - - veteran_status: typing.Optional[EeocVeteranStatus] = pydantic.Field(default=None) - """ - The candidate's veteran status. - - * `I_AM_NOT_A_PROTECTED_VETERAN` - I_AM_NOT_A_PROTECTED_VETERAN - * `I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN` - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - """ - - disability_status: typing.Optional[EeocDisabilityStatus] = pydantic.Field(default=None) - """ - The candidate's disability status. - - * `YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY` - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - * `NO_I_DONT_HAVE_A_DISABILITY` - NO_I_DONT_HAVE_A_DISABILITY - * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(Eeoc) diff --git a/src/merge/resources/ats/types/eeoc_candidate.py b/src/merge/resources/ats/types/eeoc_candidate.py deleted file mode 100644 index 7b8461b2..00000000 --- a/src/merge/resources/ats/types/eeoc_candidate.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .candidate import Candidate - -EeocCandidate = typing.Union[str, Candidate] diff --git a/src/merge/resources/ats/types/eeoc_disability_status.py b/src/merge/resources/ats/types/eeoc_disability_status.py deleted file mode 100644 index 23d93772..00000000 --- a/src/merge/resources/ats/types/eeoc_disability_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .disability_status_enum import DisabilityStatusEnum - -EeocDisabilityStatus = typing.Union[DisabilityStatusEnum, str] diff --git a/src/merge/resources/ats/types/eeoc_gender.py b/src/merge/resources/ats/types/eeoc_gender.py deleted file mode 100644 index 71f0a6ae..00000000 --- a/src/merge/resources/ats/types/eeoc_gender.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .gender_enum import GenderEnum - -EeocGender = typing.Union[GenderEnum, str] diff --git a/src/merge/resources/ats/types/eeoc_race.py b/src/merge/resources/ats/types/eeoc_race.py deleted file mode 100644 index b65e39ca..00000000 --- a/src/merge/resources/ats/types/eeoc_race.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .race_enum import RaceEnum - -EeocRace = typing.Union[RaceEnum, str] diff --git a/src/merge/resources/ats/types/eeoc_veteran_status.py b/src/merge/resources/ats/types/eeoc_veteran_status.py deleted file mode 100644 index 4a2e84e3..00000000 --- a/src/merge/resources/ats/types/eeoc_veteran_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .veteran_status_enum import VeteranStatusEnum - -EeocVeteranStatus = typing.Union[VeteranStatusEnum, str] diff --git a/src/merge/resources/ats/types/email_address.py b/src/merge/resources/ats/types/email_address.py deleted file mode 100644 index c377c891..00000000 --- a/src/merge/resources/ats/types/email_address.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .email_address_email_address_type import EmailAddressEmailAddressType - - -class EmailAddress(UncheckedBaseModel): - """ - # The EmailAddress Object - ### Description - The `EmailAddress` object is used to represent a candidate's email address. - ### Usage Example - Fetch from the `GET Candidate` endpoint and view their email addresses. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The email address. - """ - - email_address_type: typing.Optional[EmailAddressEmailAddressType] = pydantic.Field(default=None) - """ - The type of email address. - - * `PERSONAL` - PERSONAL - * `WORK` - WORK - * `OTHER` - OTHER - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/email_address_email_address_type.py b/src/merge/resources/ats/types/email_address_email_address_type.py deleted file mode 100644 index d91604f7..00000000 --- a/src/merge/resources/ats/types/email_address_email_address_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .email_address_type_enum import EmailAddressTypeEnum - -EmailAddressEmailAddressType = typing.Union[EmailAddressTypeEnum, str] diff --git a/src/merge/resources/ats/types/email_address_request.py b/src/merge/resources/ats/types/email_address_request.py deleted file mode 100644 index 7bd79d2c..00000000 --- a/src/merge/resources/ats/types/email_address_request.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .email_address_request_email_address_type import EmailAddressRequestEmailAddressType - - -class EmailAddressRequest(UncheckedBaseModel): - """ - # The EmailAddress Object - ### Description - The `EmailAddress` object is used to represent a candidate's email address. - ### Usage Example - Fetch from the `GET Candidate` endpoint and view their email addresses. - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The email address. - """ - - email_address_type: typing.Optional[EmailAddressRequestEmailAddressType] = pydantic.Field(default=None) - """ - The type of email address. - - * `PERSONAL` - PERSONAL - * `WORK` - WORK - * `OTHER` - OTHER - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/email_address_request_email_address_type.py b/src/merge/resources/ats/types/email_address_request_email_address_type.py deleted file mode 100644 index 66f22173..00000000 --- a/src/merge/resources/ats/types/email_address_request_email_address_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .email_address_type_enum import EmailAddressTypeEnum - -EmailAddressRequestEmailAddressType = typing.Union[EmailAddressTypeEnum, str] diff --git a/src/merge/resources/ats/types/email_address_type_enum.py b/src/merge/resources/ats/types/email_address_type_enum.py deleted file mode 100644 index dd6b141e..00000000 --- a/src/merge/resources/ats/types/email_address_type_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmailAddressTypeEnum(str, enum.Enum): - """ - * `PERSONAL` - PERSONAL - * `WORK` - WORK - * `OTHER` - OTHER - """ - - PERSONAL = "PERSONAL" - WORK = "WORK" - OTHER = "OTHER" - - def visit( - self, - personal: typing.Callable[[], T_Result], - work: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmailAddressTypeEnum.PERSONAL: - return personal() - if self is EmailAddressTypeEnum.WORK: - return work() - if self is EmailAddressTypeEnum.OTHER: - return other() diff --git a/src/merge/resources/ats/types/enabled_actions_enum.py b/src/merge/resources/ats/types/enabled_actions_enum.py deleted file mode 100644 index 29cf9839..00000000 --- a/src/merge/resources/ats/types/enabled_actions_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EnabledActionsEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - """ - - READ = "READ" - WRITE = "WRITE" - - def visit(self, read: typing.Callable[[], T_Result], write: typing.Callable[[], T_Result]) -> T_Result: - if self is EnabledActionsEnum.READ: - return read() - if self is EnabledActionsEnum.WRITE: - return write() diff --git a/src/merge/resources/ats/types/encoding_enum.py b/src/merge/resources/ats/types/encoding_enum.py deleted file mode 100644 index 7454647e..00000000 --- a/src/merge/resources/ats/types/encoding_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EncodingEnum(str, enum.Enum): - """ - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - RAW = "RAW" - BASE_64 = "BASE64" - GZIP_BASE_64 = "GZIP_BASE64" - - def visit( - self, - raw: typing.Callable[[], T_Result], - base_64: typing.Callable[[], T_Result], - gzip_base_64: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EncodingEnum.RAW: - return raw() - if self is EncodingEnum.BASE_64: - return base_64() - if self is EncodingEnum.GZIP_BASE_64: - return gzip_base_64() diff --git a/src/merge/resources/ats/types/error_validation_problem.py b/src/merge/resources/ats/types/error_validation_problem.py deleted file mode 100644 index 04f82d05..00000000 --- a/src/merge/resources/ats/types/error_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class ErrorValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/event_type_enum.py b/src/merge/resources/ats/types/event_type_enum.py deleted file mode 100644 index 537cea3f..00000000 --- a/src/merge/resources/ats/types/event_type_enum.py +++ /dev/null @@ -1,231 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EventTypeEnum(str, enum.Enum): - """ - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY" - DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY" - CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" - DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" - REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" - REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" - INVITED_USER = "INVITED_USER" - TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" - TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" - DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT" - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT" - CREATED_DESTINATION = "CREATED_DESTINATION" - DELETED_DESTINATION = "DELETED_DESTINATION" - CHANGED_DESTINATION = "CHANGED_DESTINATION" - CHANGED_SCOPES = "CHANGED_SCOPES" - CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION" - CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS" - ENABLED_INTEGRATION = "ENABLED_INTEGRATION" - DISABLED_INTEGRATION = "DISABLED_INTEGRATION" - ENABLED_CATEGORY = "ENABLED_CATEGORY" - DISABLED_CATEGORY = "DISABLED_CATEGORY" - CHANGED_PASSWORD = "CHANGED_PASSWORD" - RESET_PASSWORD = "RESET_PASSWORD" - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING" - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING" - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING" - DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING" - DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC" - MUTED_ISSUE = "MUTED_ISSUE" - GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK" - ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK" - DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK" - MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED" - END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED" - - def visit( - self, - created_remote_production_api_key: typing.Callable[[], T_Result], - deleted_remote_production_api_key: typing.Callable[[], T_Result], - created_test_api_key: typing.Callable[[], T_Result], - deleted_test_api_key: typing.Callable[[], T_Result], - regenerated_production_api_key: typing.Callable[[], T_Result], - regenerated_webhook_signature: typing.Callable[[], T_Result], - invited_user: typing.Callable[[], T_Result], - two_factor_auth_enabled: typing.Callable[[], T_Result], - two_factor_auth_disabled: typing.Callable[[], T_Result], - deleted_linked_account: typing.Callable[[], T_Result], - deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result], - created_destination: typing.Callable[[], T_Result], - deleted_destination: typing.Callable[[], T_Result], - changed_destination: typing.Callable[[], T_Result], - changed_scopes: typing.Callable[[], T_Result], - changed_personal_information: typing.Callable[[], T_Result], - changed_organization_settings: typing.Callable[[], T_Result], - enabled_integration: typing.Callable[[], T_Result], - disabled_integration: typing.Callable[[], T_Result], - enabled_category: typing.Callable[[], T_Result], - disabled_category: typing.Callable[[], T_Result], - changed_password: typing.Callable[[], T_Result], - reset_password: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - created_integration_wide_field_mapping: typing.Callable[[], T_Result], - created_linked_account_field_mapping: typing.Callable[[], T_Result], - changed_integration_wide_field_mapping: typing.Callable[[], T_Result], - changed_linked_account_field_mapping: typing.Callable[[], T_Result], - deleted_integration_wide_field_mapping: typing.Callable[[], T_Result], - deleted_linked_account_field_mapping: typing.Callable[[], T_Result], - created_linked_account_common_model_override: typing.Callable[[], T_Result], - changed_linked_account_common_model_override: typing.Callable[[], T_Result], - deleted_linked_account_common_model_override: typing.Callable[[], T_Result], - forced_linked_account_resync: typing.Callable[[], T_Result], - muted_issue: typing.Callable[[], T_Result], - generated_magic_link: typing.Callable[[], T_Result], - enabled_merge_webhook: typing.Callable[[], T_Result], - disabled_merge_webhook: typing.Callable[[], T_Result], - merge_webhook_target_changed: typing.Callable[[], T_Result], - end_user_credentials_accessed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY: - return created_remote_production_api_key() - if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY: - return deleted_remote_production_api_key() - if self is EventTypeEnum.CREATED_TEST_API_KEY: - return created_test_api_key() - if self is EventTypeEnum.DELETED_TEST_API_KEY: - return deleted_test_api_key() - if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY: - return regenerated_production_api_key() - if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE: - return regenerated_webhook_signature() - if self is EventTypeEnum.INVITED_USER: - return invited_user() - if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED: - return two_factor_auth_enabled() - if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED: - return two_factor_auth_disabled() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT: - return deleted_linked_account() - if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT: - return deleted_all_common_models_for_linked_account() - if self is EventTypeEnum.CREATED_DESTINATION: - return created_destination() - if self is EventTypeEnum.DELETED_DESTINATION: - return deleted_destination() - if self is EventTypeEnum.CHANGED_DESTINATION: - return changed_destination() - if self is EventTypeEnum.CHANGED_SCOPES: - return changed_scopes() - if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION: - return changed_personal_information() - if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS: - return changed_organization_settings() - if self is EventTypeEnum.ENABLED_INTEGRATION: - return enabled_integration() - if self is EventTypeEnum.DISABLED_INTEGRATION: - return disabled_integration() - if self is EventTypeEnum.ENABLED_CATEGORY: - return enabled_category() - if self is EventTypeEnum.DISABLED_CATEGORY: - return disabled_category() - if self is EventTypeEnum.CHANGED_PASSWORD: - return changed_password() - if self is EventTypeEnum.RESET_PASSWORD: - return reset_password() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return enabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return enabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return disabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return disabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING: - return created_integration_wide_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING: - return created_linked_account_field_mapping() - if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING: - return changed_integration_wide_field_mapping() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING: - return changed_linked_account_field_mapping() - if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING: - return deleted_integration_wide_field_mapping() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING: - return deleted_linked_account_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return created_linked_account_common_model_override() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return changed_linked_account_common_model_override() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return deleted_linked_account_common_model_override() - if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC: - return forced_linked_account_resync() - if self is EventTypeEnum.MUTED_ISSUE: - return muted_issue() - if self is EventTypeEnum.GENERATED_MAGIC_LINK: - return generated_magic_link() - if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK: - return enabled_merge_webhook() - if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK: - return disabled_merge_webhook() - if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED: - return merge_webhook_target_changed() - if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED: - return end_user_credentials_accessed() diff --git a/src/merge/resources/ats/types/external_target_field_api.py b/src/merge/resources/ats/types/external_target_field_api.py deleted file mode 100644 index c0fea1eb..00000000 --- a/src/merge/resources/ats/types/external_target_field_api.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ExternalTargetFieldApi(UncheckedBaseModel): - name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_mapped: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/external_target_field_api_response.py b/src/merge/resources/ats/types/external_target_field_api_response.py deleted file mode 100644 index 2f4ac0fc..00000000 --- a/src/merge/resources/ats/types/external_target_field_api_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .external_target_field_api import ExternalTargetFieldApi - - -class ExternalTargetFieldApiResponse(UncheckedBaseModel): - activity: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Activity", default=None) - application: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="Application", default=None - ) - attachment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Attachment", default=None) - candidate: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Candidate", default=None) - department: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Department", default=None) - eeoc: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="EEOC", default=None) - scheduled_interview: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="ScheduledInterview", default=None - ) - job: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Job", default=None) - job_posting: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="JobPosting", default=None) - job_interview_stage: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="JobInterviewStage", default=None - ) - offer: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Offer", default=None) - office: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Office", default=None) - reject_reason: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="RejectReason", default=None - ) - scorecard: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Scorecard", default=None) - tag: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Tag", default=None) - remote_user: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="RemoteUser", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_mapping_api_instance.py b/src/merge/resources/ats/types/field_mapping_api_instance.py deleted file mode 100644 index a5815313..00000000 --- a/src/merge/resources/ats/types/field_mapping_api_instance.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField -from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - - -class FieldMappingApiInstance(UncheckedBaseModel): - id: typing.Optional[str] = None - is_integration_wide: typing.Optional[bool] = None - target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None - remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_mapping_api_instance_remote_field.py b/src/merge/resources/ats/types/field_mapping_api_instance_remote_field.py deleted file mode 100644 index 578a2b10..00000000 --- a/src/merge/resources/ats/types/field_mapping_api_instance_remote_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, -) - - -class FieldMappingApiInstanceRemoteField(UncheckedBaseModel): - remote_key_name: typing.Optional[str] = None - schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field( - alias="schema", default=None - ) - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py b/src/merge/resources/ats/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py deleted file mode 100644 index 4171f08b..00000000 --- a/src/merge/resources/ats/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel): - method: typing.Optional[str] = None - url_path: typing.Optional[str] = None - field_traversal_path: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_mapping_api_instance_response.py b/src/merge/resources/ats/types/field_mapping_api_instance_response.py deleted file mode 100644 index 65d4f96c..00000000 --- a/src/merge/resources/ats/types/field_mapping_api_instance_response.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance import FieldMappingApiInstance - - -class FieldMappingApiInstanceResponse(UncheckedBaseModel): - activity: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Activity", default=None) - application: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="Application", default=None - ) - attachment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Attachment", default=None) - candidate: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Candidate", default=None) - department: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Department", default=None) - eeoc: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="EEOC", default=None) - scheduled_interview: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="ScheduledInterview", default=None - ) - job: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Job", default=None) - job_posting: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="JobPosting", default=None - ) - job_interview_stage: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="JobInterviewStage", default=None - ) - offer: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Offer", default=None) - office: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Office", default=None) - reject_reason: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="RejectReason", default=None - ) - scorecard: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Scorecard", default=None) - tag: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Tag", default=None) - remote_user: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="RemoteUser", default=None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_mapping_api_instance_target_field.py b/src/merge/resources/ats/types/field_mapping_api_instance_target_field.py deleted file mode 100644 index e6474cba..00000000 --- a/src/merge/resources/ats/types/field_mapping_api_instance_target_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceTargetField(UncheckedBaseModel): - name: str - description: str - is_organization_wide: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_mapping_instance_response.py b/src/merge/resources/ats/types/field_mapping_instance_response.py deleted file mode 100644 index f921e641..00000000 --- a/src/merge/resources/ats/types/field_mapping_instance_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .field_mapping_api_instance import FieldMappingApiInstance -from .warning_validation_problem import WarningValidationProblem - - -class FieldMappingInstanceResponse(UncheckedBaseModel): - model: FieldMappingApiInstance - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_permission_deserializer.py b/src/merge/resources/ats/types/field_permission_deserializer.py deleted file mode 100644 index 1d71ae04..00000000 --- a/src/merge/resources/ats/types/field_permission_deserializer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializer(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/field_permission_deserializer_request.py b/src/merge/resources/ats/types/field_permission_deserializer_request.py deleted file mode 100644 index a4113b46..00000000 --- a/src/merge/resources/ats/types/field_permission_deserializer_request.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializerRequest(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/gender_enum.py b/src/merge/resources/ats/types/gender_enum.py deleted file mode 100644 index 26393a8b..00000000 --- a/src/merge/resources/ats/types/gender_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class GenderEnum(str, enum.Enum): - """ - * `MALE` - MALE - * `FEMALE` - FEMALE - * `NON-BINARY` - NON-BINARY - * `OTHER` - OTHER - * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - """ - - MALE = "MALE" - FEMALE = "FEMALE" - NON_BINARY = "NON-BINARY" - OTHER = "OTHER" - DECLINE_TO_SELF_IDENTIFY = "DECLINE_TO_SELF_IDENTIFY" - - def visit( - self, - male: typing.Callable[[], T_Result], - female: typing.Callable[[], T_Result], - non_binary: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - decline_to_self_identify: typing.Callable[[], T_Result], - ) -> T_Result: - if self is GenderEnum.MALE: - return male() - if self is GenderEnum.FEMALE: - return female() - if self is GenderEnum.NON_BINARY: - return non_binary() - if self is GenderEnum.OTHER: - return other() - if self is GenderEnum.DECLINE_TO_SELF_IDENTIFY: - return decline_to_self_identify() diff --git a/src/merge/resources/ats/types/individual_common_model_scope_deserializer.py b/src/merge/resources/ats/types/individual_common_model_scope_deserializer.py deleted file mode 100644 index 4b1ef6a4..00000000 --- a/src/merge/resources/ats/types/individual_common_model_scope_deserializer.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer import FieldPermissionDeserializer -from .model_permission_deserializer import ModelPermissionDeserializer - - -class IndividualCommonModelScopeDeserializer(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None - field_permissions: typing.Optional[FieldPermissionDeserializer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/individual_common_model_scope_deserializer_request.py b/src/merge/resources/ats/types/individual_common_model_scope_deserializer_request.py deleted file mode 100644 index 1dcda203..00000000 --- a/src/merge/resources/ats/types/individual_common_model_scope_deserializer_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer_request import FieldPermissionDeserializerRequest -from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - - -class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None - field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/issue.py b/src/merge/resources/ats/types/issue.py deleted file mode 100644 index df31be95..00000000 --- a/src/merge/resources/ats/types/issue.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue_status import IssueStatus - - -class Issue(UncheckedBaseModel): - id: typing.Optional[str] = None - status: typing.Optional[IssueStatus] = pydantic.Field(default=None) - """ - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - error_description: str - end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - first_incident_time: typing.Optional[dt.datetime] = None - last_incident_time: typing.Optional[dt.datetime] = None - is_muted: typing.Optional[bool] = None - error_details: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/issue_status.py b/src/merge/resources/ats/types/issue_status.py deleted file mode 100644 index 8e4d6516..00000000 --- a/src/merge/resources/ats/types/issue_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .issue_status_enum import IssueStatusEnum - -IssueStatus = typing.Union[IssueStatusEnum, str] diff --git a/src/merge/resources/ats/types/issue_status_enum.py b/src/merge/resources/ats/types/issue_status_enum.py deleted file mode 100644 index 57eb9618..00000000 --- a/src/merge/resources/ats/types/issue_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssueStatusEnum(str, enum.Enum): - """ - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssueStatusEnum.ONGOING: - return ongoing() - if self is IssueStatusEnum.RESOLVED: - return resolved() diff --git a/src/merge/resources/ats/types/job.py b/src/merge/resources/ats/types/job.py deleted file mode 100644 index 81413e39..00000000 --- a/src/merge/resources/ats/types/job.py +++ /dev/null @@ -1,135 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .job_departments_item import JobDepartmentsItem -from .job_hiring_managers_item import JobHiringManagersItem -from .job_offices_item import JobOfficesItem -from .job_recruiters_item import JobRecruitersItem -from .job_status import JobStatus -from .job_type import JobType -from .remote_data import RemoteData -from .url import Url - - -class Job(UncheckedBaseModel): - """ - # The Job Object - ### Description - The `Job` object can be used to track any jobs that are currently or will be open/closed for applications. - ### Usage Example - Fetch from the `LIST Jobs` endpoint to show all job postings. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The job's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The job's description. - """ - - code: typing.Optional[str] = pydantic.Field(default=None) - """ - The job's code. Typically an additional identifier used to reference the particular job that is displayed on the ATS. - """ - - status: typing.Optional[JobStatus] = pydantic.Field(default=None) - """ - The job's status. - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `ARCHIVED` - ARCHIVED - * `PENDING` - PENDING - """ - - type: typing.Optional[JobType] = pydantic.Field(default=None) - """ - The job's type. - - * `POSTING` - POSTING - * `REQUISITION` - REQUISITION - * `PROFILE` - PROFILE - """ - - job_postings: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - IDs of `JobPosting` objects that serve as job postings for this `Job`. - """ - - job_posting_urls: typing.Optional[typing.List[Url]] = None - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's job was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's job was updated. - """ - - confidential: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the job is confidential. - """ - - departments: typing.Optional[typing.List[typing.Optional[JobDepartmentsItem]]] = pydantic.Field(default=None) - """ - IDs of `Department` objects for this `Job`. - """ - - offices: typing.Optional[typing.List[typing.Optional[JobOfficesItem]]] = pydantic.Field(default=None) - """ - IDs of `Office` objects for this `Job`. - """ - - hiring_managers: typing.Optional[typing.List[typing.Optional[JobHiringManagersItem]]] = pydantic.Field(default=None) - """ - IDs of `RemoteUser` objects that serve as hiring managers for this `Job`. - """ - - recruiters: typing.Optional[typing.List[typing.Optional[JobRecruitersItem]]] = pydantic.Field(default=None) - """ - IDs of `RemoteUser` objects that serve as recruiters for this `Job`. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/job_departments_item.py b/src/merge/resources/ats/types/job_departments_item.py deleted file mode 100644 index d85e47f5..00000000 --- a/src/merge/resources/ats/types/job_departments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .department import Department - -JobDepartmentsItem = typing.Union[str, Department] diff --git a/src/merge/resources/ats/types/job_hiring_managers_item.py b/src/merge/resources/ats/types/job_hiring_managers_item.py deleted file mode 100644 index 2acfc40e..00000000 --- a/src/merge/resources/ats/types/job_hiring_managers_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -JobHiringManagersItem = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/job_interview_stage.py b/src/merge/resources/ats/types/job_interview_stage.py deleted file mode 100644 index 6925d1e3..00000000 --- a/src/merge/resources/ats/types/job_interview_stage.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .job_interview_stage_job import JobInterviewStageJob -from .remote_data import RemoteData - - -class JobInterviewStage(UncheckedBaseModel): - """ - # The JobInterviewStage Object - ### Description - The `JobInterviewStage` object is used to represent a particular recruiting stage for an `Application`. A given `Application` typically has the `JobInterviewStage` object represented in the current_stage field. - ### Usage Example - Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Standard stage names are offered by ATS systems but can be modified by users. - """ - - job: typing.Optional[JobInterviewStageJob] = pydantic.Field(default=None) - """ - This field is populated only if the stage is specific to a particular job. If the stage is generic, this field will not be populated. - """ - - stage_order: typing.Optional[int] = pydantic.Field(default=None) - """ - The stage’s order, with the lowest values ordered first. If the third-party does not return details on the order of stages, this field will not be populated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/job_interview_stage_job.py b/src/merge/resources/ats/types/job_interview_stage_job.py deleted file mode 100644 index 217ece49..00000000 --- a/src/merge/resources/ats/types/job_interview_stage_job.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job import Job - -JobInterviewStageJob = typing.Union[str, Job] diff --git a/src/merge/resources/ats/types/job_offices_item.py b/src/merge/resources/ats/types/job_offices_item.py deleted file mode 100644 index e40e5f6c..00000000 --- a/src/merge/resources/ats/types/job_offices_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .office import Office - -JobOfficesItem = typing.Union[str, Office] diff --git a/src/merge/resources/ats/types/job_posting.py b/src/merge/resources/ats/types/job_posting.py deleted file mode 100644 index ec539320..00000000 --- a/src/merge/resources/ats/types/job_posting.py +++ /dev/null @@ -1,101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .job_posting_job import JobPostingJob -from .job_posting_job_posting_urls_item import JobPostingJobPostingUrlsItem -from .job_posting_status import JobPostingStatus -from .remote_data import RemoteData - - -class JobPosting(UncheckedBaseModel): - """ - # The JobPosting Object - ### Description - The `JobPosting` object represents an external announcement on a job board created by an organization to attract qualified candidates to apply for a specific `Job` opening - ### Usage Example - Fetch from the `LIST JobPostings` endpoint to show all job postings. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The job posting’s title. - """ - - job_posting_urls: typing.Optional[typing.List[JobPostingJobPostingUrlsItem]] = pydantic.Field(default=None) - """ - The Url object is used to represent hyperlinks for a candidate to apply to a given job. - """ - - job: typing.Optional[JobPostingJob] = pydantic.Field(default=None) - """ - ID of `Job` object for this `JobPosting`. - """ - - status: typing.Optional[JobPostingStatus] = pydantic.Field(default=None) - """ - The job posting's status. - - * `PUBLISHED` - PUBLISHED - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `INTERNAL` - INTERNAL - * `PENDING` - PENDING - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The job posting’s content. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's job posting was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's job posting was updated. - """ - - is_internal: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the job posting is internal or external. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/job_posting_job.py b/src/merge/resources/ats/types/job_posting_job.py deleted file mode 100644 index 764f306f..00000000 --- a/src/merge/resources/ats/types/job_posting_job.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job import Job - -JobPostingJob = typing.Union[str, Job] diff --git a/src/merge/resources/ats/types/job_posting_job_posting_urls_item.py b/src/merge/resources/ats/types/job_posting_job_posting_urls_item.py deleted file mode 100644 index 2bb3e7de..00000000 --- a/src/merge/resources/ats/types/job_posting_job_posting_urls_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .url import Url - -JobPostingJobPostingUrlsItem = typing.Union[str, Url] diff --git a/src/merge/resources/ats/types/job_posting_status.py b/src/merge/resources/ats/types/job_posting_status.py deleted file mode 100644 index 3aa0da14..00000000 --- a/src/merge/resources/ats/types/job_posting_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job_posting_status_enum import JobPostingStatusEnum - -JobPostingStatus = typing.Union[JobPostingStatusEnum, str] diff --git a/src/merge/resources/ats/types/job_posting_status_enum.py b/src/merge/resources/ats/types/job_posting_status_enum.py deleted file mode 100644 index 92f45ae4..00000000 --- a/src/merge/resources/ats/types/job_posting_status_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobPostingStatusEnum(str, enum.Enum): - """ - * `PUBLISHED` - PUBLISHED - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `INTERNAL` - INTERNAL - * `PENDING` - PENDING - """ - - PUBLISHED = "PUBLISHED" - CLOSED = "CLOSED" - DRAFT = "DRAFT" - INTERNAL = "INTERNAL" - PENDING = "PENDING" - - def visit( - self, - published: typing.Callable[[], T_Result], - closed: typing.Callable[[], T_Result], - draft: typing.Callable[[], T_Result], - internal: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobPostingStatusEnum.PUBLISHED: - return published() - if self is JobPostingStatusEnum.CLOSED: - return closed() - if self is JobPostingStatusEnum.DRAFT: - return draft() - if self is JobPostingStatusEnum.INTERNAL: - return internal() - if self is JobPostingStatusEnum.PENDING: - return pending() diff --git a/src/merge/resources/ats/types/job_recruiters_item.py b/src/merge/resources/ats/types/job_recruiters_item.py deleted file mode 100644 index 989bcf4b..00000000 --- a/src/merge/resources/ats/types/job_recruiters_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -JobRecruitersItem = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/job_status.py b/src/merge/resources/ats/types/job_status.py deleted file mode 100644 index 212b5725..00000000 --- a/src/merge/resources/ats/types/job_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job_status_enum import JobStatusEnum - -JobStatus = typing.Union[JobStatusEnum, str] diff --git a/src/merge/resources/ats/types/job_status_enum.py b/src/merge/resources/ats/types/job_status_enum.py deleted file mode 100644 index eda892ce..00000000 --- a/src/merge/resources/ats/types/job_status_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobStatusEnum(str, enum.Enum): - """ - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `DRAFT` - DRAFT - * `ARCHIVED` - ARCHIVED - * `PENDING` - PENDING - """ - - OPEN = "OPEN" - CLOSED = "CLOSED" - DRAFT = "DRAFT" - ARCHIVED = "ARCHIVED" - PENDING = "PENDING" - - def visit( - self, - open: typing.Callable[[], T_Result], - closed: typing.Callable[[], T_Result], - draft: typing.Callable[[], T_Result], - archived: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobStatusEnum.OPEN: - return open() - if self is JobStatusEnum.CLOSED: - return closed() - if self is JobStatusEnum.DRAFT: - return draft() - if self is JobStatusEnum.ARCHIVED: - return archived() - if self is JobStatusEnum.PENDING: - return pending() diff --git a/src/merge/resources/ats/types/job_type.py b/src/merge/resources/ats/types/job_type.py deleted file mode 100644 index ead180d5..00000000 --- a/src/merge/resources/ats/types/job_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job_type_enum import JobTypeEnum - -JobType = typing.Union[JobTypeEnum, str] diff --git a/src/merge/resources/ats/types/job_type_enum.py b/src/merge/resources/ats/types/job_type_enum.py deleted file mode 100644 index 6de04249..00000000 --- a/src/merge/resources/ats/types/job_type_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class JobTypeEnum(str, enum.Enum): - """ - * `POSTING` - POSTING - * `REQUISITION` - REQUISITION - * `PROFILE` - PROFILE - """ - - POSTING = "POSTING" - REQUISITION = "REQUISITION" - PROFILE = "PROFILE" - - def visit( - self, - posting: typing.Callable[[], T_Result], - requisition: typing.Callable[[], T_Result], - profile: typing.Callable[[], T_Result], - ) -> T_Result: - if self is JobTypeEnum.POSTING: - return posting() - if self is JobTypeEnum.REQUISITION: - return requisition() - if self is JobTypeEnum.PROFILE: - return profile() diff --git a/src/merge/resources/ats/types/language_enum.py b/src/merge/resources/ats/types/language_enum.py deleted file mode 100644 index 44b693f2..00000000 --- a/src/merge/resources/ats/types/language_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LanguageEnum(str, enum.Enum): - """ - * `en` - en - * `de` - de - """ - - EN = "en" - DE = "de" - - def visit(self, en: typing.Callable[[], T_Result], de: typing.Callable[[], T_Result]) -> T_Result: - if self is LanguageEnum.EN: - return en() - if self is LanguageEnum.DE: - return de() diff --git a/src/merge/resources/ats/types/last_sync_result_enum.py b/src/merge/resources/ats/types/last_sync_result_enum.py deleted file mode 100644 index ec777ee6..00000000 --- a/src/merge/resources/ats/types/last_sync_result_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LastSyncResultEnum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LastSyncResultEnum.SYNCING: - return syncing() - if self is LastSyncResultEnum.DONE: - return done() - if self is LastSyncResultEnum.FAILED: - return failed() - if self is LastSyncResultEnum.DISABLED: - return disabled() - if self is LastSyncResultEnum.PAUSED: - return paused() - if self is LastSyncResultEnum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/ats/types/link_token.py b/src/merge/resources/ats/types/link_token.py deleted file mode 100644 index f78dedeb..00000000 --- a/src/merge/resources/ats/types/link_token.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkToken(UncheckedBaseModel): - link_token: str - integration_name: typing.Optional[str] = None - magic_link_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/linked_account_status.py b/src/merge/resources/ats/types/linked_account_status.py deleted file mode 100644 index ab2e0f09..00000000 --- a/src/merge/resources/ats/types/linked_account_status.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkedAccountStatus(UncheckedBaseModel): - linked_account_status: str - can_make_request: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/meta_response.py b/src/merge/resources/ats/types/meta_response.py deleted file mode 100644 index caa2c831..00000000 --- a/src/merge/resources/ats/types/meta_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .linked_account_status import LinkedAccountStatus - - -class MetaResponse(UncheckedBaseModel): - request_schema: typing.Dict[str, typing.Optional[typing.Any]] - remote_field_classes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - status: typing.Optional[LinkedAccountStatus] = None - has_conditional_params: bool - has_required_linked_account_params: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/method_enum.py b/src/merge/resources/ats/types/method_enum.py deleted file mode 100644 index 57bcde10..00000000 --- a/src/merge/resources/ats/types/method_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodEnum(str, enum.Enum): - """ - * `GET` - GET - * `OPTIONS` - OPTIONS - * `HEAD` - HEAD - * `POST` - POST - * `PUT` - PUT - * `PATCH` - PATCH - * `DELETE` - DELETE - """ - - GET = "GET" - OPTIONS = "OPTIONS" - HEAD = "HEAD" - POST = "POST" - PUT = "PUT" - PATCH = "PATCH" - DELETE = "DELETE" - - def visit( - self, - get: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - head: typing.Callable[[], T_Result], - post: typing.Callable[[], T_Result], - put: typing.Callable[[], T_Result], - patch: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodEnum.GET: - return get() - if self is MethodEnum.OPTIONS: - return options() - if self is MethodEnum.HEAD: - return head() - if self is MethodEnum.POST: - return post() - if self is MethodEnum.PUT: - return put() - if self is MethodEnum.PATCH: - return patch() - if self is MethodEnum.DELETE: - return delete() diff --git a/src/merge/resources/ats/types/model_operation.py b/src/merge/resources/ats/types/model_operation.py deleted file mode 100644 index c367572d..00000000 --- a/src/merge/resources/ats/types/model_operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelOperation(UncheckedBaseModel): - """ - # The ModelOperation Object - ### Description - The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - - ### Usage Example - View what operations are supported for the `Candidate` endpoint. - """ - - model_name: str - available_operations: typing.List[str] - required_post_parameters: typing.List[str] - supported_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/model_permission_deserializer.py b/src/merge/resources/ats/types/model_permission_deserializer.py deleted file mode 100644 index 6381814c..00000000 --- a/src/merge/resources/ats/types/model_permission_deserializer.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializer(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/model_permission_deserializer_request.py b/src/merge/resources/ats/types/model_permission_deserializer_request.py deleted file mode 100644 index cdc2ff4c..00000000 --- a/src/merge/resources/ats/types/model_permission_deserializer_request.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializerRequest(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/multipart_form_field_request.py b/src/merge/resources/ats/types/multipart_form_field_request.py deleted file mode 100644 index abc37692..00000000 --- a/src/merge/resources/ats/types/multipart_form_field_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - - -class MultipartFormFieldRequest(UncheckedBaseModel): - """ - # The MultipartFormField Object - ### Description - The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - - ### Usage Example - Create a `MultipartFormField` to define a multipart form entry. - """ - - name: str = pydantic.Field() - """ - The name of the form field - """ - - data: str = pydantic.Field() - """ - The data for the form field. - """ - - encoding: typing.Optional[MultipartFormFieldRequestEncoding] = pydantic.Field(default=None) - """ - The encoding of the value of `data`. Defaults to `RAW` if not defined. - - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The file name of the form field, if the field is for a file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The MIME type of the file, if the field is for a file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/multipart_form_field_request_encoding.py b/src/merge/resources/ats/types/multipart_form_field_request_encoding.py deleted file mode 100644 index c6513b6b..00000000 --- a/src/merge/resources/ats/types/multipart_form_field_request_encoding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .encoding_enum import EncodingEnum - -MultipartFormFieldRequestEncoding = typing.Union[EncodingEnum, str] diff --git a/src/merge/resources/ats/types/offer.py b/src/merge/resources/ats/types/offer.py deleted file mode 100644 index d0046de7..00000000 --- a/src/merge/resources/ats/types/offer.py +++ /dev/null @@ -1,108 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .offer_creator import OfferCreator -from .offer_status import OfferStatus -from .remote_data import RemoteData - - -class Offer(UncheckedBaseModel): - """ - # The Offer Object - ### Description - The `Offer` object is used to represent an offer for a candidate's application specific to a job. - ### Usage Example - Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - application: typing.Optional["OfferApplication"] = pydantic.Field(default=None) - """ - The application who is receiving the offer. - """ - - creator: typing.Optional[OfferCreator] = pydantic.Field(default=None) - """ - The user who created the offer. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's offer was created. - """ - - closed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the offer was closed. - """ - - sent_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the offer was sent. - """ - - start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The employment start date on the offer. - """ - - status: typing.Optional[OfferStatus] = pydantic.Field(default=None) - """ - The offer's status. - - * `DRAFT` - DRAFT - * `APPROVAL-SENT` - APPROVAL-SENT - * `APPROVED` - APPROVED - * `SENT` - SENT - * `SENT-MANUALLY` - SENT-MANUALLY - * `OPENED` - OPENED - * `DENIED` - DENIED - * `SIGNED` - SIGNED - * `DEPRECATED` - DEPRECATED - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer_application import OfferApplication # noqa: E402, F401, I001 - -update_forward_refs(Offer) diff --git a/src/merge/resources/ats/types/offer_application.py b/src/merge/resources/ats/types/offer_application.py deleted file mode 100644 index df641716..00000000 --- a/src/merge/resources/ats/types/offer_application.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .application import Application -OfferApplication = typing.Union[str, "Application"] diff --git a/src/merge/resources/ats/types/offer_creator.py b/src/merge/resources/ats/types/offer_creator.py deleted file mode 100644 index a06a8e2a..00000000 --- a/src/merge/resources/ats/types/offer_creator.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -OfferCreator = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/offer_status.py b/src/merge/resources/ats/types/offer_status.py deleted file mode 100644 index f487f0af..00000000 --- a/src/merge/resources/ats/types/offer_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .offer_status_enum import OfferStatusEnum - -OfferStatus = typing.Union[OfferStatusEnum, str] diff --git a/src/merge/resources/ats/types/offer_status_enum.py b/src/merge/resources/ats/types/offer_status_enum.py deleted file mode 100644 index 1650d47f..00000000 --- a/src/merge/resources/ats/types/offer_status_enum.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OfferStatusEnum(str, enum.Enum): - """ - * `DRAFT` - DRAFT - * `APPROVAL-SENT` - APPROVAL-SENT - * `APPROVED` - APPROVED - * `SENT` - SENT - * `SENT-MANUALLY` - SENT-MANUALLY - * `OPENED` - OPENED - * `DENIED` - DENIED - * `SIGNED` - SIGNED - * `DEPRECATED` - DEPRECATED - """ - - DRAFT = "DRAFT" - APPROVAL_SENT = "APPROVAL-SENT" - APPROVED = "APPROVED" - SENT = "SENT" - SENT_MANUALLY = "SENT-MANUALLY" - OPENED = "OPENED" - DENIED = "DENIED" - SIGNED = "SIGNED" - DEPRECATED = "DEPRECATED" - - def visit( - self, - draft: typing.Callable[[], T_Result], - approval_sent: typing.Callable[[], T_Result], - approved: typing.Callable[[], T_Result], - sent: typing.Callable[[], T_Result], - sent_manually: typing.Callable[[], T_Result], - opened: typing.Callable[[], T_Result], - denied: typing.Callable[[], T_Result], - signed: typing.Callable[[], T_Result], - deprecated: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OfferStatusEnum.DRAFT: - return draft() - if self is OfferStatusEnum.APPROVAL_SENT: - return approval_sent() - if self is OfferStatusEnum.APPROVED: - return approved() - if self is OfferStatusEnum.SENT: - return sent() - if self is OfferStatusEnum.SENT_MANUALLY: - return sent_manually() - if self is OfferStatusEnum.OPENED: - return opened() - if self is OfferStatusEnum.DENIED: - return denied() - if self is OfferStatusEnum.SIGNED: - return signed() - if self is OfferStatusEnum.DEPRECATED: - return deprecated() diff --git a/src/merge/resources/ats/types/office.py b/src/merge/resources/ats/types/office.py deleted file mode 100644 index 120980d2..00000000 --- a/src/merge/resources/ats/types/office.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Office(UncheckedBaseModel): - """ - # The Office Object - ### Description - The `Office` object is used to represent an office within a company. A given `Job` has the `Office` ID in its offices field. - ### Usage Example - Fetch from the `LIST Offices` endpoint and view the offices within a company. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The office's name. - """ - - location: typing.Optional[str] = pydantic.Field(default=None) - """ - The office's location. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/overall_recommendation_enum.py b/src/merge/resources/ats/types/overall_recommendation_enum.py deleted file mode 100644 index 66aa9223..00000000 --- a/src/merge/resources/ats/types/overall_recommendation_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OverallRecommendationEnum(str, enum.Enum): - """ - * `DEFINITELY_NO` - DEFINITELY_NO - * `NO` - NO - * `YES` - YES - * `STRONG_YES` - STRONG_YES - * `NO_DECISION` - NO_DECISION - """ - - DEFINITELY_NO = "DEFINITELY_NO" - NO = "NO" - YES = "YES" - STRONG_YES = "STRONG_YES" - NO_DECISION = "NO_DECISION" - - def visit( - self, - definitely_no: typing.Callable[[], T_Result], - no: typing.Callable[[], T_Result], - yes: typing.Callable[[], T_Result], - strong_yes: typing.Callable[[], T_Result], - no_decision: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OverallRecommendationEnum.DEFINITELY_NO: - return definitely_no() - if self is OverallRecommendationEnum.NO: - return no() - if self is OverallRecommendationEnum.YES: - return yes() - if self is OverallRecommendationEnum.STRONG_YES: - return strong_yes() - if self is OverallRecommendationEnum.NO_DECISION: - return no_decision() diff --git a/src/merge/resources/ats/types/paginated_account_details_and_actions_list.py b/src/merge/resources/ats/types/paginated_account_details_and_actions_list.py deleted file mode 100644 index d2d16116..00000000 --- a/src/merge/resources/ats/types/paginated_account_details_and_actions_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions import AccountDetailsAndActions - - -class PaginatedAccountDetailsAndActionsList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountDetailsAndActions]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_activity_list.py b/src/merge/resources/ats/types/paginated_activity_list.py deleted file mode 100644 index 8812d543..00000000 --- a/src/merge/resources/ats/types/paginated_activity_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .activity import Activity - - -class PaginatedActivityList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Activity]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_application_list.py b/src/merge/resources/ats/types/paginated_application_list.py deleted file mode 100644 index bf13e66f..00000000 --- a/src/merge/resources/ats/types/paginated_application_list.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedApplicationList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Application"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(PaginatedApplicationList) diff --git a/src/merge/resources/ats/types/paginated_attachment_list.py b/src/merge/resources/ats/types/paginated_attachment_list.py deleted file mode 100644 index 3222cbc0..00000000 --- a/src/merge/resources/ats/types/paginated_attachment_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .attachment import Attachment - - -class PaginatedAttachmentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Attachment]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_audit_log_event_list.py b/src/merge/resources/ats/types/paginated_audit_log_event_list.py deleted file mode 100644 index 24139397..00000000 --- a/src/merge/resources/ats/types/paginated_audit_log_event_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event import AuditLogEvent - - -class PaginatedAuditLogEventList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AuditLogEvent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_candidate_list.py b/src/merge/resources/ats/types/paginated_candidate_list.py deleted file mode 100644 index a46dff6b..00000000 --- a/src/merge/resources/ats/types/paginated_candidate_list.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedCandidateList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Candidate"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(PaginatedCandidateList) diff --git a/src/merge/resources/ats/types/paginated_department_list.py b/src/merge/resources/ats/types/paginated_department_list.py deleted file mode 100644 index dc0c2b5d..00000000 --- a/src/merge/resources/ats/types/paginated_department_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .department import Department - - -class PaginatedDepartmentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Department]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_eeoc_list.py b/src/merge/resources/ats/types/paginated_eeoc_list.py deleted file mode 100644 index f797f81f..00000000 --- a/src/merge/resources/ats/types/paginated_eeoc_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .eeoc import Eeoc - - -class PaginatedEeocList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Eeoc]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(PaginatedEeocList) diff --git a/src/merge/resources/ats/types/paginated_issue_list.py b/src/merge/resources/ats/types/paginated_issue_list.py deleted file mode 100644 index 686173e5..00000000 --- a/src/merge/resources/ats/types/paginated_issue_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue import Issue - - -class PaginatedIssueList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Issue]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_job_interview_stage_list.py b/src/merge/resources/ats/types/paginated_job_interview_stage_list.py deleted file mode 100644 index a7014ea4..00000000 --- a/src/merge/resources/ats/types/paginated_job_interview_stage_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .job_interview_stage import JobInterviewStage - - -class PaginatedJobInterviewStageList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[JobInterviewStage]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_job_list.py b/src/merge/resources/ats/types/paginated_job_list.py deleted file mode 100644 index 87040408..00000000 --- a/src/merge/resources/ats/types/paginated_job_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .job import Job - - -class PaginatedJobList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Job]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_job_posting_list.py b/src/merge/resources/ats/types/paginated_job_posting_list.py deleted file mode 100644 index 573ae196..00000000 --- a/src/merge/resources/ats/types/paginated_job_posting_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .job_posting import JobPosting - - -class PaginatedJobPostingList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[JobPosting]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_offer_list.py b/src/merge/resources/ats/types/paginated_offer_list.py deleted file mode 100644 index 1a4932a6..00000000 --- a/src/merge/resources/ats/types/paginated_offer_list.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedOfferList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Offer"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(PaginatedOfferList) diff --git a/src/merge/resources/ats/types/paginated_office_list.py b/src/merge/resources/ats/types/paginated_office_list.py deleted file mode 100644 index 901c5149..00000000 --- a/src/merge/resources/ats/types/paginated_office_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .office import Office - - -class PaginatedOfficeList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Office]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_reject_reason_list.py b/src/merge/resources/ats/types/paginated_reject_reason_list.py deleted file mode 100644 index 70ecc366..00000000 --- a/src/merge/resources/ats/types/paginated_reject_reason_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .reject_reason import RejectReason - - -class PaginatedRejectReasonList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[RejectReason]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_remote_user_list.py b/src/merge/resources/ats/types/paginated_remote_user_list.py deleted file mode 100644 index 24d677df..00000000 --- a/src/merge/resources/ats/types/paginated_remote_user_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_user import RemoteUser - - -class PaginatedRemoteUserList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[RemoteUser]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_scheduled_interview_list.py b/src/merge/resources/ats/types/paginated_scheduled_interview_list.py deleted file mode 100644 index 6aca0c2b..00000000 --- a/src/merge/resources/ats/types/paginated_scheduled_interview_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .scheduled_interview import ScheduledInterview - - -class PaginatedScheduledInterviewList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[ScheduledInterview]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(PaginatedScheduledInterviewList) diff --git a/src/merge/resources/ats/types/paginated_scorecard_list.py b/src/merge/resources/ats/types/paginated_scorecard_list.py deleted file mode 100644 index f42a495c..00000000 --- a/src/merge/resources/ats/types/paginated_scorecard_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .scorecard import Scorecard - - -class PaginatedScorecardList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Scorecard]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(PaginatedScorecardList) diff --git a/src/merge/resources/ats/types/paginated_screening_question_list.py b/src/merge/resources/ats/types/paginated_screening_question_list.py deleted file mode 100644 index f4306ba8..00000000 --- a/src/merge/resources/ats/types/paginated_screening_question_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .screening_question import ScreeningQuestion - - -class PaginatedScreeningQuestionList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[ScreeningQuestion]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_sync_status_list.py b/src/merge/resources/ats/types/paginated_sync_status_list.py deleted file mode 100644 index cc4bd7a8..00000000 --- a/src/merge/resources/ats/types/paginated_sync_status_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .sync_status import SyncStatus - - -class PaginatedSyncStatusList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[SyncStatus]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/paginated_tag_list.py b/src/merge/resources/ats/types/paginated_tag_list.py deleted file mode 100644 index 3b9aa2d4..00000000 --- a/src/merge/resources/ats/types/paginated_tag_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .tag import Tag - - -class PaginatedTagList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Tag]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/patched_candidate_request.py b/src/merge/resources/ats/types/patched_candidate_request.py deleted file mode 100644 index 77b8f2b2..00000000 --- a/src/merge/resources/ats/types/patched_candidate_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .email_address_request import EmailAddressRequest -from .phone_number_request import PhoneNumberRequest -from .url_request import UrlRequest - - -class PatchedCandidateRequest(UncheckedBaseModel): - """ - # The Candidate Object - ### Description - The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. - ### Usage Example - Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's last name. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's current company. - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate's current title. - """ - - last_interaction_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the most recent interaction with the candidate occurred. - """ - - is_private: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the candidate is private. - """ - - can_email: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the candidate can be emailed. - """ - - locations: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The candidate's locations. - """ - - phone_numbers: typing.Optional[typing.List[PhoneNumberRequest]] = None - email_addresses: typing.Optional[typing.List[EmailAddressRequest]] = None - urls: typing.Optional[typing.List[UrlRequest]] = None - tags: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - Array of `Tag` names as strings. - """ - - applications: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - Array of `Application` object IDs. - """ - - attachments: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - Array of `Attachment` object IDs. - """ - - remote_template_id: typing.Optional[str] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/phone_number.py b/src/merge/resources/ats/types/phone_number.py deleted file mode 100644 index 37b82f12..00000000 --- a/src/merge/resources/ats/types/phone_number.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .phone_number_phone_number_type import PhoneNumberPhoneNumberType - - -class PhoneNumber(UncheckedBaseModel): - """ - # The PhoneNumber Object - ### Description - The `PhoneNumber` object is used to represent a candidate's phone number. - ### Usage Example - Fetch from the `GET Candidate` endpoint and view their phone numbers. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number. - """ - - phone_number_type: typing.Optional[PhoneNumberPhoneNumberType] = pydantic.Field(default=None) - """ - The type of phone number. - - * `HOME` - HOME - * `WORK` - WORK - * `MOBILE` - MOBILE - * `SKYPE` - SKYPE - * `OTHER` - OTHER - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/phone_number_phone_number_type.py b/src/merge/resources/ats/types/phone_number_phone_number_type.py deleted file mode 100644 index 277c34ed..00000000 --- a/src/merge/resources/ats/types/phone_number_phone_number_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .phone_number_type_enum import PhoneNumberTypeEnum - -PhoneNumberPhoneNumberType = typing.Union[PhoneNumberTypeEnum, str] diff --git a/src/merge/resources/ats/types/phone_number_request.py b/src/merge/resources/ats/types/phone_number_request.py deleted file mode 100644 index aa54db17..00000000 --- a/src/merge/resources/ats/types/phone_number_request.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .phone_number_request_phone_number_type import PhoneNumberRequestPhoneNumberType - - -class PhoneNumberRequest(UncheckedBaseModel): - """ - # The PhoneNumber Object - ### Description - The `PhoneNumber` object is used to represent a candidate's phone number. - ### Usage Example - Fetch from the `GET Candidate` endpoint and view their phone numbers. - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number. - """ - - phone_number_type: typing.Optional[PhoneNumberRequestPhoneNumberType] = pydantic.Field(default=None) - """ - The type of phone number. - - * `HOME` - HOME - * `WORK` - WORK - * `MOBILE` - MOBILE - * `SKYPE` - SKYPE - * `OTHER` - OTHER - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/phone_number_request_phone_number_type.py b/src/merge/resources/ats/types/phone_number_request_phone_number_type.py deleted file mode 100644 index a6b9275a..00000000 --- a/src/merge/resources/ats/types/phone_number_request_phone_number_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .phone_number_type_enum import PhoneNumberTypeEnum - -PhoneNumberRequestPhoneNumberType = typing.Union[PhoneNumberTypeEnum, str] diff --git a/src/merge/resources/ats/types/phone_number_type_enum.py b/src/merge/resources/ats/types/phone_number_type_enum.py deleted file mode 100644 index 5fa42f3c..00000000 --- a/src/merge/resources/ats/types/phone_number_type_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PhoneNumberTypeEnum(str, enum.Enum): - """ - * `HOME` - HOME - * `WORK` - WORK - * `MOBILE` - MOBILE - * `SKYPE` - SKYPE - * `OTHER` - OTHER - """ - - HOME = "HOME" - WORK = "WORK" - MOBILE = "MOBILE" - SKYPE = "SKYPE" - OTHER = "OTHER" - - def visit( - self, - home: typing.Callable[[], T_Result], - work: typing.Callable[[], T_Result], - mobile: typing.Callable[[], T_Result], - skype: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PhoneNumberTypeEnum.HOME: - return home() - if self is PhoneNumberTypeEnum.WORK: - return work() - if self is PhoneNumberTypeEnum.MOBILE: - return mobile() - if self is PhoneNumberTypeEnum.SKYPE: - return skype() - if self is PhoneNumberTypeEnum.OTHER: - return other() diff --git a/src/merge/resources/ats/types/race_enum.py b/src/merge/resources/ats/types/race_enum.py deleted file mode 100644 index 98d37f9d..00000000 --- a/src/merge/resources/ats/types/race_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RaceEnum(str, enum.Enum): - """ - * `AMERICAN_INDIAN_OR_ALASKAN_NATIVE` - AMERICAN_INDIAN_OR_ALASKAN_NATIVE - * `ASIAN` - ASIAN - * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * `WHITE` - WHITE - * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - """ - - AMERICAN_INDIAN_OR_ALASKAN_NATIVE = "AMERICAN_INDIAN_OR_ALASKAN_NATIVE" - ASIAN = "ASIAN" - BLACK_OR_AFRICAN_AMERICAN = "BLACK_OR_AFRICAN_AMERICAN" - HISPANIC_OR_LATINO = "HISPANIC_OR_LATINO" - WHITE = "WHITE" - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER = "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER" - TWO_OR_MORE_RACES = "TWO_OR_MORE_RACES" - DECLINE_TO_SELF_IDENTIFY = "DECLINE_TO_SELF_IDENTIFY" - - def visit( - self, - american_indian_or_alaskan_native: typing.Callable[[], T_Result], - asian: typing.Callable[[], T_Result], - black_or_african_american: typing.Callable[[], T_Result], - hispanic_or_latino: typing.Callable[[], T_Result], - white: typing.Callable[[], T_Result], - native_hawaiian_or_other_pacific_islander: typing.Callable[[], T_Result], - two_or_more_races: typing.Callable[[], T_Result], - decline_to_self_identify: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RaceEnum.AMERICAN_INDIAN_OR_ALASKAN_NATIVE: - return american_indian_or_alaskan_native() - if self is RaceEnum.ASIAN: - return asian() - if self is RaceEnum.BLACK_OR_AFRICAN_AMERICAN: - return black_or_african_american() - if self is RaceEnum.HISPANIC_OR_LATINO: - return hispanic_or_latino() - if self is RaceEnum.WHITE: - return white() - if self is RaceEnum.NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER: - return native_hawaiian_or_other_pacific_islander() - if self is RaceEnum.TWO_OR_MORE_RACES: - return two_or_more_races() - if self is RaceEnum.DECLINE_TO_SELF_IDENTIFY: - return decline_to_self_identify() diff --git a/src/merge/resources/ats/types/reason_enum.py b/src/merge/resources/ats/types/reason_enum.py deleted file mode 100644 index ea6ba5b6..00000000 --- a/src/merge/resources/ats/types/reason_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ReasonEnum(str, enum.Enum): - """ - * `GENERAL_CUSTOMER_REQUEST` - GENERAL_CUSTOMER_REQUEST - * `GDPR` - GDPR - * `OTHER` - OTHER - """ - - GENERAL_CUSTOMER_REQUEST = "GENERAL_CUSTOMER_REQUEST" - GDPR = "GDPR" - OTHER = "OTHER" - - def visit( - self, - general_customer_request: typing.Callable[[], T_Result], - gdpr: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ReasonEnum.GENERAL_CUSTOMER_REQUEST: - return general_customer_request() - if self is ReasonEnum.GDPR: - return gdpr() - if self is ReasonEnum.OTHER: - return other() diff --git a/src/merge/resources/ats/types/reject_reason.py b/src/merge/resources/ats/types/reject_reason.py deleted file mode 100644 index 7f2d533e..00000000 --- a/src/merge/resources/ats/types/reject_reason.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class RejectReason(UncheckedBaseModel): - """ - # The RejectReason Object - ### Description - The `RejectReason` object is used to represent a reason for rejecting an application. These can typically be configured within an ATS system. - ### Usage Example - Fetch from the `LIST RejectReasons` endpoint and filter by `ID` to show all reasons. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The rejection reason’s name. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/remote_data.py b/src/merge/resources/ats/types/remote_data.py deleted file mode 100644 index f34bec80..00000000 --- a/src/merge/resources/ats/types/remote_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteData(UncheckedBaseModel): - """ - # The RemoteData Object - ### Description - The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - - ### Usage Example - TODO - """ - - path: str = pydantic.Field() - """ - The third-party API path that is being called. - """ - - data: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The data returned from the third-party for this object in its original, unnormalized format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/remote_endpoint_info.py b/src/merge/resources/ats/types/remote_endpoint_info.py deleted file mode 100644 index 07ceff6a..00000000 --- a/src/merge/resources/ats/types/remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteEndpointInfo(UncheckedBaseModel): - method: str - url_path: str - field_traversal_path: typing.List[typing.Optional[typing.Any]] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/remote_field_api.py b/src/merge/resources/ats/types/remote_field_api.py deleted file mode 100644 index 4c66a23b..00000000 --- a/src/merge/resources/ats/types/remote_field_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .advanced_metadata import AdvancedMetadata -from .remote_endpoint_info import RemoteEndpointInfo -from .remote_field_api_coverage import RemoteFieldApiCoverage - - -class RemoteFieldApi(UncheckedBaseModel): - schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema") - remote_key_name: str - remote_endpoint_info: RemoteEndpointInfo - example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - advanced_metadata: typing.Optional[AdvancedMetadata] = None - coverage: typing.Optional[RemoteFieldApiCoverage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/remote_field_api_coverage.py b/src/merge/resources/ats/types/remote_field_api_coverage.py deleted file mode 100644 index adcd9be9..00000000 --- a/src/merge/resources/ats/types/remote_field_api_coverage.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RemoteFieldApiCoverage = typing.Union[int, float] diff --git a/src/merge/resources/ats/types/remote_field_api_response.py b/src/merge/resources/ats/types/remote_field_api_response.py deleted file mode 100644 index 3d3e79f5..00000000 --- a/src/merge/resources/ats/types/remote_field_api_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_api import RemoteFieldApi - - -class RemoteFieldApiResponse(UncheckedBaseModel): - activity: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Activity", default=None) - application: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Application", default=None) - attachment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Attachment", default=None) - candidate: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Candidate", default=None) - department: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Department", default=None) - eeoc: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="EEOC", default=None) - scheduled_interview: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="ScheduledInterview", default=None - ) - job: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Job", default=None) - job_posting: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="JobPosting", default=None) - job_interview_stage: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="JobInterviewStage", default=None - ) - offer: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Offer", default=None) - office: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Office", default=None) - reject_reason: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="RejectReason", default=None) - scorecard: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Scorecard", default=None) - tag: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Tag", default=None) - remote_user: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="RemoteUser", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/remote_response.py b/src/merge/resources/ats/types/remote_response.py deleted file mode 100644 index db01131f..00000000 --- a/src/merge/resources/ats/types/remote_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_response_response_type import RemoteResponseResponseType - - -class RemoteResponse(UncheckedBaseModel): - """ - # The RemoteResponse Object - ### Description - The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - - ### Usage Example - View the `RemoteResponse` returned from your `DataPassthrough`. - """ - - method: str - path: str - status: int - response: typing.Optional[typing.Any] = None - response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[RemoteResponseResponseType] = None - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/remote_user.py b/src/merge/resources/ats/types/remote_user.py deleted file mode 100644 index de6ec49a..00000000 --- a/src/merge/resources/ats/types/remote_user.py +++ /dev/null @@ -1,89 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .remote_user_access_role import RemoteUserAccessRole - - -class RemoteUser(UncheckedBaseModel): - """ - # The RemoteUser Object - ### Description - The `RemoteUser` object is used to represent a user with a login to the ATS system. - ### Usage Example - Fetch from the `LIST RemoteUsers` endpoint to show all users for a third party. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's last name. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's email. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the user's account had been disabled. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's user was created. - """ - - access_role: typing.Optional[RemoteUserAccessRole] = pydantic.Field(default=None) - """ - The user's role. - - * `SUPER_ADMIN` - SUPER_ADMIN - * `ADMIN` - ADMIN - * `TEAM_MEMBER` - TEAM_MEMBER - * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER - * `INTERVIEWER` - INTERVIEWER - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/remote_user_access_role.py b/src/merge/resources/ats/types/remote_user_access_role.py deleted file mode 100644 index 4f730dfc..00000000 --- a/src/merge/resources/ats/types/remote_user_access_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .access_role_enum import AccessRoleEnum - -RemoteUserAccessRole = typing.Union[AccessRoleEnum, str] diff --git a/src/merge/resources/ats/types/request_format_enum.py b/src/merge/resources/ats/types/request_format_enum.py deleted file mode 100644 index 21c272f2..00000000 --- a/src/merge/resources/ats/types/request_format_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestFormatEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `XML` - XML - * `MULTIPART` - MULTIPART - """ - - JSON = "JSON" - XML = "XML" - MULTIPART = "MULTIPART" - - def visit( - self, - json: typing.Callable[[], T_Result], - xml: typing.Callable[[], T_Result], - multipart: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestFormatEnum.JSON: - return json() - if self is RequestFormatEnum.XML: - return xml() - if self is RequestFormatEnum.MULTIPART: - return multipart() diff --git a/src/merge/resources/ats/types/response_type_enum.py b/src/merge/resources/ats/types/response_type_enum.py deleted file mode 100644 index ef241302..00000000 --- a/src/merge/resources/ats/types/response_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ResponseTypeEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `BASE64_GZIP` - BASE64_GZIP - """ - - JSON = "JSON" - BASE_64_GZIP = "BASE64_GZIP" - - def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result: - if self is ResponseTypeEnum.JSON: - return json() - if self is ResponseTypeEnum.BASE_64_GZIP: - return base_64_gzip() diff --git a/src/merge/resources/ats/types/role_enum.py b/src/merge/resources/ats/types/role_enum.py deleted file mode 100644 index a6cfcc6f..00000000 --- a/src/merge/resources/ats/types/role_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RoleEnum(str, enum.Enum): - """ - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ADMIN = "ADMIN" - DEVELOPER = "DEVELOPER" - MEMBER = "MEMBER" - API = "API" - SYSTEM = "SYSTEM" - MERGE_TEAM = "MERGE_TEAM" - - def visit( - self, - admin: typing.Callable[[], T_Result], - developer: typing.Callable[[], T_Result], - member: typing.Callable[[], T_Result], - api: typing.Callable[[], T_Result], - system: typing.Callable[[], T_Result], - merge_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RoleEnum.ADMIN: - return admin() - if self is RoleEnum.DEVELOPER: - return developer() - if self is RoleEnum.MEMBER: - return member() - if self is RoleEnum.API: - return api() - if self is RoleEnum.SYSTEM: - return system() - if self is RoleEnum.MERGE_TEAM: - return merge_team() diff --git a/src/merge/resources/ats/types/scheduled_interview.py b/src/merge/resources/ats/types/scheduled_interview.py deleted file mode 100644 index 1c31538d..00000000 --- a/src/merge/resources/ats/types/scheduled_interview.py +++ /dev/null @@ -1,122 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .scheduled_interview_application import ScheduledInterviewApplication -from .scheduled_interview_interviewers_item import ScheduledInterviewInterviewersItem -from .scheduled_interview_job_interview_stage import ScheduledInterviewJobInterviewStage -from .scheduled_interview_organizer import ScheduledInterviewOrganizer -from .scheduled_interview_status import ScheduledInterviewStatus - - -class ScheduledInterview(UncheckedBaseModel): - """ - # The ScheduledInterview Object - ### Description - The `ScheduledInterview` object is used to represent a scheduled interview for a given candidate’s application to a job. An `Application` can have multiple `ScheduledInterview`s depending on the particular hiring process. - ### Usage Example - Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - application: typing.Optional[ScheduledInterviewApplication] = pydantic.Field(default=None) - """ - The application being interviewed. - """ - - job_interview_stage: typing.Optional[ScheduledInterviewJobInterviewStage] = pydantic.Field(default=None) - """ - The stage of the interview. - """ - - organizer: typing.Optional[ScheduledInterviewOrganizer] = pydantic.Field(default=None) - """ - The user organizing the interview. - """ - - interviewers: typing.Optional[typing.List[typing.Optional[ScheduledInterviewInterviewersItem]]] = pydantic.Field( - default=None - ) - """ - Array of `RemoteUser` IDs. - """ - - location: typing.Optional[str] = pydantic.Field(default=None) - """ - The interview's location. - """ - - start_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the interview was started. - """ - - end_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the interview was ended. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's interview was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's interview was updated. - """ - - status: typing.Optional[ScheduledInterviewStatus] = pydantic.Field(default=None) - """ - The interview's status. - - * `SCHEDULED` - SCHEDULED - * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * `COMPLETE` - COMPLETE - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(ScheduledInterview) diff --git a/src/merge/resources/ats/types/scheduled_interview_application.py b/src/merge/resources/ats/types/scheduled_interview_application.py deleted file mode 100644 index 56b89e59..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_application.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .application import Application - -ScheduledInterviewApplication = typing.Union[str, Application] diff --git a/src/merge/resources/ats/types/scheduled_interview_interviewers_item.py b/src/merge/resources/ats/types/scheduled_interview_interviewers_item.py deleted file mode 100644 index b0d45222..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_interviewers_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ScheduledInterviewInterviewersItem = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/scheduled_interview_job_interview_stage.py b/src/merge/resources/ats/types/scheduled_interview_job_interview_stage.py deleted file mode 100644 index b1eaeb95..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_job_interview_stage.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job_interview_stage import JobInterviewStage - -ScheduledInterviewJobInterviewStage = typing.Union[str, JobInterviewStage] diff --git a/src/merge/resources/ats/types/scheduled_interview_organizer.py b/src/merge/resources/ats/types/scheduled_interview_organizer.py deleted file mode 100644 index 6f28b445..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_organizer.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ScheduledInterviewOrganizer = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/scheduled_interview_request.py b/src/merge/resources/ats/types/scheduled_interview_request.py deleted file mode 100644 index b5b12bc5..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .scheduled_interview_request_application import ScheduledInterviewRequestApplication -from .scheduled_interview_request_interviewers_item import ScheduledInterviewRequestInterviewersItem -from .scheduled_interview_request_job_interview_stage import ScheduledInterviewRequestJobInterviewStage -from .scheduled_interview_request_organizer import ScheduledInterviewRequestOrganizer -from .scheduled_interview_request_status import ScheduledInterviewRequestStatus - - -class ScheduledInterviewRequest(UncheckedBaseModel): - """ - # The ScheduledInterview Object - ### Description - The `ScheduledInterview` object is used to represent a scheduled interview for a given candidate’s application to a job. An `Application` can have multiple `ScheduledInterview`s depending on the particular hiring process. - ### Usage Example - Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations. - """ - - application: typing.Optional[ScheduledInterviewRequestApplication] = pydantic.Field(default=None) - """ - The application being interviewed. - """ - - job_interview_stage: typing.Optional[ScheduledInterviewRequestJobInterviewStage] = pydantic.Field(default=None) - """ - The stage of the interview. - """ - - organizer: typing.Optional[ScheduledInterviewRequestOrganizer] = pydantic.Field(default=None) - """ - The user organizing the interview. - """ - - interviewers: typing.Optional[typing.List[typing.Optional[ScheduledInterviewRequestInterviewersItem]]] = ( - pydantic.Field(default=None) - ) - """ - Array of `RemoteUser` IDs. - """ - - location: typing.Optional[str] = pydantic.Field(default=None) - """ - The interview's location. - """ - - start_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the interview was started. - """ - - end_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the interview was ended. - """ - - status: typing.Optional[ScheduledInterviewRequestStatus] = pydantic.Field(default=None) - """ - The interview's status. - - * `SCHEDULED` - SCHEDULED - * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * `COMPLETE` - COMPLETE - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(ScheduledInterviewRequest) diff --git a/src/merge/resources/ats/types/scheduled_interview_request_application.py b/src/merge/resources/ats/types/scheduled_interview_request_application.py deleted file mode 100644 index 023e98bd..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_request_application.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .application import Application - -ScheduledInterviewRequestApplication = typing.Union[str, Application] diff --git a/src/merge/resources/ats/types/scheduled_interview_request_interviewers_item.py b/src/merge/resources/ats/types/scheduled_interview_request_interviewers_item.py deleted file mode 100644 index 9d91de72..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_request_interviewers_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ScheduledInterviewRequestInterviewersItem = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/scheduled_interview_request_job_interview_stage.py b/src/merge/resources/ats/types/scheduled_interview_request_job_interview_stage.py deleted file mode 100644 index e3540ac2..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_request_job_interview_stage.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job_interview_stage import JobInterviewStage - -ScheduledInterviewRequestJobInterviewStage = typing.Union[str, JobInterviewStage] diff --git a/src/merge/resources/ats/types/scheduled_interview_request_organizer.py b/src/merge/resources/ats/types/scheduled_interview_request_organizer.py deleted file mode 100644 index 39f4b8f9..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_request_organizer.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ScheduledInterviewRequestOrganizer = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/scheduled_interview_request_status.py b/src/merge/resources/ats/types/scheduled_interview_request_status.py deleted file mode 100644 index ffbbc800..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .scheduled_interview_status_enum import ScheduledInterviewStatusEnum - -ScheduledInterviewRequestStatus = typing.Union[ScheduledInterviewStatusEnum, str] diff --git a/src/merge/resources/ats/types/scheduled_interview_response.py b/src/merge/resources/ats/types/scheduled_interview_response.py deleted file mode 100644 index 280fff51..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .scheduled_interview import ScheduledInterview -from .warning_validation_problem import WarningValidationProblem - - -class ScheduledInterviewResponse(UncheckedBaseModel): - model: ScheduledInterview - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(ScheduledInterviewResponse) diff --git a/src/merge/resources/ats/types/scheduled_interview_status.py b/src/merge/resources/ats/types/scheduled_interview_status.py deleted file mode 100644 index 2c043345..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .scheduled_interview_status_enum import ScheduledInterviewStatusEnum - -ScheduledInterviewStatus = typing.Union[ScheduledInterviewStatusEnum, str] diff --git a/src/merge/resources/ats/types/scheduled_interview_status_enum.py b/src/merge/resources/ats/types/scheduled_interview_status_enum.py deleted file mode 100644 index 5ca38557..00000000 --- a/src/merge/resources/ats/types/scheduled_interview_status_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ScheduledInterviewStatusEnum(str, enum.Enum): - """ - * `SCHEDULED` - SCHEDULED - * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * `COMPLETE` - COMPLETE - """ - - SCHEDULED = "SCHEDULED" - AWAITING_FEEDBACK = "AWAITING_FEEDBACK" - COMPLETE = "COMPLETE" - - def visit( - self, - scheduled: typing.Callable[[], T_Result], - awaiting_feedback: typing.Callable[[], T_Result], - complete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ScheduledInterviewStatusEnum.SCHEDULED: - return scheduled() - if self is ScheduledInterviewStatusEnum.AWAITING_FEEDBACK: - return awaiting_feedback() - if self is ScheduledInterviewStatusEnum.COMPLETE: - return complete() diff --git a/src/merge/resources/ats/types/scorecard.py b/src/merge/resources/ats/types/scorecard.py deleted file mode 100644 index 3e713f87..00000000 --- a/src/merge/resources/ats/types/scorecard.py +++ /dev/null @@ -1,101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .scorecard_application import ScorecardApplication -from .scorecard_interview import ScorecardInterview -from .scorecard_interviewer import ScorecardInterviewer -from .scorecard_overall_recommendation import ScorecardOverallRecommendation - - -class Scorecard(UncheckedBaseModel): - """ - # The Scorecard Object - ### Description - The `Scorecard` object is used to represent an interviewer's candidate recommendation based on a particular interview. - ### Usage Example - Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - application: typing.Optional[ScorecardApplication] = pydantic.Field(default=None) - """ - The application being scored. - """ - - interview: typing.Optional[ScorecardInterview] = pydantic.Field(default=None) - """ - The interview being scored. - """ - - interviewer: typing.Optional[ScorecardInterviewer] = pydantic.Field(default=None) - """ - The interviewer doing the scoring. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's scorecard was created. - """ - - submitted_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the scorecard was submitted. - """ - - overall_recommendation: typing.Optional[ScorecardOverallRecommendation] = pydantic.Field(default=None) - """ - The inteviewer's recommendation. - - * `DEFINITELY_NO` - DEFINITELY_NO - * `NO` - NO - * `YES` - YES - * `STRONG_YES` - STRONG_YES - * `NO_DECISION` - NO_DECISION - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .application import Application # noqa: E402, F401, I001 -from .candidate import Candidate # noqa: E402, F401, I001 -from .offer import Offer # noqa: E402, F401, I001 - -update_forward_refs(Scorecard) diff --git a/src/merge/resources/ats/types/scorecard_application.py b/src/merge/resources/ats/types/scorecard_application.py deleted file mode 100644 index 8d1b7dc2..00000000 --- a/src/merge/resources/ats/types/scorecard_application.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .application import Application - -ScorecardApplication = typing.Union[str, Application] diff --git a/src/merge/resources/ats/types/scorecard_interview.py b/src/merge/resources/ats/types/scorecard_interview.py deleted file mode 100644 index 2642494a..00000000 --- a/src/merge/resources/ats/types/scorecard_interview.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .scheduled_interview import ScheduledInterview - -ScorecardInterview = typing.Union[str, ScheduledInterview] diff --git a/src/merge/resources/ats/types/scorecard_interviewer.py b/src/merge/resources/ats/types/scorecard_interviewer.py deleted file mode 100644 index 96c34cc8..00000000 --- a/src/merge/resources/ats/types/scorecard_interviewer.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_user import RemoteUser - -ScorecardInterviewer = typing.Union[str, RemoteUser] diff --git a/src/merge/resources/ats/types/scorecard_overall_recommendation.py b/src/merge/resources/ats/types/scorecard_overall_recommendation.py deleted file mode 100644 index 7545a6ca..00000000 --- a/src/merge/resources/ats/types/scorecard_overall_recommendation.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .overall_recommendation_enum import OverallRecommendationEnum - -ScorecardOverallRecommendation = typing.Union[OverallRecommendationEnum, str] diff --git a/src/merge/resources/ats/types/screening_question.py b/src/merge/resources/ats/types/screening_question.py deleted file mode 100644 index 245cbd2a..00000000 --- a/src/merge/resources/ats/types/screening_question.py +++ /dev/null @@ -1,86 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .screening_question_job import ScreeningQuestionJob -from .screening_question_type import ScreeningQuestionType - - -class ScreeningQuestion(UncheckedBaseModel): - """ - # The ScreeningQuestion Object - ### Description - The `ScreeningQuestion` object is used to represent questions asked to screen candidates for a job. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - job: typing.Optional[ScreeningQuestionJob] = pydantic.Field(default=None) - """ - The job associated with the screening question. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the screening question - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The title of the screening question - """ - - type: typing.Optional[ScreeningQuestionType] = pydantic.Field(default=None) - """ - The data type for the screening question. - - * `DATE` - DATE - * `FILE` - FILE - * `SINGLE_SELECT` - SINGLE_SELECT - * `MULTI_SELECT` - MULTI_SELECT - * `SINGLE_LINE_TEXT` - SINGLE_LINE_TEXT - * `MULTI_LINE_TEXT` - MULTI_LINE_TEXT - * `NUMERIC` - NUMERIC - * `BOOLEAN` - BOOLEAN - """ - - required: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the screening question is required. - """ - - options: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/screening_question_answer.py b/src/merge/resources/ats/types/screening_question_answer.py deleted file mode 100644 index b6bc1ab2..00000000 --- a/src/merge/resources/ats/types/screening_question_answer.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .screening_question_answer_question import ScreeningQuestionAnswerQuestion - - -class ScreeningQuestionAnswer(UncheckedBaseModel): - """ - # The ScreeningQuestionAnswer Object - ### Description - The `ScreeningQuestionAnswer` object is used to represent candidate responses to a screening question, for a specific application. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - question: typing.Optional[ScreeningQuestionAnswerQuestion] = pydantic.Field(default=None) - """ - The screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding `screening_question_answers.question` to the `expand` query parameter. - """ - - answer: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate’s response to the screening question. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/screening_question_answer_question.py b/src/merge/resources/ats/types/screening_question_answer_question.py deleted file mode 100644 index 623c4332..00000000 --- a/src/merge/resources/ats/types/screening_question_answer_question.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .screening_question import ScreeningQuestion - -ScreeningQuestionAnswerQuestion = typing.Union[str, ScreeningQuestion] diff --git a/src/merge/resources/ats/types/screening_question_answer_request.py b/src/merge/resources/ats/types/screening_question_answer_request.py deleted file mode 100644 index af62b520..00000000 --- a/src/merge/resources/ats/types/screening_question_answer_request.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .screening_question_answer_request_question import ScreeningQuestionAnswerRequestQuestion - - -class ScreeningQuestionAnswerRequest(UncheckedBaseModel): - """ - # The ScreeningQuestionAnswer Object - ### Description - The `ScreeningQuestionAnswer` object is used to represent candidate responses to a screening question, for a specific application. - - ### Usage Example - TODO - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - question: typing.Optional[ScreeningQuestionAnswerRequestQuestion] = pydantic.Field(default=None) - """ - The screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding `screening_question_answers.question` to the `expand` query parameter. - """ - - answer: typing.Optional[str] = pydantic.Field(default=None) - """ - The candidate’s response to the screening question. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/screening_question_answer_request_question.py b/src/merge/resources/ats/types/screening_question_answer_request_question.py deleted file mode 100644 index 689cba13..00000000 --- a/src/merge/resources/ats/types/screening_question_answer_request_question.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .screening_question import ScreeningQuestion - -ScreeningQuestionAnswerRequestQuestion = typing.Union[str, ScreeningQuestion] diff --git a/src/merge/resources/ats/types/screening_question_job.py b/src/merge/resources/ats/types/screening_question_job.py deleted file mode 100644 index 239c90e4..00000000 --- a/src/merge/resources/ats/types/screening_question_job.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .job import Job - -ScreeningQuestionJob = typing.Union[str, Job] diff --git a/src/merge/resources/ats/types/screening_question_option.py b/src/merge/resources/ats/types/screening_question_option.py deleted file mode 100644 index 7e3f1e6d..00000000 --- a/src/merge/resources/ats/types/screening_question_option.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ScreeningQuestionOption(UncheckedBaseModel): - """ - # The ScreeningQuestionOption Object - ### Description - The `ScreeningQuestionOption` object is used to represent options for a `ScreeningQuestion` object - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Available response options - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/screening_question_type.py b/src/merge/resources/ats/types/screening_question_type.py deleted file mode 100644 index de17251b..00000000 --- a/src/merge/resources/ats/types/screening_question_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .screening_question_type_enum import ScreeningQuestionTypeEnum - -ScreeningQuestionType = typing.Union[ScreeningQuestionTypeEnum, str] diff --git a/src/merge/resources/ats/types/screening_question_type_enum.py b/src/merge/resources/ats/types/screening_question_type_enum.py deleted file mode 100644 index ba2fd9d8..00000000 --- a/src/merge/resources/ats/types/screening_question_type_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ScreeningQuestionTypeEnum(str, enum.Enum): - """ - * `DATE` - DATE - * `FILE` - FILE - * `SINGLE_SELECT` - SINGLE_SELECT - * `MULTI_SELECT` - MULTI_SELECT - * `SINGLE_LINE_TEXT` - SINGLE_LINE_TEXT - * `MULTI_LINE_TEXT` - MULTI_LINE_TEXT - * `NUMERIC` - NUMERIC - * `BOOLEAN` - BOOLEAN - """ - - DATE = "DATE" - FILE = "FILE" - SINGLE_SELECT = "SINGLE_SELECT" - MULTI_SELECT = "MULTI_SELECT" - SINGLE_LINE_TEXT = "SINGLE_LINE_TEXT" - MULTI_LINE_TEXT = "MULTI_LINE_TEXT" - NUMERIC = "NUMERIC" - BOOLEAN = "BOOLEAN" - - def visit( - self, - date: typing.Callable[[], T_Result], - file: typing.Callable[[], T_Result], - single_select: typing.Callable[[], T_Result], - multi_select: typing.Callable[[], T_Result], - single_line_text: typing.Callable[[], T_Result], - multi_line_text: typing.Callable[[], T_Result], - numeric: typing.Callable[[], T_Result], - boolean: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ScreeningQuestionTypeEnum.DATE: - return date() - if self is ScreeningQuestionTypeEnum.FILE: - return file() - if self is ScreeningQuestionTypeEnum.SINGLE_SELECT: - return single_select() - if self is ScreeningQuestionTypeEnum.MULTI_SELECT: - return multi_select() - if self is ScreeningQuestionTypeEnum.SINGLE_LINE_TEXT: - return single_line_text() - if self is ScreeningQuestionTypeEnum.MULTI_LINE_TEXT: - return multi_line_text() - if self is ScreeningQuestionTypeEnum.NUMERIC: - return numeric() - if self is ScreeningQuestionTypeEnum.BOOLEAN: - return boolean() diff --git a/src/merge/resources/ats/types/selective_sync_configurations_usage_enum.py b/src/merge/resources/ats/types/selective_sync_configurations_usage_enum.py deleted file mode 100644 index 9ff43813..00000000 --- a/src/merge/resources/ats/types/selective_sync_configurations_usage_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum): - """ - * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * `IN_LAST_SYNC` - IN_LAST_SYNC - """ - - IN_NEXT_SYNC = "IN_NEXT_SYNC" - IN_LAST_SYNC = "IN_LAST_SYNC" - - def visit( - self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result] - ) -> T_Result: - if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC: - return in_next_sync() - if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC: - return in_last_sync() diff --git a/src/merge/resources/ats/types/status_fd_5_enum.py b/src/merge/resources/ats/types/status_fd_5_enum.py deleted file mode 100644 index d753f77c..00000000 --- a/src/merge/resources/ats/types/status_fd_5_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class StatusFd5Enum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is StatusFd5Enum.SYNCING: - return syncing() - if self is StatusFd5Enum.DONE: - return done() - if self is StatusFd5Enum.FAILED: - return failed() - if self is StatusFd5Enum.DISABLED: - return disabled() - if self is StatusFd5Enum.PAUSED: - return paused() - if self is StatusFd5Enum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/ats/types/sync_status.py b/src/merge/resources/ats/types/sync_status.py deleted file mode 100644 index 07ab1dc2..00000000 --- a/src/merge/resources/ats/types/sync_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .sync_status_last_sync_result import SyncStatusLastSyncResult -from .sync_status_status import SyncStatusStatus - - -class SyncStatus(UncheckedBaseModel): - """ - # The SyncStatus Object - ### Description - The `SyncStatus` object is used to represent the syncing state of an account - - ### Usage Example - View the `SyncStatus` for an account to see how recently its models were synced. - """ - - model_name: str - model_id: str - last_sync_start: typing.Optional[dt.datetime] = None - next_sync_start: typing.Optional[dt.datetime] = None - last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None - last_sync_finished: typing.Optional[dt.datetime] = None - status: SyncStatusStatus - is_initial_sync: bool - selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/sync_status_last_sync_result.py b/src/merge/resources/ats/types/sync_status_last_sync_result.py deleted file mode 100644 index 980e7d94..00000000 --- a/src/merge/resources/ats/types/sync_status_last_sync_result.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .last_sync_result_enum import LastSyncResultEnum - -SyncStatusLastSyncResult = typing.Union[LastSyncResultEnum, str] diff --git a/src/merge/resources/ats/types/sync_status_status.py b/src/merge/resources/ats/types/sync_status_status.py deleted file mode 100644 index 78e4cc47..00000000 --- a/src/merge/resources/ats/types/sync_status_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_fd_5_enum import StatusFd5Enum - -SyncStatusStatus = typing.Union[StatusFd5Enum, str] diff --git a/src/merge/resources/ats/types/tag.py b/src/merge/resources/ats/types/tag.py deleted file mode 100644 index 6d73f731..00000000 --- a/src/merge/resources/ats/types/tag.py +++ /dev/null @@ -1,55 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class Tag(UncheckedBaseModel): - """ - # The Tag Object - ### Description - The `Tag` object is used to represent a tag for a candidate. - ### Usage Example - Fetch from the `LIST Tags` endpoint and view the tags used within a company. - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The tag's name. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/url.py b/src/merge/resources/ats/types/url.py deleted file mode 100644 index 506fbd94..00000000 --- a/src/merge/resources/ats/types/url.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .url_url_type import UrlUrlType - - -class Url(UncheckedBaseModel): - """ - # The Url Object - ### Description - The `Url` object is used to represent hyperlinks associated with the parent model. - ### Usage Example - Fetch from the `GET Candidate` endpoint and view their website urls. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The site's url. - """ - - url_type: typing.Optional[UrlUrlType] = pydantic.Field(default=None) - """ - The type of site. - - * `PERSONAL` - PERSONAL - * `COMPANY` - COMPANY - * `PORTFOLIO` - PORTFOLIO - * `BLOG` - BLOG - * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * `OTHER` - OTHER - * `JOB_POSTING` - JOB_POSTING - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/url_request.py b/src/merge/resources/ats/types/url_request.py deleted file mode 100644 index 292911d8..00000000 --- a/src/merge/resources/ats/types/url_request.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .url_request_url_type import UrlRequestUrlType - - -class UrlRequest(UncheckedBaseModel): - """ - # The Url Object - ### Description - The `Url` object is used to represent hyperlinks associated with the parent model. - ### Usage Example - Fetch from the `GET Candidate` endpoint and view their website urls. - """ - - value: typing.Optional[str] = pydantic.Field(default=None) - """ - The site's url. - """ - - url_type: typing.Optional[UrlRequestUrlType] = pydantic.Field(default=None) - """ - The type of site. - - * `PERSONAL` - PERSONAL - * `COMPANY` - COMPANY - * `PORTFOLIO` - PORTFOLIO - * `BLOG` - BLOG - * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * `OTHER` - OTHER - * `JOB_POSTING` - JOB_POSTING - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/url_request_url_type.py b/src/merge/resources/ats/types/url_request_url_type.py deleted file mode 100644 index 2735a7e6..00000000 --- a/src/merge/resources/ats/types/url_request_url_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .url_type_enum import UrlTypeEnum - -UrlRequestUrlType = typing.Union[UrlTypeEnum, str] diff --git a/src/merge/resources/ats/types/url_type_enum.py b/src/merge/resources/ats/types/url_type_enum.py deleted file mode 100644 index 7e29213d..00000000 --- a/src/merge/resources/ats/types/url_type_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class UrlTypeEnum(str, enum.Enum): - """ - * `PERSONAL` - PERSONAL - * `COMPANY` - COMPANY - * `PORTFOLIO` - PORTFOLIO - * `BLOG` - BLOG - * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * `OTHER` - OTHER - * `JOB_POSTING` - JOB_POSTING - """ - - PERSONAL = "PERSONAL" - COMPANY = "COMPANY" - PORTFOLIO = "PORTFOLIO" - BLOG = "BLOG" - SOCIAL_MEDIA = "SOCIAL_MEDIA" - OTHER = "OTHER" - JOB_POSTING = "JOB_POSTING" - - def visit( - self, - personal: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - portfolio: typing.Callable[[], T_Result], - blog: typing.Callable[[], T_Result], - social_media: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - job_posting: typing.Callable[[], T_Result], - ) -> T_Result: - if self is UrlTypeEnum.PERSONAL: - return personal() - if self is UrlTypeEnum.COMPANY: - return company() - if self is UrlTypeEnum.PORTFOLIO: - return portfolio() - if self is UrlTypeEnum.BLOG: - return blog() - if self is UrlTypeEnum.SOCIAL_MEDIA: - return social_media() - if self is UrlTypeEnum.OTHER: - return other() - if self is UrlTypeEnum.JOB_POSTING: - return job_posting() diff --git a/src/merge/resources/ats/types/url_url_type.py b/src/merge/resources/ats/types/url_url_type.py deleted file mode 100644 index 2321b25f..00000000 --- a/src/merge/resources/ats/types/url_url_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .url_type_enum import UrlTypeEnum - -UrlUrlType = typing.Union[UrlTypeEnum, str] diff --git a/src/merge/resources/ats/types/validation_problem_source.py b/src/merge/resources/ats/types/validation_problem_source.py deleted file mode 100644 index fbebe626..00000000 --- a/src/merge/resources/ats/types/validation_problem_source.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ValidationProblemSource(UncheckedBaseModel): - pointer: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/veteran_status_enum.py b/src/merge/resources/ats/types/veteran_status_enum.py deleted file mode 100644 index 92685dd7..00000000 --- a/src/merge/resources/ats/types/veteran_status_enum.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class VeteranStatusEnum(str, enum.Enum): - """ - * `I_AM_NOT_A_PROTECTED_VETERAN` - I_AM_NOT_A_PROTECTED_VETERAN - * `I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN` - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - """ - - I_AM_NOT_A_PROTECTED_VETERAN = "I_AM_NOT_A_PROTECTED_VETERAN" - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN = ( - "I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN" - ) - I_DONT_WISH_TO_ANSWER = "I_DONT_WISH_TO_ANSWER" - - def visit( - self, - i_am_not_a_protected_veteran: typing.Callable[[], T_Result], - i_identify_as_one_or_more_of_the_classifications_of_a_protected_veteran: typing.Callable[[], T_Result], - i_dont_wish_to_answer: typing.Callable[[], T_Result], - ) -> T_Result: - if self is VeteranStatusEnum.I_AM_NOT_A_PROTECTED_VETERAN: - return i_am_not_a_protected_veteran() - if self is VeteranStatusEnum.I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN: - return i_identify_as_one_or_more_of_the_classifications_of_a_protected_veteran() - if self is VeteranStatusEnum.I_DONT_WISH_TO_ANSWER: - return i_dont_wish_to_answer() diff --git a/src/merge/resources/ats/types/visibility_enum.py b/src/merge/resources/ats/types/visibility_enum.py deleted file mode 100644 index efcaafb7..00000000 --- a/src/merge/resources/ats/types/visibility_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class VisibilityEnum(str, enum.Enum): - """ - * `ADMIN_ONLY` - ADMIN_ONLY - * `PUBLIC` - PUBLIC - * `PRIVATE` - PRIVATE - """ - - ADMIN_ONLY = "ADMIN_ONLY" - PUBLIC = "PUBLIC" - PRIVATE = "PRIVATE" - - def visit( - self, - admin_only: typing.Callable[[], T_Result], - public: typing.Callable[[], T_Result], - private: typing.Callable[[], T_Result], - ) -> T_Result: - if self is VisibilityEnum.ADMIN_ONLY: - return admin_only() - if self is VisibilityEnum.PUBLIC: - return public() - if self is VisibilityEnum.PRIVATE: - return private() diff --git a/src/merge/resources/ats/types/warning_validation_problem.py b/src/merge/resources/ats/types/warning_validation_problem.py deleted file mode 100644 index 4785e836..00000000 --- a/src/merge/resources/ats/types/warning_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class WarningValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ats/types/webhook_receiver.py b/src/merge/resources/ats/types/webhook_receiver.py deleted file mode 100644 index fb49c044..00000000 --- a/src/merge/resources/ats/types/webhook_receiver.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class WebhookReceiver(UncheckedBaseModel): - event: str - is_active: bool - key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/__init__.py b/src/merge/resources/chat/__init__.py deleted file mode 100644 index da7e6d6f..00000000 --- a/src/merge/resources/chat/__init__.py +++ /dev/null @@ -1,391 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - AccountDetails, - AccountDetailsAndActions, - AccountDetailsAndActionsCategory, - AccountDetailsAndActionsIntegration, - AccountDetailsAndActionsStatus, - AccountDetailsAndActionsStatusEnum, - AccountDetailsCategory, - AccountIntegration, - AccountToken, - AdvancedMetadata, - AsyncPassthroughReciept, - AuditLogEvent, - AuditLogEventEventType, - AuditLogEventRole, - AvailableActions, - CategoriesEnum, - CategoryEnum, - CommonModelScopeApi, - CommonModelScopesBodyRequest, - CompletedAccountInitialScreenEnum, - Conversation, - ConversationType, - DataPassthroughRequest, - DataPassthroughRequestMethod, - DataPassthroughRequestRequestFormat, - DebugModeLog, - DebugModelLogSummary, - EnabledActionsEnum, - EncodingEnum, - ErrorValidationProblem, - EventTypeEnum, - ExternalTargetFieldApi, - ExternalTargetFieldApiResponse, - FieldMappingApiInstance, - FieldMappingApiInstanceRemoteField, - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - FieldMappingApiInstanceResponse, - FieldMappingApiInstanceTargetField, - FieldMappingInstanceResponse, - FieldPermissionDeserializer, - FieldPermissionDeserializerRequest, - Group, - IndividualCommonModelScopeDeserializer, - IndividualCommonModelScopeDeserializerRequest, - Issue, - IssueStatus, - IssueStatusEnum, - LanguageEnum, - LastSyncResultEnum, - LinkToken, - Member, - Message, - MethodEnum, - ModelOperation, - ModelPermissionDeserializer, - ModelPermissionDeserializerRequest, - MultipartFormFieldRequest, - MultipartFormFieldRequestEncoding, - PaginatedAccountDetailsAndActionsList, - PaginatedAuditLogEventList, - PaginatedConversationList, - PaginatedGroupList, - PaginatedIssueList, - PaginatedMemberList, - PaginatedMessageList, - PaginatedSyncStatusList, - PaginatedUserList, - RemoteData, - RemoteEndpointInfo, - RemoteFieldApi, - RemoteFieldApiAdvancedMetadata, - RemoteFieldApiCoverage, - RemoteFieldApiResponse, - RemoteKey, - RemoteResponse, - RemoteResponseResponseType, - RequestFormatEnum, - ResponseTypeEnum, - RoleEnum, - SelectiveSyncConfigurationsUsageEnum, - StatusFd5Enum, - SyncStatus, - SyncStatusLastSyncResult, - SyncStatusStatus, - TypeEnum, - User, - ValidationProblemSource, - WarningValidationProblem, - WebhookReceiver, - ) - from .resources import ( - AsyncPassthroughRetrieveResponse, - ConversationsMembersListRequestExpand, - EndUserDetailsRequestCompletedAccountInitialScreen, - EndUserDetailsRequestLanguage, - IssuesListRequestStatus, - LinkedAccountsListRequestCategory, - MessagesListRequestOrderBy, - MessagesRepliesListRequestOrderBy, - account_details, - account_token, - async_passthrough, - audit_trail, - available_actions, - conversations, - delete_account, - field_mapping, - force_resync, - generate_key, - groups, - issues, - link_token, - linked_accounts, - messages, - passthrough, - regenerate_key, - scopes, - sync_status, - users, - webhook_receivers, - ) -_dynamic_imports: typing.Dict[str, str] = { - "AccountDetails": ".types", - "AccountDetailsAndActions": ".types", - "AccountDetailsAndActionsCategory": ".types", - "AccountDetailsAndActionsIntegration": ".types", - "AccountDetailsAndActionsStatus": ".types", - "AccountDetailsAndActionsStatusEnum": ".types", - "AccountDetailsCategory": ".types", - "AccountIntegration": ".types", - "AccountToken": ".types", - "AdvancedMetadata": ".types", - "AsyncPassthroughReciept": ".types", - "AsyncPassthroughRetrieveResponse": ".resources", - "AuditLogEvent": ".types", - "AuditLogEventEventType": ".types", - "AuditLogEventRole": ".types", - "AvailableActions": ".types", - "CategoriesEnum": ".types", - "CategoryEnum": ".types", - "CommonModelScopeApi": ".types", - "CommonModelScopesBodyRequest": ".types", - "CompletedAccountInitialScreenEnum": ".types", - "Conversation": ".types", - "ConversationType": ".types", - "ConversationsMembersListRequestExpand": ".resources", - "DataPassthroughRequest": ".types", - "DataPassthroughRequestMethod": ".types", - "DataPassthroughRequestRequestFormat": ".types", - "DebugModeLog": ".types", - "DebugModelLogSummary": ".types", - "EnabledActionsEnum": ".types", - "EncodingEnum": ".types", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".resources", - "EndUserDetailsRequestLanguage": ".resources", - "ErrorValidationProblem": ".types", - "EventTypeEnum": ".types", - "ExternalTargetFieldApi": ".types", - "ExternalTargetFieldApiResponse": ".types", - "FieldMappingApiInstance": ".types", - "FieldMappingApiInstanceRemoteField": ".types", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".types", - "FieldMappingApiInstanceResponse": ".types", - "FieldMappingApiInstanceTargetField": ".types", - "FieldMappingInstanceResponse": ".types", - "FieldPermissionDeserializer": ".types", - "FieldPermissionDeserializerRequest": ".types", - "Group": ".types", - "IndividualCommonModelScopeDeserializer": ".types", - "IndividualCommonModelScopeDeserializerRequest": ".types", - "Issue": ".types", - "IssueStatus": ".types", - "IssueStatusEnum": ".types", - "IssuesListRequestStatus": ".resources", - "LanguageEnum": ".types", - "LastSyncResultEnum": ".types", - "LinkToken": ".types", - "LinkedAccountsListRequestCategory": ".resources", - "Member": ".types", - "Message": ".types", - "MessagesListRequestOrderBy": ".resources", - "MessagesRepliesListRequestOrderBy": ".resources", - "MethodEnum": ".types", - "ModelOperation": ".types", - "ModelPermissionDeserializer": ".types", - "ModelPermissionDeserializerRequest": ".types", - "MultipartFormFieldRequest": ".types", - "MultipartFormFieldRequestEncoding": ".types", - "PaginatedAccountDetailsAndActionsList": ".types", - "PaginatedAuditLogEventList": ".types", - "PaginatedConversationList": ".types", - "PaginatedGroupList": ".types", - "PaginatedIssueList": ".types", - "PaginatedMemberList": ".types", - "PaginatedMessageList": ".types", - "PaginatedSyncStatusList": ".types", - "PaginatedUserList": ".types", - "RemoteData": ".types", - "RemoteEndpointInfo": ".types", - "RemoteFieldApi": ".types", - "RemoteFieldApiAdvancedMetadata": ".types", - "RemoteFieldApiCoverage": ".types", - "RemoteFieldApiResponse": ".types", - "RemoteKey": ".types", - "RemoteResponse": ".types", - "RemoteResponseResponseType": ".types", - "RequestFormatEnum": ".types", - "ResponseTypeEnum": ".types", - "RoleEnum": ".types", - "SelectiveSyncConfigurationsUsageEnum": ".types", - "StatusFd5Enum": ".types", - "SyncStatus": ".types", - "SyncStatusLastSyncResult": ".types", - "SyncStatusStatus": ".types", - "TypeEnum": ".types", - "User": ".types", - "ValidationProblemSource": ".types", - "WarningValidationProblem": ".types", - "WebhookReceiver": ".types", - "account_details": ".resources", - "account_token": ".resources", - "async_passthrough": ".resources", - "audit_trail": ".resources", - "available_actions": ".resources", - "conversations": ".resources", - "delete_account": ".resources", - "field_mapping": ".resources", - "force_resync": ".resources", - "generate_key": ".resources", - "groups": ".resources", - "issues": ".resources", - "link_token": ".resources", - "linked_accounts": ".resources", - "messages": ".resources", - "passthrough": ".resources", - "regenerate_key": ".resources", - "scopes": ".resources", - "sync_status": ".resources", - "users": ".resources", - "webhook_receivers": ".resources", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "AsyncPassthroughRetrieveResponse", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompletedAccountInitialScreenEnum", - "Conversation", - "ConversationType", - "ConversationsMembersListRequestExpand", - "DataPassthroughRequest", - "DataPassthroughRequestMethod", - "DataPassthroughRequestRequestFormat", - "DebugModeLog", - "DebugModelLogSummary", - "EnabledActionsEnum", - "EncodingEnum", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "Group", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "IssuesListRequestStatus", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountsListRequestCategory", - "Member", - "Message", - "MessagesListRequestOrderBy", - "MessagesRepliesListRequestOrderBy", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAuditLogEventList", - "PaginatedConversationList", - "PaginatedGroupList", - "PaginatedIssueList", - "PaginatedMemberList", - "PaginatedMessageList", - "PaginatedSyncStatusList", - "PaginatedUserList", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiAdvancedMetadata", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "TypeEnum", - "User", - "ValidationProblemSource", - "WarningValidationProblem", - "WebhookReceiver", - "account_details", - "account_token", - "async_passthrough", - "audit_trail", - "available_actions", - "conversations", - "delete_account", - "field_mapping", - "force_resync", - "generate_key", - "groups", - "issues", - "link_token", - "linked_accounts", - "messages", - "passthrough", - "regenerate_key", - "scopes", - "sync_status", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/chat/client.py b/src/merge/resources/chat/client.py deleted file mode 100644 index acb3b6bd..00000000 --- a/src/merge/resources/chat/client.py +++ /dev/null @@ -1,459 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawChatClient, RawChatClient - -if typing.TYPE_CHECKING: - from .resources.account_details.client import AccountDetailsClient, AsyncAccountDetailsClient - from .resources.account_token.client import AccountTokenClient, AsyncAccountTokenClient - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_chat_resources_async_passthrough_client_AsyncPassthroughClient, - ) - from .resources.audit_trail.client import AsyncAuditTrailClient, AuditTrailClient - from .resources.available_actions.client import AsyncAvailableActionsClient, AvailableActionsClient - from .resources.conversations.client import AsyncConversationsClient, ConversationsClient - from .resources.delete_account.client import AsyncDeleteAccountClient, DeleteAccountClient - from .resources.field_mapping.client import AsyncFieldMappingClient, FieldMappingClient - from .resources.force_resync.client import AsyncForceResyncClient, ForceResyncClient - from .resources.generate_key.client import AsyncGenerateKeyClient, GenerateKeyClient - from .resources.groups.client import AsyncGroupsClient, GroupsClient - from .resources.issues.client import AsyncIssuesClient, IssuesClient - from .resources.link_token.client import AsyncLinkTokenClient, LinkTokenClient - from .resources.linked_accounts.client import AsyncLinkedAccountsClient, LinkedAccountsClient - from .resources.messages.client import AsyncMessagesClient, MessagesClient - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_chat_resources_passthrough_client_AsyncPassthroughClient, - ) - from .resources.passthrough.client import PassthroughClient - from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient - from .resources.scopes.client import AsyncScopesClient, ScopesClient - from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient - from .resources.users.client import AsyncUsersClient, UsersClient - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient - - -class ChatClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawChatClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AccountDetailsClient] = None - self._account_token: typing.Optional[AccountTokenClient] = None - self._async_passthrough: typing.Optional[ - resources_chat_resources_async_passthrough_client_AsyncPassthroughClient - ] = None - self._audit_trail: typing.Optional[AuditTrailClient] = None - self._available_actions: typing.Optional[AvailableActionsClient] = None - self._conversations: typing.Optional[ConversationsClient] = None - self._scopes: typing.Optional[ScopesClient] = None - self._delete_account: typing.Optional[DeleteAccountClient] = None - self._field_mapping: typing.Optional[FieldMappingClient] = None - self._generate_key: typing.Optional[GenerateKeyClient] = None - self._groups: typing.Optional[GroupsClient] = None - self._issues: typing.Optional[IssuesClient] = None - self._link_token: typing.Optional[LinkTokenClient] = None - self._linked_accounts: typing.Optional[LinkedAccountsClient] = None - self._messages: typing.Optional[MessagesClient] = None - self._passthrough: typing.Optional[PassthroughClient] = None - self._regenerate_key: typing.Optional[RegenerateKeyClient] = None - self._sync_status: typing.Optional[SyncStatusClient] = None - self._force_resync: typing.Optional[ForceResyncClient] = None - self._users: typing.Optional[UsersClient] = None - self._webhook_receivers: typing.Optional[WebhookReceiversClient] = None - - @property - def with_raw_response(self) -> RawChatClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawChatClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AccountDetailsClient # noqa: E402 - - self._account_details = AccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AccountTokenClient # noqa: E402 - - self._account_token = AccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_chat_resources_async_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._async_passthrough = resources_chat_resources_async_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._async_passthrough - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AuditTrailClient # noqa: E402 - - self._audit_trail = AuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AvailableActionsClient # noqa: E402 - - self._available_actions = AvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def conversations(self): - if self._conversations is None: - from .resources.conversations.client import ConversationsClient # noqa: E402 - - self._conversations = ConversationsClient(client_wrapper=self._client_wrapper) - return self._conversations - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import ScopesClient # noqa: E402 - - self._scopes = ScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import DeleteAccountClient # noqa: E402 - - self._delete_account = DeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import FieldMappingClient # noqa: E402 - - self._field_mapping = FieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import GenerateKeyClient # noqa: E402 - - self._generate_key = GenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def groups(self): - if self._groups is None: - from .resources.groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import IssuesClient # noqa: E402 - - self._issues = IssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import LinkTokenClient # noqa: E402 - - self._link_token = LinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import LinkedAccountsClient # noqa: E402 - - self._linked_accounts = LinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def messages(self): - if self._messages is None: - from .resources.messages.client import MessagesClient # noqa: E402 - - self._messages = MessagesClient(client_wrapper=self._client_wrapper) - return self._messages - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import PassthroughClient # noqa: E402 - - self._passthrough = PassthroughClient(client_wrapper=self._client_wrapper) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import RegenerateKeyClient # noqa: E402 - - self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import SyncStatusClient # noqa: E402 - - self._sync_status = SyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import ForceResyncClient # noqa: E402 - - self._force_resync = ForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def users(self): - if self._users is None: - from .resources.users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import WebhookReceiversClient # noqa: E402 - - self._webhook_receivers = WebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers - - -class AsyncChatClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawChatClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AsyncAccountDetailsClient] = None - self._account_token: typing.Optional[AsyncAccountTokenClient] = None - self._async_passthrough: typing.Optional[AsyncAsyncPassthroughClient] = None - self._audit_trail: typing.Optional[AsyncAuditTrailClient] = None - self._available_actions: typing.Optional[AsyncAvailableActionsClient] = None - self._conversations: typing.Optional[AsyncConversationsClient] = None - self._scopes: typing.Optional[AsyncScopesClient] = None - self._delete_account: typing.Optional[AsyncDeleteAccountClient] = None - self._field_mapping: typing.Optional[AsyncFieldMappingClient] = None - self._generate_key: typing.Optional[AsyncGenerateKeyClient] = None - self._groups: typing.Optional[AsyncGroupsClient] = None - self._issues: typing.Optional[AsyncIssuesClient] = None - self._link_token: typing.Optional[AsyncLinkTokenClient] = None - self._linked_accounts: typing.Optional[AsyncLinkedAccountsClient] = None - self._messages: typing.Optional[AsyncMessagesClient] = None - self._passthrough: typing.Optional[resources_chat_resources_passthrough_client_AsyncPassthroughClient] = None - self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None - self._sync_status: typing.Optional[AsyncSyncStatusClient] = None - self._force_resync: typing.Optional[AsyncForceResyncClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - self._webhook_receivers: typing.Optional[AsyncWebhookReceiversClient] = None - - @property - def with_raw_response(self) -> AsyncRawChatClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawChatClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AsyncAccountDetailsClient # noqa: E402 - - self._account_details = AsyncAccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AsyncAccountTokenClient # noqa: E402 - - self._account_token = AsyncAccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient # noqa: E402 - - self._async_passthrough = AsyncAsyncPassthroughClient(client_wrapper=self._client_wrapper) - return self._async_passthrough - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AsyncAuditTrailClient # noqa: E402 - - self._audit_trail = AsyncAuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AsyncAvailableActionsClient # noqa: E402 - - self._available_actions = AsyncAvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def conversations(self): - if self._conversations is None: - from .resources.conversations.client import AsyncConversationsClient # noqa: E402 - - self._conversations = AsyncConversationsClient(client_wrapper=self._client_wrapper) - return self._conversations - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import AsyncScopesClient # noqa: E402 - - self._scopes = AsyncScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import AsyncDeleteAccountClient # noqa: E402 - - self._delete_account = AsyncDeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import AsyncFieldMappingClient # noqa: E402 - - self._field_mapping = AsyncFieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import AsyncGenerateKeyClient # noqa: E402 - - self._generate_key = AsyncGenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def groups(self): - if self._groups is None: - from .resources.groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import AsyncIssuesClient # noqa: E402 - - self._issues = AsyncIssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import AsyncLinkTokenClient # noqa: E402 - - self._link_token = AsyncLinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import AsyncLinkedAccountsClient # noqa: E402 - - self._linked_accounts = AsyncLinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def messages(self): - if self._messages is None: - from .resources.messages.client import AsyncMessagesClient # noqa: E402 - - self._messages = AsyncMessagesClient(client_wrapper=self._client_wrapper) - return self._messages - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_chat_resources_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._passthrough = resources_chat_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import AsyncRegenerateKeyClient # noqa: E402 - - self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import AsyncSyncStatusClient # noqa: E402 - - self._sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import AsyncForceResyncClient # noqa: E402 - - self._force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def users(self): - if self._users is None: - from .resources.users.client import AsyncUsersClient # noqa: E402 - - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient # noqa: E402 - - self._webhook_receivers = AsyncWebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers diff --git a/src/merge/resources/chat/raw_client.py b/src/merge/resources/chat/raw_client.py deleted file mode 100644 index 35d27fe5..00000000 --- a/src/merge/resources/chat/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawChatClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawChatClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/merge/resources/chat/resources/__init__.py b/src/merge/resources/chat/resources/__init__.py deleted file mode 100644 index 039fd5a3..00000000 --- a/src/merge/resources/chat/resources/__init__.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - account_details, - account_token, - async_passthrough, - audit_trail, - available_actions, - conversations, - delete_account, - field_mapping, - force_resync, - generate_key, - groups, - issues, - link_token, - linked_accounts, - messages, - passthrough, - regenerate_key, - scopes, - sync_status, - users, - webhook_receivers, - ) - from .async_passthrough import AsyncPassthroughRetrieveResponse - from .conversations import ConversationsMembersListRequestExpand - from .issues import IssuesListRequestStatus - from .link_token import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage - from .linked_accounts import LinkedAccountsListRequestCategory - from .messages import MessagesListRequestOrderBy, MessagesRepliesListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = { - "AsyncPassthroughRetrieveResponse": ".async_passthrough", - "ConversationsMembersListRequestExpand": ".conversations", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".link_token", - "EndUserDetailsRequestLanguage": ".link_token", - "IssuesListRequestStatus": ".issues", - "LinkedAccountsListRequestCategory": ".linked_accounts", - "MessagesListRequestOrderBy": ".messages", - "MessagesRepliesListRequestOrderBy": ".messages", - "account_details": ".", - "account_token": ".", - "async_passthrough": ".", - "audit_trail": ".", - "available_actions": ".", - "conversations": ".", - "delete_account": ".", - "field_mapping": ".", - "force_resync": ".", - "generate_key": ".", - "groups": ".", - "issues": ".", - "link_token": ".", - "linked_accounts": ".", - "messages": ".", - "passthrough": ".", - "regenerate_key": ".", - "scopes": ".", - "sync_status": ".", - "users": ".", - "webhook_receivers": ".", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AsyncPassthroughRetrieveResponse", - "ConversationsMembersListRequestExpand", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "IssuesListRequestStatus", - "LinkedAccountsListRequestCategory", - "MessagesListRequestOrderBy", - "MessagesRepliesListRequestOrderBy", - "account_details", - "account_token", - "async_passthrough", - "audit_trail", - "available_actions", - "conversations", - "delete_account", - "field_mapping", - "force_resync", - "generate_key", - "groups", - "issues", - "link_token", - "linked_accounts", - "messages", - "passthrough", - "regenerate_key", - "scopes", - "sync_status", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/chat/resources/account_details/__init__.py b/src/merge/resources/chat/resources/account_details/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/account_details/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/account_details/client.py b/src/merge/resources/chat/resources/account_details/client.py deleted file mode 100644 index 4574e858..00000000 --- a/src/merge/resources/chat/resources/account_details/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_details import AccountDetails -from .raw_client import AsyncRawAccountDetailsClient, RawAccountDetailsClient - - -class AccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountDetailsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.account_details.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountDetailsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.account_details.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/account_details/raw_client.py b/src/merge/resources/chat/resources/account_details/raw_client.py deleted file mode 100644 index 4ea5e641..00000000 --- a/src/merge/resources/chat/resources/account_details/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_details import AccountDetails - - -class RawAccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountDetails] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountDetails] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/account_token/__init__.py b/src/merge/resources/chat/resources/account_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/account_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/account_token/client.py b/src/merge/resources/chat/resources/account_token/client.py deleted file mode 100644 index 385f91de..00000000 --- a/src/merge/resources/chat/resources/account_token/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_token import AccountToken -from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient - - -class AccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountTokenClient - """ - return self._raw_client - - def retrieve(self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.account_token.retrieve( - public_token="public_token", - ) - """ - _response = self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data - - -class AsyncAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountTokenClient - """ - return self._raw_client - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.account_token.retrieve( - public_token="public_token", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/account_token/raw_client.py b/src/merge/resources/chat/resources/account_token/raw_client.py deleted file mode 100644 index aad17bca..00000000 --- a/src/merge/resources/chat/resources/account_token/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_token import AccountToken - - -class RawAccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountToken] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/async_passthrough/__init__.py b/src/merge/resources/chat/resources/async_passthrough/__init__.py deleted file mode 100644 index 375c7953..00000000 --- a/src/merge/resources/chat/resources/async_passthrough/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/chat/resources/async_passthrough/client.py b/src/merge/resources/chat/resources/async_passthrough/client.py deleted file mode 100644 index 4bf261a9..00000000 --- a/src/merge/resources/chat/resources/async_passthrough/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .raw_client import AsyncRawAsyncPassthroughClient, RawAsyncPassthroughClient -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - from merge import Merge - from merge.resources.chat import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - """ - _response = self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data - - -class AsyncAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.chat import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/async_passthrough/raw_client.py b/src/merge/resources/chat/resources/async_passthrough/raw_client.py deleted file mode 100644 index 37006b02..00000000 --- a/src/merge/resources/chat/resources/async_passthrough/raw_client.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughReciept] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughReciept] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/async_passthrough/types/__init__.py b/src/merge/resources/chat/resources/async_passthrough/types/__init__.py deleted file mode 100644 index f6e9bec9..00000000 --- a/src/merge/resources/chat/resources/async_passthrough/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".async_passthrough_retrieve_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/chat/resources/async_passthrough/types/async_passthrough_retrieve_response.py b/src/merge/resources/chat/resources/async_passthrough/types/async_passthrough_retrieve_response.py deleted file mode 100644 index f8f87c18..00000000 --- a/src/merge/resources/chat/resources/async_passthrough/types/async_passthrough_retrieve_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.remote_response import RemoteResponse - -AsyncPassthroughRetrieveResponse = typing.Union[RemoteResponse, str] diff --git a/src/merge/resources/chat/resources/audit_trail/__init__.py b/src/merge/resources/chat/resources/audit_trail/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/audit_trail/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/audit_trail/client.py b/src/merge/resources/chat/resources/audit_trail/client.py deleted file mode 100644 index 87803242..00000000 --- a/src/merge/resources/chat/resources/audit_trail/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList -from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient - - -class AuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuditTrailClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - """ - _response = self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data - - -class AsyncAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuditTrailClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/chat/resources/audit_trail/raw_client.py b/src/merge/resources/chat/resources/audit_trail/raw_client.py deleted file mode 100644 index 3e5f7e89..00000000 --- a/src/merge/resources/chat/resources/audit_trail/raw_client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList - - -class RawAuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAuditLogEventList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAuditLogEventList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/available_actions/__init__.py b/src/merge/resources/chat/resources/available_actions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/available_actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/available_actions/client.py b/src/merge/resources/chat/resources/available_actions/client.py deleted file mode 100644 index e6dafbea..00000000 --- a/src/merge/resources/chat/resources/available_actions/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.available_actions import AvailableActions -from .raw_client import AsyncRawAvailableActionsClient, RawAvailableActionsClient - - -class AvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAvailableActionsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.available_actions.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAvailableActionsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.available_actions.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/available_actions/raw_client.py b/src/merge/resources/chat/resources/available_actions/raw_client.py deleted file mode 100644 index ba47baf7..00000000 --- a/src/merge/resources/chat/resources/available_actions/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.available_actions import AvailableActions - - -class RawAvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AvailableActions] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AvailableActions] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/conversations/__init__.py b/src/merge/resources/chat/resources/conversations/__init__.py deleted file mode 100644 index d53a3f28..00000000 --- a/src/merge/resources/chat/resources/conversations/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ConversationsMembersListRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"ConversationsMembersListRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ConversationsMembersListRequestExpand"] diff --git a/src/merge/resources/chat/resources/conversations/client.py b/src/merge/resources/chat/resources/conversations/client.py deleted file mode 100644 index 0a9100aa..00000000 --- a/src/merge/resources/chat/resources/conversations/client.py +++ /dev/null @@ -1,553 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.conversation import Conversation -from ...types.paginated_conversation_list import PaginatedConversationList -from ...types.paginated_member_list import PaginatedMemberList -from .raw_client import AsyncRawConversationsClient, RawConversationsClient -from .types.conversations_members_list_request_expand import ConversationsMembersListRequestExpand - - -class ConversationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawConversationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawConversationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawConversationsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["members"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedConversationList: - """ - Returns a list of `Conversation` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedConversationList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.conversations.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def members_list( - self, - conversation_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ConversationsMembersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedMemberList: - """ - Returns a list of `Member` objects. - - Parameters - ---------- - conversation_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ConversationsMembersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedMemberList - - - Examples - -------- - from merge import Merge - from merge.resources.chat.resources.conversations import ( - ConversationsMembersListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.conversations.members_list( - conversation_id="conversation_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ConversationsMembersListRequestExpand.GROUP, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.members_list( - conversation_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["members"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Conversation: - """ - Returns a `Conversation` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Conversation - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.conversations.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncConversationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawConversationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawConversationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawConversationsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["members"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedConversationList: - """ - Returns a list of `Conversation` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedConversationList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.conversations.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def members_list( - self, - conversation_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ConversationsMembersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedMemberList: - """ - Returns a list of `Member` objects. - - Parameters - ---------- - conversation_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ConversationsMembersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedMemberList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.chat.resources.conversations import ( - ConversationsMembersListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.conversations.members_list( - conversation_id="conversation_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ConversationsMembersListRequestExpand.GROUP, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.members_list( - conversation_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["members"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Conversation: - """ - Returns a `Conversation` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Conversation - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.conversations.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/chat/resources/conversations/raw_client.py b/src/merge/resources/chat/resources/conversations/raw_client.py deleted file mode 100644 index 6019eeb3..00000000 --- a/src/merge/resources/chat/resources/conversations/raw_client.py +++ /dev/null @@ -1,479 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.conversation import Conversation -from ...types.paginated_conversation_list import PaginatedConversationList -from ...types.paginated_member_list import PaginatedMemberList -from .types.conversations_members_list_request_expand import ConversationsMembersListRequestExpand - - -class RawConversationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["members"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedConversationList]: - """ - Returns a list of `Conversation` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedConversationList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/conversations", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedConversationList, - construct_type( - type_=PaginatedConversationList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def members_list( - self, - conversation_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ConversationsMembersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedMemberList]: - """ - Returns a list of `Member` objects. - - Parameters - ---------- - conversation_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ConversationsMembersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedMemberList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/conversations/{jsonable_encoder(conversation_id)}/members", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedMemberList, - construct_type( - type_=PaginatedMemberList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["members"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Conversation]: - """ - Returns a `Conversation` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Conversation] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/conversations/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Conversation, - construct_type( - type_=Conversation, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawConversationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["members"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedConversationList]: - """ - Returns a list of `Conversation` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedConversationList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/conversations", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedConversationList, - construct_type( - type_=PaginatedConversationList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def members_list( - self, - conversation_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ConversationsMembersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedMemberList]: - """ - Returns a list of `Member` objects. - - Parameters - ---------- - conversation_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ConversationsMembersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedMemberList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/conversations/{jsonable_encoder(conversation_id)}/members", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedMemberList, - construct_type( - type_=PaginatedMemberList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["members"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Conversation]: - """ - Returns a `Conversation` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["members"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Conversation] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/conversations/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Conversation, - construct_type( - type_=Conversation, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/conversations/types/__init__.py b/src/merge/resources/chat/resources/conversations/types/__init__.py deleted file mode 100644 index 21ba60f0..00000000 --- a/src/merge/resources/chat/resources/conversations/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .conversations_members_list_request_expand import ConversationsMembersListRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ConversationsMembersListRequestExpand": ".conversations_members_list_request_expand" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ConversationsMembersListRequestExpand"] diff --git a/src/merge/resources/chat/resources/conversations/types/conversations_members_list_request_expand.py b/src/merge/resources/chat/resources/conversations/types/conversations_members_list_request_expand.py deleted file mode 100644 index 0653db6d..00000000 --- a/src/merge/resources/chat/resources/conversations/types/conversations_members_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ConversationsMembersListRequestExpand(str, enum.Enum): - GROUP = "group" - USER = "user" - USER_GROUP = "user,group" - - def visit( - self, - group: typing.Callable[[], T_Result], - user: typing.Callable[[], T_Result], - user_group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ConversationsMembersListRequestExpand.GROUP: - return group() - if self is ConversationsMembersListRequestExpand.USER: - return user() - if self is ConversationsMembersListRequestExpand.USER_GROUP: - return user_group() diff --git a/src/merge/resources/chat/resources/delete_account/__init__.py b/src/merge/resources/chat/resources/delete_account/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/delete_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/delete_account/client.py b/src/merge/resources/chat/resources/delete_account/client.py deleted file mode 100644 index 44dab555..00000000 --- a/src/merge/resources/chat/resources/delete_account/client.py +++ /dev/null @@ -1,99 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .raw_client import AsyncRawDeleteAccountClient, RawDeleteAccountClient - - -class DeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeleteAccountClient - """ - return self._raw_client - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.delete_account.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeleteAccountClient - """ - return self._raw_client - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.delete_account.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/delete_account/raw_client.py b/src/merge/resources/chat/resources/delete_account/raw_client.py deleted file mode 100644 index 67cfa096..00000000 --- a/src/merge/resources/chat/resources/delete_account/raw_client.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions - - -class RawDeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/field_mapping/__init__.py b/src/merge/resources/chat/resources/field_mapping/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/field_mapping/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/field_mapping/client.py b/src/merge/resources/chat/resources/field_mapping/client.py deleted file mode 100644 index c781dd2c..00000000 --- a/src/merge/resources/chat/resources/field_mapping/client.py +++ /dev/null @@ -1,664 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse -from .raw_client import AsyncRawFieldMappingClient, RawFieldMappingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFieldMappingClient - """ - return self._raw_client - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - """ - _response = self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - """ - _response = self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - """ - _response = self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.field_mapping.target_fields_retrieve() - """ - _response = self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data - - -class AsyncFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFieldMappingClient - """ - return self._raw_client - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.field_mapping.target_fields_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/field_mapping/raw_client.py b/src/merge/resources/chat/resources/field_mapping/raw_client.py deleted file mode 100644 index e671dd4b..00000000 --- a/src/merge/resources/chat/resources/field_mapping/raw_client.py +++ /dev/null @@ -1,672 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/force_resync/__init__.py b/src/merge/resources/chat/resources/force_resync/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/force_resync/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/force_resync/client.py b/src/merge/resources/chat/resources/force_resync/client.py deleted file mode 100644 index bee5aacd..00000000 --- a/src/merge/resources/chat/resources/force_resync/client.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.sync_status import SyncStatus -from .raw_client import AsyncRawForceResyncClient, RawForceResyncClient - - -class ForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawForceResyncClient - """ - return self._raw_client - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.force_resync.sync_status_resync_create() - """ - _response = self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data - - -class AsyncForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawForceResyncClient - """ - return self._raw_client - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.force_resync.sync_status_resync_create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/force_resync/raw_client.py b/src/merge/resources/chat/resources/force_resync/raw_client.py deleted file mode 100644 index 76da107a..00000000 --- a/src/merge/resources/chat/resources/force_resync/raw_client.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.sync_status import SyncStatus - - -class RawForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SyncStatus]] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SyncStatus]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/generate_key/__init__.py b/src/merge/resources/chat/resources/generate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/generate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/generate_key/client.py b/src/merge/resources/chat/resources/generate_key/client.py deleted file mode 100644 index 0b0e3276..00000000 --- a/src/merge/resources/chat/resources/generate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawGenerateKeyClient, RawGenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.generate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.generate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/generate_key/raw_client.py b/src/merge/resources/chat/resources/generate_key/raw_client.py deleted file mode 100644 index 869fcbb1..00000000 --- a/src/merge/resources/chat/resources/generate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/groups/__init__.py b/src/merge/resources/chat/resources/groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/groups/client.py b/src/merge/resources/chat/resources/groups/client.py deleted file mode 100644 index 17627ccb..00000000 --- a/src/merge/resources/chat/resources/groups/client.py +++ /dev/null @@ -1,387 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.group import Group -from ...types.paginated_group_list import PaginatedGroupList -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["users"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGroupList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["users"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Group: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Group - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["users"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGroupList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["users"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Group: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Group - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/chat/resources/groups/raw_client.py b/src/merge/resources/chat/resources/groups/raw_client.py deleted file mode 100644 index 77c76e71..00000000 --- a/src/merge/resources/chat/resources/groups/raw_client.py +++ /dev/null @@ -1,331 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.group import Group -from ...types.paginated_group_list import PaginatedGroupList - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["users"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedGroupList]: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedGroupList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGroupList, - construct_type( - type_=PaginatedGroupList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["users"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Group]: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Group] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/groups/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Group, - construct_type( - type_=Group, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["users"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedGroupList]: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedGroupList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGroupList, - construct_type( - type_=PaginatedGroupList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["users"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Group]: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["users"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Group] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/groups/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Group, - construct_type( - type_=Group, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/issues/__init__.py b/src/merge/resources/chat/resources/issues/__init__.py deleted file mode 100644 index 3ca1094b..00000000 --- a/src/merge/resources/chat/resources/issues/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/chat/resources/issues/client.py b/src/merge/resources/chat/resources/issues/client.py deleted file mode 100644 index 5f5375b3..00000000 --- a/src/merge/resources/chat/resources/issues/client.py +++ /dev/null @@ -1,378 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .raw_client import AsyncRawIssuesClient, RawIssuesClient -from .types.issues_list_request_status import IssuesListRequestStatus - - -class IssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIssuesClient - """ - return self._raw_client - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.chat.resources.issues import IssuesListRequestStatus - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - """ - _response = self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.issues.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIssuesClient - """ - return self._raw_client - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.chat.resources.issues import IssuesListRequestStatus - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.issues.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/issues/raw_client.py b/src/merge/resources/chat/resources/issues/raw_client.py deleted file mode 100644 index 3144b225..00000000 --- a/src/merge/resources/chat/resources/issues/raw_client.py +++ /dev/null @@ -1,336 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .types.issues_list_request_status import IssuesListRequestStatus - - -class RawIssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIssueList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Issue] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIssueList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Issue] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/issues/types/__init__.py b/src/merge/resources/chat/resources/issues/types/__init__.py deleted file mode 100644 index 88fbf977..00000000 --- a/src/merge/resources/chat/resources/issues/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .issues_list_request_status import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/chat/resources/issues/types/issues_list_request_status.py b/src/merge/resources/chat/resources/issues/types/issues_list_request_status.py deleted file mode 100644 index 2bd3521e..00000000 --- a/src/merge/resources/chat/resources/issues/types/issues_list_request_status.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssuesListRequestStatus(str, enum.Enum): - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssuesListRequestStatus.ONGOING: - return ongoing() - if self is IssuesListRequestStatus.RESOLVED: - return resolved() diff --git a/src/merge/resources/chat/resources/link_token/__init__.py b/src/merge/resources/chat/resources/link_token/__init__.py deleted file mode 100644 index be8c3839..00000000 --- a/src/merge/resources/chat/resources/link_token/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".types", - "EndUserDetailsRequestLanguage": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/chat/resources/link_token/client.py b/src/merge/resources/chat/resources/link_token/client.py deleted file mode 100644 index e5851e8a..00000000 --- a/src/merge/resources/chat/resources/link_token/client.py +++ /dev/null @@ -1,290 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkTokenClient - """ - return self._raw_client - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. The link token expires after single use. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - from merge import Merge - from merge.resources.chat import CategoriesEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - """ - _response = self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkTokenClient - """ - return self._raw_client - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. The link token expires after single use. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.chat import CategoriesEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/chat/resources/link_token/raw_client.py b/src/merge/resources/chat/resources/link_token/raw_client.py deleted file mode 100644 index 2bd4c7c8..00000000 --- a/src/merge/resources/chat/resources/link_token/raw_client.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. The link token expires after single use. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LinkToken] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. The link token expires after single use. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LinkToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/link_token/types/__init__.py b/src/merge/resources/chat/resources/link_token/types/__init__.py deleted file mode 100644 index 55cc1d4e..00000000 --- a/src/merge/resources/chat/resources/link_token/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, - ) - from .end_user_details_request_language import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".end_user_details_request_completed_account_initial_screen", - "EndUserDetailsRequestLanguage": ".end_user_details_request_language", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/chat/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py b/src/merge/resources/chat/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py deleted file mode 100644 index 0c5d586d..00000000 --- a/src/merge/resources/chat/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - -EndUserDetailsRequestCompletedAccountInitialScreen = typing.Union[CompletedAccountInitialScreenEnum, str] diff --git a/src/merge/resources/chat/resources/link_token/types/end_user_details_request_language.py b/src/merge/resources/chat/resources/link_token/types/end_user_details_request_language.py deleted file mode 100644 index 65c4b44a..00000000 --- a/src/merge/resources/chat/resources/link_token/types/end_user_details_request_language.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.language_enum import LanguageEnum - -EndUserDetailsRequestLanguage = typing.Union[LanguageEnum, str] diff --git a/src/merge/resources/chat/resources/linked_accounts/__init__.py b/src/merge/resources/chat/resources/linked_accounts/__init__.py deleted file mode 100644 index 0b9e42b4..00000000 --- a/src/merge/resources/chat/resources/linked_accounts/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/chat/resources/linked_accounts/client.py b/src/merge/resources/chat/resources/linked_accounts/client.py deleted file mode 100644 index 748f3fbe..00000000 --- a/src/merge/resources/chat/resources/linked_accounts/client.py +++ /dev/null @@ -1,297 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class LinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - * `chat` - chat - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - from merge import Merge - from merge.resources.chat.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - """ - _response = self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - * `chat` - chat - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.chat.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/chat/resources/linked_accounts/raw_client.py b/src/merge/resources/chat/resources/linked_accounts/raw_client.py deleted file mode 100644 index 08e2d29b..00000000 --- a/src/merge/resources/chat/resources/linked_accounts/raw_client.py +++ /dev/null @@ -1,250 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class RawLinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - * `chat` - chat - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - * `chat` - chat - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/linked_accounts/types/__init__.py b/src/merge/resources/chat/resources/linked_accounts/types/__init__.py deleted file mode 100644 index a28f38cc..00000000 --- a/src/merge/resources/chat/resources/linked_accounts/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/chat/resources/linked_accounts/types/linked_accounts_list_request_category.py b/src/merge/resources/chat/resources/linked_accounts/types/linked_accounts_list_request_category.py deleted file mode 100644 index 97df0150..00000000 --- a/src/merge/resources/chat/resources/linked_accounts/types/linked_accounts_list_request_category.py +++ /dev/null @@ -1,49 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LinkedAccountsListRequestCategory(str, enum.Enum): - ACCOUNTING = "accounting" - ATS = "ats" - CHAT = "chat" - CRM = "crm" - FILESTORAGE = "filestorage" - HRIS = "hris" - KNOWLEDGEBASE = "knowledgebase" - MKTG = "mktg" - TICKETING = "ticketing" - - def visit( - self, - accounting: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - chat: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - hris: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LinkedAccountsListRequestCategory.ACCOUNTING: - return accounting() - if self is LinkedAccountsListRequestCategory.ATS: - return ats() - if self is LinkedAccountsListRequestCategory.CHAT: - return chat() - if self is LinkedAccountsListRequestCategory.CRM: - return crm() - if self is LinkedAccountsListRequestCategory.FILESTORAGE: - return filestorage() - if self is LinkedAccountsListRequestCategory.HRIS: - return hris() - if self is LinkedAccountsListRequestCategory.KNOWLEDGEBASE: - return knowledgebase() - if self is LinkedAccountsListRequestCategory.MKTG: - return mktg() - if self is LinkedAccountsListRequestCategory.TICKETING: - return ticketing() diff --git a/src/merge/resources/chat/resources/messages/__init__.py b/src/merge/resources/chat/resources/messages/__init__.py deleted file mode 100644 index 07bbf100..00000000 --- a/src/merge/resources/chat/resources/messages/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import MessagesListRequestOrderBy, MessagesRepliesListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = { - "MessagesListRequestOrderBy": ".types", - "MessagesRepliesListRequestOrderBy": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["MessagesListRequestOrderBy", "MessagesRepliesListRequestOrderBy"] diff --git a/src/merge/resources/chat/resources/messages/client.py b/src/merge/resources/chat/resources/messages/client.py deleted file mode 100644 index 04c51f18..00000000 --- a/src/merge/resources/chat/resources/messages/client.py +++ /dev/null @@ -1,571 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.message import Message -from ...types.paginated_message_list import PaginatedMessageList -from .raw_client import AsyncRawMessagesClient, RawMessagesClient -from .types.messages_list_request_order_by import MessagesListRequestOrderBy -from .types.messages_replies_list_request_order_by import MessagesRepliesListRequestOrderBy - - -class MessagesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawMessagesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawMessagesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawMessagesClient - """ - return self._raw_client - - def list( - self, - *, - conversation_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[MessagesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - root_message: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedMessageList: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - conversation_id : typing.Optional[str] - Filter messages by conversation ID. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[MessagesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_message : typing.Optional[str] - If provided as 'true', will only return root messages (messages without a parent message). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedMessageList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.chat.resources.messages import MessagesListRequestOrderBy - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.messages.list( - conversation_id="conversation_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=MessagesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - remote_id="remote_id", - root_message="root_message", - ) - """ - _response = self._raw_client.list( - conversation_id=conversation_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_id=remote_id, - root_message=root_message, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Message: - """ - Returns a `Message` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Message - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.messages.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def replies_list( - self, - message_id: str, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - order_by: typing.Optional[MessagesRepliesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedMessageList: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - message_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - order_by : typing.Optional[MessagesRepliesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedMessageList - - - Examples - -------- - from merge import Merge - from merge.resources.chat.resources.messages import ( - MessagesRepliesListRequestOrderBy, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.messages.replies_list( - message_id="message_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - order_by=MessagesRepliesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - ) - """ - _response = self._raw_client.replies_list( - message_id, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - order_by=order_by, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncMessagesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawMessagesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawMessagesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawMessagesClient - """ - return self._raw_client - - async def list( - self, - *, - conversation_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[MessagesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - root_message: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedMessageList: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - conversation_id : typing.Optional[str] - Filter messages by conversation ID. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[MessagesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_message : typing.Optional[str] - If provided as 'true', will only return root messages (messages without a parent message). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedMessageList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.chat.resources.messages import MessagesListRequestOrderBy - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.messages.list( - conversation_id="conversation_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=MessagesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - remote_id="remote_id", - root_message="root_message", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - conversation_id=conversation_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_id=remote_id, - root_message=root_message, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Message: - """ - Returns a `Message` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Message - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.messages.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def replies_list( - self, - message_id: str, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - order_by: typing.Optional[MessagesRepliesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedMessageList: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - message_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - order_by : typing.Optional[MessagesRepliesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedMessageList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.chat.resources.messages import ( - MessagesRepliesListRequestOrderBy, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.messages.replies_list( - message_id="message_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - order_by=MessagesRepliesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.replies_list( - message_id, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - order_by=order_by, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/chat/resources/messages/raw_client.py b/src/merge/resources/chat/resources/messages/raw_client.py deleted file mode 100644 index ef732e06..00000000 --- a/src/merge/resources/chat/resources/messages/raw_client.py +++ /dev/null @@ -1,489 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.message import Message -from ...types.paginated_message_list import PaginatedMessageList -from .types.messages_list_request_order_by import MessagesListRequestOrderBy -from .types.messages_replies_list_request_order_by import MessagesRepliesListRequestOrderBy - - -class RawMessagesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - conversation_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[MessagesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - root_message: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedMessageList]: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - conversation_id : typing.Optional[str] - Filter messages by conversation ID. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[MessagesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_message : typing.Optional[str] - If provided as 'true', will only return root messages (messages without a parent message). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedMessageList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/messages", - method="GET", - params={ - "conversation_id": conversation_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_id": remote_id, - "root_message": root_message, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedMessageList, - construct_type( - type_=PaginatedMessageList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Message]: - """ - Returns a `Message` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Message] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/messages/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Message, - construct_type( - type_=Message, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def replies_list( - self, - message_id: str, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - order_by: typing.Optional[MessagesRepliesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedMessageList]: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - message_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - order_by : typing.Optional[MessagesRepliesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedMessageList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/messages/{jsonable_encoder(message_id)}/replies", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "order_by": order_by, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedMessageList, - construct_type( - type_=PaginatedMessageList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawMessagesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - conversation_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[MessagesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - root_message: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedMessageList]: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - conversation_id : typing.Optional[str] - Filter messages by conversation ID. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[MessagesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_message : typing.Optional[str] - If provided as 'true', will only return root messages (messages without a parent message). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedMessageList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/messages", - method="GET", - params={ - "conversation_id": conversation_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_id": remote_id, - "root_message": root_message, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedMessageList, - construct_type( - type_=PaginatedMessageList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Message]: - """ - Returns a `Message` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Message] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/messages/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Message, - construct_type( - type_=Message, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def replies_list( - self, - message_id: str, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - order_by: typing.Optional[MessagesRepliesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedMessageList]: - """ - Returns a list of `Message` objects. - - Parameters - ---------- - message_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - order_by : typing.Optional[MessagesRepliesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedMessageList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/messages/{jsonable_encoder(message_id)}/replies", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "order_by": order_by, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedMessageList, - construct_type( - type_=PaginatedMessageList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/messages/types/__init__.py b/src/merge/resources/chat/resources/messages/types/__init__.py deleted file mode 100644 index fac1eeff..00000000 --- a/src/merge/resources/chat/resources/messages/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .messages_list_request_order_by import MessagesListRequestOrderBy - from .messages_replies_list_request_order_by import MessagesRepliesListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = { - "MessagesListRequestOrderBy": ".messages_list_request_order_by", - "MessagesRepliesListRequestOrderBy": ".messages_replies_list_request_order_by", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["MessagesListRequestOrderBy", "MessagesRepliesListRequestOrderBy"] diff --git a/src/merge/resources/chat/resources/messages/types/messages_list_request_order_by.py b/src/merge/resources/chat/resources/messages/types/messages_list_request_order_by.py deleted file mode 100644 index f10d0646..00000000 --- a/src/merge/resources/chat/resources/messages/types/messages_list_request_order_by.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MessagesListRequestOrderBy(str, enum.Enum): - REMOTE_CREATED_AT_DESCENDING = "-remote_created_at" - REMOTE_CREATED_AT_ASCENDING = "remote_created_at" - - def visit( - self, - remote_created_at_descending: typing.Callable[[], T_Result], - remote_created_at_ascending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MessagesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING: - return remote_created_at_descending() - if self is MessagesListRequestOrderBy.REMOTE_CREATED_AT_ASCENDING: - return remote_created_at_ascending() diff --git a/src/merge/resources/chat/resources/messages/types/messages_replies_list_request_order_by.py b/src/merge/resources/chat/resources/messages/types/messages_replies_list_request_order_by.py deleted file mode 100644 index 6b8df524..00000000 --- a/src/merge/resources/chat/resources/messages/types/messages_replies_list_request_order_by.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MessagesRepliesListRequestOrderBy(str, enum.Enum): - REMOTE_CREATED_AT_DESCENDING = "-remote_created_at" - REMOTE_CREATED_AT_ASCENDING = "remote_created_at" - - def visit( - self, - remote_created_at_descending: typing.Callable[[], T_Result], - remote_created_at_ascending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MessagesRepliesListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING: - return remote_created_at_descending() - if self is MessagesRepliesListRequestOrderBy.REMOTE_CREATED_AT_ASCENDING: - return remote_created_at_ascending() diff --git a/src/merge/resources/chat/resources/passthrough/__init__.py b/src/merge/resources/chat/resources/passthrough/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/passthrough/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/passthrough/client.py b/src/merge/resources/chat/resources/passthrough/client.py deleted file mode 100644 index d5479c3b..00000000 --- a/src/merge/resources/chat/resources/passthrough/client.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse -from .raw_client import AsyncRawPassthroughClient, RawPassthroughClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.chat import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.chat import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/passthrough/raw_client.py b/src/merge/resources/chat/resources/passthrough/raw_client.py deleted file mode 100644 index d87bb971..00000000 --- a/src/merge/resources/chat/resources/passthrough/raw_client.py +++ /dev/null @@ -1,111 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/regenerate_key/__init__.py b/src/merge/resources/chat/resources/regenerate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/regenerate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/regenerate_key/client.py b/src/merge/resources/chat/resources/regenerate_key/client.py deleted file mode 100644 index f5de51ae..00000000 --- a/src/merge/resources/chat/resources/regenerate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawRegenerateKeyClient, RawRegenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRegenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.regenerate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRegenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.regenerate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/regenerate_key/raw_client.py b/src/merge/resources/chat/resources/regenerate_key/raw_client.py deleted file mode 100644 index 55fed130..00000000 --- a/src/merge/resources/chat/resources/regenerate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/scopes/__init__.py b/src/merge/resources/chat/resources/scopes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/scopes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/scopes/client.py b/src/merge/resources/chat/resources/scopes/client.py deleted file mode 100644 index 6d0bbdda..00000000 --- a/src/merge/resources/chat/resources/scopes/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from .raw_client import AsyncRawScopesClient, RawScopesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScopesClient - """ - return self._raw_client - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.scopes.default_scopes_retrieve() - """ - _response = self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.scopes.linked_account_scopes_retrieve() - """ - _response = self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - from merge.resources.chat import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - """ - _response = self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data - - -class AsyncScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScopesClient - """ - return self._raw_client - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.scopes.default_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.scopes.linked_account_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.chat import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/chat/resources/scopes/raw_client.py b/src/merge/resources/chat/resources/scopes/raw_client.py deleted file mode 100644 index 5b80be62..00000000 --- a/src/merge/resources/chat/resources/scopes/raw_client.py +++ /dev/null @@ -1,267 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/sync_status/__init__.py b/src/merge/resources/chat/resources/sync_status/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/sync_status/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/sync_status/client.py b/src/merge/resources/chat/resources/sync_status/client.py deleted file mode 100644 index 20b0a2af..00000000 --- a/src/merge/resources/chat/resources/sync_status/client.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList -from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient - - -class SyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSyncStatusClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data - - -class AsyncSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSyncStatusClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data diff --git a/src/merge/resources/chat/resources/sync_status/raw_client.py b/src/merge/resources/chat/resources/sync_status/raw_client.py deleted file mode 100644 index 2e94b022..00000000 --- a/src/merge/resources/chat/resources/sync_status/raw_client.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_sync_status_list import PaginatedSyncStatusList - - -class RawSyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedSyncStatusList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedSyncStatusList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/users/__init__.py b/src/merge/resources/chat/resources/users/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/users/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/users/client.py b/src/merge/resources/chat/resources/users/client.py deleted file mode 100644 index cdc6ba3c..00000000 --- a/src/merge/resources/chat/resources/users/client.py +++ /dev/null @@ -1,387 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User -from .raw_client import AsyncRawUsersClient, RawUsersClient - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/chat/resources/users/raw_client.py b/src/merge/resources/chat/resources/users/raw_client.py deleted file mode 100644 index c8c16441..00000000 --- a/src/merge/resources/chat/resources/users/raw_client.py +++ /dev/null @@ -1,331 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedUserList] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[User] - - """ - _response = self._client_wrapper.httpx_client.request( - f"chat/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedUserList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["groups"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["groups"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[User] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"chat/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/resources/webhook_receivers/__init__.py b/src/merge/resources/chat/resources/webhook_receivers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/chat/resources/webhook_receivers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/chat/resources/webhook_receivers/client.py b/src/merge/resources/chat/resources/webhook_receivers/client.py deleted file mode 100644 index 266d80a5..00000000 --- a/src/merge/resources/chat/resources/webhook_receivers/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.webhook_receiver import WebhookReceiver -from .raw_client import AsyncRawWebhookReceiversClient, RawWebhookReceiversClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class WebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawWebhookReceiversClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.webhook_receivers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.chat.webhook_receivers.create( - event="event", - is_active=True, - ) - """ - _response = self._raw_client.create(event=event, is_active=is_active, key=key, request_options=request_options) - return _response.data - - -class AsyncWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawWebhookReceiversClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.webhook_receivers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.chat.webhook_receivers.create( - event="event", - is_active=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - event=event, is_active=is_active, key=key, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/chat/resources/webhook_receivers/raw_client.py b/src/merge/resources/chat/resources/webhook_receivers/raw_client.py deleted file mode 100644 index 56ad6750..00000000 --- a/src/merge/resources/chat/resources/webhook_receivers/raw_client.py +++ /dev/null @@ -1,208 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.webhook_receiver import WebhookReceiver - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawWebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[WebhookReceiver]] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[WebhookReceiver] - - """ - _response = self._client_wrapper.httpx_client.request( - "chat/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[WebhookReceiver]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[WebhookReceiver] - - """ - _response = await self._client_wrapper.httpx_client.request( - "chat/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/chat/types/__init__.py b/src/merge/resources/chat/types/__init__.py deleted file mode 100644 index 83dc82b8..00000000 --- a/src/merge/resources/chat/types/__init__.py +++ /dev/null @@ -1,302 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .account_details import AccountDetails - from .account_details_and_actions import AccountDetailsAndActions - from .account_details_and_actions_category import AccountDetailsAndActionsCategory - from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration - from .account_details_and_actions_status import AccountDetailsAndActionsStatus - from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - from .account_details_category import AccountDetailsCategory - from .account_integration import AccountIntegration - from .account_token import AccountToken - from .advanced_metadata import AdvancedMetadata - from .async_passthrough_reciept import AsyncPassthroughReciept - from .audit_log_event import AuditLogEvent - from .audit_log_event_event_type import AuditLogEventEventType - from .audit_log_event_role import AuditLogEventRole - from .available_actions import AvailableActions - from .categories_enum import CategoriesEnum - from .category_enum import CategoryEnum - from .common_model_scope_api import CommonModelScopeApi - from .common_model_scopes_body_request import CommonModelScopesBodyRequest - from .completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - from .conversation import Conversation - from .conversation_type import ConversationType - from .data_passthrough_request import DataPassthroughRequest - from .data_passthrough_request_method import DataPassthroughRequestMethod - from .data_passthrough_request_request_format import DataPassthroughRequestRequestFormat - from .debug_mode_log import DebugModeLog - from .debug_model_log_summary import DebugModelLogSummary - from .enabled_actions_enum import EnabledActionsEnum - from .encoding_enum import EncodingEnum - from .error_validation_problem import ErrorValidationProblem - from .event_type_enum import EventTypeEnum - from .external_target_field_api import ExternalTargetFieldApi - from .external_target_field_api_response import ExternalTargetFieldApiResponse - from .field_mapping_api_instance import FieldMappingApiInstance - from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField - from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ) - from .field_mapping_api_instance_response import FieldMappingApiInstanceResponse - from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - from .field_mapping_instance_response import FieldMappingInstanceResponse - from .field_permission_deserializer import FieldPermissionDeserializer - from .field_permission_deserializer_request import FieldPermissionDeserializerRequest - from .group import Group - from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - from .individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - from .issue import Issue - from .issue_status import IssueStatus - from .issue_status_enum import IssueStatusEnum - from .language_enum import LanguageEnum - from .last_sync_result_enum import LastSyncResultEnum - from .link_token import LinkToken - from .member import Member - from .message import Message - from .method_enum import MethodEnum - from .model_operation import ModelOperation - from .model_permission_deserializer import ModelPermissionDeserializer - from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - from .multipart_form_field_request import MultipartFormFieldRequest - from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList - from .paginated_audit_log_event_list import PaginatedAuditLogEventList - from .paginated_conversation_list import PaginatedConversationList - from .paginated_group_list import PaginatedGroupList - from .paginated_issue_list import PaginatedIssueList - from .paginated_member_list import PaginatedMemberList - from .paginated_message_list import PaginatedMessageList - from .paginated_sync_status_list import PaginatedSyncStatusList - from .paginated_user_list import PaginatedUserList - from .remote_data import RemoteData - from .remote_endpoint_info import RemoteEndpointInfo - from .remote_field_api import RemoteFieldApi - from .remote_field_api_advanced_metadata import RemoteFieldApiAdvancedMetadata - from .remote_field_api_coverage import RemoteFieldApiCoverage - from .remote_field_api_response import RemoteFieldApiResponse - from .remote_key import RemoteKey - from .remote_response import RemoteResponse - from .remote_response_response_type import RemoteResponseResponseType - from .request_format_enum import RequestFormatEnum - from .response_type_enum import ResponseTypeEnum - from .role_enum import RoleEnum - from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum - from .status_fd_5_enum import StatusFd5Enum - from .sync_status import SyncStatus - from .sync_status_last_sync_result import SyncStatusLastSyncResult - from .sync_status_status import SyncStatusStatus - from .type_enum import TypeEnum - from .user import User - from .validation_problem_source import ValidationProblemSource - from .warning_validation_problem import WarningValidationProblem - from .webhook_receiver import WebhookReceiver -_dynamic_imports: typing.Dict[str, str] = { - "AccountDetails": ".account_details", - "AccountDetailsAndActions": ".account_details_and_actions", - "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", - "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", - "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", - "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", - "AccountDetailsCategory": ".account_details_category", - "AccountIntegration": ".account_integration", - "AccountToken": ".account_token", - "AdvancedMetadata": ".advanced_metadata", - "AsyncPassthroughReciept": ".async_passthrough_reciept", - "AuditLogEvent": ".audit_log_event", - "AuditLogEventEventType": ".audit_log_event_event_type", - "AuditLogEventRole": ".audit_log_event_role", - "AvailableActions": ".available_actions", - "CategoriesEnum": ".categories_enum", - "CategoryEnum": ".category_enum", - "CommonModelScopeApi": ".common_model_scope_api", - "CommonModelScopesBodyRequest": ".common_model_scopes_body_request", - "CompletedAccountInitialScreenEnum": ".completed_account_initial_screen_enum", - "Conversation": ".conversation", - "ConversationType": ".conversation_type", - "DataPassthroughRequest": ".data_passthrough_request", - "DataPassthroughRequestMethod": ".data_passthrough_request_method", - "DataPassthroughRequestRequestFormat": ".data_passthrough_request_request_format", - "DebugModeLog": ".debug_mode_log", - "DebugModelLogSummary": ".debug_model_log_summary", - "EnabledActionsEnum": ".enabled_actions_enum", - "EncodingEnum": ".encoding_enum", - "ErrorValidationProblem": ".error_validation_problem", - "EventTypeEnum": ".event_type_enum", - "ExternalTargetFieldApi": ".external_target_field_api", - "ExternalTargetFieldApiResponse": ".external_target_field_api_response", - "FieldMappingApiInstance": ".field_mapping_api_instance", - "FieldMappingApiInstanceRemoteField": ".field_mapping_api_instance_remote_field", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".field_mapping_api_instance_remote_field_remote_endpoint_info", - "FieldMappingApiInstanceResponse": ".field_mapping_api_instance_response", - "FieldMappingApiInstanceTargetField": ".field_mapping_api_instance_target_field", - "FieldMappingInstanceResponse": ".field_mapping_instance_response", - "FieldPermissionDeserializer": ".field_permission_deserializer", - "FieldPermissionDeserializerRequest": ".field_permission_deserializer_request", - "Group": ".group", - "IndividualCommonModelScopeDeserializer": ".individual_common_model_scope_deserializer", - "IndividualCommonModelScopeDeserializerRequest": ".individual_common_model_scope_deserializer_request", - "Issue": ".issue", - "IssueStatus": ".issue_status", - "IssueStatusEnum": ".issue_status_enum", - "LanguageEnum": ".language_enum", - "LastSyncResultEnum": ".last_sync_result_enum", - "LinkToken": ".link_token", - "Member": ".member", - "Message": ".message", - "MethodEnum": ".method_enum", - "ModelOperation": ".model_operation", - "ModelPermissionDeserializer": ".model_permission_deserializer", - "ModelPermissionDeserializerRequest": ".model_permission_deserializer_request", - "MultipartFormFieldRequest": ".multipart_form_field_request", - "MultipartFormFieldRequestEncoding": ".multipart_form_field_request_encoding", - "PaginatedAccountDetailsAndActionsList": ".paginated_account_details_and_actions_list", - "PaginatedAuditLogEventList": ".paginated_audit_log_event_list", - "PaginatedConversationList": ".paginated_conversation_list", - "PaginatedGroupList": ".paginated_group_list", - "PaginatedIssueList": ".paginated_issue_list", - "PaginatedMemberList": ".paginated_member_list", - "PaginatedMessageList": ".paginated_message_list", - "PaginatedSyncStatusList": ".paginated_sync_status_list", - "PaginatedUserList": ".paginated_user_list", - "RemoteData": ".remote_data", - "RemoteEndpointInfo": ".remote_endpoint_info", - "RemoteFieldApi": ".remote_field_api", - "RemoteFieldApiAdvancedMetadata": ".remote_field_api_advanced_metadata", - "RemoteFieldApiCoverage": ".remote_field_api_coverage", - "RemoteFieldApiResponse": ".remote_field_api_response", - "RemoteKey": ".remote_key", - "RemoteResponse": ".remote_response", - "RemoteResponseResponseType": ".remote_response_response_type", - "RequestFormatEnum": ".request_format_enum", - "ResponseTypeEnum": ".response_type_enum", - "RoleEnum": ".role_enum", - "SelectiveSyncConfigurationsUsageEnum": ".selective_sync_configurations_usage_enum", - "StatusFd5Enum": ".status_fd_5_enum", - "SyncStatus": ".sync_status", - "SyncStatusLastSyncResult": ".sync_status_last_sync_result", - "SyncStatusStatus": ".sync_status_status", - "TypeEnum": ".type_enum", - "User": ".user", - "ValidationProblemSource": ".validation_problem_source", - "WarningValidationProblem": ".warning_validation_problem", - "WebhookReceiver": ".webhook_receiver", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompletedAccountInitialScreenEnum", - "Conversation", - "ConversationType", - "DataPassthroughRequest", - "DataPassthroughRequestMethod", - "DataPassthroughRequestRequestFormat", - "DebugModeLog", - "DebugModelLogSummary", - "EnabledActionsEnum", - "EncodingEnum", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "Group", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "Member", - "Message", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAuditLogEventList", - "PaginatedConversationList", - "PaginatedGroupList", - "PaginatedIssueList", - "PaginatedMemberList", - "PaginatedMessageList", - "PaginatedSyncStatusList", - "PaginatedUserList", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiAdvancedMetadata", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "TypeEnum", - "User", - "ValidationProblemSource", - "WarningValidationProblem", - "WebhookReceiver", -] diff --git a/src/merge/resources/chat/types/account_details.py b/src/merge/resources/chat/types/account_details.py deleted file mode 100644 index 98923cd8..00000000 --- a/src/merge/resources/chat/types/account_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_category import AccountDetailsCategory - - -class AccountDetails(UncheckedBaseModel): - id: typing.Optional[str] = None - integration: typing.Optional[str] = None - integration_slug: typing.Optional[str] = None - category: typing.Optional[AccountDetailsCategory] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: typing.Optional[str] = None - end_user_email_address: typing.Optional[str] = None - status: typing.Optional[str] = None - webhook_listener_url: typing.Optional[str] = None - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - account_type: typing.Optional[str] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which account completes the linking flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/account_details_and_actions.py b/src/merge/resources/chat/types/account_details_and_actions.py deleted file mode 100644 index 93c874ed..00000000 --- a/src/merge/resources/chat/types/account_details_and_actions.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions_category import AccountDetailsAndActionsCategory -from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status import AccountDetailsAndActionsStatus - - -class AccountDetailsAndActions(UncheckedBaseModel): - """ - # The LinkedAccount Object - ### Description - The `LinkedAccount` object is used to represent an end user's link with a specific integration. - - ### Usage Example - View a list of your organization's `LinkedAccount` objects. - """ - - id: str - category: typing.Optional[AccountDetailsAndActionsCategory] = None - status: AccountDetailsAndActionsStatus - status_detail: typing.Optional[str] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: str - end_user_email_address: str - subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The tenant or domain the customer has provided access to. - """ - - webhook_listener_url: str - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - integration: typing.Optional[AccountDetailsAndActionsIntegration] = None - account_type: str - completed_at: dt.datetime - integration_specific_fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/account_details_and_actions_category.py b/src/merge/resources/chat/types/account_details_and_actions_category.py deleted file mode 100644 index 93b4188b..00000000 --- a/src/merge/resources/chat/types/account_details_and_actions_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsAndActionsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/chat/types/account_details_and_actions_integration.py b/src/merge/resources/chat/types/account_details_and_actions_integration.py deleted file mode 100644 index 73467bbb..00000000 --- a/src/merge/resources/chat/types/account_details_and_actions_integration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum -from .model_operation import ModelOperation - - -class AccountDetailsAndActionsIntegration(UncheckedBaseModel): - name: str - categories: typing.List[CategoriesEnum] - image: typing.Optional[str] = None - square_image: typing.Optional[str] = None - color: str - slug: str - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/account_details_and_actions_status.py b/src/merge/resources/chat/types/account_details_and_actions_status.py deleted file mode 100644 index 445922f8..00000000 --- a/src/merge/resources/chat/types/account_details_and_actions_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - -AccountDetailsAndActionsStatus = typing.Union[AccountDetailsAndActionsStatusEnum, str] diff --git a/src/merge/resources/chat/types/account_details_and_actions_status_enum.py b/src/merge/resources/chat/types/account_details_and_actions_status_enum.py deleted file mode 100644 index df37f582..00000000 --- a/src/merge/resources/chat/types/account_details_and_actions_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountDetailsAndActionsStatusEnum(str, enum.Enum): - """ - * `COMPLETE` - COMPLETE - * `INCOMPLETE` - INCOMPLETE - * `RELINK_NEEDED` - RELINK_NEEDED - * `IDLE` - IDLE - """ - - COMPLETE = "COMPLETE" - INCOMPLETE = "INCOMPLETE" - RELINK_NEEDED = "RELINK_NEEDED" - IDLE = "IDLE" - - def visit( - self, - complete: typing.Callable[[], T_Result], - incomplete: typing.Callable[[], T_Result], - relink_needed: typing.Callable[[], T_Result], - idle: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountDetailsAndActionsStatusEnum.COMPLETE: - return complete() - if self is AccountDetailsAndActionsStatusEnum.INCOMPLETE: - return incomplete() - if self is AccountDetailsAndActionsStatusEnum.RELINK_NEEDED: - return relink_needed() - if self is AccountDetailsAndActionsStatusEnum.IDLE: - return idle() diff --git a/src/merge/resources/chat/types/account_details_category.py b/src/merge/resources/chat/types/account_details_category.py deleted file mode 100644 index 8a0cc59c..00000000 --- a/src/merge/resources/chat/types/account_details_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/chat/types/account_integration.py b/src/merge/resources/chat/types/account_integration.py deleted file mode 100644 index ef8b260d..00000000 --- a/src/merge/resources/chat/types/account_integration.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum - - -class AccountIntegration(UncheckedBaseModel): - name: str = pydantic.Field() - """ - Company name. - """ - - abbreviated_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) - """ - - categories: typing.Optional[typing.List[CategoriesEnum]] = pydantic.Field(default=None) - """ - Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. - """ - - image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in rectangular shape. - """ - - square_image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in square shape. - """ - - color: typing.Optional[str] = pydantic.Field(default=None) - """ - The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. - """ - - slug: typing.Optional[str] = None - api_endpoints_to_documentation_urls: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = ( - pydantic.Field(default=None) - ) - """ - Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} - """ - - webhook_setup_guide_url: typing.Optional[str] = pydantic.Field(default=None) - """ - Setup guide URL for third party webhook creation. Exposed in Merge Docs. - """ - - category_beta_status: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Category or categories this integration is in beta status for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/account_token.py b/src/merge/resources/chat/types/account_token.py deleted file mode 100644 index 6e82c8ac..00000000 --- a/src/merge/resources/chat/types/account_token.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration - - -class AccountToken(UncheckedBaseModel): - account_token: str - integration: AccountIntegration - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/advanced_metadata.py b/src/merge/resources/chat/types/advanced_metadata.py deleted file mode 100644 index 60b5d072..00000000 --- a/src/merge/resources/chat/types/advanced_metadata.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AdvancedMetadata(UncheckedBaseModel): - id: str - display_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - is_custom: typing.Optional[bool] = None - field_choices: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/async_passthrough_reciept.py b/src/merge/resources/chat/types/async_passthrough_reciept.py deleted file mode 100644 index 21c95080..00000000 --- a/src/merge/resources/chat/types/async_passthrough_reciept.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPassthroughReciept(UncheckedBaseModel): - async_passthrough_receipt_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/audit_log_event.py b/src/merge/resources/chat/types/audit_log_event.py deleted file mode 100644 index ab69fd32..00000000 --- a/src/merge/resources/chat/types/audit_log_event.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event_event_type import AuditLogEventEventType -from .audit_log_event_role import AuditLogEventRole - - -class AuditLogEvent(UncheckedBaseModel): - id: typing.Optional[str] = None - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's full name at the time of this Event occurring. - """ - - user_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's email at the time of this Event occurring. - """ - - role: AuditLogEventRole = pydantic.Field() - """ - Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ip_address: str - event_type: AuditLogEventEventType = pydantic.Field() - """ - Designates the type of event that occurred. - - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - event_description: str - created_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/audit_log_event_event_type.py b/src/merge/resources/chat/types/audit_log_event_event_type.py deleted file mode 100644 index f9c9d2b3..00000000 --- a/src/merge/resources/chat/types/audit_log_event_event_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_type_enum import EventTypeEnum - -AuditLogEventEventType = typing.Union[EventTypeEnum, str] diff --git a/src/merge/resources/chat/types/audit_log_event_role.py b/src/merge/resources/chat/types/audit_log_event_role.py deleted file mode 100644 index fe91ed6f..00000000 --- a/src/merge/resources/chat/types/audit_log_event_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role_enum import RoleEnum - -AuditLogEventRole = typing.Union[RoleEnum, str] diff --git a/src/merge/resources/chat/types/available_actions.py b/src/merge/resources/chat/types/available_actions.py deleted file mode 100644 index 8b5019d7..00000000 --- a/src/merge/resources/chat/types/available_actions.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration -from .model_operation import ModelOperation - - -class AvailableActions(UncheckedBaseModel): - """ - # The AvailableActions Object - ### Description - The `Activity` object is used to see all available model/operation combinations for an integration. - - ### Usage Example - Fetch all the actions available for the `Zenefits` integration. - """ - - integration: AccountIntegration - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/categories_enum.py b/src/merge/resources/chat/types/categories_enum.py deleted file mode 100644 index da1e0dc0..00000000 --- a/src/merge/resources/chat/types/categories_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoriesEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - KNOWLEDGEBASE = "knowledgebase" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoriesEnum.HRIS: - return hris() - if self is CategoriesEnum.ATS: - return ats() - if self is CategoriesEnum.ACCOUNTING: - return accounting() - if self is CategoriesEnum.TICKETING: - return ticketing() - if self is CategoriesEnum.CRM: - return crm() - if self is CategoriesEnum.MKTG: - return mktg() - if self is CategoriesEnum.FILESTORAGE: - return filestorage() - if self is CategoriesEnum.KNOWLEDGEBASE: - return knowledgebase() diff --git a/src/merge/resources/chat/types/category_enum.py b/src/merge/resources/chat/types/category_enum.py deleted file mode 100644 index 1d7cd2c0..00000000 --- a/src/merge/resources/chat/types/category_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - KNOWLEDGEBASE = "knowledgebase" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoryEnum.HRIS: - return hris() - if self is CategoryEnum.ATS: - return ats() - if self is CategoryEnum.ACCOUNTING: - return accounting() - if self is CategoryEnum.TICKETING: - return ticketing() - if self is CategoryEnum.CRM: - return crm() - if self is CategoryEnum.MKTG: - return mktg() - if self is CategoryEnum.FILESTORAGE: - return filestorage() - if self is CategoryEnum.KNOWLEDGEBASE: - return knowledgebase() diff --git a/src/merge/resources/chat/types/common_model_scope_api.py b/src/merge/resources/chat/types/common_model_scope_api.py deleted file mode 100644 index 5484808d..00000000 --- a/src/merge/resources/chat/types/common_model_scope_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - - -class CommonModelScopeApi(UncheckedBaseModel): - common_models: typing.List[IndividualCommonModelScopeDeserializer] = pydantic.Field() - """ - The common models you want to update the scopes for - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/common_model_scopes_body_request.py b/src/merge/resources/chat/types/common_model_scopes_body_request.py deleted file mode 100644 index a9fed25b..00000000 --- a/src/merge/resources/chat/types/common_model_scopes_body_request.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .enabled_actions_enum import EnabledActionsEnum - - -class CommonModelScopesBodyRequest(UncheckedBaseModel): - model_id: str - enabled_actions: typing.List[EnabledActionsEnum] - disabled_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/completed_account_initial_screen_enum.py b/src/merge/resources/chat/types/completed_account_initial_screen_enum.py deleted file mode 100644 index c112dfd1..00000000 --- a/src/merge/resources/chat/types/completed_account_initial_screen_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CompletedAccountInitialScreenEnum = typing.Literal["SELECTIVE_SYNC"] diff --git a/src/merge/resources/chat/types/conversation.py b/src/merge/resources/chat/types/conversation.py deleted file mode 100644 index 6b118501..00000000 --- a/src/merge/resources/chat/types/conversation.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .conversation_type import ConversationType -from .remote_data import RemoteData - - -class Conversation(UncheckedBaseModel): - """ - # The Conversation Object - ### Description - The `Conversation` object is used to represent a conversation within the Chat account. - - ### Usage Example - Fetch from the `GET /api/chat/v1/conversations` endpoint and view their conversations. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the conversation - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The description of the conversation. - """ - - url: typing.Optional[str] = pydantic.Field(default=None) - """ - The url of the conversation. - """ - - type: typing.Optional[ConversationType] = pydantic.Field(default=None) - """ - The type of the conversation. - - * `PRIVATE_INTERNAL` - PRIVATE_INTERNAL - * `PRIVATE_EXTERNAL` - PRIVATE_EXTERNAL - * `PUBLIC_INTERNAL` - PUBLIC_INTERNAL - * `PUBLIC_EXTERNAL` - PUBLIC_EXTERNAL - * `ONE_ON_ONE_CHAT` - ONE_ON_ONE_CHAT - * `GROUP_CHAT` - GROUP_CHAT - * `MEETING_CHAT` - MEETING_CHAT - """ - - members: typing.Optional[typing.List[typing.Optional[str]]] = None - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's conversation was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's conversation was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/conversation_type.py b/src/merge/resources/chat/types/conversation_type.py deleted file mode 100644 index c54e60bf..00000000 --- a/src/merge/resources/chat/types/conversation_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .type_enum import TypeEnum - -ConversationType = typing.Union[TypeEnum, str] diff --git a/src/merge/resources/chat/types/data_passthrough_request.py b/src/merge/resources/chat/types/data_passthrough_request.py deleted file mode 100644 index 5a60bfb6..00000000 --- a/src/merge/resources/chat/types/data_passthrough_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .data_passthrough_request_method import DataPassthroughRequestMethod -from .data_passthrough_request_request_format import DataPassthroughRequestRequestFormat -from .multipart_form_field_request import MultipartFormFieldRequest - - -class DataPassthroughRequest(UncheckedBaseModel): - """ - # The DataPassthrough Object - ### Description - The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - - ### Usage Example - Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - """ - - method: DataPassthroughRequestMethod - path: str = pydantic.Field() - """ - The path of the request in the third party's platform. - """ - - base_url_override: typing.Optional[str] = pydantic.Field(default=None) - """ - An optional override of the third party's base url for the request. - """ - - data: typing.Optional[str] = pydantic.Field(default=None) - """ - The data with the request. You must include a `request_format` parameter matching the data's format - """ - - multipart_form_data: typing.Optional[typing.List[MultipartFormFieldRequest]] = pydantic.Field(default=None) - """ - Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. - """ - - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. - """ - - request_format: typing.Optional[DataPassthroughRequestRequestFormat] = None - normalize_response: typing.Optional[bool] = pydantic.Field(default=None) - """ - Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/data_passthrough_request_method.py b/src/merge/resources/chat/types/data_passthrough_request_method.py deleted file mode 100644 index 58874cbf..00000000 --- a/src/merge/resources/chat/types/data_passthrough_request_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .method_enum import MethodEnum - -DataPassthroughRequestMethod = typing.Union[MethodEnum, str] diff --git a/src/merge/resources/chat/types/data_passthrough_request_request_format.py b/src/merge/resources/chat/types/data_passthrough_request_request_format.py deleted file mode 100644 index 13dc95f0..00000000 --- a/src/merge/resources/chat/types/data_passthrough_request_request_format.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .request_format_enum import RequestFormatEnum - -DataPassthroughRequestRequestFormat = typing.Union[RequestFormatEnum, str] diff --git a/src/merge/resources/chat/types/debug_mode_log.py b/src/merge/resources/chat/types/debug_mode_log.py deleted file mode 100644 index 9c7d2a3f..00000000 --- a/src/merge/resources/chat/types/debug_mode_log.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_model_log_summary import DebugModelLogSummary - - -class DebugModeLog(UncheckedBaseModel): - log_id: str - dashboard_view: str - log_summary: DebugModelLogSummary - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/debug_model_log_summary.py b/src/merge/resources/chat/types/debug_model_log_summary.py deleted file mode 100644 index d7e1d3e6..00000000 --- a/src/merge/resources/chat/types/debug_model_log_summary.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class DebugModelLogSummary(UncheckedBaseModel): - url: str - method: str - status_code: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/enabled_actions_enum.py b/src/merge/resources/chat/types/enabled_actions_enum.py deleted file mode 100644 index 29cf9839..00000000 --- a/src/merge/resources/chat/types/enabled_actions_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EnabledActionsEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - """ - - READ = "READ" - WRITE = "WRITE" - - def visit(self, read: typing.Callable[[], T_Result], write: typing.Callable[[], T_Result]) -> T_Result: - if self is EnabledActionsEnum.READ: - return read() - if self is EnabledActionsEnum.WRITE: - return write() diff --git a/src/merge/resources/chat/types/encoding_enum.py b/src/merge/resources/chat/types/encoding_enum.py deleted file mode 100644 index 7454647e..00000000 --- a/src/merge/resources/chat/types/encoding_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EncodingEnum(str, enum.Enum): - """ - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - RAW = "RAW" - BASE_64 = "BASE64" - GZIP_BASE_64 = "GZIP_BASE64" - - def visit( - self, - raw: typing.Callable[[], T_Result], - base_64: typing.Callable[[], T_Result], - gzip_base_64: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EncodingEnum.RAW: - return raw() - if self is EncodingEnum.BASE_64: - return base_64() - if self is EncodingEnum.GZIP_BASE_64: - return gzip_base_64() diff --git a/src/merge/resources/chat/types/error_validation_problem.py b/src/merge/resources/chat/types/error_validation_problem.py deleted file mode 100644 index 57188343..00000000 --- a/src/merge/resources/chat/types/error_validation_problem.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class ErrorValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - block_merge_link: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/event_type_enum.py b/src/merge/resources/chat/types/event_type_enum.py deleted file mode 100644 index 537cea3f..00000000 --- a/src/merge/resources/chat/types/event_type_enum.py +++ /dev/null @@ -1,231 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EventTypeEnum(str, enum.Enum): - """ - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY" - DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY" - CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" - DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" - REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" - REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" - INVITED_USER = "INVITED_USER" - TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" - TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" - DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT" - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT" - CREATED_DESTINATION = "CREATED_DESTINATION" - DELETED_DESTINATION = "DELETED_DESTINATION" - CHANGED_DESTINATION = "CHANGED_DESTINATION" - CHANGED_SCOPES = "CHANGED_SCOPES" - CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION" - CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS" - ENABLED_INTEGRATION = "ENABLED_INTEGRATION" - DISABLED_INTEGRATION = "DISABLED_INTEGRATION" - ENABLED_CATEGORY = "ENABLED_CATEGORY" - DISABLED_CATEGORY = "DISABLED_CATEGORY" - CHANGED_PASSWORD = "CHANGED_PASSWORD" - RESET_PASSWORD = "RESET_PASSWORD" - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING" - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING" - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING" - DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING" - DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC" - MUTED_ISSUE = "MUTED_ISSUE" - GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK" - ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK" - DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK" - MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED" - END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED" - - def visit( - self, - created_remote_production_api_key: typing.Callable[[], T_Result], - deleted_remote_production_api_key: typing.Callable[[], T_Result], - created_test_api_key: typing.Callable[[], T_Result], - deleted_test_api_key: typing.Callable[[], T_Result], - regenerated_production_api_key: typing.Callable[[], T_Result], - regenerated_webhook_signature: typing.Callable[[], T_Result], - invited_user: typing.Callable[[], T_Result], - two_factor_auth_enabled: typing.Callable[[], T_Result], - two_factor_auth_disabled: typing.Callable[[], T_Result], - deleted_linked_account: typing.Callable[[], T_Result], - deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result], - created_destination: typing.Callable[[], T_Result], - deleted_destination: typing.Callable[[], T_Result], - changed_destination: typing.Callable[[], T_Result], - changed_scopes: typing.Callable[[], T_Result], - changed_personal_information: typing.Callable[[], T_Result], - changed_organization_settings: typing.Callable[[], T_Result], - enabled_integration: typing.Callable[[], T_Result], - disabled_integration: typing.Callable[[], T_Result], - enabled_category: typing.Callable[[], T_Result], - disabled_category: typing.Callable[[], T_Result], - changed_password: typing.Callable[[], T_Result], - reset_password: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - created_integration_wide_field_mapping: typing.Callable[[], T_Result], - created_linked_account_field_mapping: typing.Callable[[], T_Result], - changed_integration_wide_field_mapping: typing.Callable[[], T_Result], - changed_linked_account_field_mapping: typing.Callable[[], T_Result], - deleted_integration_wide_field_mapping: typing.Callable[[], T_Result], - deleted_linked_account_field_mapping: typing.Callable[[], T_Result], - created_linked_account_common_model_override: typing.Callable[[], T_Result], - changed_linked_account_common_model_override: typing.Callable[[], T_Result], - deleted_linked_account_common_model_override: typing.Callable[[], T_Result], - forced_linked_account_resync: typing.Callable[[], T_Result], - muted_issue: typing.Callable[[], T_Result], - generated_magic_link: typing.Callable[[], T_Result], - enabled_merge_webhook: typing.Callable[[], T_Result], - disabled_merge_webhook: typing.Callable[[], T_Result], - merge_webhook_target_changed: typing.Callable[[], T_Result], - end_user_credentials_accessed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY: - return created_remote_production_api_key() - if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY: - return deleted_remote_production_api_key() - if self is EventTypeEnum.CREATED_TEST_API_KEY: - return created_test_api_key() - if self is EventTypeEnum.DELETED_TEST_API_KEY: - return deleted_test_api_key() - if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY: - return regenerated_production_api_key() - if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE: - return regenerated_webhook_signature() - if self is EventTypeEnum.INVITED_USER: - return invited_user() - if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED: - return two_factor_auth_enabled() - if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED: - return two_factor_auth_disabled() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT: - return deleted_linked_account() - if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT: - return deleted_all_common_models_for_linked_account() - if self is EventTypeEnum.CREATED_DESTINATION: - return created_destination() - if self is EventTypeEnum.DELETED_DESTINATION: - return deleted_destination() - if self is EventTypeEnum.CHANGED_DESTINATION: - return changed_destination() - if self is EventTypeEnum.CHANGED_SCOPES: - return changed_scopes() - if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION: - return changed_personal_information() - if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS: - return changed_organization_settings() - if self is EventTypeEnum.ENABLED_INTEGRATION: - return enabled_integration() - if self is EventTypeEnum.DISABLED_INTEGRATION: - return disabled_integration() - if self is EventTypeEnum.ENABLED_CATEGORY: - return enabled_category() - if self is EventTypeEnum.DISABLED_CATEGORY: - return disabled_category() - if self is EventTypeEnum.CHANGED_PASSWORD: - return changed_password() - if self is EventTypeEnum.RESET_PASSWORD: - return reset_password() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return enabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return enabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return disabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return disabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING: - return created_integration_wide_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING: - return created_linked_account_field_mapping() - if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING: - return changed_integration_wide_field_mapping() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING: - return changed_linked_account_field_mapping() - if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING: - return deleted_integration_wide_field_mapping() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING: - return deleted_linked_account_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return created_linked_account_common_model_override() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return changed_linked_account_common_model_override() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return deleted_linked_account_common_model_override() - if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC: - return forced_linked_account_resync() - if self is EventTypeEnum.MUTED_ISSUE: - return muted_issue() - if self is EventTypeEnum.GENERATED_MAGIC_LINK: - return generated_magic_link() - if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK: - return enabled_merge_webhook() - if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK: - return disabled_merge_webhook() - if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED: - return merge_webhook_target_changed() - if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED: - return end_user_credentials_accessed() diff --git a/src/merge/resources/chat/types/external_target_field_api.py b/src/merge/resources/chat/types/external_target_field_api.py deleted file mode 100644 index c0fea1eb..00000000 --- a/src/merge/resources/chat/types/external_target_field_api.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ExternalTargetFieldApi(UncheckedBaseModel): - name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_mapped: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/external_target_field_api_response.py b/src/merge/resources/chat/types/external_target_field_api_response.py deleted file mode 100644 index 624d13ef..00000000 --- a/src/merge/resources/chat/types/external_target_field_api_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .external_target_field_api import ExternalTargetFieldApi - - -class ExternalTargetFieldApiResponse(UncheckedBaseModel): - user: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="User", default=None) - group: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Group", default=None) - conversation: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="Conversation", default=None - ) - member: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Member", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_mapping_api_instance.py b/src/merge/resources/chat/types/field_mapping_api_instance.py deleted file mode 100644 index 0d257dcb..00000000 --- a/src/merge/resources/chat/types/field_mapping_api_instance.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField -from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - - -class FieldMappingApiInstance(UncheckedBaseModel): - id: typing.Optional[str] = None - is_integration_wide: typing.Optional[bool] = None - target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None - remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None - jmes_path: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_mapping_api_instance_remote_field.py b/src/merge/resources/chat/types/field_mapping_api_instance_remote_field.py deleted file mode 100644 index 578a2b10..00000000 --- a/src/merge/resources/chat/types/field_mapping_api_instance_remote_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, -) - - -class FieldMappingApiInstanceRemoteField(UncheckedBaseModel): - remote_key_name: typing.Optional[str] = None - schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field( - alias="schema", default=None - ) - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py b/src/merge/resources/chat/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py deleted file mode 100644 index 4171f08b..00000000 --- a/src/merge/resources/chat/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel): - method: typing.Optional[str] = None - url_path: typing.Optional[str] = None - field_traversal_path: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_mapping_api_instance_response.py b/src/merge/resources/chat/types/field_mapping_api_instance_response.py deleted file mode 100644 index ebded9e9..00000000 --- a/src/merge/resources/chat/types/field_mapping_api_instance_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance import FieldMappingApiInstance - - -class FieldMappingApiInstanceResponse(UncheckedBaseModel): - user: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="User", default=None) - group: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Group", default=None) - conversation: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="Conversation", default=None - ) - member: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Member", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_mapping_api_instance_target_field.py b/src/merge/resources/chat/types/field_mapping_api_instance_target_field.py deleted file mode 100644 index e6474cba..00000000 --- a/src/merge/resources/chat/types/field_mapping_api_instance_target_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceTargetField(UncheckedBaseModel): - name: str - description: str - is_organization_wide: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_mapping_instance_response.py b/src/merge/resources/chat/types/field_mapping_instance_response.py deleted file mode 100644 index f921e641..00000000 --- a/src/merge/resources/chat/types/field_mapping_instance_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .field_mapping_api_instance import FieldMappingApiInstance -from .warning_validation_problem import WarningValidationProblem - - -class FieldMappingInstanceResponse(UncheckedBaseModel): - model: FieldMappingApiInstance - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_permission_deserializer.py b/src/merge/resources/chat/types/field_permission_deserializer.py deleted file mode 100644 index 1d71ae04..00000000 --- a/src/merge/resources/chat/types/field_permission_deserializer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializer(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/field_permission_deserializer_request.py b/src/merge/resources/chat/types/field_permission_deserializer_request.py deleted file mode 100644 index a4113b46..00000000 --- a/src/merge/resources/chat/types/field_permission_deserializer_request.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializerRequest(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/group.py b/src/merge/resources/chat/types/group.py deleted file mode 100644 index 732616f4..00000000 --- a/src/merge/resources/chat/types/group.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Group(UncheckedBaseModel): - """ - # The Group Object - ### Description - The `Group` object is used to represent any subset of `Users`. - ### Usage Example - Fetch from the `GET /api/chat/v1/groups` endpoint and view their groups. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the Group - """ - - users: typing.Optional[typing.List[typing.Optional[str]]] = None - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's group was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's group was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/individual_common_model_scope_deserializer.py b/src/merge/resources/chat/types/individual_common_model_scope_deserializer.py deleted file mode 100644 index 4b1ef6a4..00000000 --- a/src/merge/resources/chat/types/individual_common_model_scope_deserializer.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer import FieldPermissionDeserializer -from .model_permission_deserializer import ModelPermissionDeserializer - - -class IndividualCommonModelScopeDeserializer(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None - field_permissions: typing.Optional[FieldPermissionDeserializer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/individual_common_model_scope_deserializer_request.py b/src/merge/resources/chat/types/individual_common_model_scope_deserializer_request.py deleted file mode 100644 index 1dcda203..00000000 --- a/src/merge/resources/chat/types/individual_common_model_scope_deserializer_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer_request import FieldPermissionDeserializerRequest -from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - - -class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None - field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/issue.py b/src/merge/resources/chat/types/issue.py deleted file mode 100644 index df31be95..00000000 --- a/src/merge/resources/chat/types/issue.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue_status import IssueStatus - - -class Issue(UncheckedBaseModel): - id: typing.Optional[str] = None - status: typing.Optional[IssueStatus] = pydantic.Field(default=None) - """ - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - error_description: str - end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - first_incident_time: typing.Optional[dt.datetime] = None - last_incident_time: typing.Optional[dt.datetime] = None - is_muted: typing.Optional[bool] = None - error_details: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/issue_status.py b/src/merge/resources/chat/types/issue_status.py deleted file mode 100644 index 8e4d6516..00000000 --- a/src/merge/resources/chat/types/issue_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .issue_status_enum import IssueStatusEnum - -IssueStatus = typing.Union[IssueStatusEnum, str] diff --git a/src/merge/resources/chat/types/issue_status_enum.py b/src/merge/resources/chat/types/issue_status_enum.py deleted file mode 100644 index 57eb9618..00000000 --- a/src/merge/resources/chat/types/issue_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssueStatusEnum(str, enum.Enum): - """ - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssueStatusEnum.ONGOING: - return ongoing() - if self is IssueStatusEnum.RESOLVED: - return resolved() diff --git a/src/merge/resources/chat/types/language_enum.py b/src/merge/resources/chat/types/language_enum.py deleted file mode 100644 index 44b693f2..00000000 --- a/src/merge/resources/chat/types/language_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LanguageEnum(str, enum.Enum): - """ - * `en` - en - * `de` - de - """ - - EN = "en" - DE = "de" - - def visit(self, en: typing.Callable[[], T_Result], de: typing.Callable[[], T_Result]) -> T_Result: - if self is LanguageEnum.EN: - return en() - if self is LanguageEnum.DE: - return de() diff --git a/src/merge/resources/chat/types/last_sync_result_enum.py b/src/merge/resources/chat/types/last_sync_result_enum.py deleted file mode 100644 index ec777ee6..00000000 --- a/src/merge/resources/chat/types/last_sync_result_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LastSyncResultEnum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LastSyncResultEnum.SYNCING: - return syncing() - if self is LastSyncResultEnum.DONE: - return done() - if self is LastSyncResultEnum.FAILED: - return failed() - if self is LastSyncResultEnum.DISABLED: - return disabled() - if self is LastSyncResultEnum.PAUSED: - return paused() - if self is LastSyncResultEnum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/chat/types/link_token.py b/src/merge/resources/chat/types/link_token.py deleted file mode 100644 index f78dedeb..00000000 --- a/src/merge/resources/chat/types/link_token.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkToken(UncheckedBaseModel): - link_token: str - integration_name: typing.Optional[str] = None - magic_link_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/member.py b/src/merge/resources/chat/types/member.py deleted file mode 100644 index 40bea7ed..00000000 --- a/src/merge/resources/chat/types/member.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Member(UncheckedBaseModel): - """ - # The Member Object - ### Description - The `Member` object is used to represent a member within the Chat account. - - ### Usage Example - Fetch from the `GET /api/chat/v1/members` endpoint and view their members. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - user: typing.Optional[str] = pydantic.Field(default=None) - """ - The user that is a member of the conversation. Only populated if the member is a user. - """ - - group: typing.Optional[str] = pydantic.Field(default=None) - """ - The group that is a member of the conversation. Only populated if the member is a group. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's conversation was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's conversation was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/message.py b/src/merge/resources/chat/types/message.py deleted file mode 100644 index 8e5d6fb8..00000000 --- a/src/merge/resources/chat/types/message.py +++ /dev/null @@ -1,88 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class Message(UncheckedBaseModel): - """ - # The Message Object - ### Description - The `Message` object is used to represent a message within the Chat account. - ### Usage Example - Fetch from the `GET /api/chat/v1/messages` endpoint and view their message. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - user_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The user that sent the message. - """ - - conversation_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The conversation this message belongs to. - """ - - body: typing.Optional[str] = pydantic.Field(default=None) - """ - The body of the message. - """ - - subject_line: typing.Optional[str] = pydantic.Field(default=None) - """ - The subject line of the message. - """ - - root_message_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The root message this message belongs to. - """ - - url: typing.Optional[str] = pydantic.Field(default=None) - """ - The url of the message. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's conversation was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's conversation was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/method_enum.py b/src/merge/resources/chat/types/method_enum.py deleted file mode 100644 index 57bcde10..00000000 --- a/src/merge/resources/chat/types/method_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodEnum(str, enum.Enum): - """ - * `GET` - GET - * `OPTIONS` - OPTIONS - * `HEAD` - HEAD - * `POST` - POST - * `PUT` - PUT - * `PATCH` - PATCH - * `DELETE` - DELETE - """ - - GET = "GET" - OPTIONS = "OPTIONS" - HEAD = "HEAD" - POST = "POST" - PUT = "PUT" - PATCH = "PATCH" - DELETE = "DELETE" - - def visit( - self, - get: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - head: typing.Callable[[], T_Result], - post: typing.Callable[[], T_Result], - put: typing.Callable[[], T_Result], - patch: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodEnum.GET: - return get() - if self is MethodEnum.OPTIONS: - return options() - if self is MethodEnum.HEAD: - return head() - if self is MethodEnum.POST: - return post() - if self is MethodEnum.PUT: - return put() - if self is MethodEnum.PATCH: - return patch() - if self is MethodEnum.DELETE: - return delete() diff --git a/src/merge/resources/chat/types/model_operation.py b/src/merge/resources/chat/types/model_operation.py deleted file mode 100644 index c367572d..00000000 --- a/src/merge/resources/chat/types/model_operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelOperation(UncheckedBaseModel): - """ - # The ModelOperation Object - ### Description - The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - - ### Usage Example - View what operations are supported for the `Candidate` endpoint. - """ - - model_name: str - available_operations: typing.List[str] - required_post_parameters: typing.List[str] - supported_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/model_permission_deserializer.py b/src/merge/resources/chat/types/model_permission_deserializer.py deleted file mode 100644 index 6381814c..00000000 --- a/src/merge/resources/chat/types/model_permission_deserializer.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializer(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/model_permission_deserializer_request.py b/src/merge/resources/chat/types/model_permission_deserializer_request.py deleted file mode 100644 index cdc2ff4c..00000000 --- a/src/merge/resources/chat/types/model_permission_deserializer_request.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializerRequest(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/multipart_form_field_request.py b/src/merge/resources/chat/types/multipart_form_field_request.py deleted file mode 100644 index abc37692..00000000 --- a/src/merge/resources/chat/types/multipart_form_field_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - - -class MultipartFormFieldRequest(UncheckedBaseModel): - """ - # The MultipartFormField Object - ### Description - The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - - ### Usage Example - Create a `MultipartFormField` to define a multipart form entry. - """ - - name: str = pydantic.Field() - """ - The name of the form field - """ - - data: str = pydantic.Field() - """ - The data for the form field. - """ - - encoding: typing.Optional[MultipartFormFieldRequestEncoding] = pydantic.Field(default=None) - """ - The encoding of the value of `data`. Defaults to `RAW` if not defined. - - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The file name of the form field, if the field is for a file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The MIME type of the file, if the field is for a file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/multipart_form_field_request_encoding.py b/src/merge/resources/chat/types/multipart_form_field_request_encoding.py deleted file mode 100644 index c6513b6b..00000000 --- a/src/merge/resources/chat/types/multipart_form_field_request_encoding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .encoding_enum import EncodingEnum - -MultipartFormFieldRequestEncoding = typing.Union[EncodingEnum, str] diff --git a/src/merge/resources/chat/types/paginated_account_details_and_actions_list.py b/src/merge/resources/chat/types/paginated_account_details_and_actions_list.py deleted file mode 100644 index d2d16116..00000000 --- a/src/merge/resources/chat/types/paginated_account_details_and_actions_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions import AccountDetailsAndActions - - -class PaginatedAccountDetailsAndActionsList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountDetailsAndActions]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_audit_log_event_list.py b/src/merge/resources/chat/types/paginated_audit_log_event_list.py deleted file mode 100644 index 24139397..00000000 --- a/src/merge/resources/chat/types/paginated_audit_log_event_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event import AuditLogEvent - - -class PaginatedAuditLogEventList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AuditLogEvent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_conversation_list.py b/src/merge/resources/chat/types/paginated_conversation_list.py deleted file mode 100644 index 66ae6ad4..00000000 --- a/src/merge/resources/chat/types/paginated_conversation_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .conversation import Conversation - - -class PaginatedConversationList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Conversation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_group_list.py b/src/merge/resources/chat/types/paginated_group_list.py deleted file mode 100644 index 90702e1f..00000000 --- a/src/merge/resources/chat/types/paginated_group_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .group import Group - - -class PaginatedGroupList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Group]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_issue_list.py b/src/merge/resources/chat/types/paginated_issue_list.py deleted file mode 100644 index 686173e5..00000000 --- a/src/merge/resources/chat/types/paginated_issue_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue import Issue - - -class PaginatedIssueList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Issue]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_member_list.py b/src/merge/resources/chat/types/paginated_member_list.py deleted file mode 100644 index 97a567c2..00000000 --- a/src/merge/resources/chat/types/paginated_member_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .member import Member - - -class PaginatedMemberList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Member]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_message_list.py b/src/merge/resources/chat/types/paginated_message_list.py deleted file mode 100644 index 6e8a7aee..00000000 --- a/src/merge/resources/chat/types/paginated_message_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .message import Message - - -class PaginatedMessageList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Message]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_sync_status_list.py b/src/merge/resources/chat/types/paginated_sync_status_list.py deleted file mode 100644 index cc4bd7a8..00000000 --- a/src/merge/resources/chat/types/paginated_sync_status_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .sync_status import SyncStatus - - -class PaginatedSyncStatusList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[SyncStatus]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/paginated_user_list.py b/src/merge/resources/chat/types/paginated_user_list.py deleted file mode 100644 index 809b285c..00000000 --- a/src/merge/resources/chat/types/paginated_user_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .user import User - - -class PaginatedUserList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[User]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/remote_data.py b/src/merge/resources/chat/types/remote_data.py deleted file mode 100644 index f34bec80..00000000 --- a/src/merge/resources/chat/types/remote_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteData(UncheckedBaseModel): - """ - # The RemoteData Object - ### Description - The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - - ### Usage Example - TODO - """ - - path: str = pydantic.Field() - """ - The third-party API path that is being called. - """ - - data: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The data returned from the third-party for this object in its original, unnormalized format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/remote_endpoint_info.py b/src/merge/resources/chat/types/remote_endpoint_info.py deleted file mode 100644 index 07ceff6a..00000000 --- a/src/merge/resources/chat/types/remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteEndpointInfo(UncheckedBaseModel): - method: str - url_path: str - field_traversal_path: typing.List[typing.Optional[typing.Any]] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/remote_field_api.py b/src/merge/resources/chat/types/remote_field_api.py deleted file mode 100644 index 0756bfc3..00000000 --- a/src/merge/resources/chat/types/remote_field_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_endpoint_info import RemoteEndpointInfo -from .remote_field_api_advanced_metadata import RemoteFieldApiAdvancedMetadata -from .remote_field_api_coverage import RemoteFieldApiCoverage - - -class RemoteFieldApi(UncheckedBaseModel): - schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema") - remote_key_name: str - remote_endpoint_info: RemoteEndpointInfo - example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - advanced_metadata: typing.Optional[RemoteFieldApiAdvancedMetadata] = None - coverage: typing.Optional[RemoteFieldApiCoverage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/remote_field_api_advanced_metadata.py b/src/merge/resources/chat/types/remote_field_api_advanced_metadata.py deleted file mode 100644 index e93da936..00000000 --- a/src/merge/resources/chat/types/remote_field_api_advanced_metadata.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .advanced_metadata import AdvancedMetadata - -RemoteFieldApiAdvancedMetadata = typing.Union[AdvancedMetadata, str] diff --git a/src/merge/resources/chat/types/remote_field_api_coverage.py b/src/merge/resources/chat/types/remote_field_api_coverage.py deleted file mode 100644 index adcd9be9..00000000 --- a/src/merge/resources/chat/types/remote_field_api_coverage.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RemoteFieldApiCoverage = typing.Union[int, float] diff --git a/src/merge/resources/chat/types/remote_field_api_response.py b/src/merge/resources/chat/types/remote_field_api_response.py deleted file mode 100644 index 7e47f247..00000000 --- a/src/merge/resources/chat/types/remote_field_api_response.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_api import RemoteFieldApi - - -class RemoteFieldApiResponse(UncheckedBaseModel): - user: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="User", default=None) - group: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Group", default=None) - conversation: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Conversation", default=None) - member: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Member", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/remote_key.py b/src/merge/resources/chat/types/remote_key.py deleted file mode 100644 index e5d9758c..00000000 --- a/src/merge/resources/chat/types/remote_key.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteKey(UncheckedBaseModel): - """ - # The RemoteKey Object - ### Description - The `RemoteKey` object is used to represent a request for a new remote key. - - ### Usage Example - Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - """ - - name: str - key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/remote_response.py b/src/merge/resources/chat/types/remote_response.py deleted file mode 100644 index db01131f..00000000 --- a/src/merge/resources/chat/types/remote_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_response_response_type import RemoteResponseResponseType - - -class RemoteResponse(UncheckedBaseModel): - """ - # The RemoteResponse Object - ### Description - The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - - ### Usage Example - View the `RemoteResponse` returned from your `DataPassthrough`. - """ - - method: str - path: str - status: int - response: typing.Optional[typing.Any] = None - response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[RemoteResponseResponseType] = None - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/remote_response_response_type.py b/src/merge/resources/chat/types/remote_response_response_type.py deleted file mode 100644 index 2556417a..00000000 --- a/src/merge/resources/chat/types/remote_response_response_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .response_type_enum import ResponseTypeEnum - -RemoteResponseResponseType = typing.Union[ResponseTypeEnum, str] diff --git a/src/merge/resources/chat/types/request_format_enum.py b/src/merge/resources/chat/types/request_format_enum.py deleted file mode 100644 index 21c272f2..00000000 --- a/src/merge/resources/chat/types/request_format_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestFormatEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `XML` - XML - * `MULTIPART` - MULTIPART - """ - - JSON = "JSON" - XML = "XML" - MULTIPART = "MULTIPART" - - def visit( - self, - json: typing.Callable[[], T_Result], - xml: typing.Callable[[], T_Result], - multipart: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestFormatEnum.JSON: - return json() - if self is RequestFormatEnum.XML: - return xml() - if self is RequestFormatEnum.MULTIPART: - return multipart() diff --git a/src/merge/resources/chat/types/response_type_enum.py b/src/merge/resources/chat/types/response_type_enum.py deleted file mode 100644 index ef241302..00000000 --- a/src/merge/resources/chat/types/response_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ResponseTypeEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `BASE64_GZIP` - BASE64_GZIP - """ - - JSON = "JSON" - BASE_64_GZIP = "BASE64_GZIP" - - def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result: - if self is ResponseTypeEnum.JSON: - return json() - if self is ResponseTypeEnum.BASE_64_GZIP: - return base_64_gzip() diff --git a/src/merge/resources/chat/types/role_enum.py b/src/merge/resources/chat/types/role_enum.py deleted file mode 100644 index a6cfcc6f..00000000 --- a/src/merge/resources/chat/types/role_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RoleEnum(str, enum.Enum): - """ - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ADMIN = "ADMIN" - DEVELOPER = "DEVELOPER" - MEMBER = "MEMBER" - API = "API" - SYSTEM = "SYSTEM" - MERGE_TEAM = "MERGE_TEAM" - - def visit( - self, - admin: typing.Callable[[], T_Result], - developer: typing.Callable[[], T_Result], - member: typing.Callable[[], T_Result], - api: typing.Callable[[], T_Result], - system: typing.Callable[[], T_Result], - merge_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RoleEnum.ADMIN: - return admin() - if self is RoleEnum.DEVELOPER: - return developer() - if self is RoleEnum.MEMBER: - return member() - if self is RoleEnum.API: - return api() - if self is RoleEnum.SYSTEM: - return system() - if self is RoleEnum.MERGE_TEAM: - return merge_team() diff --git a/src/merge/resources/chat/types/selective_sync_configurations_usage_enum.py b/src/merge/resources/chat/types/selective_sync_configurations_usage_enum.py deleted file mode 100644 index 9ff43813..00000000 --- a/src/merge/resources/chat/types/selective_sync_configurations_usage_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum): - """ - * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * `IN_LAST_SYNC` - IN_LAST_SYNC - """ - - IN_NEXT_SYNC = "IN_NEXT_SYNC" - IN_LAST_SYNC = "IN_LAST_SYNC" - - def visit( - self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result] - ) -> T_Result: - if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC: - return in_next_sync() - if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC: - return in_last_sync() diff --git a/src/merge/resources/chat/types/status_fd_5_enum.py b/src/merge/resources/chat/types/status_fd_5_enum.py deleted file mode 100644 index d753f77c..00000000 --- a/src/merge/resources/chat/types/status_fd_5_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class StatusFd5Enum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is StatusFd5Enum.SYNCING: - return syncing() - if self is StatusFd5Enum.DONE: - return done() - if self is StatusFd5Enum.FAILED: - return failed() - if self is StatusFd5Enum.DISABLED: - return disabled() - if self is StatusFd5Enum.PAUSED: - return paused() - if self is StatusFd5Enum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/chat/types/sync_status.py b/src/merge/resources/chat/types/sync_status.py deleted file mode 100644 index 07ab1dc2..00000000 --- a/src/merge/resources/chat/types/sync_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .sync_status_last_sync_result import SyncStatusLastSyncResult -from .sync_status_status import SyncStatusStatus - - -class SyncStatus(UncheckedBaseModel): - """ - # The SyncStatus Object - ### Description - The `SyncStatus` object is used to represent the syncing state of an account - - ### Usage Example - View the `SyncStatus` for an account to see how recently its models were synced. - """ - - model_name: str - model_id: str - last_sync_start: typing.Optional[dt.datetime] = None - next_sync_start: typing.Optional[dt.datetime] = None - last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None - last_sync_finished: typing.Optional[dt.datetime] = None - status: SyncStatusStatus - is_initial_sync: bool - selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/sync_status_last_sync_result.py b/src/merge/resources/chat/types/sync_status_last_sync_result.py deleted file mode 100644 index 980e7d94..00000000 --- a/src/merge/resources/chat/types/sync_status_last_sync_result.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .last_sync_result_enum import LastSyncResultEnum - -SyncStatusLastSyncResult = typing.Union[LastSyncResultEnum, str] diff --git a/src/merge/resources/chat/types/sync_status_status.py b/src/merge/resources/chat/types/sync_status_status.py deleted file mode 100644 index 78e4cc47..00000000 --- a/src/merge/resources/chat/types/sync_status_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_fd_5_enum import StatusFd5Enum - -SyncStatusStatus = typing.Union[StatusFd5Enum, str] diff --git a/src/merge/resources/chat/types/type_enum.py b/src/merge/resources/chat/types/type_enum.py deleted file mode 100644 index 6d258d7f..00000000 --- a/src/merge/resources/chat/types/type_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TypeEnum(str, enum.Enum): - """ - * `PRIVATE_INTERNAL` - PRIVATE_INTERNAL - * `PRIVATE_EXTERNAL` - PRIVATE_EXTERNAL - * `PUBLIC_INTERNAL` - PUBLIC_INTERNAL - * `PUBLIC_EXTERNAL` - PUBLIC_EXTERNAL - * `ONE_ON_ONE_CHAT` - ONE_ON_ONE_CHAT - * `GROUP_CHAT` - GROUP_CHAT - * `MEETING_CHAT` - MEETING_CHAT - """ - - PRIVATE_INTERNAL = "PRIVATE_INTERNAL" - PRIVATE_EXTERNAL = "PRIVATE_EXTERNAL" - PUBLIC_INTERNAL = "PUBLIC_INTERNAL" - PUBLIC_EXTERNAL = "PUBLIC_EXTERNAL" - ONE_ON_ONE_CHAT = "ONE_ON_ONE_CHAT" - GROUP_CHAT = "GROUP_CHAT" - MEETING_CHAT = "MEETING_CHAT" - - def visit( - self, - private_internal: typing.Callable[[], T_Result], - private_external: typing.Callable[[], T_Result], - public_internal: typing.Callable[[], T_Result], - public_external: typing.Callable[[], T_Result], - one_on_one_chat: typing.Callable[[], T_Result], - group_chat: typing.Callable[[], T_Result], - meeting_chat: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TypeEnum.PRIVATE_INTERNAL: - return private_internal() - if self is TypeEnum.PRIVATE_EXTERNAL: - return private_external() - if self is TypeEnum.PUBLIC_INTERNAL: - return public_internal() - if self is TypeEnum.PUBLIC_EXTERNAL: - return public_external() - if self is TypeEnum.ONE_ON_ONE_CHAT: - return one_on_one_chat() - if self is TypeEnum.GROUP_CHAT: - return group_chat() - if self is TypeEnum.MEETING_CHAT: - return meeting_chat() diff --git a/src/merge/resources/chat/types/user.py b/src/merge/resources/chat/types/user.py deleted file mode 100644 index 28eb5802..00000000 --- a/src/merge/resources/chat/types/user.py +++ /dev/null @@ -1,94 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class User(UncheckedBaseModel): - """ - # The User Object - ### Description - The `User` object is used to represent a user within the Chat account. - - ### Usage Example - Fetch from the `GET /api/chat/v1/users` endpoint and view their users. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - Username or handle - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Full name or display name - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's first name - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's last name - """ - - is_bot: typing.Optional[bool] = pydantic.Field(default=None) - """ - Returns true if the user is a bot - """ - - groups: typing.Optional[typing.List[typing.Optional[str]]] = None - avatar: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's avatar image - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's user was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's user was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/validation_problem_source.py b/src/merge/resources/chat/types/validation_problem_source.py deleted file mode 100644 index fbebe626..00000000 --- a/src/merge/resources/chat/types/validation_problem_source.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ValidationProblemSource(UncheckedBaseModel): - pointer: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/warning_validation_problem.py b/src/merge/resources/chat/types/warning_validation_problem.py deleted file mode 100644 index 960a315f..00000000 --- a/src/merge/resources/chat/types/warning_validation_problem.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class WarningValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - block_merge_link: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/chat/types/webhook_receiver.py b/src/merge/resources/chat/types/webhook_receiver.py deleted file mode 100644 index fb49c044..00000000 --- a/src/merge/resources/chat/types/webhook_receiver.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class WebhookReceiver(UncheckedBaseModel): - event: str - is_active: bool - key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/__init__.py b/src/merge/resources/crm/__init__.py deleted file mode 100644 index d978998c..00000000 --- a/src/merge/resources/crm/__init__.py +++ /dev/null @@ -1,841 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - Account, - AccountDetails, - AccountDetailsAndActions, - AccountDetailsAndActionsCategory, - AccountDetailsAndActionsIntegration, - AccountDetailsAndActionsStatus, - AccountDetailsAndActionsStatusEnum, - AccountDetailsCategory, - AccountIntegration, - AccountOwner, - AccountRequest, - AccountRequestOwner, - AccountToken, - ActivityTypeEnum, - Address, - AddressAddressType, - AddressCountry, - AddressRequest, - AddressRequestAddressType, - AddressRequestCountry, - AddressTypeEnum, - AdvancedMetadata, - Association, - AssociationAssociationType, - AssociationSubType, - AssociationType, - AssociationTypeCardinality, - AssociationTypeRequestRequest, - AsyncPassthroughReciept, - AuditLogEvent, - AuditLogEventEventType, - AuditLogEventRole, - AvailableActions, - CardinalityEnum, - CategoriesEnum, - CategoryEnum, - CommonModelScopeApi, - CommonModelScopesBodyRequest, - Contact, - ContactAccount, - ContactOwner, - ContactRequest, - ContactRequestAccount, - ContactRequestOwner, - CountryEnum, - CrmAccountResponse, - CrmAssociationTypeResponse, - CrmContactResponse, - CrmCustomObjectResponse, - CustomObject, - CustomObjectClass, - CustomObjectRequest, - DataPassthroughRequest, - DebugModeLog, - DebugModelLogSummary, - DirectionEnum, - EmailAddress, - EmailAddressRequest, - EnabledActionsEnum, - EncodingEnum, - Engagement, - EngagementAccount, - EngagementContactsItem, - EngagementDirection, - EngagementEngagementType, - EngagementOwner, - EngagementRequest, - EngagementRequestAccount, - EngagementRequestContactsItem, - EngagementRequestDirection, - EngagementRequestEngagementType, - EngagementRequestOwner, - EngagementResponse, - EngagementType, - EngagementTypeActivityType, - ErrorValidationProblem, - EventTypeEnum, - ExternalTargetFieldApi, - ExternalTargetFieldApiResponse, - FieldFormatEnum, - FieldMappingApiInstance, - FieldMappingApiInstanceRemoteField, - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - FieldMappingApiInstanceResponse, - FieldMappingApiInstanceTargetField, - FieldMappingInstanceResponse, - FieldPermissionDeserializer, - FieldPermissionDeserializerRequest, - FieldTypeEnum, - IgnoreCommonModelRequest, - IgnoreCommonModelRequestReason, - IndividualCommonModelScopeDeserializer, - IndividualCommonModelScopeDeserializerRequest, - Issue, - IssueStatus, - IssueStatusEnum, - ItemFormatEnum, - ItemSchema, - ItemTypeEnum, - LanguageEnum, - LastSyncResultEnum, - Lead, - LeadConvertedAccount, - LeadConvertedContact, - LeadOwner, - LeadRequest, - LeadRequestConvertedAccount, - LeadRequestConvertedContact, - LeadRequestOwner, - LeadResponse, - LinkToken, - LinkedAccountStatus, - MetaResponse, - MethodEnum, - ModelOperation, - ModelPermissionDeserializer, - ModelPermissionDeserializerRequest, - MultipartFormFieldRequest, - MultipartFormFieldRequestEncoding, - Note, - NoteAccount, - NoteContact, - NoteOpportunity, - NoteOwner, - NoteRequest, - NoteRequestAccount, - NoteRequestContact, - NoteRequestOpportunity, - NoteRequestOwner, - NoteResponse, - ObjectClassDescriptionRequest, - Opportunity, - OpportunityAccount, - OpportunityOwner, - OpportunityRequest, - OpportunityRequestAccount, - OpportunityRequestOwner, - OpportunityRequestStage, - OpportunityRequestStatus, - OpportunityResponse, - OpportunityStage, - OpportunityStatus, - OpportunityStatusEnum, - OriginTypeEnum, - PaginatedAccountDetailsAndActionsList, - PaginatedAccountList, - PaginatedAssociationList, - PaginatedAssociationTypeList, - PaginatedAuditLogEventList, - PaginatedContactList, - PaginatedCustomObjectClassList, - PaginatedCustomObjectList, - PaginatedEngagementList, - PaginatedEngagementTypeList, - PaginatedIssueList, - PaginatedLeadList, - PaginatedNoteList, - PaginatedOpportunityList, - PaginatedRemoteFieldClassList, - PaginatedStageList, - PaginatedSyncStatusList, - PaginatedTaskList, - PaginatedUserList, - PatchedAccountRequest, - PatchedContactRequest, - PatchedContactRequestOwner, - PatchedEngagementRequest, - PatchedEngagementRequestDirection, - PatchedOpportunityRequest, - PatchedOpportunityRequestStatus, - PatchedTaskRequest, - PatchedTaskRequestStatus, - PhoneNumber, - PhoneNumberRequest, - ReasonEnum, - RemoteData, - RemoteEndpointInfo, - RemoteField, - RemoteFieldApi, - RemoteFieldApiCoverage, - RemoteFieldApiResponse, - RemoteFieldClass, - RemoteFieldClassFieldChoicesItem, - RemoteFieldClassFieldFormat, - RemoteFieldClassFieldType, - RemoteFieldClassForCustomObjectClass, - RemoteFieldClassForCustomObjectClassFieldChoicesItem, - RemoteFieldClassForCustomObjectClassFieldFormat, - RemoteFieldClassForCustomObjectClassFieldType, - RemoteFieldClassForCustomObjectClassItemSchema, - RemoteFieldRemoteFieldClass, - RemoteFieldRequest, - RemoteFieldRequestRemoteFieldClass, - RemoteKey, - RemoteResponse, - RequestFormatEnum, - ResponseTypeEnum, - RoleEnum, - SelectiveSyncConfigurationsUsageEnum, - Stage, - StatusFd5Enum, - SyncStatus, - SyncStatusLastSyncResult, - SyncStatusStatus, - Task, - TaskAccount, - TaskOpportunity, - TaskOwner, - TaskRequest, - TaskRequestAccount, - TaskRequestOpportunity, - TaskRequestOwner, - TaskRequestStatus, - TaskResponse, - TaskStatus, - TaskStatusEnum, - User, - ValidationProblemSource, - WarningValidationProblem, - WebhookReceiver, - ) - from .resources import ( - AsyncPassthroughRetrieveResponse, - ContactsListRequestExpand, - ContactsRetrieveRequestExpand, - EndUserDetailsRequestLanguage, - EngagementsListRequestExpand, - EngagementsRetrieveRequestExpand, - IssuesListRequestStatus, - LeadsListRequestExpand, - LeadsRetrieveRequestExpand, - LinkedAccountsListRequestCategory, - NotesListRequestExpand, - NotesRetrieveRequestExpand, - OpportunitiesListRequestExpand, - OpportunitiesListRequestStatus, - OpportunitiesRetrieveRequestExpand, - TasksListRequestExpand, - TasksRetrieveRequestExpand, - account_details, - account_token, - accounts, - association_types, - associations, - async_passthrough, - audit_trail, - available_actions, - contacts, - custom_object_classes, - custom_objects, - delete_account, - engagement_types, - engagements, - field_mapping, - force_resync, - generate_key, - issues, - leads, - link_token, - linked_accounts, - notes, - opportunities, - passthrough, - regenerate_key, - scopes, - stages, - sync_status, - tasks, - users, - webhook_receivers, - ) -_dynamic_imports: typing.Dict[str, str] = { - "Account": ".types", - "AccountDetails": ".types", - "AccountDetailsAndActions": ".types", - "AccountDetailsAndActionsCategory": ".types", - "AccountDetailsAndActionsIntegration": ".types", - "AccountDetailsAndActionsStatus": ".types", - "AccountDetailsAndActionsStatusEnum": ".types", - "AccountDetailsCategory": ".types", - "AccountIntegration": ".types", - "AccountOwner": ".types", - "AccountRequest": ".types", - "AccountRequestOwner": ".types", - "AccountToken": ".types", - "ActivityTypeEnum": ".types", - "Address": ".types", - "AddressAddressType": ".types", - "AddressCountry": ".types", - "AddressRequest": ".types", - "AddressRequestAddressType": ".types", - "AddressRequestCountry": ".types", - "AddressTypeEnum": ".types", - "AdvancedMetadata": ".types", - "Association": ".types", - "AssociationAssociationType": ".types", - "AssociationSubType": ".types", - "AssociationType": ".types", - "AssociationTypeCardinality": ".types", - "AssociationTypeRequestRequest": ".types", - "AsyncPassthroughReciept": ".types", - "AsyncPassthroughRetrieveResponse": ".resources", - "AuditLogEvent": ".types", - "AuditLogEventEventType": ".types", - "AuditLogEventRole": ".types", - "AvailableActions": ".types", - "CardinalityEnum": ".types", - "CategoriesEnum": ".types", - "CategoryEnum": ".types", - "CommonModelScopeApi": ".types", - "CommonModelScopesBodyRequest": ".types", - "Contact": ".types", - "ContactAccount": ".types", - "ContactOwner": ".types", - "ContactRequest": ".types", - "ContactRequestAccount": ".types", - "ContactRequestOwner": ".types", - "ContactsListRequestExpand": ".resources", - "ContactsRetrieveRequestExpand": ".resources", - "CountryEnum": ".types", - "CrmAccountResponse": ".types", - "CrmAssociationTypeResponse": ".types", - "CrmContactResponse": ".types", - "CrmCustomObjectResponse": ".types", - "CustomObject": ".types", - "CustomObjectClass": ".types", - "CustomObjectRequest": ".types", - "DataPassthroughRequest": ".types", - "DebugModeLog": ".types", - "DebugModelLogSummary": ".types", - "DirectionEnum": ".types", - "EmailAddress": ".types", - "EmailAddressRequest": ".types", - "EnabledActionsEnum": ".types", - "EncodingEnum": ".types", - "EndUserDetailsRequestLanguage": ".resources", - "Engagement": ".types", - "EngagementAccount": ".types", - "EngagementContactsItem": ".types", - "EngagementDirection": ".types", - "EngagementEngagementType": ".types", - "EngagementOwner": ".types", - "EngagementRequest": ".types", - "EngagementRequestAccount": ".types", - "EngagementRequestContactsItem": ".types", - "EngagementRequestDirection": ".types", - "EngagementRequestEngagementType": ".types", - "EngagementRequestOwner": ".types", - "EngagementResponse": ".types", - "EngagementType": ".types", - "EngagementTypeActivityType": ".types", - "EngagementsListRequestExpand": ".resources", - "EngagementsRetrieveRequestExpand": ".resources", - "ErrorValidationProblem": ".types", - "EventTypeEnum": ".types", - "ExternalTargetFieldApi": ".types", - "ExternalTargetFieldApiResponse": ".types", - "FieldFormatEnum": ".types", - "FieldMappingApiInstance": ".types", - "FieldMappingApiInstanceRemoteField": ".types", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".types", - "FieldMappingApiInstanceResponse": ".types", - "FieldMappingApiInstanceTargetField": ".types", - "FieldMappingInstanceResponse": ".types", - "FieldPermissionDeserializer": ".types", - "FieldPermissionDeserializerRequest": ".types", - "FieldTypeEnum": ".types", - "IgnoreCommonModelRequest": ".types", - "IgnoreCommonModelRequestReason": ".types", - "IndividualCommonModelScopeDeserializer": ".types", - "IndividualCommonModelScopeDeserializerRequest": ".types", - "Issue": ".types", - "IssueStatus": ".types", - "IssueStatusEnum": ".types", - "IssuesListRequestStatus": ".resources", - "ItemFormatEnum": ".types", - "ItemSchema": ".types", - "ItemTypeEnum": ".types", - "LanguageEnum": ".types", - "LastSyncResultEnum": ".types", - "Lead": ".types", - "LeadConvertedAccount": ".types", - "LeadConvertedContact": ".types", - "LeadOwner": ".types", - "LeadRequest": ".types", - "LeadRequestConvertedAccount": ".types", - "LeadRequestConvertedContact": ".types", - "LeadRequestOwner": ".types", - "LeadResponse": ".types", - "LeadsListRequestExpand": ".resources", - "LeadsRetrieveRequestExpand": ".resources", - "LinkToken": ".types", - "LinkedAccountStatus": ".types", - "LinkedAccountsListRequestCategory": ".resources", - "MetaResponse": ".types", - "MethodEnum": ".types", - "ModelOperation": ".types", - "ModelPermissionDeserializer": ".types", - "ModelPermissionDeserializerRequest": ".types", - "MultipartFormFieldRequest": ".types", - "MultipartFormFieldRequestEncoding": ".types", - "Note": ".types", - "NoteAccount": ".types", - "NoteContact": ".types", - "NoteOpportunity": ".types", - "NoteOwner": ".types", - "NoteRequest": ".types", - "NoteRequestAccount": ".types", - "NoteRequestContact": ".types", - "NoteRequestOpportunity": ".types", - "NoteRequestOwner": ".types", - "NoteResponse": ".types", - "NotesListRequestExpand": ".resources", - "NotesRetrieveRequestExpand": ".resources", - "ObjectClassDescriptionRequest": ".types", - "OpportunitiesListRequestExpand": ".resources", - "OpportunitiesListRequestStatus": ".resources", - "OpportunitiesRetrieveRequestExpand": ".resources", - "Opportunity": ".types", - "OpportunityAccount": ".types", - "OpportunityOwner": ".types", - "OpportunityRequest": ".types", - "OpportunityRequestAccount": ".types", - "OpportunityRequestOwner": ".types", - "OpportunityRequestStage": ".types", - "OpportunityRequestStatus": ".types", - "OpportunityResponse": ".types", - "OpportunityStage": ".types", - "OpportunityStatus": ".types", - "OpportunityStatusEnum": ".types", - "OriginTypeEnum": ".types", - "PaginatedAccountDetailsAndActionsList": ".types", - "PaginatedAccountList": ".types", - "PaginatedAssociationList": ".types", - "PaginatedAssociationTypeList": ".types", - "PaginatedAuditLogEventList": ".types", - "PaginatedContactList": ".types", - "PaginatedCustomObjectClassList": ".types", - "PaginatedCustomObjectList": ".types", - "PaginatedEngagementList": ".types", - "PaginatedEngagementTypeList": ".types", - "PaginatedIssueList": ".types", - "PaginatedLeadList": ".types", - "PaginatedNoteList": ".types", - "PaginatedOpportunityList": ".types", - "PaginatedRemoteFieldClassList": ".types", - "PaginatedStageList": ".types", - "PaginatedSyncStatusList": ".types", - "PaginatedTaskList": ".types", - "PaginatedUserList": ".types", - "PatchedAccountRequest": ".types", - "PatchedContactRequest": ".types", - "PatchedContactRequestOwner": ".types", - "PatchedEngagementRequest": ".types", - "PatchedEngagementRequestDirection": ".types", - "PatchedOpportunityRequest": ".types", - "PatchedOpportunityRequestStatus": ".types", - "PatchedTaskRequest": ".types", - "PatchedTaskRequestStatus": ".types", - "PhoneNumber": ".types", - "PhoneNumberRequest": ".types", - "ReasonEnum": ".types", - "RemoteData": ".types", - "RemoteEndpointInfo": ".types", - "RemoteField": ".types", - "RemoteFieldApi": ".types", - "RemoteFieldApiCoverage": ".types", - "RemoteFieldApiResponse": ".types", - "RemoteFieldClass": ".types", - "RemoteFieldClassFieldChoicesItem": ".types", - "RemoteFieldClassFieldFormat": ".types", - "RemoteFieldClassFieldType": ".types", - "RemoteFieldClassForCustomObjectClass": ".types", - "RemoteFieldClassForCustomObjectClassFieldChoicesItem": ".types", - "RemoteFieldClassForCustomObjectClassFieldFormat": ".types", - "RemoteFieldClassForCustomObjectClassFieldType": ".types", - "RemoteFieldClassForCustomObjectClassItemSchema": ".types", - "RemoteFieldRemoteFieldClass": ".types", - "RemoteFieldRequest": ".types", - "RemoteFieldRequestRemoteFieldClass": ".types", - "RemoteKey": ".types", - "RemoteResponse": ".types", - "RequestFormatEnum": ".types", - "ResponseTypeEnum": ".types", - "RoleEnum": ".types", - "SelectiveSyncConfigurationsUsageEnum": ".types", - "Stage": ".types", - "StatusFd5Enum": ".types", - "SyncStatus": ".types", - "SyncStatusLastSyncResult": ".types", - "SyncStatusStatus": ".types", - "Task": ".types", - "TaskAccount": ".types", - "TaskOpportunity": ".types", - "TaskOwner": ".types", - "TaskRequest": ".types", - "TaskRequestAccount": ".types", - "TaskRequestOpportunity": ".types", - "TaskRequestOwner": ".types", - "TaskRequestStatus": ".types", - "TaskResponse": ".types", - "TaskStatus": ".types", - "TaskStatusEnum": ".types", - "TasksListRequestExpand": ".resources", - "TasksRetrieveRequestExpand": ".resources", - "User": ".types", - "ValidationProblemSource": ".types", - "WarningValidationProblem": ".types", - "WebhookReceiver": ".types", - "account_details": ".resources", - "account_token": ".resources", - "accounts": ".resources", - "association_types": ".resources", - "associations": ".resources", - "async_passthrough": ".resources", - "audit_trail": ".resources", - "available_actions": ".resources", - "contacts": ".resources", - "custom_object_classes": ".resources", - "custom_objects": ".resources", - "delete_account": ".resources", - "engagement_types": ".resources", - "engagements": ".resources", - "field_mapping": ".resources", - "force_resync": ".resources", - "generate_key": ".resources", - "issues": ".resources", - "leads": ".resources", - "link_token": ".resources", - "linked_accounts": ".resources", - "notes": ".resources", - "opportunities": ".resources", - "passthrough": ".resources", - "regenerate_key": ".resources", - "scopes": ".resources", - "stages": ".resources", - "sync_status": ".resources", - "tasks": ".resources", - "users": ".resources", - "webhook_receivers": ".resources", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "Account", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountOwner", - "AccountRequest", - "AccountRequestOwner", - "AccountToken", - "ActivityTypeEnum", - "Address", - "AddressAddressType", - "AddressCountry", - "AddressRequest", - "AddressRequestAddressType", - "AddressRequestCountry", - "AddressTypeEnum", - "AdvancedMetadata", - "Association", - "AssociationAssociationType", - "AssociationSubType", - "AssociationType", - "AssociationTypeCardinality", - "AssociationTypeRequestRequest", - "AsyncPassthroughReciept", - "AsyncPassthroughRetrieveResponse", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CardinalityEnum", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "Contact", - "ContactAccount", - "ContactOwner", - "ContactRequest", - "ContactRequestAccount", - "ContactRequestOwner", - "ContactsListRequestExpand", - "ContactsRetrieveRequestExpand", - "CountryEnum", - "CrmAccountResponse", - "CrmAssociationTypeResponse", - "CrmContactResponse", - "CrmCustomObjectResponse", - "CustomObject", - "CustomObjectClass", - "CustomObjectRequest", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "DirectionEnum", - "EmailAddress", - "EmailAddressRequest", - "EnabledActionsEnum", - "EncodingEnum", - "EndUserDetailsRequestLanguage", - "Engagement", - "EngagementAccount", - "EngagementContactsItem", - "EngagementDirection", - "EngagementEngagementType", - "EngagementOwner", - "EngagementRequest", - "EngagementRequestAccount", - "EngagementRequestContactsItem", - "EngagementRequestDirection", - "EngagementRequestEngagementType", - "EngagementRequestOwner", - "EngagementResponse", - "EngagementType", - "EngagementTypeActivityType", - "EngagementsListRequestExpand", - "EngagementsRetrieveRequestExpand", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldFormatEnum", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FieldTypeEnum", - "IgnoreCommonModelRequest", - "IgnoreCommonModelRequestReason", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "IssuesListRequestStatus", - "ItemFormatEnum", - "ItemSchema", - "ItemTypeEnum", - "LanguageEnum", - "LastSyncResultEnum", - "Lead", - "LeadConvertedAccount", - "LeadConvertedContact", - "LeadOwner", - "LeadRequest", - "LeadRequestConvertedAccount", - "LeadRequestConvertedContact", - "LeadRequestOwner", - "LeadResponse", - "LeadsListRequestExpand", - "LeadsRetrieveRequestExpand", - "LinkToken", - "LinkedAccountStatus", - "LinkedAccountsListRequestCategory", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "Note", - "NoteAccount", - "NoteContact", - "NoteOpportunity", - "NoteOwner", - "NoteRequest", - "NoteRequestAccount", - "NoteRequestContact", - "NoteRequestOpportunity", - "NoteRequestOwner", - "NoteResponse", - "NotesListRequestExpand", - "NotesRetrieveRequestExpand", - "ObjectClassDescriptionRequest", - "OpportunitiesListRequestExpand", - "OpportunitiesListRequestStatus", - "OpportunitiesRetrieveRequestExpand", - "Opportunity", - "OpportunityAccount", - "OpportunityOwner", - "OpportunityRequest", - "OpportunityRequestAccount", - "OpportunityRequestOwner", - "OpportunityRequestStage", - "OpportunityRequestStatus", - "OpportunityResponse", - "OpportunityStage", - "OpportunityStatus", - "OpportunityStatusEnum", - "OriginTypeEnum", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAccountList", - "PaginatedAssociationList", - "PaginatedAssociationTypeList", - "PaginatedAuditLogEventList", - "PaginatedContactList", - "PaginatedCustomObjectClassList", - "PaginatedCustomObjectList", - "PaginatedEngagementList", - "PaginatedEngagementTypeList", - "PaginatedIssueList", - "PaginatedLeadList", - "PaginatedNoteList", - "PaginatedOpportunityList", - "PaginatedRemoteFieldClassList", - "PaginatedStageList", - "PaginatedSyncStatusList", - "PaginatedTaskList", - "PaginatedUserList", - "PatchedAccountRequest", - "PatchedContactRequest", - "PatchedContactRequestOwner", - "PatchedEngagementRequest", - "PatchedEngagementRequestDirection", - "PatchedOpportunityRequest", - "PatchedOpportunityRequestStatus", - "PatchedTaskRequest", - "PatchedTaskRequestStatus", - "PhoneNumber", - "PhoneNumberRequest", - "ReasonEnum", - "RemoteData", - "RemoteEndpointInfo", - "RemoteField", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteFieldClass", - "RemoteFieldClassFieldChoicesItem", - "RemoteFieldClassFieldFormat", - "RemoteFieldClassFieldType", - "RemoteFieldClassForCustomObjectClass", - "RemoteFieldClassForCustomObjectClassFieldChoicesItem", - "RemoteFieldClassForCustomObjectClassFieldFormat", - "RemoteFieldClassForCustomObjectClassFieldType", - "RemoteFieldClassForCustomObjectClassItemSchema", - "RemoteFieldRemoteFieldClass", - "RemoteFieldRequest", - "RemoteFieldRequestRemoteFieldClass", - "RemoteKey", - "RemoteResponse", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "SelectiveSyncConfigurationsUsageEnum", - "Stage", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "Task", - "TaskAccount", - "TaskOpportunity", - "TaskOwner", - "TaskRequest", - "TaskRequestAccount", - "TaskRequestOpportunity", - "TaskRequestOwner", - "TaskRequestStatus", - "TaskResponse", - "TaskStatus", - "TaskStatusEnum", - "TasksListRequestExpand", - "TasksRetrieveRequestExpand", - "User", - "ValidationProblemSource", - "WarningValidationProblem", - "WebhookReceiver", - "account_details", - "account_token", - "accounts", - "association_types", - "associations", - "async_passthrough", - "audit_trail", - "available_actions", - "contacts", - "custom_object_classes", - "custom_objects", - "delete_account", - "engagement_types", - "engagements", - "field_mapping", - "force_resync", - "generate_key", - "issues", - "leads", - "link_token", - "linked_accounts", - "notes", - "opportunities", - "passthrough", - "regenerate_key", - "scopes", - "stages", - "sync_status", - "tasks", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/crm/client.py b/src/merge/resources/crm/client.py deleted file mode 100644 index 2a64aa0d..00000000 --- a/src/merge/resources/crm/client.py +++ /dev/null @@ -1,649 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawCrmClient, RawCrmClient - -if typing.TYPE_CHECKING: - from .resources.account_details.client import AccountDetailsClient, AsyncAccountDetailsClient - from .resources.account_token.client import AccountTokenClient, AsyncAccountTokenClient - from .resources.accounts.client import AccountsClient, AsyncAccountsClient - from .resources.association_types.client import AssociationTypesClient, AsyncAssociationTypesClient - from .resources.associations.client import AssociationsClient, AsyncAssociationsClient - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_crm_resources_async_passthrough_client_AsyncPassthroughClient, - ) - from .resources.audit_trail.client import AsyncAuditTrailClient, AuditTrailClient - from .resources.available_actions.client import AsyncAvailableActionsClient, AvailableActionsClient - from .resources.contacts.client import AsyncContactsClient, ContactsClient - from .resources.custom_object_classes.client import AsyncCustomObjectClassesClient, CustomObjectClassesClient - from .resources.custom_objects.client import AsyncCustomObjectsClient, CustomObjectsClient - from .resources.delete_account.client import AsyncDeleteAccountClient, DeleteAccountClient - from .resources.engagement_types.client import AsyncEngagementTypesClient, EngagementTypesClient - from .resources.engagements.client import AsyncEngagementsClient, EngagementsClient - from .resources.field_mapping.client import AsyncFieldMappingClient, FieldMappingClient - from .resources.force_resync.client import AsyncForceResyncClient, ForceResyncClient - from .resources.generate_key.client import AsyncGenerateKeyClient, GenerateKeyClient - from .resources.issues.client import AsyncIssuesClient, IssuesClient - from .resources.leads.client import AsyncLeadsClient, LeadsClient - from .resources.link_token.client import AsyncLinkTokenClient, LinkTokenClient - from .resources.linked_accounts.client import AsyncLinkedAccountsClient, LinkedAccountsClient - from .resources.notes.client import AsyncNotesClient, NotesClient - from .resources.opportunities.client import AsyncOpportunitiesClient, OpportunitiesClient - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_crm_resources_passthrough_client_AsyncPassthroughClient, - ) - from .resources.passthrough.client import PassthroughClient - from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient - from .resources.scopes.client import AsyncScopesClient, ScopesClient - from .resources.stages.client import AsyncStagesClient, StagesClient - from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient - from .resources.tasks.client import AsyncTasksClient, TasksClient - from .resources.users.client import AsyncUsersClient, UsersClient - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient - - -class CrmClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCrmClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AccountDetailsClient] = None - self._account_token: typing.Optional[AccountTokenClient] = None - self._accounts: typing.Optional[AccountsClient] = None - self._async_passthrough: typing.Optional[ - resources_crm_resources_async_passthrough_client_AsyncPassthroughClient - ] = None - self._audit_trail: typing.Optional[AuditTrailClient] = None - self._available_actions: typing.Optional[AvailableActionsClient] = None - self._contacts: typing.Optional[ContactsClient] = None - self._custom_object_classes: typing.Optional[CustomObjectClassesClient] = None - self._association_types: typing.Optional[AssociationTypesClient] = None - self._custom_objects: typing.Optional[CustomObjectsClient] = None - self._associations: typing.Optional[AssociationsClient] = None - self._scopes: typing.Optional[ScopesClient] = None - self._delete_account: typing.Optional[DeleteAccountClient] = None - self._engagement_types: typing.Optional[EngagementTypesClient] = None - self._engagements: typing.Optional[EngagementsClient] = None - self._field_mapping: typing.Optional[FieldMappingClient] = None - self._generate_key: typing.Optional[GenerateKeyClient] = None - self._issues: typing.Optional[IssuesClient] = None - self._leads: typing.Optional[LeadsClient] = None - self._link_token: typing.Optional[LinkTokenClient] = None - self._linked_accounts: typing.Optional[LinkedAccountsClient] = None - self._notes: typing.Optional[NotesClient] = None - self._opportunities: typing.Optional[OpportunitiesClient] = None - self._passthrough: typing.Optional[PassthroughClient] = None - self._regenerate_key: typing.Optional[RegenerateKeyClient] = None - self._stages: typing.Optional[StagesClient] = None - self._sync_status: typing.Optional[SyncStatusClient] = None - self._force_resync: typing.Optional[ForceResyncClient] = None - self._tasks: typing.Optional[TasksClient] = None - self._users: typing.Optional[UsersClient] = None - self._webhook_receivers: typing.Optional[WebhookReceiversClient] = None - - @property - def with_raw_response(self) -> RawCrmClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCrmClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AccountDetailsClient # noqa: E402 - - self._account_details = AccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AccountTokenClient # noqa: E402 - - self._account_token = AccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def accounts(self): - if self._accounts is None: - from .resources.accounts.client import AccountsClient # noqa: E402 - - self._accounts = AccountsClient(client_wrapper=self._client_wrapper) - return self._accounts - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_crm_resources_async_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._async_passthrough = resources_crm_resources_async_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._async_passthrough - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AuditTrailClient # noqa: E402 - - self._audit_trail = AuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AvailableActionsClient # noqa: E402 - - self._available_actions = AvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def contacts(self): - if self._contacts is None: - from .resources.contacts.client import ContactsClient # noqa: E402 - - self._contacts = ContactsClient(client_wrapper=self._client_wrapper) - return self._contacts - - @property - def custom_object_classes(self): - if self._custom_object_classes is None: - from .resources.custom_object_classes.client import CustomObjectClassesClient # noqa: E402 - - self._custom_object_classes = CustomObjectClassesClient(client_wrapper=self._client_wrapper) - return self._custom_object_classes - - @property - def association_types(self): - if self._association_types is None: - from .resources.association_types.client import AssociationTypesClient # noqa: E402 - - self._association_types = AssociationTypesClient(client_wrapper=self._client_wrapper) - return self._association_types - - @property - def custom_objects(self): - if self._custom_objects is None: - from .resources.custom_objects.client import CustomObjectsClient # noqa: E402 - - self._custom_objects = CustomObjectsClient(client_wrapper=self._client_wrapper) - return self._custom_objects - - @property - def associations(self): - if self._associations is None: - from .resources.associations.client import AssociationsClient # noqa: E402 - - self._associations = AssociationsClient(client_wrapper=self._client_wrapper) - return self._associations - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import ScopesClient # noqa: E402 - - self._scopes = ScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import DeleteAccountClient # noqa: E402 - - self._delete_account = DeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def engagement_types(self): - if self._engagement_types is None: - from .resources.engagement_types.client import EngagementTypesClient # noqa: E402 - - self._engagement_types = EngagementTypesClient(client_wrapper=self._client_wrapper) - return self._engagement_types - - @property - def engagements(self): - if self._engagements is None: - from .resources.engagements.client import EngagementsClient # noqa: E402 - - self._engagements = EngagementsClient(client_wrapper=self._client_wrapper) - return self._engagements - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import FieldMappingClient # noqa: E402 - - self._field_mapping = FieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import GenerateKeyClient # noqa: E402 - - self._generate_key = GenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import IssuesClient # noqa: E402 - - self._issues = IssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def leads(self): - if self._leads is None: - from .resources.leads.client import LeadsClient # noqa: E402 - - self._leads = LeadsClient(client_wrapper=self._client_wrapper) - return self._leads - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import LinkTokenClient # noqa: E402 - - self._link_token = LinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import LinkedAccountsClient # noqa: E402 - - self._linked_accounts = LinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def notes(self): - if self._notes is None: - from .resources.notes.client import NotesClient # noqa: E402 - - self._notes = NotesClient(client_wrapper=self._client_wrapper) - return self._notes - - @property - def opportunities(self): - if self._opportunities is None: - from .resources.opportunities.client import OpportunitiesClient # noqa: E402 - - self._opportunities = OpportunitiesClient(client_wrapper=self._client_wrapper) - return self._opportunities - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import PassthroughClient # noqa: E402 - - self._passthrough = PassthroughClient(client_wrapper=self._client_wrapper) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import RegenerateKeyClient # noqa: E402 - - self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def stages(self): - if self._stages is None: - from .resources.stages.client import StagesClient # noqa: E402 - - self._stages = StagesClient(client_wrapper=self._client_wrapper) - return self._stages - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import SyncStatusClient # noqa: E402 - - self._sync_status = SyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import ForceResyncClient # noqa: E402 - - self._force_resync = ForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tasks(self): - if self._tasks is None: - from .resources.tasks.client import TasksClient # noqa: E402 - - self._tasks = TasksClient(client_wrapper=self._client_wrapper) - return self._tasks - - @property - def users(self): - if self._users is None: - from .resources.users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import WebhookReceiversClient # noqa: E402 - - self._webhook_receivers = WebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers - - -class AsyncCrmClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCrmClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AsyncAccountDetailsClient] = None - self._account_token: typing.Optional[AsyncAccountTokenClient] = None - self._accounts: typing.Optional[AsyncAccountsClient] = None - self._async_passthrough: typing.Optional[AsyncAsyncPassthroughClient] = None - self._audit_trail: typing.Optional[AsyncAuditTrailClient] = None - self._available_actions: typing.Optional[AsyncAvailableActionsClient] = None - self._contacts: typing.Optional[AsyncContactsClient] = None - self._custom_object_classes: typing.Optional[AsyncCustomObjectClassesClient] = None - self._association_types: typing.Optional[AsyncAssociationTypesClient] = None - self._custom_objects: typing.Optional[AsyncCustomObjectsClient] = None - self._associations: typing.Optional[AsyncAssociationsClient] = None - self._scopes: typing.Optional[AsyncScopesClient] = None - self._delete_account: typing.Optional[AsyncDeleteAccountClient] = None - self._engagement_types: typing.Optional[AsyncEngagementTypesClient] = None - self._engagements: typing.Optional[AsyncEngagementsClient] = None - self._field_mapping: typing.Optional[AsyncFieldMappingClient] = None - self._generate_key: typing.Optional[AsyncGenerateKeyClient] = None - self._issues: typing.Optional[AsyncIssuesClient] = None - self._leads: typing.Optional[AsyncLeadsClient] = None - self._link_token: typing.Optional[AsyncLinkTokenClient] = None - self._linked_accounts: typing.Optional[AsyncLinkedAccountsClient] = None - self._notes: typing.Optional[AsyncNotesClient] = None - self._opportunities: typing.Optional[AsyncOpportunitiesClient] = None - self._passthrough: typing.Optional[resources_crm_resources_passthrough_client_AsyncPassthroughClient] = None - self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None - self._stages: typing.Optional[AsyncStagesClient] = None - self._sync_status: typing.Optional[AsyncSyncStatusClient] = None - self._force_resync: typing.Optional[AsyncForceResyncClient] = None - self._tasks: typing.Optional[AsyncTasksClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - self._webhook_receivers: typing.Optional[AsyncWebhookReceiversClient] = None - - @property - def with_raw_response(self) -> AsyncRawCrmClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCrmClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AsyncAccountDetailsClient # noqa: E402 - - self._account_details = AsyncAccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AsyncAccountTokenClient # noqa: E402 - - self._account_token = AsyncAccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def accounts(self): - if self._accounts is None: - from .resources.accounts.client import AsyncAccountsClient # noqa: E402 - - self._accounts = AsyncAccountsClient(client_wrapper=self._client_wrapper) - return self._accounts - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient # noqa: E402 - - self._async_passthrough = AsyncAsyncPassthroughClient(client_wrapper=self._client_wrapper) - return self._async_passthrough - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AsyncAuditTrailClient # noqa: E402 - - self._audit_trail = AsyncAuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AsyncAvailableActionsClient # noqa: E402 - - self._available_actions = AsyncAvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def contacts(self): - if self._contacts is None: - from .resources.contacts.client import AsyncContactsClient # noqa: E402 - - self._contacts = AsyncContactsClient(client_wrapper=self._client_wrapper) - return self._contacts - - @property - def custom_object_classes(self): - if self._custom_object_classes is None: - from .resources.custom_object_classes.client import AsyncCustomObjectClassesClient # noqa: E402 - - self._custom_object_classes = AsyncCustomObjectClassesClient(client_wrapper=self._client_wrapper) - return self._custom_object_classes - - @property - def association_types(self): - if self._association_types is None: - from .resources.association_types.client import AsyncAssociationTypesClient # noqa: E402 - - self._association_types = AsyncAssociationTypesClient(client_wrapper=self._client_wrapper) - return self._association_types - - @property - def custom_objects(self): - if self._custom_objects is None: - from .resources.custom_objects.client import AsyncCustomObjectsClient # noqa: E402 - - self._custom_objects = AsyncCustomObjectsClient(client_wrapper=self._client_wrapper) - return self._custom_objects - - @property - def associations(self): - if self._associations is None: - from .resources.associations.client import AsyncAssociationsClient # noqa: E402 - - self._associations = AsyncAssociationsClient(client_wrapper=self._client_wrapper) - return self._associations - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import AsyncScopesClient # noqa: E402 - - self._scopes = AsyncScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import AsyncDeleteAccountClient # noqa: E402 - - self._delete_account = AsyncDeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def engagement_types(self): - if self._engagement_types is None: - from .resources.engagement_types.client import AsyncEngagementTypesClient # noqa: E402 - - self._engagement_types = AsyncEngagementTypesClient(client_wrapper=self._client_wrapper) - return self._engagement_types - - @property - def engagements(self): - if self._engagements is None: - from .resources.engagements.client import AsyncEngagementsClient # noqa: E402 - - self._engagements = AsyncEngagementsClient(client_wrapper=self._client_wrapper) - return self._engagements - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import AsyncFieldMappingClient # noqa: E402 - - self._field_mapping = AsyncFieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import AsyncGenerateKeyClient # noqa: E402 - - self._generate_key = AsyncGenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import AsyncIssuesClient # noqa: E402 - - self._issues = AsyncIssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def leads(self): - if self._leads is None: - from .resources.leads.client import AsyncLeadsClient # noqa: E402 - - self._leads = AsyncLeadsClient(client_wrapper=self._client_wrapper) - return self._leads - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import AsyncLinkTokenClient # noqa: E402 - - self._link_token = AsyncLinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import AsyncLinkedAccountsClient # noqa: E402 - - self._linked_accounts = AsyncLinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def notes(self): - if self._notes is None: - from .resources.notes.client import AsyncNotesClient # noqa: E402 - - self._notes = AsyncNotesClient(client_wrapper=self._client_wrapper) - return self._notes - - @property - def opportunities(self): - if self._opportunities is None: - from .resources.opportunities.client import AsyncOpportunitiesClient # noqa: E402 - - self._opportunities = AsyncOpportunitiesClient(client_wrapper=self._client_wrapper) - return self._opportunities - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_crm_resources_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._passthrough = resources_crm_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import AsyncRegenerateKeyClient # noqa: E402 - - self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def stages(self): - if self._stages is None: - from .resources.stages.client import AsyncStagesClient # noqa: E402 - - self._stages = AsyncStagesClient(client_wrapper=self._client_wrapper) - return self._stages - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import AsyncSyncStatusClient # noqa: E402 - - self._sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import AsyncForceResyncClient # noqa: E402 - - self._force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tasks(self): - if self._tasks is None: - from .resources.tasks.client import AsyncTasksClient # noqa: E402 - - self._tasks = AsyncTasksClient(client_wrapper=self._client_wrapper) - return self._tasks - - @property - def users(self): - if self._users is None: - from .resources.users.client import AsyncUsersClient # noqa: E402 - - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient # noqa: E402 - - self._webhook_receivers = AsyncWebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers diff --git a/src/merge/resources/crm/raw_client.py b/src/merge/resources/crm/raw_client.py deleted file mode 100644 index 6317b4c8..00000000 --- a/src/merge/resources/crm/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawCrmClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawCrmClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/merge/resources/crm/resources/__init__.py b/src/merge/resources/crm/resources/__init__.py deleted file mode 100644 index aacab149..00000000 --- a/src/merge/resources/crm/resources/__init__.py +++ /dev/null @@ -1,176 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - account_details, - account_token, - accounts, - association_types, - associations, - async_passthrough, - audit_trail, - available_actions, - contacts, - custom_object_classes, - custom_objects, - delete_account, - engagement_types, - engagements, - field_mapping, - force_resync, - generate_key, - issues, - leads, - link_token, - linked_accounts, - notes, - opportunities, - passthrough, - regenerate_key, - scopes, - stages, - sync_status, - tasks, - users, - webhook_receivers, - ) - from .async_passthrough import AsyncPassthroughRetrieveResponse - from .contacts import ContactsListRequestExpand, ContactsRetrieveRequestExpand - from .engagements import EngagementsListRequestExpand, EngagementsRetrieveRequestExpand - from .issues import IssuesListRequestStatus - from .leads import LeadsListRequestExpand, LeadsRetrieveRequestExpand - from .link_token import EndUserDetailsRequestLanguage - from .linked_accounts import LinkedAccountsListRequestCategory - from .notes import NotesListRequestExpand, NotesRetrieveRequestExpand - from .opportunities import ( - OpportunitiesListRequestExpand, - OpportunitiesListRequestStatus, - OpportunitiesRetrieveRequestExpand, - ) - from .tasks import TasksListRequestExpand, TasksRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "AsyncPassthroughRetrieveResponse": ".async_passthrough", - "ContactsListRequestExpand": ".contacts", - "ContactsRetrieveRequestExpand": ".contacts", - "EndUserDetailsRequestLanguage": ".link_token", - "EngagementsListRequestExpand": ".engagements", - "EngagementsRetrieveRequestExpand": ".engagements", - "IssuesListRequestStatus": ".issues", - "LeadsListRequestExpand": ".leads", - "LeadsRetrieveRequestExpand": ".leads", - "LinkedAccountsListRequestCategory": ".linked_accounts", - "NotesListRequestExpand": ".notes", - "NotesRetrieveRequestExpand": ".notes", - "OpportunitiesListRequestExpand": ".opportunities", - "OpportunitiesListRequestStatus": ".opportunities", - "OpportunitiesRetrieveRequestExpand": ".opportunities", - "TasksListRequestExpand": ".tasks", - "TasksRetrieveRequestExpand": ".tasks", - "account_details": ".", - "account_token": ".", - "accounts": ".", - "association_types": ".", - "associations": ".", - "async_passthrough": ".", - "audit_trail": ".", - "available_actions": ".", - "contacts": ".", - "custom_object_classes": ".", - "custom_objects": ".", - "delete_account": ".", - "engagement_types": ".", - "engagements": ".", - "field_mapping": ".", - "force_resync": ".", - "generate_key": ".", - "issues": ".", - "leads": ".", - "link_token": ".", - "linked_accounts": ".", - "notes": ".", - "opportunities": ".", - "passthrough": ".", - "regenerate_key": ".", - "scopes": ".", - "stages": ".", - "sync_status": ".", - "tasks": ".", - "users": ".", - "webhook_receivers": ".", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AsyncPassthroughRetrieveResponse", - "ContactsListRequestExpand", - "ContactsRetrieveRequestExpand", - "EndUserDetailsRequestLanguage", - "EngagementsListRequestExpand", - "EngagementsRetrieveRequestExpand", - "IssuesListRequestStatus", - "LeadsListRequestExpand", - "LeadsRetrieveRequestExpand", - "LinkedAccountsListRequestCategory", - "NotesListRequestExpand", - "NotesRetrieveRequestExpand", - "OpportunitiesListRequestExpand", - "OpportunitiesListRequestStatus", - "OpportunitiesRetrieveRequestExpand", - "TasksListRequestExpand", - "TasksRetrieveRequestExpand", - "account_details", - "account_token", - "accounts", - "association_types", - "associations", - "async_passthrough", - "audit_trail", - "available_actions", - "contacts", - "custom_object_classes", - "custom_objects", - "delete_account", - "engagement_types", - "engagements", - "field_mapping", - "force_resync", - "generate_key", - "issues", - "leads", - "link_token", - "linked_accounts", - "notes", - "opportunities", - "passthrough", - "regenerate_key", - "scopes", - "stages", - "sync_status", - "tasks", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/crm/resources/account_details/__init__.py b/src/merge/resources/crm/resources/account_details/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/account_details/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/account_details/client.py b/src/merge/resources/crm/resources/account_details/client.py deleted file mode 100644 index a8718239..00000000 --- a/src/merge/resources/crm/resources/account_details/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_details import AccountDetails -from .raw_client import AsyncRawAccountDetailsClient, RawAccountDetailsClient - - -class AccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountDetailsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.account_details.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountDetailsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.account_details.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/account_details/raw_client.py b/src/merge/resources/crm/resources/account_details/raw_client.py deleted file mode 100644 index 3f119c05..00000000 --- a/src/merge/resources/crm/resources/account_details/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_details import AccountDetails - - -class RawAccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountDetails] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountDetails] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/account_token/__init__.py b/src/merge/resources/crm/resources/account_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/account_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/account_token/client.py b/src/merge/resources/crm/resources/account_token/client.py deleted file mode 100644 index 76432434..00000000 --- a/src/merge/resources/crm/resources/account_token/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_token import AccountToken -from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient - - -class AccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountTokenClient - """ - return self._raw_client - - def retrieve(self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.account_token.retrieve( - public_token="public_token", - ) - """ - _response = self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data - - -class AsyncAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountTokenClient - """ - return self._raw_client - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.account_token.retrieve( - public_token="public_token", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/account_token/raw_client.py b/src/merge/resources/crm/resources/account_token/raw_client.py deleted file mode 100644 index e39f8772..00000000 --- a/src/merge/resources/crm/resources/account_token/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_token import AccountToken - - -class RawAccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountToken] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/accounts/__init__.py b/src/merge/resources/crm/resources/accounts/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/accounts/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/accounts/client.py b/src/merge/resources/crm/resources/accounts/client.py deleted file mode 100644 index 54d26f13..00000000 --- a/src/merge/resources/crm/resources/accounts/client.py +++ /dev/null @@ -1,969 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account import Account -from ...types.account_request import AccountRequest -from ...types.crm_account_response import CrmAccountResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_account_list import PaginatedAccountList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_account_request import PatchedAccountRequest -from .raw_client import AsyncRawAccountsClient, RawAccountsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountList: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return accounts with this name. - - owner_id : typing.Optional[str] - If provided, will only return accounts with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.accounts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - owner_id="owner_id", - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - owner_id=owner_id, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmAccountResponse: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmAccountResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import AccountRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.accounts.create( - is_debug_mode=True, - run_async=True, - model=AccountRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Account: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Account - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.accounts.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmAccountResponse: - """ - Updates an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmAccountResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import PatchedAccountRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.accounts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedAccountRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CRMAccount` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.accounts.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CRMAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.accounts.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.accounts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountList: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return accounts with this name. - - owner_id : typing.Optional[str] - If provided, will only return accounts with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.accounts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - owner_id="owner_id", - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - owner_id=owner_id, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmAccountResponse: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmAccountResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import AccountRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.accounts.create( - is_debug_mode=True, - run_async=True, - model=AccountRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Account: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Account - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.accounts.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmAccountResponse: - """ - Updates an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmAccountResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import PatchedAccountRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.accounts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedAccountRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `CRMAccount` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.accounts.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CRMAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.accounts.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.accounts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/accounts/raw_client.py b/src/merge/resources/crm/resources/accounts/raw_client.py deleted file mode 100644 index f1e94b94..00000000 --- a/src/merge/resources/crm/resources/accounts/raw_client.py +++ /dev/null @@ -1,933 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account import Account -from ...types.account_request import AccountRequest -from ...types.crm_account_response import CrmAccountResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_account_list import PaginatedAccountList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_account_request import PatchedAccountRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountList]: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return accounts with this name. - - owner_id : typing.Optional[str] - If provided, will only return accounts with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/accounts", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "owner_id": owner_id, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountList, - construct_type( - type_=PaginatedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CrmAccountResponse]: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CrmAccountResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/accounts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmAccountResponse, - construct_type( - type_=CrmAccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Account]: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Account] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Account, - construct_type( - type_=Account, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CrmAccountResponse]: - """ - Updates an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CrmAccountResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/accounts/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmAccountResponse, - construct_type( - type_=CrmAccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `CRMAccount` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/accounts/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `CRMAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/accounts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/accounts/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountList]: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return accounts with this name. - - owner_id : typing.Optional[str] - If provided, will only return accounts with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/accounts", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "owner_id": owner_id, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountList, - construct_type( - type_=PaginatedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: AccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CrmAccountResponse]: - """ - Creates an `Account` object with the given values. - - Parameters - ---------- - model : AccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CrmAccountResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/accounts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmAccountResponse, - construct_type( - type_=CrmAccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["owner"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Account]: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["owner"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Account] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Account, - construct_type( - type_=Account, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedAccountRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CrmAccountResponse]: - """ - Updates an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedAccountRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CrmAccountResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/accounts/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmAccountResponse, - construct_type( - type_=CrmAccountResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `CRMAccount` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/accounts/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `CRMAccount` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/accounts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/accounts/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/association_types/__init__.py b/src/merge/resources/crm/resources/association_types/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/association_types/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/association_types/client.py b/src/merge/resources/crm/resources/association_types/client.py deleted file mode 100644 index b7f4611c..00000000 --- a/src/merge/resources/crm/resources/association_types/client.py +++ /dev/null @@ -1,645 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.association_type import AssociationType -from ...types.association_type_request_request import AssociationTypeRequestRequest -from ...types.crm_association_type_response import CrmAssociationTypeResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_association_type_list import PaginatedAssociationTypeList -from .raw_client import AsyncRawAssociationTypesClient, RawAssociationTypesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AssociationTypesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAssociationTypesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAssociationTypesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAssociationTypesClient - """ - return self._raw_client - - def custom_object_classes_association_types_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAssociationTypeList: - """ - Returns a list of `AssociationType` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAssociationTypeList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.association_types.custom_object_classes_association_types_list( - custom_object_class_id="custom_object_class_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.custom_object_classes_association_types_list( - custom_object_class_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def custom_object_classes_association_types_create( - self, - custom_object_class_id: str, - *, - model: AssociationTypeRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmAssociationTypeResponse: - """ - Creates an `AssociationType` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : AssociationTypeRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmAssociationTypeResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import ( - AssociationTypeRequestRequest, - ObjectClassDescriptionRequest, - OriginTypeEnum, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.association_types.custom_object_classes_association_types_create( - custom_object_class_id="custom_object_class_id", - is_debug_mode=True, - run_async=True, - model=AssociationTypeRequestRequest( - source_object_class=ObjectClassDescriptionRequest( - id="id", - origin_type=OriginTypeEnum.CUSTOM_OBJECT, - ), - target_object_classes=[ - ObjectClassDescriptionRequest( - id="id", - origin_type=OriginTypeEnum.CUSTOM_OBJECT, - ) - ], - remote_key_name="remote_key_name", - ), - ) - """ - _response = self._raw_client.custom_object_classes_association_types_create( - custom_object_class_id, - model=model, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def custom_object_classes_association_types_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AssociationType: - """ - Returns an `AssociationType` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AssociationType - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.association_types.custom_object_classes_association_types_retrieve( - custom_object_class_id="custom_object_class_id", - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.custom_object_classes_association_types_retrieve( - custom_object_class_id, - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def custom_object_classes_association_types_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `CRMAssociationType` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.association_types.custom_object_classes_association_types_meta_post_retrieve( - custom_object_class_id="custom_object_class_id", - ) - """ - _response = self._raw_client.custom_object_classes_association_types_meta_post_retrieve( - custom_object_class_id, request_options=request_options - ) - return _response.data - - -class AsyncAssociationTypesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAssociationTypesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAssociationTypesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAssociationTypesClient - """ - return self._raw_client - - async def custom_object_classes_association_types_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAssociationTypeList: - """ - Returns a list of `AssociationType` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAssociationTypeList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.association_types.custom_object_classes_association_types_list( - custom_object_class_id="custom_object_class_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_association_types_list( - custom_object_class_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def custom_object_classes_association_types_create( - self, - custom_object_class_id: str, - *, - model: AssociationTypeRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmAssociationTypeResponse: - """ - Creates an `AssociationType` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : AssociationTypeRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmAssociationTypeResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import ( - AssociationTypeRequestRequest, - ObjectClassDescriptionRequest, - OriginTypeEnum, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.association_types.custom_object_classes_association_types_create( - custom_object_class_id="custom_object_class_id", - is_debug_mode=True, - run_async=True, - model=AssociationTypeRequestRequest( - source_object_class=ObjectClassDescriptionRequest( - id="id", - origin_type=OriginTypeEnum.CUSTOM_OBJECT, - ), - target_object_classes=[ - ObjectClassDescriptionRequest( - id="id", - origin_type=OriginTypeEnum.CUSTOM_OBJECT, - ) - ], - remote_key_name="remote_key_name", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_association_types_create( - custom_object_class_id, - model=model, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def custom_object_classes_association_types_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AssociationType: - """ - Returns an `AssociationType` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AssociationType - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.association_types.custom_object_classes_association_types_retrieve( - custom_object_class_id="custom_object_class_id", - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_association_types_retrieve( - custom_object_class_id, - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def custom_object_classes_association_types_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `CRMAssociationType` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.association_types.custom_object_classes_association_types_meta_post_retrieve( - custom_object_class_id="custom_object_class_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_association_types_meta_post_retrieve( - custom_object_class_id, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/crm/resources/association_types/raw_client.py b/src/merge/resources/crm/resources/association_types/raw_client.py deleted file mode 100644 index 22a134e5..00000000 --- a/src/merge/resources/crm/resources/association_types/raw_client.py +++ /dev/null @@ -1,551 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.association_type import AssociationType -from ...types.association_type_request_request import AssociationTypeRequestRequest -from ...types.crm_association_type_response import CrmAssociationTypeResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_association_type_list import PaginatedAssociationTypeList - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAssociationTypesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def custom_object_classes_association_types_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAssociationTypeList]: - """ - Returns a list of `AssociationType` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAssociationTypeList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAssociationTypeList, - construct_type( - type_=PaginatedAssociationTypeList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_association_types_create( - self, - custom_object_class_id: str, - *, - model: AssociationTypeRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CrmAssociationTypeResponse]: - """ - Creates an `AssociationType` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : AssociationTypeRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CrmAssociationTypeResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmAssociationTypeResponse, - construct_type( - type_=CrmAssociationTypeResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_association_types_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[AssociationType]: - """ - Returns an `AssociationType` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AssociationType] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AssociationType, - construct_type( - type_=AssociationType, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_association_types_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `CRMAssociationType` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAssociationTypesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def custom_object_classes_association_types_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAssociationTypeList]: - """ - Returns a list of `AssociationType` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAssociationTypeList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAssociationTypeList, - construct_type( - type_=PaginatedAssociationTypeList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_association_types_create( - self, - custom_object_class_id: str, - *, - model: AssociationTypeRequestRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CrmAssociationTypeResponse]: - """ - Creates an `AssociationType` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : AssociationTypeRequestRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CrmAssociationTypeResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmAssociationTypeResponse, - construct_type( - type_=CrmAssociationTypeResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_association_types_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - expand: typing.Optional[typing.Literal["target_object_classes"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[AssociationType]: - """ - Returns an `AssociationType` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - expand : typing.Optional[typing.Literal["target_object_classes"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AssociationType] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AssociationType, - construct_type( - type_=AssociationType, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_association_types_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `CRMAssociationType` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/association-types/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/associations/__init__.py b/src/merge/resources/crm/resources/associations/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/associations/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/associations/client.py b/src/merge/resources/crm/resources/associations/client.py deleted file mode 100644 index 28d8f541..00000000 --- a/src/merge/resources/crm/resources/associations/client.py +++ /dev/null @@ -1,449 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.association import Association -from ...types.paginated_association_list import PaginatedAssociationList -from .raw_client import AsyncRawAssociationsClient, RawAssociationsClient - - -class AssociationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAssociationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAssociationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAssociationsClient - """ - return self._raw_client - - def custom_object_classes_custom_objects_associations_list( - self, - custom_object_class_id: str, - object_id: str, - *, - association_type_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["association_type"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAssociationList: - """ - Returns a list of `Association` objects. - - Parameters - ---------- - custom_object_class_id : str - - object_id : str - - association_type_id : typing.Optional[str] - If provided, will only return opportunities with this association_type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["association_type"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAssociationList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.associations.custom_object_classes_custom_objects_associations_list( - custom_object_class_id="custom_object_class_id", - object_id="object_id", - association_type_id="association_type_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.custom_object_classes_custom_objects_associations_list( - custom_object_class_id, - object_id, - association_type_id=association_type_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def custom_object_classes_custom_objects_associations_update( - self, - source_class_id: str, - source_object_id: str, - target_class_id: str, - target_object_id: str, - association_type_id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Association: - """ - Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. - - Parameters - ---------- - source_class_id : str - - source_object_id : str - - target_class_id : str - - target_object_id : str - - association_type_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Association - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.associations.custom_object_classes_custom_objects_associations_update( - source_class_id="source_class_id", - source_object_id="source_object_id", - target_class_id="target_class_id", - target_object_id="target_object_id", - association_type_id="association_type_id", - is_debug_mode=True, - run_async=True, - ) - """ - _response = self._raw_client.custom_object_classes_custom_objects_associations_update( - source_class_id, - source_object_id, - target_class_id, - target_object_id, - association_type_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - -class AsyncAssociationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAssociationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAssociationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAssociationsClient - """ - return self._raw_client - - async def custom_object_classes_custom_objects_associations_list( - self, - custom_object_class_id: str, - object_id: str, - *, - association_type_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["association_type"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAssociationList: - """ - Returns a list of `Association` objects. - - Parameters - ---------- - custom_object_class_id : str - - object_id : str - - association_type_id : typing.Optional[str] - If provided, will only return opportunities with this association_type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["association_type"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAssociationList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.associations.custom_object_classes_custom_objects_associations_list( - custom_object_class_id="custom_object_class_id", - object_id="object_id", - association_type_id="association_type_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_custom_objects_associations_list( - custom_object_class_id, - object_id, - association_type_id=association_type_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def custom_object_classes_custom_objects_associations_update( - self, - source_class_id: str, - source_object_id: str, - target_class_id: str, - target_object_id: str, - association_type_id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Association: - """ - Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. - - Parameters - ---------- - source_class_id : str - - source_object_id : str - - target_class_id : str - - target_object_id : str - - association_type_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Association - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.associations.custom_object_classes_custom_objects_associations_update( - source_class_id="source_class_id", - source_object_id="source_object_id", - target_class_id="target_class_id", - target_object_id="target_object_id", - association_type_id="association_type_id", - is_debug_mode=True, - run_async=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_custom_objects_associations_update( - source_class_id, - source_object_id, - target_class_id, - target_object_id, - association_type_id, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/associations/raw_client.py b/src/merge/resources/crm/resources/associations/raw_client.py deleted file mode 100644 index a78ef724..00000000 --- a/src/merge/resources/crm/resources/associations/raw_client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.association import Association -from ...types.paginated_association_list import PaginatedAssociationList - - -class RawAssociationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def custom_object_classes_custom_objects_associations_list( - self, - custom_object_class_id: str, - object_id: str, - *, - association_type_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["association_type"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAssociationList]: - """ - Returns a list of `Association` objects. - - Parameters - ---------- - custom_object_class_id : str - - object_id : str - - association_type_id : typing.Optional[str] - If provided, will only return opportunities with this association_type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["association_type"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAssociationList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects/{jsonable_encoder(object_id)}/associations", - method="GET", - params={ - "association_type_id": association_type_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAssociationList, - construct_type( - type_=PaginatedAssociationList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_custom_objects_associations_update( - self, - source_class_id: str, - source_object_id: str, - target_class_id: str, - target_object_id: str, - association_type_id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Association]: - """ - Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. - - Parameters - ---------- - source_class_id : str - - source_object_id : str - - target_class_id : str - - target_object_id : str - - association_type_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Association] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(source_class_id)}/custom-objects/{jsonable_encoder(source_object_id)}/associations/{jsonable_encoder(target_class_id)}/{jsonable_encoder(target_object_id)}/{jsonable_encoder(association_type_id)}", - method="PUT", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Association, - construct_type( - type_=Association, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAssociationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def custom_object_classes_custom_objects_associations_list( - self, - custom_object_class_id: str, - object_id: str, - *, - association_type_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["association_type"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAssociationList]: - """ - Returns a list of `Association` objects. - - Parameters - ---------- - custom_object_class_id : str - - object_id : str - - association_type_id : typing.Optional[str] - If provided, will only return opportunities with this association_type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["association_type"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAssociationList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects/{jsonable_encoder(object_id)}/associations", - method="GET", - params={ - "association_type_id": association_type_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAssociationList, - construct_type( - type_=PaginatedAssociationList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_custom_objects_associations_update( - self, - source_class_id: str, - source_object_id: str, - target_class_id: str, - target_object_id: str, - association_type_id: str, - *, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Association]: - """ - Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. - - Parameters - ---------- - source_class_id : str - - source_object_id : str - - target_class_id : str - - target_object_id : str - - association_type_id : str - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Association] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(source_class_id)}/custom-objects/{jsonable_encoder(source_object_id)}/associations/{jsonable_encoder(target_class_id)}/{jsonable_encoder(target_object_id)}/{jsonable_encoder(association_type_id)}", - method="PUT", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Association, - construct_type( - type_=Association, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/async_passthrough/__init__.py b/src/merge/resources/crm/resources/async_passthrough/__init__.py deleted file mode 100644 index 375c7953..00000000 --- a/src/merge/resources/crm/resources/async_passthrough/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/crm/resources/async_passthrough/client.py b/src/merge/resources/crm/resources/async_passthrough/client.py deleted file mode 100644 index 7287c140..00000000 --- a/src/merge/resources/crm/resources/async_passthrough/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .raw_client import AsyncRawAsyncPassthroughClient, RawAsyncPassthroughClient -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - from merge import Merge - from merge.resources.crm import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - """ - _response = self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data - - -class AsyncAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/async_passthrough/raw_client.py b/src/merge/resources/crm/resources/async_passthrough/raw_client.py deleted file mode 100644 index cfcc8c38..00000000 --- a/src/merge/resources/crm/resources/async_passthrough/raw_client.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughReciept] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughReciept] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/async_passthrough/types/__init__.py b/src/merge/resources/crm/resources/async_passthrough/types/__init__.py deleted file mode 100644 index f6e9bec9..00000000 --- a/src/merge/resources/crm/resources/async_passthrough/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".async_passthrough_retrieve_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/crm/resources/async_passthrough/types/async_passthrough_retrieve_response.py b/src/merge/resources/crm/resources/async_passthrough/types/async_passthrough_retrieve_response.py deleted file mode 100644 index f8f87c18..00000000 --- a/src/merge/resources/crm/resources/async_passthrough/types/async_passthrough_retrieve_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.remote_response import RemoteResponse - -AsyncPassthroughRetrieveResponse = typing.Union[RemoteResponse, str] diff --git a/src/merge/resources/crm/resources/audit_trail/__init__.py b/src/merge/resources/crm/resources/audit_trail/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/audit_trail/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/audit_trail/client.py b/src/merge/resources/crm/resources/audit_trail/client.py deleted file mode 100644 index 3d1fcc71..00000000 --- a/src/merge/resources/crm/resources/audit_trail/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList -from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient - - -class AuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuditTrailClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - """ - _response = self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data - - -class AsyncAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuditTrailClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/audit_trail/raw_client.py b/src/merge/resources/crm/resources/audit_trail/raw_client.py deleted file mode 100644 index b75a9ad0..00000000 --- a/src/merge/resources/crm/resources/audit_trail/raw_client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList - - -class RawAuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAuditLogEventList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAuditLogEventList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/available_actions/__init__.py b/src/merge/resources/crm/resources/available_actions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/available_actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/available_actions/client.py b/src/merge/resources/crm/resources/available_actions/client.py deleted file mode 100644 index 90e49598..00000000 --- a/src/merge/resources/crm/resources/available_actions/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.available_actions import AvailableActions -from .raw_client import AsyncRawAvailableActionsClient, RawAvailableActionsClient - - -class AvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAvailableActionsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.available_actions.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAvailableActionsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.available_actions.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/available_actions/raw_client.py b/src/merge/resources/crm/resources/available_actions/raw_client.py deleted file mode 100644 index 43d6bb17..00000000 --- a/src/merge/resources/crm/resources/available_actions/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.available_actions import AvailableActions - - -class RawAvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AvailableActions] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AvailableActions] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/contacts/__init__.py b/src/merge/resources/crm/resources/contacts/__init__.py deleted file mode 100644 index e5740c79..00000000 --- a/src/merge/resources/crm/resources/contacts/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ContactsListRequestExpand, ContactsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ContactsListRequestExpand": ".types", - "ContactsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ContactsListRequestExpand", "ContactsRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/contacts/client.py b/src/merge/resources/crm/resources/contacts/client.py deleted file mode 100644 index 7fe8c8b0..00000000 --- a/src/merge/resources/crm/resources/contacts/client.py +++ /dev/null @@ -1,1084 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.contact import Contact -from ...types.contact_request import ContactRequest -from ...types.crm_contact_response import CrmContactResponse -from ...types.ignore_common_model_request import IgnoreCommonModelRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_contact_list import PaginatedContactList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_contact_request import PatchedContactRequest -from .raw_client import AsyncRawContactsClient, RawContactsClient -from .types.contacts_list_request_expand import ContactsListRequestExpand -from .types.contacts_retrieve_request_expand import ContactsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ContactsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawContactsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawContactsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawContactsClient - """ - return self._raw_client - - def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContactList: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return contacts with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContactList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.crm.resources.contacts import ContactsListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.list( - account_id="account_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=ContactsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - phone_numbers="phone_numbers", - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - account_id=account_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_addresses=email_addresses, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - phone_numbers=phone_numbers, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmContactResponse: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmContactResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import ContactRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Contact: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Contact - - - Examples - -------- - from merge import Merge - from merge.resources.crm.resources.contacts import ContactsRetrieveRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.retrieve( - id="id", - expand=ContactsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmContactResponse: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmContactResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import PatchedContactRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedContactRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - from merge.resources.crm import IgnoreCommonModelRequest, ReasonEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.ignore_create( - model_id="model_id", - request=IgnoreCommonModelRequest( - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ), - ) - """ - _response = self._raw_client.ignore_create(model_id, request=request, request_options=request_options) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CRMContact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CRMContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.contacts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncContactsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawContactsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawContactsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawContactsClient - """ - return self._raw_client - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContactList: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return contacts with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContactList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.crm.resources.contacts import ContactsListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.list( - account_id="account_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=ContactsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - phone_numbers="phone_numbers", - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_id=account_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_addresses=email_addresses, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - phone_numbers=phone_numbers, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmContactResponse: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmContactResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import ContactRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Contact: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Contact - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm.resources.contacts import ContactsRetrieveRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.retrieve( - id="id", - expand=ContactsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmContactResponse: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmContactResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import PatchedContactRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedContactRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import IgnoreCommonModelRequest, ReasonEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.ignore_create( - model_id="model_id", - request=IgnoreCommonModelRequest( - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.ignore_create(model_id, request=request, request_options=request_options) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `CRMContact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `CRMContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.contacts.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/contacts/raw_client.py b/src/merge/resources/crm/resources/contacts/raw_client.py deleted file mode 100644 index 11528b00..00000000 --- a/src/merge/resources/crm/resources/contacts/raw_client.py +++ /dev/null @@ -1,1028 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.contact import Contact -from ...types.contact_request import ContactRequest -from ...types.crm_contact_response import CrmContactResponse -from ...types.ignore_common_model_request import IgnoreCommonModelRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_contact_list import PaginatedContactList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_contact_request import PatchedContactRequest -from .types.contacts_list_request_expand import ContactsListRequestExpand -from .types.contacts_retrieve_request_expand import ContactsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawContactsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedContactList]: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return contacts with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedContactList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/contacts", - method="GET", - params={ - "account_id": account_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_addresses": email_addresses, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "phone_numbers": phone_numbers, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContactList, - construct_type( - type_=PaginatedContactList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CrmContactResponse]: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CrmContactResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/contacts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmContactResponse, - construct_type( - type_=CrmContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Contact]: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Contact] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Contact, - construct_type( - type_=Contact, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CrmContactResponse]: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CrmContactResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmContactResponse, - construct_type( - type_=CrmContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/ignore/{jsonable_encoder(model_id)}", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `CRMContact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `CRMContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/contacts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/contacts/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawContactsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[ContactsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedContactList]: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return contacts with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[ContactsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedContactList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/contacts", - method="GET", - params={ - "account_id": account_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_addresses": email_addresses, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "phone_numbers": phone_numbers, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContactList, - construct_type( - type_=PaginatedContactList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CrmContactResponse]: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CrmContactResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/contacts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmContactResponse, - construct_type( - type_=CrmContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContactsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Contact]: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContactsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Contact] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Contact, - construct_type( - type_=Contact, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CrmContactResponse]: - """ - Updates a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CrmContactResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmContactResponse, - construct_type( - type_=CrmContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/ignore/{jsonable_encoder(model_id)}", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `CRMContact` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/contacts/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `CRMContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/contacts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/contacts/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/contacts/types/__init__.py b/src/merge/resources/crm/resources/contacts/types/__init__.py deleted file mode 100644 index 2dbee7a7..00000000 --- a/src/merge/resources/crm/resources/contacts/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .contacts_list_request_expand import ContactsListRequestExpand - from .contacts_retrieve_request_expand import ContactsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ContactsListRequestExpand": ".contacts_list_request_expand", - "ContactsRetrieveRequestExpand": ".contacts_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ContactsListRequestExpand", "ContactsRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/contacts/types/contacts_list_request_expand.py b/src/merge/resources/crm/resources/contacts/types/contacts_list_request_expand.py deleted file mode 100644 index 628c8157..00000000 --- a/src/merge/resources/crm/resources/contacts/types/contacts_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContactsListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_OWNER = "account,owner" - OWNER = "owner" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_owner: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContactsListRequestExpand.ACCOUNT: - return account() - if self is ContactsListRequestExpand.ACCOUNT_OWNER: - return account_owner() - if self is ContactsListRequestExpand.OWNER: - return owner() diff --git a/src/merge/resources/crm/resources/contacts/types/contacts_retrieve_request_expand.py b/src/merge/resources/crm/resources/contacts/types/contacts_retrieve_request_expand.py deleted file mode 100644 index f9251068..00000000 --- a/src/merge/resources/crm/resources/contacts/types/contacts_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContactsRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_OWNER = "account,owner" - OWNER = "owner" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_owner: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContactsRetrieveRequestExpand.ACCOUNT: - return account() - if self is ContactsRetrieveRequestExpand.ACCOUNT_OWNER: - return account_owner() - if self is ContactsRetrieveRequestExpand.OWNER: - return owner() diff --git a/src/merge/resources/crm/resources/custom_object_classes/__init__.py b/src/merge/resources/crm/resources/custom_object_classes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/custom_object_classes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/custom_object_classes/client.py b/src/merge/resources/crm/resources/custom_object_classes/client.py deleted file mode 100644 index 5d3f37c5..00000000 --- a/src/merge/resources/crm/resources/custom_object_classes/client.py +++ /dev/null @@ -1,387 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.custom_object_class import CustomObjectClass -from ...types.paginated_custom_object_class_list import PaginatedCustomObjectClassList -from .raw_client import AsyncRawCustomObjectClassesClient, RawCustomObjectClassesClient - - -class CustomObjectClassesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCustomObjectClassesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCustomObjectClassesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCustomObjectClassesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCustomObjectClassList: - """ - Returns a list of `CustomObjectClass` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCustomObjectClassList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.custom_object_classes.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CustomObjectClass: - """ - Returns a `CustomObjectClass` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CustomObjectClass - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.custom_object_classes.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncCustomObjectClassesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCustomObjectClassesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCustomObjectClassesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCustomObjectClassesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCustomObjectClassList: - """ - Returns a list of `CustomObjectClass` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCustomObjectClassList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.custom_object_classes.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CustomObjectClass: - """ - Returns a `CustomObjectClass` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CustomObjectClass - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.custom_object_classes.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/custom_object_classes/raw_client.py b/src/merge/resources/crm/resources/custom_object_classes/raw_client.py deleted file mode 100644 index 924a26db..00000000 --- a/src/merge/resources/crm/resources/custom_object_classes/raw_client.py +++ /dev/null @@ -1,331 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.custom_object_class import CustomObjectClass -from ...types.paginated_custom_object_class_list import PaginatedCustomObjectClassList - - -class RawCustomObjectClassesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCustomObjectClassList]: - """ - Returns a list of `CustomObjectClass` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCustomObjectClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/custom-object-classes", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCustomObjectClassList, - construct_type( - type_=PaginatedCustomObjectClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CustomObjectClass]: - """ - Returns a `CustomObjectClass` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CustomObjectClass] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CustomObjectClass, - construct_type( - type_=CustomObjectClass, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCustomObjectClassesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCustomObjectClassList]: - """ - Returns a list of `CustomObjectClass` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCustomObjectClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/custom-object-classes", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCustomObjectClassList, - construct_type( - type_=PaginatedCustomObjectClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["fields"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CustomObjectClass]: - """ - Returns a `CustomObjectClass` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["fields"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CustomObjectClass] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CustomObjectClass, - construct_type( - type_=CustomObjectClass, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/custom_objects/__init__.py b/src/merge/resources/crm/resources/custom_objects/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/custom_objects/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/custom_objects/client.py b/src/merge/resources/crm/resources/custom_objects/client.py deleted file mode 100644 index f8fa3719..00000000 --- a/src/merge/resources/crm/resources/custom_objects/client.py +++ /dev/null @@ -1,794 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.crm_custom_object_response import CrmCustomObjectResponse -from ...types.custom_object import CustomObject -from ...types.custom_object_request import CustomObjectRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_custom_object_list import PaginatedCustomObjectList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawCustomObjectsClient, RawCustomObjectsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CustomObjectsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCustomObjectsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCustomObjectsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCustomObjectsClient - """ - return self._raw_client - - def custom_object_classes_custom_objects_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCustomObjectList: - """ - Returns a list of `CustomObject` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCustomObjectList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.custom_objects.custom_object_classes_custom_objects_list( - custom_object_class_id="custom_object_class_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.custom_object_classes_custom_objects_list( - custom_object_class_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def custom_object_classes_custom_objects_create( - self, - custom_object_class_id: str, - *, - model: CustomObjectRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmCustomObjectResponse: - """ - Creates a `CustomObject` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : CustomObjectRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmCustomObjectResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import CustomObjectRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.custom_objects.custom_object_classes_custom_objects_create( - custom_object_class_id="custom_object_class_id", - is_debug_mode=True, - run_async=True, - model=CustomObjectRequest( - fields={"test_field": "hello"}, - ), - ) - """ - _response = self._raw_client.custom_object_classes_custom_objects_create( - custom_object_class_id, - model=model, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - def custom_object_classes_custom_objects_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CustomObject: - """ - Returns a `CustomObject` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CustomObject - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.custom_objects.custom_object_classes_custom_objects_retrieve( - custom_object_class_id="custom_object_class_id", - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.custom_object_classes_custom_objects_retrieve( - custom_object_class_id, - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def custom_object_classes_custom_objects_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `CRMCustomObject` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.custom_objects.custom_object_classes_custom_objects_meta_post_retrieve( - custom_object_class_id="custom_object_class_id", - ) - """ - _response = self._raw_client.custom_object_classes_custom_objects_meta_post_retrieve( - custom_object_class_id, request_options=request_options - ) - return _response.data - - def custom_object_classes_custom_objects_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.custom_object_classes_custom_objects_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncCustomObjectsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCustomObjectsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCustomObjectsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCustomObjectsClient - """ - return self._raw_client - - async def custom_object_classes_custom_objects_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCustomObjectList: - """ - Returns a list of `CustomObject` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCustomObjectList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.custom_objects.custom_object_classes_custom_objects_list( - custom_object_class_id="custom_object_class_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_custom_objects_list( - custom_object_class_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def custom_object_classes_custom_objects_create( - self, - custom_object_class_id: str, - *, - model: CustomObjectRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CrmCustomObjectResponse: - """ - Creates a `CustomObject` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : CustomObjectRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CrmCustomObjectResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import CustomObjectRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.custom_objects.custom_object_classes_custom_objects_create( - custom_object_class_id="custom_object_class_id", - is_debug_mode=True, - run_async=True, - model=CustomObjectRequest( - fields={"test_field": "hello"}, - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_custom_objects_create( - custom_object_class_id, - model=model, - is_debug_mode=is_debug_mode, - run_async=run_async, - request_options=request_options, - ) - return _response.data - - async def custom_object_classes_custom_objects_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CustomObject: - """ - Returns a `CustomObject` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CustomObject - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.custom_objects.custom_object_classes_custom_objects_retrieve( - custom_object_class_id="custom_object_class_id", - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_custom_objects_retrieve( - custom_object_class_id, - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def custom_object_classes_custom_objects_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `CRMCustomObject` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.custom_objects.custom_object_classes_custom_objects_meta_post_retrieve( - custom_object_class_id="custom_object_class_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_custom_objects_meta_post_retrieve( - custom_object_class_id, request_options=request_options - ) - return _response.data - - async def custom_object_classes_custom_objects_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.custom_object_classes_custom_objects_remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/custom_objects/raw_client.py b/src/merge/resources/crm/resources/custom_objects/raw_client.py deleted file mode 100644 index 70f1855a..00000000 --- a/src/merge/resources/crm/resources/custom_objects/raw_client.py +++ /dev/null @@ -1,712 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.crm_custom_object_response import CrmCustomObjectResponse -from ...types.custom_object import CustomObject -from ...types.custom_object_request import CustomObjectRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_custom_object_list import PaginatedCustomObjectList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCustomObjectsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def custom_object_classes_custom_objects_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCustomObjectList]: - """ - Returns a list of `CustomObject` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCustomObjectList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCustomObjectList, - construct_type( - type_=PaginatedCustomObjectList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_custom_objects_create( - self, - custom_object_class_id: str, - *, - model: CustomObjectRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CrmCustomObjectResponse]: - """ - Creates a `CustomObject` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : CustomObjectRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CrmCustomObjectResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmCustomObjectResponse, - construct_type( - type_=CrmCustomObjectResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_custom_objects_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CustomObject]: - """ - Returns a `CustomObject` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CustomObject] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CustomObject, - construct_type( - type_=CustomObject, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_custom_objects_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `CRMCustomObject` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def custom_object_classes_custom_objects_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/custom-object-classes/custom-objects/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCustomObjectsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def custom_object_classes_custom_objects_list( - self, - custom_object_class_id: str, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCustomObjectList]: - """ - Returns a list of `CustomObject` objects. - - Parameters - ---------- - custom_object_class_id : str - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCustomObjectList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCustomObjectList, - construct_type( - type_=PaginatedCustomObjectList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_custom_objects_create( - self, - custom_object_class_id: str, - *, - model: CustomObjectRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CrmCustomObjectResponse]: - """ - Creates a `CustomObject` object with the given values. - - Parameters - ---------- - custom_object_class_id : str - - model : CustomObjectRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CrmCustomObjectResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CrmCustomObjectResponse, - construct_type( - type_=CrmCustomObjectResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_custom_objects_retrieve( - self, - custom_object_class_id: str, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CustomObject]: - """ - Returns a `CustomObject` object with the given `id`. - - Parameters - ---------- - custom_object_class_id : str - - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CustomObject] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CustomObject, - construct_type( - type_=CustomObject, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_custom_objects_meta_post_retrieve( - self, custom_object_class_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `CRMCustomObject` POSTs. - - Parameters - ---------- - custom_object_class_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/custom-object-classes/{jsonable_encoder(custom_object_class_id)}/custom-objects/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def custom_object_classes_custom_objects_remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/custom-object-classes/custom-objects/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/delete_account/__init__.py b/src/merge/resources/crm/resources/delete_account/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/delete_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/delete_account/client.py b/src/merge/resources/crm/resources/delete_account/client.py deleted file mode 100644 index eb7b2e24..00000000 --- a/src/merge/resources/crm/resources/delete_account/client.py +++ /dev/null @@ -1,99 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .raw_client import AsyncRawDeleteAccountClient, RawDeleteAccountClient - - -class DeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeleteAccountClient - """ - return self._raw_client - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.delete_account.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeleteAccountClient - """ - return self._raw_client - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.delete_account.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/delete_account/raw_client.py b/src/merge/resources/crm/resources/delete_account/raw_client.py deleted file mode 100644 index ea9a0ba6..00000000 --- a/src/merge/resources/crm/resources/delete_account/raw_client.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions - - -class RawDeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/engagement_types/__init__.py b/src/merge/resources/crm/resources/engagement_types/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/engagement_types/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/engagement_types/client.py b/src/merge/resources/crm/resources/engagement_types/client.py deleted file mode 100644 index dc5086d2..00000000 --- a/src/merge/resources/crm/resources/engagement_types/client.py +++ /dev/null @@ -1,564 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.engagement_type import EngagementType -from ...types.paginated_engagement_type_list import PaginatedEngagementTypeList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawEngagementTypesClient, RawEngagementTypesClient - - -class EngagementTypesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEngagementTypesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEngagementTypesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEngagementTypesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEngagementTypeList: - """ - Returns a list of `EngagementType` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEngagementTypeList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagement_types.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EngagementType: - """ - Returns an `EngagementType` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EngagementType - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagement_types.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagement_types.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncEngagementTypesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEngagementTypesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEngagementTypesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEngagementTypesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEngagementTypeList: - """ - Returns a list of `EngagementType` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEngagementTypeList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagement_types.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EngagementType: - """ - Returns an `EngagementType` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EngagementType - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagement_types.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagement_types.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/engagement_types/raw_client.py b/src/merge/resources/crm/resources/engagement_types/raw_client.py deleted file mode 100644 index fcb2bbf4..00000000 --- a/src/merge/resources/crm/resources/engagement_types/raw_client.py +++ /dev/null @@ -1,492 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.engagement_type import EngagementType -from ...types.paginated_engagement_type_list import PaginatedEngagementTypeList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList - - -class RawEngagementTypesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEngagementTypeList]: - """ - Returns a list of `EngagementType` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEngagementTypeList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/engagement-types", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEngagementTypeList, - construct_type( - type_=PaginatedEngagementTypeList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[EngagementType]: - """ - Returns an `EngagementType` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[EngagementType] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/engagement-types/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EngagementType, - construct_type( - type_=EngagementType, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/engagement-types/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEngagementTypesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEngagementTypeList]: - """ - Returns a list of `EngagementType` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEngagementTypeList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/engagement-types", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEngagementTypeList, - construct_type( - type_=PaginatedEngagementTypeList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[EngagementType]: - """ - Returns an `EngagementType` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[EngagementType] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/engagement-types/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EngagementType, - construct_type( - type_=EngagementType, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/engagement-types/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/engagements/__init__.py b/src/merge/resources/crm/resources/engagements/__init__.py deleted file mode 100644 index 59e38f99..00000000 --- a/src/merge/resources/crm/resources/engagements/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EngagementsListRequestExpand, EngagementsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "EngagementsListRequestExpand": ".types", - "EngagementsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EngagementsListRequestExpand", "EngagementsRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/engagements/client.py b/src/merge/resources/crm/resources/engagements/client.py deleted file mode 100644 index 24baf967..00000000 --- a/src/merge/resources/crm/resources/engagements/client.py +++ /dev/null @@ -1,995 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.engagement import Engagement -from ...types.engagement_request import EngagementRequest -from ...types.engagement_response import EngagementResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_engagement_list import PaginatedEngagementList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_engagement_request import PatchedEngagementRequest -from .raw_client import AsyncRawEngagementsClient, RawEngagementsClient -from .types.engagements_list_request_expand import EngagementsListRequestExpand -from .types.engagements_retrieve_request_expand import EngagementsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EngagementsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEngagementsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEngagementsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEngagementsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[EngagementsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEngagementList: - """ - Returns a list of `Engagement` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[EngagementsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return engagements started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return engagements started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEngagementList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.crm.resources.engagements import ( - EngagementsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagements.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=EngagementsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: EngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EngagementResponse: - """ - Creates an `Engagement` object with the given values. - - Parameters - ---------- - model : EngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EngagementResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import EngagementRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagements.create( - is_debug_mode=True, - run_async=True, - model=EngagementRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EngagementsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Engagement: - """ - Returns an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EngagementsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Engagement - - - Examples - -------- - from merge import Merge - from merge.resources.crm.resources.engagements import ( - EngagementsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagements.retrieve( - id="id", - expand=EngagementsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedEngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EngagementResponse: - """ - Updates an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedEngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EngagementResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import PatchedEngagementRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagements.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedEngagementRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Engagement` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagements.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Engagement` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagements.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.engagements.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncEngagementsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEngagementsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEngagementsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEngagementsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[EngagementsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEngagementList: - """ - Returns a list of `Engagement` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[EngagementsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return engagements started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return engagements started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEngagementList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.crm.resources.engagements import ( - EngagementsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagements.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=EngagementsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: EngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EngagementResponse: - """ - Creates an `Engagement` object with the given values. - - Parameters - ---------- - model : EngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EngagementResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import EngagementRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagements.create( - is_debug_mode=True, - run_async=True, - model=EngagementRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EngagementsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Engagement: - """ - Returns an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EngagementsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Engagement - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm.resources.engagements import ( - EngagementsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagements.retrieve( - id="id", - expand=EngagementsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedEngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EngagementResponse: - """ - Updates an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedEngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EngagementResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import PatchedEngagementRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagements.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedEngagementRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Engagement` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagements.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Engagement` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagements.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.engagements.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/engagements/raw_client.py b/src/merge/resources/crm/resources/engagements/raw_client.py deleted file mode 100644 index 03107454..00000000 --- a/src/merge/resources/crm/resources/engagements/raw_client.py +++ /dev/null @@ -1,935 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.engagement import Engagement -from ...types.engagement_request import EngagementRequest -from ...types.engagement_response import EngagementResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_engagement_list import PaginatedEngagementList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_engagement_request import PatchedEngagementRequest -from .types.engagements_list_request_expand import EngagementsListRequestExpand -from .types.engagements_retrieve_request_expand import EngagementsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEngagementsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[EngagementsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEngagementList]: - """ - Returns a list of `Engagement` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[EngagementsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return engagements started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return engagements started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEngagementList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/engagements", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEngagementList, - construct_type( - type_=PaginatedEngagementList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: EngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[EngagementResponse]: - """ - Creates an `Engagement` object with the given values. - - Parameters - ---------- - model : EngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[EngagementResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/engagements", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EngagementResponse, - construct_type( - type_=EngagementResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EngagementsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Engagement]: - """ - Returns an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EngagementsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Engagement] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/engagements/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Engagement, - construct_type( - type_=Engagement, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedEngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[EngagementResponse]: - """ - Updates an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedEngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[EngagementResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/engagements/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EngagementResponse, - construct_type( - type_=EngagementResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Engagement` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/engagements/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Engagement` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/engagements/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/engagements/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEngagementsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[EngagementsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEngagementList]: - """ - Returns a list of `Engagement` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[EngagementsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return engagements started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return engagements started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEngagementList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/engagements", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEngagementList, - construct_type( - type_=PaginatedEngagementList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: EngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[EngagementResponse]: - """ - Creates an `Engagement` object with the given values. - - Parameters - ---------- - model : EngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[EngagementResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/engagements", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EngagementResponse, - construct_type( - type_=EngagementResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EngagementsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Engagement]: - """ - Returns an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EngagementsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Engagement] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/engagements/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Engagement, - construct_type( - type_=Engagement, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedEngagementRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[EngagementResponse]: - """ - Updates an `Engagement` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedEngagementRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[EngagementResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/engagements/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EngagementResponse, - construct_type( - type_=EngagementResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Engagement` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/engagements/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Engagement` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/engagements/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/engagements/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/engagements/types/__init__.py b/src/merge/resources/crm/resources/engagements/types/__init__.py deleted file mode 100644 index 186343d3..00000000 --- a/src/merge/resources/crm/resources/engagements/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .engagements_list_request_expand import EngagementsListRequestExpand - from .engagements_retrieve_request_expand import EngagementsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "EngagementsListRequestExpand": ".engagements_list_request_expand", - "EngagementsRetrieveRequestExpand": ".engagements_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EngagementsListRequestExpand", "EngagementsRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/engagements/types/engagements_list_request_expand.py b/src/merge/resources/crm/resources/engagements/types/engagements_list_request_expand.py deleted file mode 100644 index 33ee98e3..00000000 --- a/src/merge/resources/crm/resources/engagements/types/engagements_list_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EngagementsListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ENGAGEMENT_TYPE = "account,engagement_type" - CONTACTS = "contacts" - CONTACTS_ACCOUNT = "contacts,account" - CONTACTS_ACCOUNT_ENGAGEMENT_TYPE = "contacts,account,engagement_type" - CONTACTS_ENGAGEMENT_TYPE = "contacts,engagement_type" - CONTACTS_OWNER = "contacts,owner" - CONTACTS_OWNER_ACCOUNT = "contacts,owner,account" - CONTACTS_OWNER_ACCOUNT_ENGAGEMENT_TYPE = "contacts,owner,account,engagement_type" - CONTACTS_OWNER_ENGAGEMENT_TYPE = "contacts,owner,engagement_type" - ENGAGEMENT_TYPE = "engagement_type" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_ACCOUNT_ENGAGEMENT_TYPE = "owner,account,engagement_type" - OWNER_ENGAGEMENT_TYPE = "owner,engagement_type" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_engagement_type: typing.Callable[[], T_Result], - contacts: typing.Callable[[], T_Result], - contacts_account: typing.Callable[[], T_Result], - contacts_account_engagement_type: typing.Callable[[], T_Result], - contacts_engagement_type: typing.Callable[[], T_Result], - contacts_owner: typing.Callable[[], T_Result], - contacts_owner_account: typing.Callable[[], T_Result], - contacts_owner_account_engagement_type: typing.Callable[[], T_Result], - contacts_owner_engagement_type: typing.Callable[[], T_Result], - engagement_type: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_account_engagement_type: typing.Callable[[], T_Result], - owner_engagement_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EngagementsListRequestExpand.ACCOUNT: - return account() - if self is EngagementsListRequestExpand.ACCOUNT_ENGAGEMENT_TYPE: - return account_engagement_type() - if self is EngagementsListRequestExpand.CONTACTS: - return contacts() - if self is EngagementsListRequestExpand.CONTACTS_ACCOUNT: - return contacts_account() - if self is EngagementsListRequestExpand.CONTACTS_ACCOUNT_ENGAGEMENT_TYPE: - return contacts_account_engagement_type() - if self is EngagementsListRequestExpand.CONTACTS_ENGAGEMENT_TYPE: - return contacts_engagement_type() - if self is EngagementsListRequestExpand.CONTACTS_OWNER: - return contacts_owner() - if self is EngagementsListRequestExpand.CONTACTS_OWNER_ACCOUNT: - return contacts_owner_account() - if self is EngagementsListRequestExpand.CONTACTS_OWNER_ACCOUNT_ENGAGEMENT_TYPE: - return contacts_owner_account_engagement_type() - if self is EngagementsListRequestExpand.CONTACTS_OWNER_ENGAGEMENT_TYPE: - return contacts_owner_engagement_type() - if self is EngagementsListRequestExpand.ENGAGEMENT_TYPE: - return engagement_type() - if self is EngagementsListRequestExpand.OWNER: - return owner() - if self is EngagementsListRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is EngagementsListRequestExpand.OWNER_ACCOUNT_ENGAGEMENT_TYPE: - return owner_account_engagement_type() - if self is EngagementsListRequestExpand.OWNER_ENGAGEMENT_TYPE: - return owner_engagement_type() diff --git a/src/merge/resources/crm/resources/engagements/types/engagements_retrieve_request_expand.py b/src/merge/resources/crm/resources/engagements/types/engagements_retrieve_request_expand.py deleted file mode 100644 index 53b94d8c..00000000 --- a/src/merge/resources/crm/resources/engagements/types/engagements_retrieve_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EngagementsRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_ENGAGEMENT_TYPE = "account,engagement_type" - CONTACTS = "contacts" - CONTACTS_ACCOUNT = "contacts,account" - CONTACTS_ACCOUNT_ENGAGEMENT_TYPE = "contacts,account,engagement_type" - CONTACTS_ENGAGEMENT_TYPE = "contacts,engagement_type" - CONTACTS_OWNER = "contacts,owner" - CONTACTS_OWNER_ACCOUNT = "contacts,owner,account" - CONTACTS_OWNER_ACCOUNT_ENGAGEMENT_TYPE = "contacts,owner,account,engagement_type" - CONTACTS_OWNER_ENGAGEMENT_TYPE = "contacts,owner,engagement_type" - ENGAGEMENT_TYPE = "engagement_type" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_ACCOUNT_ENGAGEMENT_TYPE = "owner,account,engagement_type" - OWNER_ENGAGEMENT_TYPE = "owner,engagement_type" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_engagement_type: typing.Callable[[], T_Result], - contacts: typing.Callable[[], T_Result], - contacts_account: typing.Callable[[], T_Result], - contacts_account_engagement_type: typing.Callable[[], T_Result], - contacts_engagement_type: typing.Callable[[], T_Result], - contacts_owner: typing.Callable[[], T_Result], - contacts_owner_account: typing.Callable[[], T_Result], - contacts_owner_account_engagement_type: typing.Callable[[], T_Result], - contacts_owner_engagement_type: typing.Callable[[], T_Result], - engagement_type: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_account_engagement_type: typing.Callable[[], T_Result], - owner_engagement_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EngagementsRetrieveRequestExpand.ACCOUNT: - return account() - if self is EngagementsRetrieveRequestExpand.ACCOUNT_ENGAGEMENT_TYPE: - return account_engagement_type() - if self is EngagementsRetrieveRequestExpand.CONTACTS: - return contacts() - if self is EngagementsRetrieveRequestExpand.CONTACTS_ACCOUNT: - return contacts_account() - if self is EngagementsRetrieveRequestExpand.CONTACTS_ACCOUNT_ENGAGEMENT_TYPE: - return contacts_account_engagement_type() - if self is EngagementsRetrieveRequestExpand.CONTACTS_ENGAGEMENT_TYPE: - return contacts_engagement_type() - if self is EngagementsRetrieveRequestExpand.CONTACTS_OWNER: - return contacts_owner() - if self is EngagementsRetrieveRequestExpand.CONTACTS_OWNER_ACCOUNT: - return contacts_owner_account() - if self is EngagementsRetrieveRequestExpand.CONTACTS_OWNER_ACCOUNT_ENGAGEMENT_TYPE: - return contacts_owner_account_engagement_type() - if self is EngagementsRetrieveRequestExpand.CONTACTS_OWNER_ENGAGEMENT_TYPE: - return contacts_owner_engagement_type() - if self is EngagementsRetrieveRequestExpand.ENGAGEMENT_TYPE: - return engagement_type() - if self is EngagementsRetrieveRequestExpand.OWNER: - return owner() - if self is EngagementsRetrieveRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is EngagementsRetrieveRequestExpand.OWNER_ACCOUNT_ENGAGEMENT_TYPE: - return owner_account_engagement_type() - if self is EngagementsRetrieveRequestExpand.OWNER_ENGAGEMENT_TYPE: - return owner_engagement_type() diff --git a/src/merge/resources/crm/resources/field_mapping/__init__.py b/src/merge/resources/crm/resources/field_mapping/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/field_mapping/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/field_mapping/client.py b/src/merge/resources/crm/resources/field_mapping/client.py deleted file mode 100644 index 851e71cd..00000000 --- a/src/merge/resources/crm/resources/field_mapping/client.py +++ /dev/null @@ -1,644 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse -from .raw_client import AsyncRawFieldMappingClient, RawFieldMappingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFieldMappingClient - """ - return self._raw_client - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - """ - _response = self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - """ - _response = self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - request_options=request_options, - ) - return _response.data - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - request_options=request_options, - ) - return _response.data - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - """ - _response = self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.field_mapping.target_fields_retrieve() - """ - _response = self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data - - -class AsyncFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFieldMappingClient - """ - return self._raw_client - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - request_options=request_options, - ) - return _response.data - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - request_options=request_options, - ) - return _response.data - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.field_mapping.target_fields_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/field_mapping/raw_client.py b/src/merge/resources/crm/resources/field_mapping/raw_client.py deleted file mode 100644 index c540caec..00000000 --- a/src/merge/resources/crm/resources/field_mapping/raw_client.py +++ /dev/null @@ -1,652 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/force_resync/__init__.py b/src/merge/resources/crm/resources/force_resync/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/force_resync/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/force_resync/client.py b/src/merge/resources/crm/resources/force_resync/client.py deleted file mode 100644 index 22e6fedd..00000000 --- a/src/merge/resources/crm/resources/force_resync/client.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.sync_status import SyncStatus -from .raw_client import AsyncRawForceResyncClient, RawForceResyncClient - - -class ForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawForceResyncClient - """ - return self._raw_client - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.force_resync.sync_status_resync_create() - """ - _response = self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data - - -class AsyncForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawForceResyncClient - """ - return self._raw_client - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.force_resync.sync_status_resync_create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/force_resync/raw_client.py b/src/merge/resources/crm/resources/force_resync/raw_client.py deleted file mode 100644 index 7f58564f..00000000 --- a/src/merge/resources/crm/resources/force_resync/raw_client.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.sync_status import SyncStatus - - -class RawForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SyncStatus]] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SyncStatus]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/generate_key/__init__.py b/src/merge/resources/crm/resources/generate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/generate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/generate_key/client.py b/src/merge/resources/crm/resources/generate_key/client.py deleted file mode 100644 index e536ae14..00000000 --- a/src/merge/resources/crm/resources/generate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawGenerateKeyClient, RawGenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.generate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.generate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/generate_key/raw_client.py b/src/merge/resources/crm/resources/generate_key/raw_client.py deleted file mode 100644 index 9e1ed9cd..00000000 --- a/src/merge/resources/crm/resources/generate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/issues/__init__.py b/src/merge/resources/crm/resources/issues/__init__.py deleted file mode 100644 index 3ca1094b..00000000 --- a/src/merge/resources/crm/resources/issues/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/crm/resources/issues/client.py b/src/merge/resources/crm/resources/issues/client.py deleted file mode 100644 index 2e460bd0..00000000 --- a/src/merge/resources/crm/resources/issues/client.py +++ /dev/null @@ -1,378 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .raw_client import AsyncRawIssuesClient, RawIssuesClient -from .types.issues_list_request_status import IssuesListRequestStatus - - -class IssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIssuesClient - """ - return self._raw_client - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.crm.resources.issues import IssuesListRequestStatus - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - """ - _response = self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.issues.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIssuesClient - """ - return self._raw_client - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.crm.resources.issues import IssuesListRequestStatus - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.issues.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/issues/raw_client.py b/src/merge/resources/crm/resources/issues/raw_client.py deleted file mode 100644 index dd161a06..00000000 --- a/src/merge/resources/crm/resources/issues/raw_client.py +++ /dev/null @@ -1,336 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .types.issues_list_request_status import IssuesListRequestStatus - - -class RawIssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIssueList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Issue] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIssueList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Issue] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/issues/types/__init__.py b/src/merge/resources/crm/resources/issues/types/__init__.py deleted file mode 100644 index 88fbf977..00000000 --- a/src/merge/resources/crm/resources/issues/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .issues_list_request_status import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/crm/resources/issues/types/issues_list_request_status.py b/src/merge/resources/crm/resources/issues/types/issues_list_request_status.py deleted file mode 100644 index 2bd3521e..00000000 --- a/src/merge/resources/crm/resources/issues/types/issues_list_request_status.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssuesListRequestStatus(str, enum.Enum): - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssuesListRequestStatus.ONGOING: - return ongoing() - if self is IssuesListRequestStatus.RESOLVED: - return resolved() diff --git a/src/merge/resources/crm/resources/leads/__init__.py b/src/merge/resources/crm/resources/leads/__init__.py deleted file mode 100644 index 472e695d..00000000 --- a/src/merge/resources/crm/resources/leads/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LeadsListRequestExpand, LeadsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"LeadsListRequestExpand": ".types", "LeadsRetrieveRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LeadsListRequestExpand", "LeadsRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/leads/client.py b/src/merge/resources/crm/resources/leads/client.py deleted file mode 100644 index 1ede9f02..00000000 --- a/src/merge/resources/crm/resources/leads/client.py +++ /dev/null @@ -1,828 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.lead import Lead -from ...types.lead_request import LeadRequest -from ...types.lead_response import LeadResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_lead_list import PaginatedLeadList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawLeadsClient, RawLeadsClient -from .types.leads_list_request_expand import LeadsListRequestExpand -from .types.leads_retrieve_request_expand import LeadsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LeadsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLeadsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLeadsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLeadsClient - """ - return self._raw_client - - def list( - self, - *, - converted_account_id: typing.Optional[str] = None, - converted_contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[LeadsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedLeadList: - """ - Returns a list of `Lead` objects. - - Parameters - ---------- - converted_account_id : typing.Optional[str] - If provided, will only return leads with this account. - - converted_contact_id : typing.Optional[str] - If provided, will only return leads with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[LeadsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return leads with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedLeadList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.crm.resources.leads import LeadsListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.leads.list( - converted_account_id="converted_account_id", - converted_contact_id="converted_contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=LeadsListRequestExpand.CONVERTED_ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - owner_id="owner_id", - page_size=1, - phone_numbers="phone_numbers", - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - converted_account_id=converted_account_id, - converted_contact_id=converted_contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_addresses=email_addresses, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - owner_id=owner_id, - page_size=page_size, - phone_numbers=phone_numbers, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: LeadRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> LeadResponse: - """ - Creates a `Lead` object with the given values. - - Parameters - ---------- - model : LeadRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LeadResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import LeadRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.leads.create( - is_debug_mode=True, - run_async=True, - model=LeadRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[LeadsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Lead: - """ - Returns a `Lead` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[LeadsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Lead - - - Examples - -------- - from merge import Merge - from merge.resources.crm.resources.leads import LeadsRetrieveRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.leads.retrieve( - id="id", - expand=LeadsRetrieveRequestExpand.CONVERTED_ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Lead` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.leads.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.leads.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncLeadsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLeadsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLeadsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLeadsClient - """ - return self._raw_client - - async def list( - self, - *, - converted_account_id: typing.Optional[str] = None, - converted_contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[LeadsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedLeadList: - """ - Returns a list of `Lead` objects. - - Parameters - ---------- - converted_account_id : typing.Optional[str] - If provided, will only return leads with this account. - - converted_contact_id : typing.Optional[str] - If provided, will only return leads with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[LeadsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return leads with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedLeadList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.crm.resources.leads import LeadsListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.leads.list( - converted_account_id="converted_account_id", - converted_contact_id="converted_contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_addresses="email_addresses", - expand=LeadsListRequestExpand.CONVERTED_ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - owner_id="owner_id", - page_size=1, - phone_numbers="phone_numbers", - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - converted_account_id=converted_account_id, - converted_contact_id=converted_contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_addresses=email_addresses, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - owner_id=owner_id, - page_size=page_size, - phone_numbers=phone_numbers, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: LeadRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> LeadResponse: - """ - Creates a `Lead` object with the given values. - - Parameters - ---------- - model : LeadRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LeadResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import LeadRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.leads.create( - is_debug_mode=True, - run_async=True, - model=LeadRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[LeadsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Lead: - """ - Returns a `Lead` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[LeadsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Lead - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm.resources.leads import LeadsRetrieveRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.leads.retrieve( - id="id", - expand=LeadsRetrieveRequestExpand.CONVERTED_ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Lead` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.leads.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.leads.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/leads/raw_client.py b/src/merge/resources/crm/resources/leads/raw_client.py deleted file mode 100644 index 8779c5d2..00000000 --- a/src/merge/resources/crm/resources/leads/raw_client.py +++ /dev/null @@ -1,762 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.lead import Lead -from ...types.lead_request import LeadRequest -from ...types.lead_response import LeadResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_lead_list import PaginatedLeadList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .types.leads_list_request_expand import LeadsListRequestExpand -from .types.leads_retrieve_request_expand import LeadsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLeadsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - converted_account_id: typing.Optional[str] = None, - converted_contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[LeadsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedLeadList]: - """ - Returns a list of `Lead` objects. - - Parameters - ---------- - converted_account_id : typing.Optional[str] - If provided, will only return leads with this account. - - converted_contact_id : typing.Optional[str] - If provided, will only return leads with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[LeadsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return leads with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedLeadList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/leads", - method="GET", - params={ - "converted_account_id": converted_account_id, - "converted_contact_id": converted_contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_addresses": email_addresses, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "owner_id": owner_id, - "page_size": page_size, - "phone_numbers": phone_numbers, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedLeadList, - construct_type( - type_=PaginatedLeadList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: LeadRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LeadResponse]: - """ - Creates a `Lead` object with the given values. - - Parameters - ---------- - model : LeadRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LeadResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/leads", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LeadResponse, - construct_type( - type_=LeadResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[LeadsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Lead]: - """ - Returns a `Lead` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[LeadsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Lead] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/leads/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Lead, - construct_type( - type_=Lead, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Lead` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/leads/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/leads/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLeadsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - converted_account_id: typing.Optional[str] = None, - converted_contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_addresses: typing.Optional[str] = None, - expand: typing.Optional[LeadsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - phone_numbers: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedLeadList]: - """ - Returns a list of `Lead` objects. - - Parameters - ---------- - converted_account_id : typing.Optional[str] - If provided, will only return leads with this account. - - converted_contact_id : typing.Optional[str] - If provided, will only return leads with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_addresses : typing.Optional[str] - If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. - - expand : typing.Optional[LeadsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return leads with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - phone_numbers : typing.Optional[str] - If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedLeadList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/leads", - method="GET", - params={ - "converted_account_id": converted_account_id, - "converted_contact_id": converted_contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_addresses": email_addresses, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "owner_id": owner_id, - "page_size": page_size, - "phone_numbers": phone_numbers, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedLeadList, - construct_type( - type_=PaginatedLeadList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: LeadRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LeadResponse]: - """ - Creates a `Lead` object with the given values. - - Parameters - ---------- - model : LeadRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LeadResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/leads", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LeadResponse, - construct_type( - type_=LeadResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[LeadsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Lead]: - """ - Returns a `Lead` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[LeadsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Lead] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/leads/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Lead, - construct_type( - type_=Lead, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Lead` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/leads/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/leads/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/leads/types/__init__.py b/src/merge/resources/crm/resources/leads/types/__init__.py deleted file mode 100644 index e2f7e079..00000000 --- a/src/merge/resources/crm/resources/leads/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .leads_list_request_expand import LeadsListRequestExpand - from .leads_retrieve_request_expand import LeadsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "LeadsListRequestExpand": ".leads_list_request_expand", - "LeadsRetrieveRequestExpand": ".leads_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LeadsListRequestExpand", "LeadsRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/leads/types/leads_list_request_expand.py b/src/merge/resources/crm/resources/leads/types/leads_list_request_expand.py deleted file mode 100644 index b563b107..00000000 --- a/src/merge/resources/crm/resources/leads/types/leads_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LeadsListRequestExpand(str, enum.Enum): - CONVERTED_ACCOUNT = "converted_account" - CONVERTED_CONTACT = "converted_contact" - CONVERTED_CONTACT_CONVERTED_ACCOUNT = "converted_contact,converted_account" - OWNER = "owner" - OWNER_CONVERTED_ACCOUNT = "owner,converted_account" - OWNER_CONVERTED_CONTACT = "owner,converted_contact" - OWNER_CONVERTED_CONTACT_CONVERTED_ACCOUNT = "owner,converted_contact,converted_account" - - def visit( - self, - converted_account: typing.Callable[[], T_Result], - converted_contact: typing.Callable[[], T_Result], - converted_contact_converted_account: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_converted_account: typing.Callable[[], T_Result], - owner_converted_contact: typing.Callable[[], T_Result], - owner_converted_contact_converted_account: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LeadsListRequestExpand.CONVERTED_ACCOUNT: - return converted_account() - if self is LeadsListRequestExpand.CONVERTED_CONTACT: - return converted_contact() - if self is LeadsListRequestExpand.CONVERTED_CONTACT_CONVERTED_ACCOUNT: - return converted_contact_converted_account() - if self is LeadsListRequestExpand.OWNER: - return owner() - if self is LeadsListRequestExpand.OWNER_CONVERTED_ACCOUNT: - return owner_converted_account() - if self is LeadsListRequestExpand.OWNER_CONVERTED_CONTACT: - return owner_converted_contact() - if self is LeadsListRequestExpand.OWNER_CONVERTED_CONTACT_CONVERTED_ACCOUNT: - return owner_converted_contact_converted_account() diff --git a/src/merge/resources/crm/resources/leads/types/leads_retrieve_request_expand.py b/src/merge/resources/crm/resources/leads/types/leads_retrieve_request_expand.py deleted file mode 100644 index 08f9bd3f..00000000 --- a/src/merge/resources/crm/resources/leads/types/leads_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LeadsRetrieveRequestExpand(str, enum.Enum): - CONVERTED_ACCOUNT = "converted_account" - CONVERTED_CONTACT = "converted_contact" - CONVERTED_CONTACT_CONVERTED_ACCOUNT = "converted_contact,converted_account" - OWNER = "owner" - OWNER_CONVERTED_ACCOUNT = "owner,converted_account" - OWNER_CONVERTED_CONTACT = "owner,converted_contact" - OWNER_CONVERTED_CONTACT_CONVERTED_ACCOUNT = "owner,converted_contact,converted_account" - - def visit( - self, - converted_account: typing.Callable[[], T_Result], - converted_contact: typing.Callable[[], T_Result], - converted_contact_converted_account: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_converted_account: typing.Callable[[], T_Result], - owner_converted_contact: typing.Callable[[], T_Result], - owner_converted_contact_converted_account: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LeadsRetrieveRequestExpand.CONVERTED_ACCOUNT: - return converted_account() - if self is LeadsRetrieveRequestExpand.CONVERTED_CONTACT: - return converted_contact() - if self is LeadsRetrieveRequestExpand.CONVERTED_CONTACT_CONVERTED_ACCOUNT: - return converted_contact_converted_account() - if self is LeadsRetrieveRequestExpand.OWNER: - return owner() - if self is LeadsRetrieveRequestExpand.OWNER_CONVERTED_ACCOUNT: - return owner_converted_account() - if self is LeadsRetrieveRequestExpand.OWNER_CONVERTED_CONTACT: - return owner_converted_contact() - if self is LeadsRetrieveRequestExpand.OWNER_CONVERTED_CONTACT_CONVERTED_ACCOUNT: - return owner_converted_contact_converted_account() diff --git a/src/merge/resources/crm/resources/link_token/__init__.py b/src/merge/resources/crm/resources/link_token/__init__.py deleted file mode 100644 index 3bad6adf..00000000 --- a/src/merge/resources/crm/resources/link_token/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/crm/resources/link_token/client.py b/src/merge/resources/crm/resources/link_token/client.py deleted file mode 100644 index 8a8e4a5c..00000000 --- a/src/merge/resources/crm/resources/link_token/client.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkTokenClient - """ - return self._raw_client - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - from merge import Merge - from merge.resources.crm import CategoriesEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - """ - _response = self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkTokenClient - """ - return self._raw_client - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import CategoriesEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/link_token/raw_client.py b/src/merge/resources/crm/resources/link_token/raw_client.py deleted file mode 100644 index ad9b7802..00000000 --- a/src/merge/resources/crm/resources/link_token/raw_client.py +++ /dev/null @@ -1,256 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LinkToken] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LinkToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/link_token/types/__init__.py b/src/merge/resources/crm/resources/link_token/types/__init__.py deleted file mode 100644 index e9a7d3b9..00000000 --- a/src/merge/resources/crm/resources/link_token/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .end_user_details_request_language import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".end_user_details_request_language"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/crm/resources/link_token/types/end_user_details_request_language.py b/src/merge/resources/crm/resources/link_token/types/end_user_details_request_language.py deleted file mode 100644 index 65c4b44a..00000000 --- a/src/merge/resources/crm/resources/link_token/types/end_user_details_request_language.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.language_enum import LanguageEnum - -EndUserDetailsRequestLanguage = typing.Union[LanguageEnum, str] diff --git a/src/merge/resources/crm/resources/linked_accounts/__init__.py b/src/merge/resources/crm/resources/linked_accounts/__init__.py deleted file mode 100644 index 0b9e42b4..00000000 --- a/src/merge/resources/crm/resources/linked_accounts/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/crm/resources/linked_accounts/client.py b/src/merge/resources/crm/resources/linked_accounts/client.py deleted file mode 100644 index 7587420a..00000000 --- a/src/merge/resources/crm/resources/linked_accounts/client.py +++ /dev/null @@ -1,293 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class LinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - from merge import Merge - from merge.resources.crm.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - """ - _response = self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/linked_accounts/raw_client.py b/src/merge/resources/crm/resources/linked_accounts/raw_client.py deleted file mode 100644 index 173c2dcd..00000000 --- a/src/merge/resources/crm/resources/linked_accounts/raw_client.py +++ /dev/null @@ -1,246 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class RawLinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/linked_accounts/types/__init__.py b/src/merge/resources/crm/resources/linked_accounts/types/__init__.py deleted file mode 100644 index a28f38cc..00000000 --- a/src/merge/resources/crm/resources/linked_accounts/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/crm/resources/linked_accounts/types/linked_accounts_list_request_category.py b/src/merge/resources/crm/resources/linked_accounts/types/linked_accounts_list_request_category.py deleted file mode 100644 index bd873ea8..00000000 --- a/src/merge/resources/crm/resources/linked_accounts/types/linked_accounts_list_request_category.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LinkedAccountsListRequestCategory(str, enum.Enum): - ACCOUNTING = "accounting" - ATS = "ats" - CRM = "crm" - FILESTORAGE = "filestorage" - HRIS = "hris" - MKTG = "mktg" - TICKETING = "ticketing" - - def visit( - self, - accounting: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - hris: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LinkedAccountsListRequestCategory.ACCOUNTING: - return accounting() - if self is LinkedAccountsListRequestCategory.ATS: - return ats() - if self is LinkedAccountsListRequestCategory.CRM: - return crm() - if self is LinkedAccountsListRequestCategory.FILESTORAGE: - return filestorage() - if self is LinkedAccountsListRequestCategory.HRIS: - return hris() - if self is LinkedAccountsListRequestCategory.MKTG: - return mktg() - if self is LinkedAccountsListRequestCategory.TICKETING: - return ticketing() diff --git a/src/merge/resources/crm/resources/notes/__init__.py b/src/merge/resources/crm/resources/notes/__init__.py deleted file mode 100644 index adc441a0..00000000 --- a/src/merge/resources/crm/resources/notes/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import NotesListRequestExpand, NotesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"NotesListRequestExpand": ".types", "NotesRetrieveRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["NotesListRequestExpand", "NotesRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/notes/client.py b/src/merge/resources/crm/resources/notes/client.py deleted file mode 100644 index 171e94d2..00000000 --- a/src/merge/resources/crm/resources/notes/client.py +++ /dev/null @@ -1,816 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.note import Note -from ...types.note_request import NoteRequest -from ...types.note_response import NoteResponse -from ...types.paginated_note_list import PaginatedNoteList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .raw_client import AsyncRawNotesClient, RawNotesClient -from .types.notes_list_request_expand import NotesListRequestExpand -from .types.notes_retrieve_request_expand import NotesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class NotesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawNotesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawNotesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawNotesClient - """ - return self._raw_client - - def list( - self, - *, - account_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[NotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - opportunity_id: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedNoteList: - """ - Returns a list of `Note` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return notes with this account. - - contact_id : typing.Optional[str] - If provided, will only return notes with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[NotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - opportunity_id : typing.Optional[str] - If provided, will only return notes with this opportunity. - - owner_id : typing.Optional[str] - If provided, will only return notes with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedNoteList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.crm.resources.notes import NotesListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.notes.list( - account_id="account_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=NotesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - opportunity_id="opportunity_id", - owner_id="owner_id", - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - account_id=account_id, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - opportunity_id=opportunity_id, - owner_id=owner_id, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: NoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> NoteResponse: - """ - Creates a `Note` object with the given values. - - Parameters - ---------- - model : NoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - NoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import NoteRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.notes.create( - is_debug_mode=True, - run_async=True, - model=NoteRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[NotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Note: - """ - Returns a `Note` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[NotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Note - - - Examples - -------- - from merge import Merge - from merge.resources.crm.resources.notes import NotesRetrieveRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.notes.retrieve( - id="id", - expand=NotesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Note` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.notes.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.notes.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncNotesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawNotesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawNotesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawNotesClient - """ - return self._raw_client - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[NotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - opportunity_id: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedNoteList: - """ - Returns a list of `Note` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return notes with this account. - - contact_id : typing.Optional[str] - If provided, will only return notes with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[NotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - opportunity_id : typing.Optional[str] - If provided, will only return notes with this opportunity. - - owner_id : typing.Optional[str] - If provided, will only return notes with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedNoteList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.crm.resources.notes import NotesListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.notes.list( - account_id="account_id", - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=NotesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - opportunity_id="opportunity_id", - owner_id="owner_id", - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_id=account_id, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - opportunity_id=opportunity_id, - owner_id=owner_id, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: NoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> NoteResponse: - """ - Creates a `Note` object with the given values. - - Parameters - ---------- - model : NoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - NoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import NoteRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.notes.create( - is_debug_mode=True, - run_async=True, - model=NoteRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[NotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Note: - """ - Returns a `Note` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[NotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Note - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm.resources.notes import NotesRetrieveRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.notes.retrieve( - id="id", - expand=NotesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Note` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.notes.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.notes.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/notes/raw_client.py b/src/merge/resources/crm/resources/notes/raw_client.py deleted file mode 100644 index 9b95ef38..00000000 --- a/src/merge/resources/crm/resources/notes/raw_client.py +++ /dev/null @@ -1,752 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.note import Note -from ...types.note_request import NoteRequest -from ...types.note_response import NoteResponse -from ...types.paginated_note_list import PaginatedNoteList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from .types.notes_list_request_expand import NotesListRequestExpand -from .types.notes_retrieve_request_expand import NotesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawNotesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[NotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - opportunity_id: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedNoteList]: - """ - Returns a list of `Note` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return notes with this account. - - contact_id : typing.Optional[str] - If provided, will only return notes with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[NotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - opportunity_id : typing.Optional[str] - If provided, will only return notes with this opportunity. - - owner_id : typing.Optional[str] - If provided, will only return notes with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedNoteList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/notes", - method="GET", - params={ - "account_id": account_id, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "opportunity_id": opportunity_id, - "owner_id": owner_id, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedNoteList, - construct_type( - type_=PaginatedNoteList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: NoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[NoteResponse]: - """ - Creates a `Note` object with the given values. - - Parameters - ---------- - model : NoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[NoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/notes", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - NoteResponse, - construct_type( - type_=NoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[NotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Note]: - """ - Returns a `Note` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[NotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Note] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/notes/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Note, - construct_type( - type_=Note, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Note` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/notes/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/notes/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawNotesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[NotesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - opportunity_id: typing.Optional[str] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedNoteList]: - """ - Returns a list of `Note` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return notes with this account. - - contact_id : typing.Optional[str] - If provided, will only return notes with this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[NotesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - opportunity_id : typing.Optional[str] - If provided, will only return notes with this opportunity. - - owner_id : typing.Optional[str] - If provided, will only return notes with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedNoteList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/notes", - method="GET", - params={ - "account_id": account_id, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "opportunity_id": opportunity_id, - "owner_id": owner_id, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedNoteList, - construct_type( - type_=PaginatedNoteList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: NoteRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[NoteResponse]: - """ - Creates a `Note` object with the given values. - - Parameters - ---------- - model : NoteRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[NoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/notes", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - NoteResponse, - construct_type( - type_=NoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[NotesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Note]: - """ - Returns a `Note` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[NotesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Note] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/notes/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Note, - construct_type( - type_=Note, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Note` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/notes/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/notes/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/notes/types/__init__.py b/src/merge/resources/crm/resources/notes/types/__init__.py deleted file mode 100644 index 7099c9bd..00000000 --- a/src/merge/resources/crm/resources/notes/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .notes_list_request_expand import NotesListRequestExpand - from .notes_retrieve_request_expand import NotesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "NotesListRequestExpand": ".notes_list_request_expand", - "NotesRetrieveRequestExpand": ".notes_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["NotesListRequestExpand", "NotesRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/notes/types/notes_list_request_expand.py b/src/merge/resources/crm/resources/notes/types/notes_list_request_expand.py deleted file mode 100644 index 6ba7625f..00000000 --- a/src/merge/resources/crm/resources/notes/types/notes_list_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class NotesListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_OPPORTUNITY = "account,opportunity" - CONTACT = "contact" - CONTACT_ACCOUNT = "contact,account" - CONTACT_ACCOUNT_OPPORTUNITY = "contact,account,opportunity" - CONTACT_OPPORTUNITY = "contact,opportunity" - OPPORTUNITY = "opportunity" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_ACCOUNT_OPPORTUNITY = "owner,account,opportunity" - OWNER_CONTACT = "owner,contact" - OWNER_CONTACT_ACCOUNT = "owner,contact,account" - OWNER_CONTACT_ACCOUNT_OPPORTUNITY = "owner,contact,account,opportunity" - OWNER_CONTACT_OPPORTUNITY = "owner,contact,opportunity" - OWNER_OPPORTUNITY = "owner,opportunity" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_opportunity: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_account: typing.Callable[[], T_Result], - contact_account_opportunity: typing.Callable[[], T_Result], - contact_opportunity: typing.Callable[[], T_Result], - opportunity: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_account_opportunity: typing.Callable[[], T_Result], - owner_contact: typing.Callable[[], T_Result], - owner_contact_account: typing.Callable[[], T_Result], - owner_contact_account_opportunity: typing.Callable[[], T_Result], - owner_contact_opportunity: typing.Callable[[], T_Result], - owner_opportunity: typing.Callable[[], T_Result], - ) -> T_Result: - if self is NotesListRequestExpand.ACCOUNT: - return account() - if self is NotesListRequestExpand.ACCOUNT_OPPORTUNITY: - return account_opportunity() - if self is NotesListRequestExpand.CONTACT: - return contact() - if self is NotesListRequestExpand.CONTACT_ACCOUNT: - return contact_account() - if self is NotesListRequestExpand.CONTACT_ACCOUNT_OPPORTUNITY: - return contact_account_opportunity() - if self is NotesListRequestExpand.CONTACT_OPPORTUNITY: - return contact_opportunity() - if self is NotesListRequestExpand.OPPORTUNITY: - return opportunity() - if self is NotesListRequestExpand.OWNER: - return owner() - if self is NotesListRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is NotesListRequestExpand.OWNER_ACCOUNT_OPPORTUNITY: - return owner_account_opportunity() - if self is NotesListRequestExpand.OWNER_CONTACT: - return owner_contact() - if self is NotesListRequestExpand.OWNER_CONTACT_ACCOUNT: - return owner_contact_account() - if self is NotesListRequestExpand.OWNER_CONTACT_ACCOUNT_OPPORTUNITY: - return owner_contact_account_opportunity() - if self is NotesListRequestExpand.OWNER_CONTACT_OPPORTUNITY: - return owner_contact_opportunity() - if self is NotesListRequestExpand.OWNER_OPPORTUNITY: - return owner_opportunity() diff --git a/src/merge/resources/crm/resources/notes/types/notes_retrieve_request_expand.py b/src/merge/resources/crm/resources/notes/types/notes_retrieve_request_expand.py deleted file mode 100644 index a9e9b3d4..00000000 --- a/src/merge/resources/crm/resources/notes/types/notes_retrieve_request_expand.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class NotesRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_OPPORTUNITY = "account,opportunity" - CONTACT = "contact" - CONTACT_ACCOUNT = "contact,account" - CONTACT_ACCOUNT_OPPORTUNITY = "contact,account,opportunity" - CONTACT_OPPORTUNITY = "contact,opportunity" - OPPORTUNITY = "opportunity" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_ACCOUNT_OPPORTUNITY = "owner,account,opportunity" - OWNER_CONTACT = "owner,contact" - OWNER_CONTACT_ACCOUNT = "owner,contact,account" - OWNER_CONTACT_ACCOUNT_OPPORTUNITY = "owner,contact,account,opportunity" - OWNER_CONTACT_OPPORTUNITY = "owner,contact,opportunity" - OWNER_OPPORTUNITY = "owner,opportunity" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_opportunity: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_account: typing.Callable[[], T_Result], - contact_account_opportunity: typing.Callable[[], T_Result], - contact_opportunity: typing.Callable[[], T_Result], - opportunity: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_account_opportunity: typing.Callable[[], T_Result], - owner_contact: typing.Callable[[], T_Result], - owner_contact_account: typing.Callable[[], T_Result], - owner_contact_account_opportunity: typing.Callable[[], T_Result], - owner_contact_opportunity: typing.Callable[[], T_Result], - owner_opportunity: typing.Callable[[], T_Result], - ) -> T_Result: - if self is NotesRetrieveRequestExpand.ACCOUNT: - return account() - if self is NotesRetrieveRequestExpand.ACCOUNT_OPPORTUNITY: - return account_opportunity() - if self is NotesRetrieveRequestExpand.CONTACT: - return contact() - if self is NotesRetrieveRequestExpand.CONTACT_ACCOUNT: - return contact_account() - if self is NotesRetrieveRequestExpand.CONTACT_ACCOUNT_OPPORTUNITY: - return contact_account_opportunity() - if self is NotesRetrieveRequestExpand.CONTACT_OPPORTUNITY: - return contact_opportunity() - if self is NotesRetrieveRequestExpand.OPPORTUNITY: - return opportunity() - if self is NotesRetrieveRequestExpand.OWNER: - return owner() - if self is NotesRetrieveRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is NotesRetrieveRequestExpand.OWNER_ACCOUNT_OPPORTUNITY: - return owner_account_opportunity() - if self is NotesRetrieveRequestExpand.OWNER_CONTACT: - return owner_contact() - if self is NotesRetrieveRequestExpand.OWNER_CONTACT_ACCOUNT: - return owner_contact_account() - if self is NotesRetrieveRequestExpand.OWNER_CONTACT_ACCOUNT_OPPORTUNITY: - return owner_contact_account_opportunity() - if self is NotesRetrieveRequestExpand.OWNER_CONTACT_OPPORTUNITY: - return owner_contact_opportunity() - if self is NotesRetrieveRequestExpand.OWNER_OPPORTUNITY: - return owner_opportunity() diff --git a/src/merge/resources/crm/resources/opportunities/__init__.py b/src/merge/resources/crm/resources/opportunities/__init__.py deleted file mode 100644 index 09e2332d..00000000 --- a/src/merge/resources/crm/resources/opportunities/__init__.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - OpportunitiesListRequestExpand, - OpportunitiesListRequestStatus, - OpportunitiesRetrieveRequestExpand, - ) -_dynamic_imports: typing.Dict[str, str] = { - "OpportunitiesListRequestExpand": ".types", - "OpportunitiesListRequestStatus": ".types", - "OpportunitiesRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["OpportunitiesListRequestExpand", "OpportunitiesListRequestStatus", "OpportunitiesRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/opportunities/client.py b/src/merge/resources/crm/resources/opportunities/client.py deleted file mode 100644 index 198ce722..00000000 --- a/src/merge/resources/crm/resources/opportunities/client.py +++ /dev/null @@ -1,1078 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.opportunity import Opportunity -from ...types.opportunity_request import OpportunityRequest -from ...types.opportunity_response import OpportunityResponse -from ...types.paginated_opportunity_list import PaginatedOpportunityList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_opportunity_request import PatchedOpportunityRequest -from .raw_client import AsyncRawOpportunitiesClient, RawOpportunitiesClient -from .types.opportunities_list_request_expand import OpportunitiesListRequestExpand -from .types.opportunities_list_request_status import OpportunitiesListRequestStatus -from .types.opportunities_retrieve_request_expand import OpportunitiesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class OpportunitiesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawOpportunitiesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawOpportunitiesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawOpportunitiesClient - """ - return self._raw_client - - def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OpportunitiesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - stage_id: typing.Optional[str] = None, - status: typing.Optional[OpportunitiesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedOpportunityList: - """ - Returns a list of `Opportunity` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return opportunities with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OpportunitiesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return opportunities with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return opportunities created in the third party platform after this datetime. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - stage_id : typing.Optional[str] - If provided, will only return opportunities with this stage. - - status : typing.Optional[OpportunitiesListRequestStatus] - If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST') - - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedOpportunityList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.crm.resources.opportunities import ( - OpportunitiesListRequestExpand, - OpportunitiesListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.opportunities.list( - account_id="account_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=OpportunitiesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - owner_id="owner_id", - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - stage_id="stage_id", - status=OpportunitiesListRequestStatus.LOST, - ) - """ - _response = self._raw_client.list( - account_id=account_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - owner_id=owner_id, - page_size=page_size, - remote_created_after=remote_created_after, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - stage_id=stage_id, - status=status, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: OpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> OpportunityResponse: - """ - Creates an `Opportunity` object with the given values. - - Parameters - ---------- - model : OpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - OpportunityResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import OpportunityRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.opportunities.create( - is_debug_mode=True, - run_async=True, - model=OpportunityRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[OpportunitiesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Opportunity: - """ - Returns an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OpportunitiesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Opportunity - - - Examples - -------- - from merge import Merge - from merge.resources.crm.resources.opportunities import ( - OpportunitiesRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.opportunities.retrieve( - id="id", - expand=OpportunitiesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedOpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> OpportunityResponse: - """ - Updates an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedOpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - OpportunityResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import PatchedOpportunityRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.opportunities.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedOpportunityRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Opportunity` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.opportunities.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Opportunity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.opportunities.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.opportunities.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncOpportunitiesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawOpportunitiesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawOpportunitiesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawOpportunitiesClient - """ - return self._raw_client - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OpportunitiesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - stage_id: typing.Optional[str] = None, - status: typing.Optional[OpportunitiesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedOpportunityList: - """ - Returns a list of `Opportunity` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return opportunities with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OpportunitiesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return opportunities with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return opportunities created in the third party platform after this datetime. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - stage_id : typing.Optional[str] - If provided, will only return opportunities with this stage. - - status : typing.Optional[OpportunitiesListRequestStatus] - If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST') - - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedOpportunityList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.crm.resources.opportunities import ( - OpportunitiesListRequestExpand, - OpportunitiesListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.opportunities.list( - account_id="account_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=OpportunitiesListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - owner_id="owner_id", - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - stage_id="stage_id", - status=OpportunitiesListRequestStatus.LOST, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_id=account_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - owner_id=owner_id, - page_size=page_size, - remote_created_after=remote_created_after, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - stage_id=stage_id, - status=status, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: OpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> OpportunityResponse: - """ - Creates an `Opportunity` object with the given values. - - Parameters - ---------- - model : OpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - OpportunityResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import OpportunityRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.opportunities.create( - is_debug_mode=True, - run_async=True, - model=OpportunityRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[OpportunitiesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Opportunity: - """ - Returns an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OpportunitiesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Opportunity - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm.resources.opportunities import ( - OpportunitiesRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.opportunities.retrieve( - id="id", - expand=OpportunitiesRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedOpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> OpportunityResponse: - """ - Updates an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedOpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - OpportunityResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import PatchedOpportunityRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.opportunities.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedOpportunityRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Opportunity` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.opportunities.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Opportunity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.opportunities.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.opportunities.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/opportunities/raw_client.py b/src/merge/resources/crm/resources/opportunities/raw_client.py deleted file mode 100644 index 89416b47..00000000 --- a/src/merge/resources/crm/resources/opportunities/raw_client.py +++ /dev/null @@ -1,1018 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.opportunity import Opportunity -from ...types.opportunity_request import OpportunityRequest -from ...types.opportunity_response import OpportunityResponse -from ...types.paginated_opportunity_list import PaginatedOpportunityList -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.patched_opportunity_request import PatchedOpportunityRequest -from .types.opportunities_list_request_expand import OpportunitiesListRequestExpand -from .types.opportunities_list_request_status import OpportunitiesListRequestStatus -from .types.opportunities_retrieve_request_expand import OpportunitiesRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawOpportunitiesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OpportunitiesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - stage_id: typing.Optional[str] = None, - status: typing.Optional[OpportunitiesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedOpportunityList]: - """ - Returns a list of `Opportunity` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return opportunities with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OpportunitiesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return opportunities with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return opportunities created in the third party platform after this datetime. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - stage_id : typing.Optional[str] - If provided, will only return opportunities with this stage. - - status : typing.Optional[OpportunitiesListRequestStatus] - If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST') - - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedOpportunityList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/opportunities", - method="GET", - params={ - "account_id": account_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "owner_id": owner_id, - "page_size": page_size, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "stage_id": stage_id, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedOpportunityList, - construct_type( - type_=PaginatedOpportunityList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: OpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[OpportunityResponse]: - """ - Creates an `Opportunity` object with the given values. - - Parameters - ---------- - model : OpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[OpportunityResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/opportunities", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - OpportunityResponse, - construct_type( - type_=OpportunityResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[OpportunitiesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Opportunity]: - """ - Returns an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OpportunitiesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Opportunity] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/opportunities/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Opportunity, - construct_type( - type_=Opportunity, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedOpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[OpportunityResponse]: - """ - Updates an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedOpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[OpportunityResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/opportunities/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - OpportunityResponse, - construct_type( - type_=OpportunityResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Opportunity` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/opportunities/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Opportunity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/opportunities/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/opportunities/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawOpportunitiesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[OpportunitiesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - owner_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - stage_id: typing.Optional[str] = None, - status: typing.Optional[OpportunitiesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedOpportunityList]: - """ - Returns a list of `Opportunity` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return opportunities with this account. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[OpportunitiesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - owner_id : typing.Optional[str] - If provided, will only return opportunities with this owner. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return opportunities created in the third party platform after this datetime. - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - stage_id : typing.Optional[str] - If provided, will only return opportunities with this stage. - - status : typing.Optional[OpportunitiesListRequestStatus] - If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST') - - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedOpportunityList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/opportunities", - method="GET", - params={ - "account_id": account_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "owner_id": owner_id, - "page_size": page_size, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "stage_id": stage_id, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedOpportunityList, - construct_type( - type_=PaginatedOpportunityList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: OpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[OpportunityResponse]: - """ - Creates an `Opportunity` object with the given values. - - Parameters - ---------- - model : OpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[OpportunityResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/opportunities", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - OpportunityResponse, - construct_type( - type_=OpportunityResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[OpportunitiesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["status"]] = None, - show_enum_origins: typing.Optional[typing.Literal["status"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Opportunity]: - """ - Returns an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[OpportunitiesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["status"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["status"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Opportunity] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/opportunities/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Opportunity, - construct_type( - type_=Opportunity, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedOpportunityRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[OpportunityResponse]: - """ - Updates an `Opportunity` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedOpportunityRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[OpportunityResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/opportunities/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - OpportunityResponse, - construct_type( - type_=OpportunityResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Opportunity` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/opportunities/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Opportunity` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/opportunities/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/opportunities/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/opportunities/types/__init__.py b/src/merge/resources/crm/resources/opportunities/types/__init__.py deleted file mode 100644 index d5d1d8dc..00000000 --- a/src/merge/resources/crm/resources/opportunities/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .opportunities_list_request_expand import OpportunitiesListRequestExpand - from .opportunities_list_request_status import OpportunitiesListRequestStatus - from .opportunities_retrieve_request_expand import OpportunitiesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "OpportunitiesListRequestExpand": ".opportunities_list_request_expand", - "OpportunitiesListRequestStatus": ".opportunities_list_request_status", - "OpportunitiesRetrieveRequestExpand": ".opportunities_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["OpportunitiesListRequestExpand", "OpportunitiesListRequestStatus", "OpportunitiesRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/opportunities/types/opportunities_list_request_expand.py b/src/merge/resources/crm/resources/opportunities/types/opportunities_list_request_expand.py deleted file mode 100644 index 04f0a2ee..00000000 --- a/src/merge/resources/crm/resources/opportunities/types/opportunities_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OpportunitiesListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_STAGE = "owner,stage" - OWNER_STAGE_ACCOUNT = "owner,stage,account" - STAGE = "stage" - STAGE_ACCOUNT = "stage,account" - - def visit( - self, - account: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_stage: typing.Callable[[], T_Result], - owner_stage_account: typing.Callable[[], T_Result], - stage: typing.Callable[[], T_Result], - stage_account: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OpportunitiesListRequestExpand.ACCOUNT: - return account() - if self is OpportunitiesListRequestExpand.OWNER: - return owner() - if self is OpportunitiesListRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is OpportunitiesListRequestExpand.OWNER_STAGE: - return owner_stage() - if self is OpportunitiesListRequestExpand.OWNER_STAGE_ACCOUNT: - return owner_stage_account() - if self is OpportunitiesListRequestExpand.STAGE: - return stage() - if self is OpportunitiesListRequestExpand.STAGE_ACCOUNT: - return stage_account() diff --git a/src/merge/resources/crm/resources/opportunities/types/opportunities_list_request_status.py b/src/merge/resources/crm/resources/opportunities/types/opportunities_list_request_status.py deleted file mode 100644 index e194cf42..00000000 --- a/src/merge/resources/crm/resources/opportunities/types/opportunities_list_request_status.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OpportunitiesListRequestStatus(str, enum.Enum): - LOST = "LOST" - OPEN = "OPEN" - WON = "WON" - - def visit( - self, - lost: typing.Callable[[], T_Result], - open: typing.Callable[[], T_Result], - won: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OpportunitiesListRequestStatus.LOST: - return lost() - if self is OpportunitiesListRequestStatus.OPEN: - return open() - if self is OpportunitiesListRequestStatus.WON: - return won() diff --git a/src/merge/resources/crm/resources/opportunities/types/opportunities_retrieve_request_expand.py b/src/merge/resources/crm/resources/opportunities/types/opportunities_retrieve_request_expand.py deleted file mode 100644 index 8bf0a512..00000000 --- a/src/merge/resources/crm/resources/opportunities/types/opportunities_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OpportunitiesRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_STAGE = "owner,stage" - OWNER_STAGE_ACCOUNT = "owner,stage,account" - STAGE = "stage" - STAGE_ACCOUNT = "stage,account" - - def visit( - self, - account: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_stage: typing.Callable[[], T_Result], - owner_stage_account: typing.Callable[[], T_Result], - stage: typing.Callable[[], T_Result], - stage_account: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OpportunitiesRetrieveRequestExpand.ACCOUNT: - return account() - if self is OpportunitiesRetrieveRequestExpand.OWNER: - return owner() - if self is OpportunitiesRetrieveRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is OpportunitiesRetrieveRequestExpand.OWNER_STAGE: - return owner_stage() - if self is OpportunitiesRetrieveRequestExpand.OWNER_STAGE_ACCOUNT: - return owner_stage_account() - if self is OpportunitiesRetrieveRequestExpand.STAGE: - return stage() - if self is OpportunitiesRetrieveRequestExpand.STAGE_ACCOUNT: - return stage_account() diff --git a/src/merge/resources/crm/resources/passthrough/__init__.py b/src/merge/resources/crm/resources/passthrough/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/passthrough/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/passthrough/client.py b/src/merge/resources/crm/resources/passthrough/client.py deleted file mode 100644 index 8a01fd1c..00000000 --- a/src/merge/resources/crm/resources/passthrough/client.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse -from .raw_client import AsyncRawPassthroughClient, RawPassthroughClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/passthrough/raw_client.py b/src/merge/resources/crm/resources/passthrough/raw_client.py deleted file mode 100644 index 82732697..00000000 --- a/src/merge/resources/crm/resources/passthrough/raw_client.py +++ /dev/null @@ -1,111 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/regenerate_key/__init__.py b/src/merge/resources/crm/resources/regenerate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/regenerate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/regenerate_key/client.py b/src/merge/resources/crm/resources/regenerate_key/client.py deleted file mode 100644 index 6fa164df..00000000 --- a/src/merge/resources/crm/resources/regenerate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawRegenerateKeyClient, RawRegenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRegenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.regenerate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRegenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.regenerate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/regenerate_key/raw_client.py b/src/merge/resources/crm/resources/regenerate_key/raw_client.py deleted file mode 100644 index 2c036af9..00000000 --- a/src/merge/resources/crm/resources/regenerate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/scopes/__init__.py b/src/merge/resources/crm/resources/scopes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/scopes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/scopes/client.py b/src/merge/resources/crm/resources/scopes/client.py deleted file mode 100644 index 7dc5ab19..00000000 --- a/src/merge/resources/crm/resources/scopes/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from .raw_client import AsyncRawScopesClient, RawScopesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScopesClient - """ - return self._raw_client - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.scopes.default_scopes_retrieve() - """ - _response = self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.scopes.linked_account_scopes_retrieve() - """ - _response = self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - from merge.resources.crm import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - """ - _response = self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data - - -class AsyncScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScopesClient - """ - return self._raw_client - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.scopes.default_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.scopes.linked_account_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/crm/resources/scopes/raw_client.py b/src/merge/resources/crm/resources/scopes/raw_client.py deleted file mode 100644 index 39fc9689..00000000 --- a/src/merge/resources/crm/resources/scopes/raw_client.py +++ /dev/null @@ -1,267 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/stages/__init__.py b/src/merge/resources/crm/resources/stages/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/stages/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/stages/client.py b/src/merge/resources/crm/resources/stages/client.py deleted file mode 100644 index 630ece33..00000000 --- a/src/merge/resources/crm/resources/stages/client.py +++ /dev/null @@ -1,564 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_stage_list import PaginatedStageList -from ...types.stage import Stage -from .raw_client import AsyncRawStagesClient, RawStagesClient - - -class StagesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawStagesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawStagesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawStagesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedStageList: - """ - Returns a list of `Stage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedStageList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.stages.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Stage: - """ - Returns a `Stage` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Stage - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.stages.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.stages.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncStagesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawStagesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawStagesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawStagesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedStageList: - """ - Returns a list of `Stage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedStageList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.stages.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Stage: - """ - Returns a `Stage` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Stage - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.stages.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.stages.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/stages/raw_client.py b/src/merge/resources/crm/resources/stages/raw_client.py deleted file mode 100644 index 9fddcfa5..00000000 --- a/src/merge/resources/crm/resources/stages/raw_client.py +++ /dev/null @@ -1,492 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_stage_list import PaginatedStageList -from ...types.stage import Stage - - -class RawStagesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedStageList]: - """ - Returns a list of `Stage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedStageList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/stages", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedStageList, - construct_type( - type_=PaginatedStageList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Stage]: - """ - Returns a `Stage` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Stage] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/stages/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Stage, - construct_type( - type_=Stage, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/stages/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawStagesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedStageList]: - """ - Returns a list of `Stage` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedStageList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/stages", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedStageList, - construct_type( - type_=PaginatedStageList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Stage]: - """ - Returns a `Stage` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Stage] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/stages/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Stage, - construct_type( - type_=Stage, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/stages/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/sync_status/__init__.py b/src/merge/resources/crm/resources/sync_status/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/sync_status/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/sync_status/client.py b/src/merge/resources/crm/resources/sync_status/client.py deleted file mode 100644 index 0cce890a..00000000 --- a/src/merge/resources/crm/resources/sync_status/client.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList -from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient - - -class SyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSyncStatusClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data - - -class AsyncSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSyncStatusClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data diff --git a/src/merge/resources/crm/resources/sync_status/raw_client.py b/src/merge/resources/crm/resources/sync_status/raw_client.py deleted file mode 100644 index 00d932d2..00000000 --- a/src/merge/resources/crm/resources/sync_status/raw_client.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_sync_status_list import PaginatedSyncStatusList - - -class RawSyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedSyncStatusList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedSyncStatusList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/tasks/__init__.py b/src/merge/resources/crm/resources/tasks/__init__.py deleted file mode 100644 index 0c88f4b2..00000000 --- a/src/merge/resources/crm/resources/tasks/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import TasksListRequestExpand, TasksRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"TasksListRequestExpand": ".types", "TasksRetrieveRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TasksListRequestExpand", "TasksRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/tasks/client.py b/src/merge/resources/crm/resources/tasks/client.py deleted file mode 100644 index ccc25868..00000000 --- a/src/merge/resources/crm/resources/tasks/client.py +++ /dev/null @@ -1,955 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_task_list import PaginatedTaskList -from ...types.patched_task_request import PatchedTaskRequest -from ...types.task import Task -from ...types.task_request import TaskRequest -from ...types.task_response import TaskResponse -from .raw_client import AsyncRawTasksClient, RawTasksClient -from .types.tasks_list_request_expand import TasksListRequestExpand -from .types.tasks_retrieve_request_expand import TasksRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TasksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTasksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTasksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTasksClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TasksListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTaskList: - """ - Returns a list of `Task` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TasksListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTaskList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.crm.resources.tasks import TasksListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.tasks.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TasksListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: TaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TaskResponse: - """ - Creates a `Task` object with the given values. - - Parameters - ---------- - model : TaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TaskResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import TaskRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.tasks.create( - is_debug_mode=True, - run_async=True, - model=TaskRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TasksRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Task: - """ - Returns a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TasksRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Task - - - Examples - -------- - from merge import Merge - from merge.resources.crm.resources.tasks import TasksRetrieveRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.tasks.retrieve( - id="id", - expand=TasksRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedTaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TaskResponse: - """ - Updates a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TaskResponse - - - Examples - -------- - from merge import Merge - from merge.resources.crm import PatchedTaskRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.tasks.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedTaskRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Task` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.tasks.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Task` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.tasks.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.tasks.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncTasksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTasksClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTasksClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTasksClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TasksListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTaskList: - """ - Returns a list of `Task` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TasksListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTaskList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.crm.resources.tasks import TasksListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.tasks.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TasksListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: TaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TaskResponse: - """ - Creates a `Task` object with the given values. - - Parameters - ---------- - model : TaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TaskResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import TaskRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.tasks.create( - is_debug_mode=True, - run_async=True, - model=TaskRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TasksRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Task: - """ - Returns a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TasksRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Task - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm.resources.tasks import TasksRetrieveRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.tasks.retrieve( - id="id", - expand=TasksRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedTaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TaskResponse: - """ - Updates a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TaskResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import PatchedTaskRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.tasks.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedTaskRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Task` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.tasks.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Task` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.tasks.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.tasks.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/tasks/raw_client.py b/src/merge/resources/crm/resources/tasks/raw_client.py deleted file mode 100644 index 50499e60..00000000 --- a/src/merge/resources/crm/resources/tasks/raw_client.py +++ /dev/null @@ -1,915 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_task_list import PaginatedTaskList -from ...types.patched_task_request import PatchedTaskRequest -from ...types.task import Task -from ...types.task_request import TaskRequest -from ...types.task_response import TaskResponse -from .types.tasks_list_request_expand import TasksListRequestExpand -from .types.tasks_retrieve_request_expand import TasksRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTasksClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TasksListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTaskList]: - """ - Returns a list of `Task` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TasksListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTaskList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/tasks", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTaskList, - construct_type( - type_=PaginatedTaskList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: TaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TaskResponse]: - """ - Creates a `Task` object with the given values. - - Parameters - ---------- - model : TaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TaskResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/tasks", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TaskResponse, - construct_type( - type_=TaskResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TasksRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Task]: - """ - Returns a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TasksRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Task] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/tasks/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Task, - construct_type( - type_=Task, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedTaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TaskResponse]: - """ - Updates a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TaskResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/tasks/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TaskResponse, - construct_type( - type_=TaskResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Task` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/tasks/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Task` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/tasks/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/tasks/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTasksClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TasksListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTaskList]: - """ - Returns a list of `Task` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TasksListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTaskList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/tasks", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTaskList, - construct_type( - type_=PaginatedTaskList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: TaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TaskResponse]: - """ - Creates a `Task` object with the given values. - - Parameters - ---------- - model : TaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TaskResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/tasks", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TaskResponse, - construct_type( - type_=TaskResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TasksRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Task]: - """ - Returns a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TasksRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Task] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/tasks/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Task, - construct_type( - type_=Task, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedTaskRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TaskResponse]: - """ - Updates a `Task` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTaskRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TaskResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/tasks/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TaskResponse, - construct_type( - type_=TaskResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Task` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/tasks/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Task` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/tasks/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/tasks/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/tasks/types/__init__.py b/src/merge/resources/crm/resources/tasks/types/__init__.py deleted file mode 100644 index 38341b32..00000000 --- a/src/merge/resources/crm/resources/tasks/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .tasks_list_request_expand import TasksListRequestExpand - from .tasks_retrieve_request_expand import TasksRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "TasksListRequestExpand": ".tasks_list_request_expand", - "TasksRetrieveRequestExpand": ".tasks_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TasksListRequestExpand", "TasksRetrieveRequestExpand"] diff --git a/src/merge/resources/crm/resources/tasks/types/tasks_list_request_expand.py b/src/merge/resources/crm/resources/tasks/types/tasks_list_request_expand.py deleted file mode 100644 index 605edb65..00000000 --- a/src/merge/resources/crm/resources/tasks/types/tasks_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TasksListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_OPPORTUNITY = "account,opportunity" - OPPORTUNITY = "opportunity" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_ACCOUNT_OPPORTUNITY = "owner,account,opportunity" - OWNER_OPPORTUNITY = "owner,opportunity" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_opportunity: typing.Callable[[], T_Result], - opportunity: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_account_opportunity: typing.Callable[[], T_Result], - owner_opportunity: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TasksListRequestExpand.ACCOUNT: - return account() - if self is TasksListRequestExpand.ACCOUNT_OPPORTUNITY: - return account_opportunity() - if self is TasksListRequestExpand.OPPORTUNITY: - return opportunity() - if self is TasksListRequestExpand.OWNER: - return owner() - if self is TasksListRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is TasksListRequestExpand.OWNER_ACCOUNT_OPPORTUNITY: - return owner_account_opportunity() - if self is TasksListRequestExpand.OWNER_OPPORTUNITY: - return owner_opportunity() diff --git a/src/merge/resources/crm/resources/tasks/types/tasks_retrieve_request_expand.py b/src/merge/resources/crm/resources/tasks/types/tasks_retrieve_request_expand.py deleted file mode 100644 index 3fe53160..00000000 --- a/src/merge/resources/crm/resources/tasks/types/tasks_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TasksRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_OPPORTUNITY = "account,opportunity" - OPPORTUNITY = "opportunity" - OWNER = "owner" - OWNER_ACCOUNT = "owner,account" - OWNER_ACCOUNT_OPPORTUNITY = "owner,account,opportunity" - OWNER_OPPORTUNITY = "owner,opportunity" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_opportunity: typing.Callable[[], T_Result], - opportunity: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - owner_account: typing.Callable[[], T_Result], - owner_account_opportunity: typing.Callable[[], T_Result], - owner_opportunity: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TasksRetrieveRequestExpand.ACCOUNT: - return account() - if self is TasksRetrieveRequestExpand.ACCOUNT_OPPORTUNITY: - return account_opportunity() - if self is TasksRetrieveRequestExpand.OPPORTUNITY: - return opportunity() - if self is TasksRetrieveRequestExpand.OWNER: - return owner() - if self is TasksRetrieveRequestExpand.OWNER_ACCOUNT: - return owner_account() - if self is TasksRetrieveRequestExpand.OWNER_ACCOUNT_OPPORTUNITY: - return owner_account_opportunity() - if self is TasksRetrieveRequestExpand.OWNER_OPPORTUNITY: - return owner_opportunity() diff --git a/src/merge/resources/crm/resources/users/__init__.py b/src/merge/resources/crm/resources/users/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/users/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/users/client.py b/src/merge/resources/crm/resources/users/client.py deleted file mode 100644 index e0986039..00000000 --- a/src/merge/resources/crm/resources/users/client.py +++ /dev/null @@ -1,672 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.ignore_common_model_request import IgnoreCommonModelRequest -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User -from .raw_client import AsyncRawUsersClient, RawUsersClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return users with this email. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email="email", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email=email, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.users.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - from merge.resources.crm import IgnoreCommonModelRequest, ReasonEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.users.ignore_create( - model_id="model_id", - request=IgnoreCommonModelRequest( - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ), - ) - """ - _response = self._raw_client.ignore_create(model_id, request=request, request_options=request_options) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.users.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return users with this email. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email="email", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email=email, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.users.retrieve( - id="id", - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.crm import IgnoreCommonModelRequest, ReasonEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.users.ignore_create( - model_id="model_id", - request=IgnoreCommonModelRequest( - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.ignore_create(model_id, request=request, request_options=request_options) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.users.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/crm/resources/users/raw_client.py b/src/merge/resources/crm/resources/users/raw_client.py deleted file mode 100644 index 4e33bb25..00000000 --- a/src/merge/resources/crm/resources/users/raw_client.py +++ /dev/null @@ -1,588 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.ignore_common_model_request import IgnoreCommonModelRequest -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return users with this email. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedUserList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email": email, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[User] - - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"crm/v1/users/ignore/{jsonable_encoder(model_id)}", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/users/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email : typing.Optional[str] - If provided, will only return users with this email. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedUserList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email": email, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[User] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def ignore_create( - self, - model_id: str, - *, - request: IgnoreCommonModelRequest, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - request : IgnoreCommonModelRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"crm/v1/users/ignore/{jsonable_encoder(model_id)}", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/users/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/resources/webhook_receivers/__init__.py b/src/merge/resources/crm/resources/webhook_receivers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/crm/resources/webhook_receivers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/crm/resources/webhook_receivers/client.py b/src/merge/resources/crm/resources/webhook_receivers/client.py deleted file mode 100644 index a759f6f6..00000000 --- a/src/merge/resources/crm/resources/webhook_receivers/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.webhook_receiver import WebhookReceiver -from .raw_client import AsyncRawWebhookReceiversClient, RawWebhookReceiversClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class WebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawWebhookReceiversClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.webhook_receivers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.crm.webhook_receivers.create( - event="event", - is_active=True, - ) - """ - _response = self._raw_client.create(event=event, is_active=is_active, key=key, request_options=request_options) - return _response.data - - -class AsyncWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawWebhookReceiversClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.webhook_receivers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.crm.webhook_receivers.create( - event="event", - is_active=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - event=event, is_active=is_active, key=key, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/crm/resources/webhook_receivers/raw_client.py b/src/merge/resources/crm/resources/webhook_receivers/raw_client.py deleted file mode 100644 index fed0c538..00000000 --- a/src/merge/resources/crm/resources/webhook_receivers/raw_client.py +++ /dev/null @@ -1,208 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.webhook_receiver import WebhookReceiver - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawWebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[WebhookReceiver]] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[WebhookReceiver] - - """ - _response = self._client_wrapper.httpx_client.request( - "crm/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[WebhookReceiver]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[WebhookReceiver] - - """ - _response = await self._client_wrapper.httpx_client.request( - "crm/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/crm/types/__init__.py b/src/merge/resources/crm/types/__init__.py deleted file mode 100644 index 0c058ced..00000000 --- a/src/merge/resources/crm/types/__init__.py +++ /dev/null @@ -1,697 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .account import Account - from .account_details import AccountDetails - from .account_details_and_actions import AccountDetailsAndActions - from .account_details_and_actions_category import AccountDetailsAndActionsCategory - from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration - from .account_details_and_actions_status import AccountDetailsAndActionsStatus - from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - from .account_details_category import AccountDetailsCategory - from .account_integration import AccountIntegration - from .account_owner import AccountOwner - from .account_request import AccountRequest - from .account_request_owner import AccountRequestOwner - from .account_token import AccountToken - from .activity_type_enum import ActivityTypeEnum - from .address import Address - from .address_address_type import AddressAddressType - from .address_country import AddressCountry - from .address_request import AddressRequest - from .address_request_address_type import AddressRequestAddressType - from .address_request_country import AddressRequestCountry - from .address_type_enum import AddressTypeEnum - from .advanced_metadata import AdvancedMetadata - from .association import Association - from .association_association_type import AssociationAssociationType - from .association_sub_type import AssociationSubType - from .association_type import AssociationType - from .association_type_cardinality import AssociationTypeCardinality - from .association_type_request_request import AssociationTypeRequestRequest - from .async_passthrough_reciept import AsyncPassthroughReciept - from .audit_log_event import AuditLogEvent - from .audit_log_event_event_type import AuditLogEventEventType - from .audit_log_event_role import AuditLogEventRole - from .available_actions import AvailableActions - from .cardinality_enum import CardinalityEnum - from .categories_enum import CategoriesEnum - from .category_enum import CategoryEnum - from .common_model_scope_api import CommonModelScopeApi - from .common_model_scopes_body_request import CommonModelScopesBodyRequest - from .contact import Contact - from .contact_account import ContactAccount - from .contact_owner import ContactOwner - from .contact_request import ContactRequest - from .contact_request_account import ContactRequestAccount - from .contact_request_owner import ContactRequestOwner - from .country_enum import CountryEnum - from .crm_account_response import CrmAccountResponse - from .crm_association_type_response import CrmAssociationTypeResponse - from .crm_contact_response import CrmContactResponse - from .crm_custom_object_response import CrmCustomObjectResponse - from .custom_object import CustomObject - from .custom_object_class import CustomObjectClass - from .custom_object_request import CustomObjectRequest - from .data_passthrough_request import DataPassthroughRequest - from .debug_mode_log import DebugModeLog - from .debug_model_log_summary import DebugModelLogSummary - from .direction_enum import DirectionEnum - from .email_address import EmailAddress - from .email_address_request import EmailAddressRequest - from .enabled_actions_enum import EnabledActionsEnum - from .encoding_enum import EncodingEnum - from .engagement import Engagement - from .engagement_account import EngagementAccount - from .engagement_contacts_item import EngagementContactsItem - from .engagement_direction import EngagementDirection - from .engagement_engagement_type import EngagementEngagementType - from .engagement_owner import EngagementOwner - from .engagement_request import EngagementRequest - from .engagement_request_account import EngagementRequestAccount - from .engagement_request_contacts_item import EngagementRequestContactsItem - from .engagement_request_direction import EngagementRequestDirection - from .engagement_request_engagement_type import EngagementRequestEngagementType - from .engagement_request_owner import EngagementRequestOwner - from .engagement_response import EngagementResponse - from .engagement_type import EngagementType - from .engagement_type_activity_type import EngagementTypeActivityType - from .error_validation_problem import ErrorValidationProblem - from .event_type_enum import EventTypeEnum - from .external_target_field_api import ExternalTargetFieldApi - from .external_target_field_api_response import ExternalTargetFieldApiResponse - from .field_format_enum import FieldFormatEnum - from .field_mapping_api_instance import FieldMappingApiInstance - from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField - from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ) - from .field_mapping_api_instance_response import FieldMappingApiInstanceResponse - from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - from .field_mapping_instance_response import FieldMappingInstanceResponse - from .field_permission_deserializer import FieldPermissionDeserializer - from .field_permission_deserializer_request import FieldPermissionDeserializerRequest - from .field_type_enum import FieldTypeEnum - from .ignore_common_model_request import IgnoreCommonModelRequest - from .ignore_common_model_request_reason import IgnoreCommonModelRequestReason - from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - from .individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - from .issue import Issue - from .issue_status import IssueStatus - from .issue_status_enum import IssueStatusEnum - from .item_format_enum import ItemFormatEnum - from .item_schema import ItemSchema - from .item_type_enum import ItemTypeEnum - from .language_enum import LanguageEnum - from .last_sync_result_enum import LastSyncResultEnum - from .lead import Lead - from .lead_converted_account import LeadConvertedAccount - from .lead_converted_contact import LeadConvertedContact - from .lead_owner import LeadOwner - from .lead_request import LeadRequest - from .lead_request_converted_account import LeadRequestConvertedAccount - from .lead_request_converted_contact import LeadRequestConvertedContact - from .lead_request_owner import LeadRequestOwner - from .lead_response import LeadResponse - from .link_token import LinkToken - from .linked_account_status import LinkedAccountStatus - from .meta_response import MetaResponse - from .method_enum import MethodEnum - from .model_operation import ModelOperation - from .model_permission_deserializer import ModelPermissionDeserializer - from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - from .multipart_form_field_request import MultipartFormFieldRequest - from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - from .note import Note - from .note_account import NoteAccount - from .note_contact import NoteContact - from .note_opportunity import NoteOpportunity - from .note_owner import NoteOwner - from .note_request import NoteRequest - from .note_request_account import NoteRequestAccount - from .note_request_contact import NoteRequestContact - from .note_request_opportunity import NoteRequestOpportunity - from .note_request_owner import NoteRequestOwner - from .note_response import NoteResponse - from .object_class_description_request import ObjectClassDescriptionRequest - from .opportunity import Opportunity - from .opportunity_account import OpportunityAccount - from .opportunity_owner import OpportunityOwner - from .opportunity_request import OpportunityRequest - from .opportunity_request_account import OpportunityRequestAccount - from .opportunity_request_owner import OpportunityRequestOwner - from .opportunity_request_stage import OpportunityRequestStage - from .opportunity_request_status import OpportunityRequestStatus - from .opportunity_response import OpportunityResponse - from .opportunity_stage import OpportunityStage - from .opportunity_status import OpportunityStatus - from .opportunity_status_enum import OpportunityStatusEnum - from .origin_type_enum import OriginTypeEnum - from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList - from .paginated_account_list import PaginatedAccountList - from .paginated_association_list import PaginatedAssociationList - from .paginated_association_type_list import PaginatedAssociationTypeList - from .paginated_audit_log_event_list import PaginatedAuditLogEventList - from .paginated_contact_list import PaginatedContactList - from .paginated_custom_object_class_list import PaginatedCustomObjectClassList - from .paginated_custom_object_list import PaginatedCustomObjectList - from .paginated_engagement_list import PaginatedEngagementList - from .paginated_engagement_type_list import PaginatedEngagementTypeList - from .paginated_issue_list import PaginatedIssueList - from .paginated_lead_list import PaginatedLeadList - from .paginated_note_list import PaginatedNoteList - from .paginated_opportunity_list import PaginatedOpportunityList - from .paginated_remote_field_class_list import PaginatedRemoteFieldClassList - from .paginated_stage_list import PaginatedStageList - from .paginated_sync_status_list import PaginatedSyncStatusList - from .paginated_task_list import PaginatedTaskList - from .paginated_user_list import PaginatedUserList - from .patched_account_request import PatchedAccountRequest - from .patched_contact_request import PatchedContactRequest - from .patched_contact_request_owner import PatchedContactRequestOwner - from .patched_engagement_request import PatchedEngagementRequest - from .patched_engagement_request_direction import PatchedEngagementRequestDirection - from .patched_opportunity_request import PatchedOpportunityRequest - from .patched_opportunity_request_status import PatchedOpportunityRequestStatus - from .patched_task_request import PatchedTaskRequest - from .patched_task_request_status import PatchedTaskRequestStatus - from .phone_number import PhoneNumber - from .phone_number_request import PhoneNumberRequest - from .reason_enum import ReasonEnum - from .remote_data import RemoteData - from .remote_endpoint_info import RemoteEndpointInfo - from .remote_field import RemoteField - from .remote_field_api import RemoteFieldApi - from .remote_field_api_coverage import RemoteFieldApiCoverage - from .remote_field_api_response import RemoteFieldApiResponse - from .remote_field_class import RemoteFieldClass - from .remote_field_class_field_choices_item import RemoteFieldClassFieldChoicesItem - from .remote_field_class_field_format import RemoteFieldClassFieldFormat - from .remote_field_class_field_type import RemoteFieldClassFieldType - from .remote_field_class_for_custom_object_class import RemoteFieldClassForCustomObjectClass - from .remote_field_class_for_custom_object_class_field_choices_item import ( - RemoteFieldClassForCustomObjectClassFieldChoicesItem, - ) - from .remote_field_class_for_custom_object_class_field_format import RemoteFieldClassForCustomObjectClassFieldFormat - from .remote_field_class_for_custom_object_class_field_type import RemoteFieldClassForCustomObjectClassFieldType - from .remote_field_class_for_custom_object_class_item_schema import RemoteFieldClassForCustomObjectClassItemSchema - from .remote_field_remote_field_class import RemoteFieldRemoteFieldClass - from .remote_field_request import RemoteFieldRequest - from .remote_field_request_remote_field_class import RemoteFieldRequestRemoteFieldClass - from .remote_key import RemoteKey - from .remote_response import RemoteResponse - from .request_format_enum import RequestFormatEnum - from .response_type_enum import ResponseTypeEnum - from .role_enum import RoleEnum - from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum - from .stage import Stage - from .status_fd_5_enum import StatusFd5Enum - from .sync_status import SyncStatus - from .sync_status_last_sync_result import SyncStatusLastSyncResult - from .sync_status_status import SyncStatusStatus - from .task import Task - from .task_account import TaskAccount - from .task_opportunity import TaskOpportunity - from .task_owner import TaskOwner - from .task_request import TaskRequest - from .task_request_account import TaskRequestAccount - from .task_request_opportunity import TaskRequestOpportunity - from .task_request_owner import TaskRequestOwner - from .task_request_status import TaskRequestStatus - from .task_response import TaskResponse - from .task_status import TaskStatus - from .task_status_enum import TaskStatusEnum - from .user import User - from .validation_problem_source import ValidationProblemSource - from .warning_validation_problem import WarningValidationProblem - from .webhook_receiver import WebhookReceiver -_dynamic_imports: typing.Dict[str, str] = { - "Account": ".account", - "AccountDetails": ".account_details", - "AccountDetailsAndActions": ".account_details_and_actions", - "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", - "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", - "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", - "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", - "AccountDetailsCategory": ".account_details_category", - "AccountIntegration": ".account_integration", - "AccountOwner": ".account_owner", - "AccountRequest": ".account_request", - "AccountRequestOwner": ".account_request_owner", - "AccountToken": ".account_token", - "ActivityTypeEnum": ".activity_type_enum", - "Address": ".address", - "AddressAddressType": ".address_address_type", - "AddressCountry": ".address_country", - "AddressRequest": ".address_request", - "AddressRequestAddressType": ".address_request_address_type", - "AddressRequestCountry": ".address_request_country", - "AddressTypeEnum": ".address_type_enum", - "AdvancedMetadata": ".advanced_metadata", - "Association": ".association", - "AssociationAssociationType": ".association_association_type", - "AssociationSubType": ".association_sub_type", - "AssociationType": ".association_type", - "AssociationTypeCardinality": ".association_type_cardinality", - "AssociationTypeRequestRequest": ".association_type_request_request", - "AsyncPassthroughReciept": ".async_passthrough_reciept", - "AuditLogEvent": ".audit_log_event", - "AuditLogEventEventType": ".audit_log_event_event_type", - "AuditLogEventRole": ".audit_log_event_role", - "AvailableActions": ".available_actions", - "CardinalityEnum": ".cardinality_enum", - "CategoriesEnum": ".categories_enum", - "CategoryEnum": ".category_enum", - "CommonModelScopeApi": ".common_model_scope_api", - "CommonModelScopesBodyRequest": ".common_model_scopes_body_request", - "Contact": ".contact", - "ContactAccount": ".contact_account", - "ContactOwner": ".contact_owner", - "ContactRequest": ".contact_request", - "ContactRequestAccount": ".contact_request_account", - "ContactRequestOwner": ".contact_request_owner", - "CountryEnum": ".country_enum", - "CrmAccountResponse": ".crm_account_response", - "CrmAssociationTypeResponse": ".crm_association_type_response", - "CrmContactResponse": ".crm_contact_response", - "CrmCustomObjectResponse": ".crm_custom_object_response", - "CustomObject": ".custom_object", - "CustomObjectClass": ".custom_object_class", - "CustomObjectRequest": ".custom_object_request", - "DataPassthroughRequest": ".data_passthrough_request", - "DebugModeLog": ".debug_mode_log", - "DebugModelLogSummary": ".debug_model_log_summary", - "DirectionEnum": ".direction_enum", - "EmailAddress": ".email_address", - "EmailAddressRequest": ".email_address_request", - "EnabledActionsEnum": ".enabled_actions_enum", - "EncodingEnum": ".encoding_enum", - "Engagement": ".engagement", - "EngagementAccount": ".engagement_account", - "EngagementContactsItem": ".engagement_contacts_item", - "EngagementDirection": ".engagement_direction", - "EngagementEngagementType": ".engagement_engagement_type", - "EngagementOwner": ".engagement_owner", - "EngagementRequest": ".engagement_request", - "EngagementRequestAccount": ".engagement_request_account", - "EngagementRequestContactsItem": ".engagement_request_contacts_item", - "EngagementRequestDirection": ".engagement_request_direction", - "EngagementRequestEngagementType": ".engagement_request_engagement_type", - "EngagementRequestOwner": ".engagement_request_owner", - "EngagementResponse": ".engagement_response", - "EngagementType": ".engagement_type", - "EngagementTypeActivityType": ".engagement_type_activity_type", - "ErrorValidationProblem": ".error_validation_problem", - "EventTypeEnum": ".event_type_enum", - "ExternalTargetFieldApi": ".external_target_field_api", - "ExternalTargetFieldApiResponse": ".external_target_field_api_response", - "FieldFormatEnum": ".field_format_enum", - "FieldMappingApiInstance": ".field_mapping_api_instance", - "FieldMappingApiInstanceRemoteField": ".field_mapping_api_instance_remote_field", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".field_mapping_api_instance_remote_field_remote_endpoint_info", - "FieldMappingApiInstanceResponse": ".field_mapping_api_instance_response", - "FieldMappingApiInstanceTargetField": ".field_mapping_api_instance_target_field", - "FieldMappingInstanceResponse": ".field_mapping_instance_response", - "FieldPermissionDeserializer": ".field_permission_deserializer", - "FieldPermissionDeserializerRequest": ".field_permission_deserializer_request", - "FieldTypeEnum": ".field_type_enum", - "IgnoreCommonModelRequest": ".ignore_common_model_request", - "IgnoreCommonModelRequestReason": ".ignore_common_model_request_reason", - "IndividualCommonModelScopeDeserializer": ".individual_common_model_scope_deserializer", - "IndividualCommonModelScopeDeserializerRequest": ".individual_common_model_scope_deserializer_request", - "Issue": ".issue", - "IssueStatus": ".issue_status", - "IssueStatusEnum": ".issue_status_enum", - "ItemFormatEnum": ".item_format_enum", - "ItemSchema": ".item_schema", - "ItemTypeEnum": ".item_type_enum", - "LanguageEnum": ".language_enum", - "LastSyncResultEnum": ".last_sync_result_enum", - "Lead": ".lead", - "LeadConvertedAccount": ".lead_converted_account", - "LeadConvertedContact": ".lead_converted_contact", - "LeadOwner": ".lead_owner", - "LeadRequest": ".lead_request", - "LeadRequestConvertedAccount": ".lead_request_converted_account", - "LeadRequestConvertedContact": ".lead_request_converted_contact", - "LeadRequestOwner": ".lead_request_owner", - "LeadResponse": ".lead_response", - "LinkToken": ".link_token", - "LinkedAccountStatus": ".linked_account_status", - "MetaResponse": ".meta_response", - "MethodEnum": ".method_enum", - "ModelOperation": ".model_operation", - "ModelPermissionDeserializer": ".model_permission_deserializer", - "ModelPermissionDeserializerRequest": ".model_permission_deserializer_request", - "MultipartFormFieldRequest": ".multipart_form_field_request", - "MultipartFormFieldRequestEncoding": ".multipart_form_field_request_encoding", - "Note": ".note", - "NoteAccount": ".note_account", - "NoteContact": ".note_contact", - "NoteOpportunity": ".note_opportunity", - "NoteOwner": ".note_owner", - "NoteRequest": ".note_request", - "NoteRequestAccount": ".note_request_account", - "NoteRequestContact": ".note_request_contact", - "NoteRequestOpportunity": ".note_request_opportunity", - "NoteRequestOwner": ".note_request_owner", - "NoteResponse": ".note_response", - "ObjectClassDescriptionRequest": ".object_class_description_request", - "Opportunity": ".opportunity", - "OpportunityAccount": ".opportunity_account", - "OpportunityOwner": ".opportunity_owner", - "OpportunityRequest": ".opportunity_request", - "OpportunityRequestAccount": ".opportunity_request_account", - "OpportunityRequestOwner": ".opportunity_request_owner", - "OpportunityRequestStage": ".opportunity_request_stage", - "OpportunityRequestStatus": ".opportunity_request_status", - "OpportunityResponse": ".opportunity_response", - "OpportunityStage": ".opportunity_stage", - "OpportunityStatus": ".opportunity_status", - "OpportunityStatusEnum": ".opportunity_status_enum", - "OriginTypeEnum": ".origin_type_enum", - "PaginatedAccountDetailsAndActionsList": ".paginated_account_details_and_actions_list", - "PaginatedAccountList": ".paginated_account_list", - "PaginatedAssociationList": ".paginated_association_list", - "PaginatedAssociationTypeList": ".paginated_association_type_list", - "PaginatedAuditLogEventList": ".paginated_audit_log_event_list", - "PaginatedContactList": ".paginated_contact_list", - "PaginatedCustomObjectClassList": ".paginated_custom_object_class_list", - "PaginatedCustomObjectList": ".paginated_custom_object_list", - "PaginatedEngagementList": ".paginated_engagement_list", - "PaginatedEngagementTypeList": ".paginated_engagement_type_list", - "PaginatedIssueList": ".paginated_issue_list", - "PaginatedLeadList": ".paginated_lead_list", - "PaginatedNoteList": ".paginated_note_list", - "PaginatedOpportunityList": ".paginated_opportunity_list", - "PaginatedRemoteFieldClassList": ".paginated_remote_field_class_list", - "PaginatedStageList": ".paginated_stage_list", - "PaginatedSyncStatusList": ".paginated_sync_status_list", - "PaginatedTaskList": ".paginated_task_list", - "PaginatedUserList": ".paginated_user_list", - "PatchedAccountRequest": ".patched_account_request", - "PatchedContactRequest": ".patched_contact_request", - "PatchedContactRequestOwner": ".patched_contact_request_owner", - "PatchedEngagementRequest": ".patched_engagement_request", - "PatchedEngagementRequestDirection": ".patched_engagement_request_direction", - "PatchedOpportunityRequest": ".patched_opportunity_request", - "PatchedOpportunityRequestStatus": ".patched_opportunity_request_status", - "PatchedTaskRequest": ".patched_task_request", - "PatchedTaskRequestStatus": ".patched_task_request_status", - "PhoneNumber": ".phone_number", - "PhoneNumberRequest": ".phone_number_request", - "ReasonEnum": ".reason_enum", - "RemoteData": ".remote_data", - "RemoteEndpointInfo": ".remote_endpoint_info", - "RemoteField": ".remote_field", - "RemoteFieldApi": ".remote_field_api", - "RemoteFieldApiCoverage": ".remote_field_api_coverage", - "RemoteFieldApiResponse": ".remote_field_api_response", - "RemoteFieldClass": ".remote_field_class", - "RemoteFieldClassFieldChoicesItem": ".remote_field_class_field_choices_item", - "RemoteFieldClassFieldFormat": ".remote_field_class_field_format", - "RemoteFieldClassFieldType": ".remote_field_class_field_type", - "RemoteFieldClassForCustomObjectClass": ".remote_field_class_for_custom_object_class", - "RemoteFieldClassForCustomObjectClassFieldChoicesItem": ".remote_field_class_for_custom_object_class_field_choices_item", - "RemoteFieldClassForCustomObjectClassFieldFormat": ".remote_field_class_for_custom_object_class_field_format", - "RemoteFieldClassForCustomObjectClassFieldType": ".remote_field_class_for_custom_object_class_field_type", - "RemoteFieldClassForCustomObjectClassItemSchema": ".remote_field_class_for_custom_object_class_item_schema", - "RemoteFieldRemoteFieldClass": ".remote_field_remote_field_class", - "RemoteFieldRequest": ".remote_field_request", - "RemoteFieldRequestRemoteFieldClass": ".remote_field_request_remote_field_class", - "RemoteKey": ".remote_key", - "RemoteResponse": ".remote_response", - "RequestFormatEnum": ".request_format_enum", - "ResponseTypeEnum": ".response_type_enum", - "RoleEnum": ".role_enum", - "SelectiveSyncConfigurationsUsageEnum": ".selective_sync_configurations_usage_enum", - "Stage": ".stage", - "StatusFd5Enum": ".status_fd_5_enum", - "SyncStatus": ".sync_status", - "SyncStatusLastSyncResult": ".sync_status_last_sync_result", - "SyncStatusStatus": ".sync_status_status", - "Task": ".task", - "TaskAccount": ".task_account", - "TaskOpportunity": ".task_opportunity", - "TaskOwner": ".task_owner", - "TaskRequest": ".task_request", - "TaskRequestAccount": ".task_request_account", - "TaskRequestOpportunity": ".task_request_opportunity", - "TaskRequestOwner": ".task_request_owner", - "TaskRequestStatus": ".task_request_status", - "TaskResponse": ".task_response", - "TaskStatus": ".task_status", - "TaskStatusEnum": ".task_status_enum", - "User": ".user", - "ValidationProblemSource": ".validation_problem_source", - "WarningValidationProblem": ".warning_validation_problem", - "WebhookReceiver": ".webhook_receiver", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "Account", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountOwner", - "AccountRequest", - "AccountRequestOwner", - "AccountToken", - "ActivityTypeEnum", - "Address", - "AddressAddressType", - "AddressCountry", - "AddressRequest", - "AddressRequestAddressType", - "AddressRequestCountry", - "AddressTypeEnum", - "AdvancedMetadata", - "Association", - "AssociationAssociationType", - "AssociationSubType", - "AssociationType", - "AssociationTypeCardinality", - "AssociationTypeRequestRequest", - "AsyncPassthroughReciept", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CardinalityEnum", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "Contact", - "ContactAccount", - "ContactOwner", - "ContactRequest", - "ContactRequestAccount", - "ContactRequestOwner", - "CountryEnum", - "CrmAccountResponse", - "CrmAssociationTypeResponse", - "CrmContactResponse", - "CrmCustomObjectResponse", - "CustomObject", - "CustomObjectClass", - "CustomObjectRequest", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "DirectionEnum", - "EmailAddress", - "EmailAddressRequest", - "EnabledActionsEnum", - "EncodingEnum", - "Engagement", - "EngagementAccount", - "EngagementContactsItem", - "EngagementDirection", - "EngagementEngagementType", - "EngagementOwner", - "EngagementRequest", - "EngagementRequestAccount", - "EngagementRequestContactsItem", - "EngagementRequestDirection", - "EngagementRequestEngagementType", - "EngagementRequestOwner", - "EngagementResponse", - "EngagementType", - "EngagementTypeActivityType", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldFormatEnum", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FieldTypeEnum", - "IgnoreCommonModelRequest", - "IgnoreCommonModelRequestReason", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "ItemFormatEnum", - "ItemSchema", - "ItemTypeEnum", - "LanguageEnum", - "LastSyncResultEnum", - "Lead", - "LeadConvertedAccount", - "LeadConvertedContact", - "LeadOwner", - "LeadRequest", - "LeadRequestConvertedAccount", - "LeadRequestConvertedContact", - "LeadRequestOwner", - "LeadResponse", - "LinkToken", - "LinkedAccountStatus", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "Note", - "NoteAccount", - "NoteContact", - "NoteOpportunity", - "NoteOwner", - "NoteRequest", - "NoteRequestAccount", - "NoteRequestContact", - "NoteRequestOpportunity", - "NoteRequestOwner", - "NoteResponse", - "ObjectClassDescriptionRequest", - "Opportunity", - "OpportunityAccount", - "OpportunityOwner", - "OpportunityRequest", - "OpportunityRequestAccount", - "OpportunityRequestOwner", - "OpportunityRequestStage", - "OpportunityRequestStatus", - "OpportunityResponse", - "OpportunityStage", - "OpportunityStatus", - "OpportunityStatusEnum", - "OriginTypeEnum", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAccountList", - "PaginatedAssociationList", - "PaginatedAssociationTypeList", - "PaginatedAuditLogEventList", - "PaginatedContactList", - "PaginatedCustomObjectClassList", - "PaginatedCustomObjectList", - "PaginatedEngagementList", - "PaginatedEngagementTypeList", - "PaginatedIssueList", - "PaginatedLeadList", - "PaginatedNoteList", - "PaginatedOpportunityList", - "PaginatedRemoteFieldClassList", - "PaginatedStageList", - "PaginatedSyncStatusList", - "PaginatedTaskList", - "PaginatedUserList", - "PatchedAccountRequest", - "PatchedContactRequest", - "PatchedContactRequestOwner", - "PatchedEngagementRequest", - "PatchedEngagementRequestDirection", - "PatchedOpportunityRequest", - "PatchedOpportunityRequestStatus", - "PatchedTaskRequest", - "PatchedTaskRequestStatus", - "PhoneNumber", - "PhoneNumberRequest", - "ReasonEnum", - "RemoteData", - "RemoteEndpointInfo", - "RemoteField", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteFieldClass", - "RemoteFieldClassFieldChoicesItem", - "RemoteFieldClassFieldFormat", - "RemoteFieldClassFieldType", - "RemoteFieldClassForCustomObjectClass", - "RemoteFieldClassForCustomObjectClassFieldChoicesItem", - "RemoteFieldClassForCustomObjectClassFieldFormat", - "RemoteFieldClassForCustomObjectClassFieldType", - "RemoteFieldClassForCustomObjectClassItemSchema", - "RemoteFieldRemoteFieldClass", - "RemoteFieldRequest", - "RemoteFieldRequestRemoteFieldClass", - "RemoteKey", - "RemoteResponse", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "SelectiveSyncConfigurationsUsageEnum", - "Stage", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "Task", - "TaskAccount", - "TaskOpportunity", - "TaskOwner", - "TaskRequest", - "TaskRequestAccount", - "TaskRequestOpportunity", - "TaskRequestOwner", - "TaskRequestStatus", - "TaskResponse", - "TaskStatus", - "TaskStatusEnum", - "User", - "ValidationProblemSource", - "WarningValidationProblem", - "WebhookReceiver", -] diff --git a/src/merge/resources/crm/types/account.py b/src/merge/resources/crm/types/account.py deleted file mode 100644 index a76e2b6f..00000000 --- a/src/merge/resources/crm/types/account.py +++ /dev/null @@ -1,104 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_owner import AccountOwner -from .address import Address -from .phone_number import PhoneNumber -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Account(UncheckedBaseModel): - """ - # The Account Object - ### Description - The `Account` object is used to represent a company in a CRM system. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - owner: typing.Optional[AccountOwner] = pydantic.Field(default=None) - """ - The account's owner. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's description. - """ - - industry: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's industry. - """ - - website: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's website. - """ - - number_of_employees: typing.Optional[int] = pydantic.Field(default=None) - """ - The account's number of employees. - """ - - addresses: typing.Optional[typing.List[Address]] = None - phone_numbers: typing.Optional[typing.List[PhoneNumber]] = None - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The last date (either most recent or furthest in the future) of when an activity occurs in an account. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the CRM system account data was last modified by a user with a login. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's account was created. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/account_details.py b/src/merge/resources/crm/types/account_details.py deleted file mode 100644 index 98923cd8..00000000 --- a/src/merge/resources/crm/types/account_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_category import AccountDetailsCategory - - -class AccountDetails(UncheckedBaseModel): - id: typing.Optional[str] = None - integration: typing.Optional[str] = None - integration_slug: typing.Optional[str] = None - category: typing.Optional[AccountDetailsCategory] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: typing.Optional[str] = None - end_user_email_address: typing.Optional[str] = None - status: typing.Optional[str] = None - webhook_listener_url: typing.Optional[str] = None - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - account_type: typing.Optional[str] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which account completes the linking flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/account_details_and_actions.py b/src/merge/resources/crm/types/account_details_and_actions.py deleted file mode 100644 index a16114f6..00000000 --- a/src/merge/resources/crm/types/account_details_and_actions.py +++ /dev/null @@ -1,53 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions_category import AccountDetailsAndActionsCategory -from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status import AccountDetailsAndActionsStatus - - -class AccountDetailsAndActions(UncheckedBaseModel): - """ - # The LinkedAccount Object - ### Description - The `LinkedAccount` object is used to represent an end user's link with a specific integration. - - ### Usage Example - View a list of your organization's `LinkedAccount` objects. - """ - - id: str - category: typing.Optional[AccountDetailsAndActionsCategory] = None - status: AccountDetailsAndActionsStatus - status_detail: typing.Optional[str] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: str - end_user_email_address: str - subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The tenant or domain the customer has provided access to. - """ - - webhook_listener_url: str - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - integration: typing.Optional[AccountDetailsAndActionsIntegration] = None - account_type: str - completed_at: dt.datetime - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/account_details_and_actions_category.py b/src/merge/resources/crm/types/account_details_and_actions_category.py deleted file mode 100644 index 93b4188b..00000000 --- a/src/merge/resources/crm/types/account_details_and_actions_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsAndActionsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/crm/types/account_details_and_actions_integration.py b/src/merge/resources/crm/types/account_details_and_actions_integration.py deleted file mode 100644 index 73467bbb..00000000 --- a/src/merge/resources/crm/types/account_details_and_actions_integration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum -from .model_operation import ModelOperation - - -class AccountDetailsAndActionsIntegration(UncheckedBaseModel): - name: str - categories: typing.List[CategoriesEnum] - image: typing.Optional[str] = None - square_image: typing.Optional[str] = None - color: str - slug: str - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/account_details_and_actions_status.py b/src/merge/resources/crm/types/account_details_and_actions_status.py deleted file mode 100644 index 445922f8..00000000 --- a/src/merge/resources/crm/types/account_details_and_actions_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - -AccountDetailsAndActionsStatus = typing.Union[AccountDetailsAndActionsStatusEnum, str] diff --git a/src/merge/resources/crm/types/account_details_and_actions_status_enum.py b/src/merge/resources/crm/types/account_details_and_actions_status_enum.py deleted file mode 100644 index df37f582..00000000 --- a/src/merge/resources/crm/types/account_details_and_actions_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountDetailsAndActionsStatusEnum(str, enum.Enum): - """ - * `COMPLETE` - COMPLETE - * `INCOMPLETE` - INCOMPLETE - * `RELINK_NEEDED` - RELINK_NEEDED - * `IDLE` - IDLE - """ - - COMPLETE = "COMPLETE" - INCOMPLETE = "INCOMPLETE" - RELINK_NEEDED = "RELINK_NEEDED" - IDLE = "IDLE" - - def visit( - self, - complete: typing.Callable[[], T_Result], - incomplete: typing.Callable[[], T_Result], - relink_needed: typing.Callable[[], T_Result], - idle: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountDetailsAndActionsStatusEnum.COMPLETE: - return complete() - if self is AccountDetailsAndActionsStatusEnum.INCOMPLETE: - return incomplete() - if self is AccountDetailsAndActionsStatusEnum.RELINK_NEEDED: - return relink_needed() - if self is AccountDetailsAndActionsStatusEnum.IDLE: - return idle() diff --git a/src/merge/resources/crm/types/account_details_category.py b/src/merge/resources/crm/types/account_details_category.py deleted file mode 100644 index 8a0cc59c..00000000 --- a/src/merge/resources/crm/types/account_details_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/crm/types/account_integration.py b/src/merge/resources/crm/types/account_integration.py deleted file mode 100644 index ef8b260d..00000000 --- a/src/merge/resources/crm/types/account_integration.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum - - -class AccountIntegration(UncheckedBaseModel): - name: str = pydantic.Field() - """ - Company name. - """ - - abbreviated_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) - """ - - categories: typing.Optional[typing.List[CategoriesEnum]] = pydantic.Field(default=None) - """ - Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. - """ - - image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in rectangular shape. - """ - - square_image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in square shape. - """ - - color: typing.Optional[str] = pydantic.Field(default=None) - """ - The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. - """ - - slug: typing.Optional[str] = None - api_endpoints_to_documentation_urls: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = ( - pydantic.Field(default=None) - ) - """ - Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} - """ - - webhook_setup_guide_url: typing.Optional[str] = pydantic.Field(default=None) - """ - Setup guide URL for third party webhook creation. Exposed in Merge Docs. - """ - - category_beta_status: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Category or categories this integration is in beta status for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/account_owner.py b/src/merge/resources/crm/types/account_owner.py deleted file mode 100644 index eb20c8fc..00000000 --- a/src/merge/resources/crm/types/account_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -AccountOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/account_request.py b/src/merge/resources/crm/types/account_request.py deleted file mode 100644 index 0f7fc493..00000000 --- a/src/merge/resources/crm/types/account_request.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_request_owner import AccountRequestOwner -from .address_request import AddressRequest -from .remote_field_request import RemoteFieldRequest - - -class AccountRequest(UncheckedBaseModel): - """ - # The Account Object - ### Description - The `Account` object is used to represent a company in a CRM system. - ### Usage Example - TODO - """ - - owner: typing.Optional[AccountRequestOwner] = pydantic.Field(default=None) - """ - The account's owner. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's description. - """ - - industry: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's industry. - """ - - website: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's website. - """ - - number_of_employees: typing.Optional[int] = pydantic.Field(default=None) - """ - The account's number of employees. - """ - - addresses: typing.Optional[typing.List[AddressRequest]] = None - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The last date (either most recent or furthest in the future) of when an activity occurs in an account. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/account_request_owner.py b/src/merge/resources/crm/types/account_request_owner.py deleted file mode 100644 index 790ba846..00000000 --- a/src/merge/resources/crm/types/account_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -AccountRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/account_token.py b/src/merge/resources/crm/types/account_token.py deleted file mode 100644 index 6e82c8ac..00000000 --- a/src/merge/resources/crm/types/account_token.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration - - -class AccountToken(UncheckedBaseModel): - account_token: str - integration: AccountIntegration - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/activity_type_enum.py b/src/merge/resources/crm/types/activity_type_enum.py deleted file mode 100644 index f6cf5846..00000000 --- a/src/merge/resources/crm/types/activity_type_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ActivityTypeEnum(str, enum.Enum): - """ - * `CALL` - CALL - * `MEETING` - MEETING - * `EMAIL` - EMAIL - """ - - CALL = "CALL" - MEETING = "MEETING" - EMAIL = "EMAIL" - - def visit( - self, - call: typing.Callable[[], T_Result], - meeting: typing.Callable[[], T_Result], - email: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ActivityTypeEnum.CALL: - return call() - if self is ActivityTypeEnum.MEETING: - return meeting() - if self is ActivityTypeEnum.EMAIL: - return email() diff --git a/src/merge/resources/crm/types/address.py b/src/merge/resources/crm/types/address.py deleted file mode 100644 index 5a5b14d4..00000000 --- a/src/merge/resources/crm/types/address.py +++ /dev/null @@ -1,327 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_address_type import AddressAddressType -from .address_country import AddressCountry - - -class Address(UncheckedBaseModel): - """ - # The Address Object - ### Description - The `Address` object is used to represent an entity's address. - ### Usage Example - TODO - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - street_1: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 1 of the address's street. - """ - - street_2: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 2 of the address's street. - """ - - city: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's city. - """ - - state: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's state. - """ - - postal_code: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's postal code. - """ - - country: typing.Optional[AddressCountry] = pydantic.Field(default=None) - """ - The address's country. - - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - address_type: typing.Optional[AddressAddressType] = pydantic.Field(default=None) - """ - The address type. - - * `BILLING` - BILLING - * `SHIPPING` - SHIPPING - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/address_address_type.py b/src/merge/resources/crm/types/address_address_type.py deleted file mode 100644 index 54bc600b..00000000 --- a/src/merge/resources/crm/types/address_address_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address_type_enum import AddressTypeEnum - -AddressAddressType = typing.Union[AddressTypeEnum, str] diff --git a/src/merge/resources/crm/types/address_country.py b/src/merge/resources/crm/types/address_country.py deleted file mode 100644 index b437f311..00000000 --- a/src/merge/resources/crm/types/address_country.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .country_enum import CountryEnum - -AddressCountry = typing.Union[CountryEnum, str] diff --git a/src/merge/resources/crm/types/address_request.py b/src/merge/resources/crm/types/address_request.py deleted file mode 100644 index 6ae6189e..00000000 --- a/src/merge/resources/crm/types/address_request.py +++ /dev/null @@ -1,319 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_request_address_type import AddressRequestAddressType -from .address_request_country import AddressRequestCountry - - -class AddressRequest(UncheckedBaseModel): - """ - # The Address Object - ### Description - The `Address` object is used to represent an entity's address. - ### Usage Example - TODO - """ - - street_1: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 1 of the address's street. - """ - - street_2: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 2 of the address's street. - """ - - city: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's city. - """ - - state: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's state. - """ - - postal_code: typing.Optional[str] = pydantic.Field(default=None) - """ - The address's postal code. - """ - - country: typing.Optional[AddressRequestCountry] = pydantic.Field(default=None) - """ - The address's country. - - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - address_type: typing.Optional[AddressRequestAddressType] = pydantic.Field(default=None) - """ - The address type. - - * `BILLING` - BILLING - * `SHIPPING` - SHIPPING - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/address_request_address_type.py b/src/merge/resources/crm/types/address_request_address_type.py deleted file mode 100644 index 7052fc92..00000000 --- a/src/merge/resources/crm/types/address_request_address_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .address_type_enum import AddressTypeEnum - -AddressRequestAddressType = typing.Union[AddressTypeEnum, str] diff --git a/src/merge/resources/crm/types/address_request_country.py b/src/merge/resources/crm/types/address_request_country.py deleted file mode 100644 index 02559f8d..00000000 --- a/src/merge/resources/crm/types/address_request_country.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .country_enum import CountryEnum - -AddressRequestCountry = typing.Union[CountryEnum, str] diff --git a/src/merge/resources/crm/types/address_type_enum.py b/src/merge/resources/crm/types/address_type_enum.py deleted file mode 100644 index 69be620b..00000000 --- a/src/merge/resources/crm/types/address_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AddressTypeEnum(str, enum.Enum): - """ - * `BILLING` - BILLING - * `SHIPPING` - SHIPPING - """ - - BILLING = "BILLING" - SHIPPING = "SHIPPING" - - def visit(self, billing: typing.Callable[[], T_Result], shipping: typing.Callable[[], T_Result]) -> T_Result: - if self is AddressTypeEnum.BILLING: - return billing() - if self is AddressTypeEnum.SHIPPING: - return shipping() diff --git a/src/merge/resources/crm/types/advanced_metadata.py b/src/merge/resources/crm/types/advanced_metadata.py deleted file mode 100644 index 60b5d072..00000000 --- a/src/merge/resources/crm/types/advanced_metadata.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AdvancedMetadata(UncheckedBaseModel): - id: str - display_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - is_custom: typing.Optional[bool] = None - field_choices: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/association.py b/src/merge/resources/crm/types/association.py deleted file mode 100644 index 6f694ee2..00000000 --- a/src/merge/resources/crm/types/association.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .association_association_type import AssociationAssociationType - - -class Association(UncheckedBaseModel): - """ - # The Association Object - ### Description - The `Association` record refers to an instance of an Association Type. - ### Usage Example - TODO - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - source_object: typing.Optional[str] = None - target_object: typing.Optional[str] = None - association_type: typing.Optional[AssociationAssociationType] = pydantic.Field(default=None) - """ - The association type the association belongs to. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/association_association_type.py b/src/merge/resources/crm/types/association_association_type.py deleted file mode 100644 index 0395ebcc..00000000 --- a/src/merge/resources/crm/types/association_association_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .association_type import AssociationType - -AssociationAssociationType = typing.Union[str, AssociationType] diff --git a/src/merge/resources/crm/types/association_sub_type.py b/src/merge/resources/crm/types/association_sub_type.py deleted file mode 100644 index e3c80f99..00000000 --- a/src/merge/resources/crm/types/association_sub_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AssociationSubType(UncheckedBaseModel): - id: typing.Optional[str] = None - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - origin_type: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/association_type.py b/src/merge/resources/crm/types/association_type.py deleted file mode 100644 index 3826285e..00000000 --- a/src/merge/resources/crm/types/association_type.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .association_sub_type import AssociationSubType -from .association_type_cardinality import AssociationTypeCardinality - - -class AssociationType(UncheckedBaseModel): - """ - # The AssociationType Object - ### Description - The `Association Type` object represents the relationship between two objects. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - source_object_class: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The class of the source object (Custom Object or Common Model) for the association type. - """ - - target_object_classes: typing.Optional[typing.List[AssociationSubType]] = None - remote_key_name: typing.Optional[str] = None - display_name: typing.Optional[str] = None - cardinality: typing.Optional[AssociationTypeCardinality] = None - is_required: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/association_type_cardinality.py b/src/merge/resources/crm/types/association_type_cardinality.py deleted file mode 100644 index 8d59451c..00000000 --- a/src/merge/resources/crm/types/association_type_cardinality.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .cardinality_enum import CardinalityEnum - -AssociationTypeCardinality = typing.Union[CardinalityEnum, str] diff --git a/src/merge/resources/crm/types/association_type_request_request.py b/src/merge/resources/crm/types/association_type_request_request.py deleted file mode 100644 index f377cd0c..00000000 --- a/src/merge/resources/crm/types/association_type_request_request.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .cardinality_enum import CardinalityEnum -from .object_class_description_request import ObjectClassDescriptionRequest - - -class AssociationTypeRequestRequest(UncheckedBaseModel): - source_object_class: ObjectClassDescriptionRequest - target_object_classes: typing.List[ObjectClassDescriptionRequest] - remote_key_name: str - display_name: typing.Optional[str] = None - cardinality: typing.Optional[CardinalityEnum] = None - is_required: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/async_passthrough_reciept.py b/src/merge/resources/crm/types/async_passthrough_reciept.py deleted file mode 100644 index 21c95080..00000000 --- a/src/merge/resources/crm/types/async_passthrough_reciept.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPassthroughReciept(UncheckedBaseModel): - async_passthrough_receipt_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/audit_log_event.py b/src/merge/resources/crm/types/audit_log_event.py deleted file mode 100644 index ab69fd32..00000000 --- a/src/merge/resources/crm/types/audit_log_event.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event_event_type import AuditLogEventEventType -from .audit_log_event_role import AuditLogEventRole - - -class AuditLogEvent(UncheckedBaseModel): - id: typing.Optional[str] = None - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's full name at the time of this Event occurring. - """ - - user_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's email at the time of this Event occurring. - """ - - role: AuditLogEventRole = pydantic.Field() - """ - Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ip_address: str - event_type: AuditLogEventEventType = pydantic.Field() - """ - Designates the type of event that occurred. - - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - event_description: str - created_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/audit_log_event_event_type.py b/src/merge/resources/crm/types/audit_log_event_event_type.py deleted file mode 100644 index f9c9d2b3..00000000 --- a/src/merge/resources/crm/types/audit_log_event_event_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_type_enum import EventTypeEnum - -AuditLogEventEventType = typing.Union[EventTypeEnum, str] diff --git a/src/merge/resources/crm/types/audit_log_event_role.py b/src/merge/resources/crm/types/audit_log_event_role.py deleted file mode 100644 index fe91ed6f..00000000 --- a/src/merge/resources/crm/types/audit_log_event_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role_enum import RoleEnum - -AuditLogEventRole = typing.Union[RoleEnum, str] diff --git a/src/merge/resources/crm/types/available_actions.py b/src/merge/resources/crm/types/available_actions.py deleted file mode 100644 index 8b5019d7..00000000 --- a/src/merge/resources/crm/types/available_actions.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration -from .model_operation import ModelOperation - - -class AvailableActions(UncheckedBaseModel): - """ - # The AvailableActions Object - ### Description - The `Activity` object is used to see all available model/operation combinations for an integration. - - ### Usage Example - Fetch all the actions available for the `Zenefits` integration. - """ - - integration: AccountIntegration - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/cardinality_enum.py b/src/merge/resources/crm/types/cardinality_enum.py deleted file mode 100644 index d15b96fe..00000000 --- a/src/merge/resources/crm/types/cardinality_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CardinalityEnum(str, enum.Enum): - """ - * `ONE_TO_ONE` - ONE_TO_ONE - * `MANY_TO_ONE` - MANY_TO_ONE - * `MANY_TO_MANY` - MANY_TO_MANY - * `ONE_TO_MANY` - ONE_TO_MANY - """ - - ONE_TO_ONE = "ONE_TO_ONE" - MANY_TO_ONE = "MANY_TO_ONE" - MANY_TO_MANY = "MANY_TO_MANY" - ONE_TO_MANY = "ONE_TO_MANY" - - def visit( - self, - one_to_one: typing.Callable[[], T_Result], - many_to_one: typing.Callable[[], T_Result], - many_to_many: typing.Callable[[], T_Result], - one_to_many: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CardinalityEnum.ONE_TO_ONE: - return one_to_one() - if self is CardinalityEnum.MANY_TO_ONE: - return many_to_one() - if self is CardinalityEnum.MANY_TO_MANY: - return many_to_many() - if self is CardinalityEnum.ONE_TO_MANY: - return one_to_many() diff --git a/src/merge/resources/crm/types/categories_enum.py b/src/merge/resources/crm/types/categories_enum.py deleted file mode 100644 index 3f2dc5a9..00000000 --- a/src/merge/resources/crm/types/categories_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoriesEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoriesEnum.HRIS: - return hris() - if self is CategoriesEnum.ATS: - return ats() - if self is CategoriesEnum.ACCOUNTING: - return accounting() - if self is CategoriesEnum.TICKETING: - return ticketing() - if self is CategoriesEnum.CRM: - return crm() - if self is CategoriesEnum.MKTG: - return mktg() - if self is CategoriesEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/crm/types/category_enum.py b/src/merge/resources/crm/types/category_enum.py deleted file mode 100644 index d37e48f5..00000000 --- a/src/merge/resources/crm/types/category_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoryEnum.HRIS: - return hris() - if self is CategoryEnum.ATS: - return ats() - if self is CategoryEnum.ACCOUNTING: - return accounting() - if self is CategoryEnum.TICKETING: - return ticketing() - if self is CategoryEnum.CRM: - return crm() - if self is CategoryEnum.MKTG: - return mktg() - if self is CategoryEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/crm/types/common_model_scope_api.py b/src/merge/resources/crm/types/common_model_scope_api.py deleted file mode 100644 index 5484808d..00000000 --- a/src/merge/resources/crm/types/common_model_scope_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - - -class CommonModelScopeApi(UncheckedBaseModel): - common_models: typing.List[IndividualCommonModelScopeDeserializer] = pydantic.Field() - """ - The common models you want to update the scopes for - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/common_model_scopes_body_request.py b/src/merge/resources/crm/types/common_model_scopes_body_request.py deleted file mode 100644 index a9fed25b..00000000 --- a/src/merge/resources/crm/types/common_model_scopes_body_request.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .enabled_actions_enum import EnabledActionsEnum - - -class CommonModelScopesBodyRequest(UncheckedBaseModel): - model_id: str - enabled_actions: typing.List[EnabledActionsEnum] - disabled_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/contact.py b/src/merge/resources/crm/types/contact.py deleted file mode 100644 index d5b7019a..00000000 --- a/src/merge/resources/crm/types/contact.py +++ /dev/null @@ -1,92 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address import Address -from .contact_account import ContactAccount -from .contact_owner import ContactOwner -from .email_address import EmailAddress -from .phone_number import PhoneNumber -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Contact(UncheckedBaseModel): - """ - # The Contact Object - ### Description - The `Contact` object is used to represent an existing point of contact at a company in a CRM system. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's last name. - """ - - account: typing.Optional[ContactAccount] = pydantic.Field(default=None) - """ - The contact's account. - """ - - owner: typing.Optional[ContactOwner] = pydantic.Field(default=None) - """ - The contact's owner. - """ - - addresses: typing.Optional[typing.List[Address]] = None - email_addresses: typing.Optional[typing.List[EmailAddress]] = None - phone_numbers: typing.Optional[typing.List[PhoneNumber]] = None - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the contact's last activity occurred. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's contact was created. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/contact_account.py b/src/merge/resources/crm/types/contact_account.py deleted file mode 100644 index f21ef820..00000000 --- a/src/merge/resources/crm/types/contact_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ContactAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/contact_owner.py b/src/merge/resources/crm/types/contact_owner.py deleted file mode 100644 index 24fc6dc1..00000000 --- a/src/merge/resources/crm/types/contact_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -ContactOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/contact_request.py b/src/merge/resources/crm/types/contact_request.py deleted file mode 100644 index 12849554..00000000 --- a/src/merge/resources/crm/types/contact_request.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_request import AddressRequest -from .contact_request_account import ContactRequestAccount -from .contact_request_owner import ContactRequestOwner -from .email_address_request import EmailAddressRequest -from .phone_number_request import PhoneNumberRequest -from .remote_field_request import RemoteFieldRequest - - -class ContactRequest(UncheckedBaseModel): - """ - # The Contact Object - ### Description - The `Contact` object is used to represent an existing point of contact at a company in a CRM system. - ### Usage Example - TODO - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's last name. - """ - - account: typing.Optional[ContactRequestAccount] = pydantic.Field(default=None) - """ - The contact's account. - """ - - owner: typing.Optional[ContactRequestOwner] = pydantic.Field(default=None) - """ - The contact's owner. - """ - - addresses: typing.Optional[typing.List[AddressRequest]] = None - email_addresses: typing.Optional[typing.List[EmailAddressRequest]] = None - phone_numbers: typing.Optional[typing.List[PhoneNumberRequest]] = None - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the contact's last activity occurred. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/contact_request_account.py b/src/merge/resources/crm/types/contact_request_account.py deleted file mode 100644 index 449187af..00000000 --- a/src/merge/resources/crm/types/contact_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ContactRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/contact_request_owner.py b/src/merge/resources/crm/types/contact_request_owner.py deleted file mode 100644 index c41de073..00000000 --- a/src/merge/resources/crm/types/contact_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -ContactRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/country_enum.py b/src/merge/resources/crm/types/country_enum.py deleted file mode 100644 index a631e320..00000000 --- a/src/merge/resources/crm/types/country_enum.py +++ /dev/null @@ -1,1261 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CountryEnum(str, enum.Enum): - """ - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - AF = "AF" - AX = "AX" - AL = "AL" - DZ = "DZ" - AS = "AS" - AD = "AD" - AO = "AO" - AI = "AI" - AQ = "AQ" - AG = "AG" - AR = "AR" - AM = "AM" - AW = "AW" - AU = "AU" - AT = "AT" - AZ = "AZ" - BS = "BS" - BH = "BH" - BD = "BD" - BB = "BB" - BY = "BY" - BE = "BE" - BZ = "BZ" - BJ = "BJ" - BM = "BM" - BT = "BT" - BO = "BO" - BQ = "BQ" - BA = "BA" - BW = "BW" - BV = "BV" - BR = "BR" - IO = "IO" - BN = "BN" - BG = "BG" - BF = "BF" - BI = "BI" - CV = "CV" - KH = "KH" - CM = "CM" - CA = "CA" - KY = "KY" - CF = "CF" - TD = "TD" - CL = "CL" - CN = "CN" - CX = "CX" - CC = "CC" - CO = "CO" - KM = "KM" - CG = "CG" - CD = "CD" - CK = "CK" - CR = "CR" - CI = "CI" - HR = "HR" - CU = "CU" - CW = "CW" - CY = "CY" - CZ = "CZ" - DK = "DK" - DJ = "DJ" - DM = "DM" - DO = "DO" - EC = "EC" - EG = "EG" - SV = "SV" - GQ = "GQ" - ER = "ER" - EE = "EE" - SZ = "SZ" - ET = "ET" - FK = "FK" - FO = "FO" - FJ = "FJ" - FI = "FI" - FR = "FR" - GF = "GF" - PF = "PF" - TF = "TF" - GA = "GA" - GM = "GM" - GE = "GE" - DE = "DE" - GH = "GH" - GI = "GI" - GR = "GR" - GL = "GL" - GD = "GD" - GP = "GP" - GU = "GU" - GT = "GT" - GG = "GG" - GN = "GN" - GW = "GW" - GY = "GY" - HT = "HT" - HM = "HM" - VA = "VA" - HN = "HN" - HK = "HK" - HU = "HU" - IS = "IS" - IN = "IN" - ID = "ID" - IR = "IR" - IQ = "IQ" - IE = "IE" - IM = "IM" - IL = "IL" - IT = "IT" - JM = "JM" - JP = "JP" - JE = "JE" - JO = "JO" - KZ = "KZ" - KE = "KE" - KI = "KI" - KW = "KW" - KG = "KG" - LA = "LA" - LV = "LV" - LB = "LB" - LS = "LS" - LR = "LR" - LY = "LY" - LI = "LI" - LT = "LT" - LU = "LU" - MO = "MO" - MG = "MG" - MW = "MW" - MY = "MY" - MV = "MV" - ML = "ML" - MT = "MT" - MH = "MH" - MQ = "MQ" - MR = "MR" - MU = "MU" - YT = "YT" - MX = "MX" - FM = "FM" - MD = "MD" - MC = "MC" - MN = "MN" - ME = "ME" - MS = "MS" - MA = "MA" - MZ = "MZ" - MM = "MM" - NA = "NA" - NR = "NR" - NP = "NP" - NL = "NL" - NC = "NC" - NZ = "NZ" - NI = "NI" - NE = "NE" - NG = "NG" - NU = "NU" - NF = "NF" - KP = "KP" - MK = "MK" - MP = "MP" - NO = "NO" - OM = "OM" - PK = "PK" - PW = "PW" - PS = "PS" - PA = "PA" - PG = "PG" - PY = "PY" - PE = "PE" - PH = "PH" - PN = "PN" - PL = "PL" - PT = "PT" - PR = "PR" - QA = "QA" - RE = "RE" - RO = "RO" - RU = "RU" - RW = "RW" - BL = "BL" - SH = "SH" - KN = "KN" - LC = "LC" - MF = "MF" - PM = "PM" - VC = "VC" - WS = "WS" - SM = "SM" - ST = "ST" - SA = "SA" - SN = "SN" - RS = "RS" - SC = "SC" - SL = "SL" - SG = "SG" - SX = "SX" - SK = "SK" - SI = "SI" - SB = "SB" - SO = "SO" - ZA = "ZA" - GS = "GS" - KR = "KR" - SS = "SS" - ES = "ES" - LK = "LK" - SD = "SD" - SR = "SR" - SJ = "SJ" - SE = "SE" - CH = "CH" - SY = "SY" - TW = "TW" - TJ = "TJ" - TZ = "TZ" - TH = "TH" - TL = "TL" - TG = "TG" - TK = "TK" - TO = "TO" - TT = "TT" - TN = "TN" - TR = "TR" - TM = "TM" - TC = "TC" - TV = "TV" - UG = "UG" - UA = "UA" - AE = "AE" - GB = "GB" - UM = "UM" - US = "US" - UY = "UY" - UZ = "UZ" - VU = "VU" - VE = "VE" - VN = "VN" - VG = "VG" - VI = "VI" - WF = "WF" - EH = "EH" - YE = "YE" - ZM = "ZM" - ZW = "ZW" - - def visit( - self, - af: typing.Callable[[], T_Result], - ax: typing.Callable[[], T_Result], - al: typing.Callable[[], T_Result], - dz: typing.Callable[[], T_Result], - as_: typing.Callable[[], T_Result], - ad: typing.Callable[[], T_Result], - ao: typing.Callable[[], T_Result], - ai: typing.Callable[[], T_Result], - aq: typing.Callable[[], T_Result], - ag: typing.Callable[[], T_Result], - ar: typing.Callable[[], T_Result], - am: typing.Callable[[], T_Result], - aw: typing.Callable[[], T_Result], - au: typing.Callable[[], T_Result], - at: typing.Callable[[], T_Result], - az: typing.Callable[[], T_Result], - bs: typing.Callable[[], T_Result], - bh: typing.Callable[[], T_Result], - bd: typing.Callable[[], T_Result], - bb: typing.Callable[[], T_Result], - by: typing.Callable[[], T_Result], - be: typing.Callable[[], T_Result], - bz: typing.Callable[[], T_Result], - bj: typing.Callable[[], T_Result], - bm: typing.Callable[[], T_Result], - bt: typing.Callable[[], T_Result], - bo: typing.Callable[[], T_Result], - bq: typing.Callable[[], T_Result], - ba: typing.Callable[[], T_Result], - bw: typing.Callable[[], T_Result], - bv: typing.Callable[[], T_Result], - br: typing.Callable[[], T_Result], - io: typing.Callable[[], T_Result], - bn: typing.Callable[[], T_Result], - bg: typing.Callable[[], T_Result], - bf: typing.Callable[[], T_Result], - bi: typing.Callable[[], T_Result], - cv: typing.Callable[[], T_Result], - kh: typing.Callable[[], T_Result], - cm: typing.Callable[[], T_Result], - ca: typing.Callable[[], T_Result], - ky: typing.Callable[[], T_Result], - cf: typing.Callable[[], T_Result], - td: typing.Callable[[], T_Result], - cl: typing.Callable[[], T_Result], - cn: typing.Callable[[], T_Result], - cx: typing.Callable[[], T_Result], - cc: typing.Callable[[], T_Result], - co: typing.Callable[[], T_Result], - km: typing.Callable[[], T_Result], - cg: typing.Callable[[], T_Result], - cd: typing.Callable[[], T_Result], - ck: typing.Callable[[], T_Result], - cr: typing.Callable[[], T_Result], - ci: typing.Callable[[], T_Result], - hr: typing.Callable[[], T_Result], - cu: typing.Callable[[], T_Result], - cw: typing.Callable[[], T_Result], - cy: typing.Callable[[], T_Result], - cz: typing.Callable[[], T_Result], - dk: typing.Callable[[], T_Result], - dj: typing.Callable[[], T_Result], - dm: typing.Callable[[], T_Result], - do: typing.Callable[[], T_Result], - ec: typing.Callable[[], T_Result], - eg: typing.Callable[[], T_Result], - sv: typing.Callable[[], T_Result], - gq: typing.Callable[[], T_Result], - er: typing.Callable[[], T_Result], - ee: typing.Callable[[], T_Result], - sz: typing.Callable[[], T_Result], - et: typing.Callable[[], T_Result], - fk: typing.Callable[[], T_Result], - fo: typing.Callable[[], T_Result], - fj: typing.Callable[[], T_Result], - fi: typing.Callable[[], T_Result], - fr: typing.Callable[[], T_Result], - gf: typing.Callable[[], T_Result], - pf: typing.Callable[[], T_Result], - tf: typing.Callable[[], T_Result], - ga: typing.Callable[[], T_Result], - gm: typing.Callable[[], T_Result], - ge: typing.Callable[[], T_Result], - de: typing.Callable[[], T_Result], - gh: typing.Callable[[], T_Result], - gi: typing.Callable[[], T_Result], - gr: typing.Callable[[], T_Result], - gl: typing.Callable[[], T_Result], - gd: typing.Callable[[], T_Result], - gp: typing.Callable[[], T_Result], - gu: typing.Callable[[], T_Result], - gt: typing.Callable[[], T_Result], - gg: typing.Callable[[], T_Result], - gn: typing.Callable[[], T_Result], - gw: typing.Callable[[], T_Result], - gy: typing.Callable[[], T_Result], - ht: typing.Callable[[], T_Result], - hm: typing.Callable[[], T_Result], - va: typing.Callable[[], T_Result], - hn: typing.Callable[[], T_Result], - hk: typing.Callable[[], T_Result], - hu: typing.Callable[[], T_Result], - is_: typing.Callable[[], T_Result], - in_: typing.Callable[[], T_Result], - id: typing.Callable[[], T_Result], - ir: typing.Callable[[], T_Result], - iq: typing.Callable[[], T_Result], - ie: typing.Callable[[], T_Result], - im: typing.Callable[[], T_Result], - il: typing.Callable[[], T_Result], - it: typing.Callable[[], T_Result], - jm: typing.Callable[[], T_Result], - jp: typing.Callable[[], T_Result], - je: typing.Callable[[], T_Result], - jo: typing.Callable[[], T_Result], - kz: typing.Callable[[], T_Result], - ke: typing.Callable[[], T_Result], - ki: typing.Callable[[], T_Result], - kw: typing.Callable[[], T_Result], - kg: typing.Callable[[], T_Result], - la: typing.Callable[[], T_Result], - lv: typing.Callable[[], T_Result], - lb: typing.Callable[[], T_Result], - ls: typing.Callable[[], T_Result], - lr: typing.Callable[[], T_Result], - ly: typing.Callable[[], T_Result], - li: typing.Callable[[], T_Result], - lt: typing.Callable[[], T_Result], - lu: typing.Callable[[], T_Result], - mo: typing.Callable[[], T_Result], - mg: typing.Callable[[], T_Result], - mw: typing.Callable[[], T_Result], - my: typing.Callable[[], T_Result], - mv: typing.Callable[[], T_Result], - ml: typing.Callable[[], T_Result], - mt: typing.Callable[[], T_Result], - mh: typing.Callable[[], T_Result], - mq: typing.Callable[[], T_Result], - mr: typing.Callable[[], T_Result], - mu: typing.Callable[[], T_Result], - yt: typing.Callable[[], T_Result], - mx: typing.Callable[[], T_Result], - fm: typing.Callable[[], T_Result], - md: typing.Callable[[], T_Result], - mc: typing.Callable[[], T_Result], - mn: typing.Callable[[], T_Result], - me: typing.Callable[[], T_Result], - ms: typing.Callable[[], T_Result], - ma: typing.Callable[[], T_Result], - mz: typing.Callable[[], T_Result], - mm: typing.Callable[[], T_Result], - na: typing.Callable[[], T_Result], - nr: typing.Callable[[], T_Result], - np: typing.Callable[[], T_Result], - nl: typing.Callable[[], T_Result], - nc: typing.Callable[[], T_Result], - nz: typing.Callable[[], T_Result], - ni: typing.Callable[[], T_Result], - ne: typing.Callable[[], T_Result], - ng: typing.Callable[[], T_Result], - nu: typing.Callable[[], T_Result], - nf: typing.Callable[[], T_Result], - kp: typing.Callable[[], T_Result], - mk: typing.Callable[[], T_Result], - mp: typing.Callable[[], T_Result], - no: typing.Callable[[], T_Result], - om: typing.Callable[[], T_Result], - pk: typing.Callable[[], T_Result], - pw: typing.Callable[[], T_Result], - ps: typing.Callable[[], T_Result], - pa: typing.Callable[[], T_Result], - pg: typing.Callable[[], T_Result], - py: typing.Callable[[], T_Result], - pe: typing.Callable[[], T_Result], - ph: typing.Callable[[], T_Result], - pn: typing.Callable[[], T_Result], - pl: typing.Callable[[], T_Result], - pt: typing.Callable[[], T_Result], - pr: typing.Callable[[], T_Result], - qa: typing.Callable[[], T_Result], - re: typing.Callable[[], T_Result], - ro: typing.Callable[[], T_Result], - ru: typing.Callable[[], T_Result], - rw: typing.Callable[[], T_Result], - bl: typing.Callable[[], T_Result], - sh: typing.Callable[[], T_Result], - kn: typing.Callable[[], T_Result], - lc: typing.Callable[[], T_Result], - mf: typing.Callable[[], T_Result], - pm: typing.Callable[[], T_Result], - vc: typing.Callable[[], T_Result], - ws: typing.Callable[[], T_Result], - sm: typing.Callable[[], T_Result], - st: typing.Callable[[], T_Result], - sa: typing.Callable[[], T_Result], - sn: typing.Callable[[], T_Result], - rs: typing.Callable[[], T_Result], - sc: typing.Callable[[], T_Result], - sl: typing.Callable[[], T_Result], - sg: typing.Callable[[], T_Result], - sx: typing.Callable[[], T_Result], - sk: typing.Callable[[], T_Result], - si: typing.Callable[[], T_Result], - sb: typing.Callable[[], T_Result], - so: typing.Callable[[], T_Result], - za: typing.Callable[[], T_Result], - gs: typing.Callable[[], T_Result], - kr: typing.Callable[[], T_Result], - ss: typing.Callable[[], T_Result], - es: typing.Callable[[], T_Result], - lk: typing.Callable[[], T_Result], - sd: typing.Callable[[], T_Result], - sr: typing.Callable[[], T_Result], - sj: typing.Callable[[], T_Result], - se: typing.Callable[[], T_Result], - ch: typing.Callable[[], T_Result], - sy: typing.Callable[[], T_Result], - tw: typing.Callable[[], T_Result], - tj: typing.Callable[[], T_Result], - tz: typing.Callable[[], T_Result], - th: typing.Callable[[], T_Result], - tl: typing.Callable[[], T_Result], - tg: typing.Callable[[], T_Result], - tk: typing.Callable[[], T_Result], - to: typing.Callable[[], T_Result], - tt: typing.Callable[[], T_Result], - tn: typing.Callable[[], T_Result], - tr: typing.Callable[[], T_Result], - tm: typing.Callable[[], T_Result], - tc: typing.Callable[[], T_Result], - tv: typing.Callable[[], T_Result], - ug: typing.Callable[[], T_Result], - ua: typing.Callable[[], T_Result], - ae: typing.Callable[[], T_Result], - gb: typing.Callable[[], T_Result], - um: typing.Callable[[], T_Result], - us: typing.Callable[[], T_Result], - uy: typing.Callable[[], T_Result], - uz: typing.Callable[[], T_Result], - vu: typing.Callable[[], T_Result], - ve: typing.Callable[[], T_Result], - vn: typing.Callable[[], T_Result], - vg: typing.Callable[[], T_Result], - vi: typing.Callable[[], T_Result], - wf: typing.Callable[[], T_Result], - eh: typing.Callable[[], T_Result], - ye: typing.Callable[[], T_Result], - zm: typing.Callable[[], T_Result], - zw: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CountryEnum.AF: - return af() - if self is CountryEnum.AX: - return ax() - if self is CountryEnum.AL: - return al() - if self is CountryEnum.DZ: - return dz() - if self is CountryEnum.AS: - return as_() - if self is CountryEnum.AD: - return ad() - if self is CountryEnum.AO: - return ao() - if self is CountryEnum.AI: - return ai() - if self is CountryEnum.AQ: - return aq() - if self is CountryEnum.AG: - return ag() - if self is CountryEnum.AR: - return ar() - if self is CountryEnum.AM: - return am() - if self is CountryEnum.AW: - return aw() - if self is CountryEnum.AU: - return au() - if self is CountryEnum.AT: - return at() - if self is CountryEnum.AZ: - return az() - if self is CountryEnum.BS: - return bs() - if self is CountryEnum.BH: - return bh() - if self is CountryEnum.BD: - return bd() - if self is CountryEnum.BB: - return bb() - if self is CountryEnum.BY: - return by() - if self is CountryEnum.BE: - return be() - if self is CountryEnum.BZ: - return bz() - if self is CountryEnum.BJ: - return bj() - if self is CountryEnum.BM: - return bm() - if self is CountryEnum.BT: - return bt() - if self is CountryEnum.BO: - return bo() - if self is CountryEnum.BQ: - return bq() - if self is CountryEnum.BA: - return ba() - if self is CountryEnum.BW: - return bw() - if self is CountryEnum.BV: - return bv() - if self is CountryEnum.BR: - return br() - if self is CountryEnum.IO: - return io() - if self is CountryEnum.BN: - return bn() - if self is CountryEnum.BG: - return bg() - if self is CountryEnum.BF: - return bf() - if self is CountryEnum.BI: - return bi() - if self is CountryEnum.CV: - return cv() - if self is CountryEnum.KH: - return kh() - if self is CountryEnum.CM: - return cm() - if self is CountryEnum.CA: - return ca() - if self is CountryEnum.KY: - return ky() - if self is CountryEnum.CF: - return cf() - if self is CountryEnum.TD: - return td() - if self is CountryEnum.CL: - return cl() - if self is CountryEnum.CN: - return cn() - if self is CountryEnum.CX: - return cx() - if self is CountryEnum.CC: - return cc() - if self is CountryEnum.CO: - return co() - if self is CountryEnum.KM: - return km() - if self is CountryEnum.CG: - return cg() - if self is CountryEnum.CD: - return cd() - if self is CountryEnum.CK: - return ck() - if self is CountryEnum.CR: - return cr() - if self is CountryEnum.CI: - return ci() - if self is CountryEnum.HR: - return hr() - if self is CountryEnum.CU: - return cu() - if self is CountryEnum.CW: - return cw() - if self is CountryEnum.CY: - return cy() - if self is CountryEnum.CZ: - return cz() - if self is CountryEnum.DK: - return dk() - if self is CountryEnum.DJ: - return dj() - if self is CountryEnum.DM: - return dm() - if self is CountryEnum.DO: - return do() - if self is CountryEnum.EC: - return ec() - if self is CountryEnum.EG: - return eg() - if self is CountryEnum.SV: - return sv() - if self is CountryEnum.GQ: - return gq() - if self is CountryEnum.ER: - return er() - if self is CountryEnum.EE: - return ee() - if self is CountryEnum.SZ: - return sz() - if self is CountryEnum.ET: - return et() - if self is CountryEnum.FK: - return fk() - if self is CountryEnum.FO: - return fo() - if self is CountryEnum.FJ: - return fj() - if self is CountryEnum.FI: - return fi() - if self is CountryEnum.FR: - return fr() - if self is CountryEnum.GF: - return gf() - if self is CountryEnum.PF: - return pf() - if self is CountryEnum.TF: - return tf() - if self is CountryEnum.GA: - return ga() - if self is CountryEnum.GM: - return gm() - if self is CountryEnum.GE: - return ge() - if self is CountryEnum.DE: - return de() - if self is CountryEnum.GH: - return gh() - if self is CountryEnum.GI: - return gi() - if self is CountryEnum.GR: - return gr() - if self is CountryEnum.GL: - return gl() - if self is CountryEnum.GD: - return gd() - if self is CountryEnum.GP: - return gp() - if self is CountryEnum.GU: - return gu() - if self is CountryEnum.GT: - return gt() - if self is CountryEnum.GG: - return gg() - if self is CountryEnum.GN: - return gn() - if self is CountryEnum.GW: - return gw() - if self is CountryEnum.GY: - return gy() - if self is CountryEnum.HT: - return ht() - if self is CountryEnum.HM: - return hm() - if self is CountryEnum.VA: - return va() - if self is CountryEnum.HN: - return hn() - if self is CountryEnum.HK: - return hk() - if self is CountryEnum.HU: - return hu() - if self is CountryEnum.IS: - return is_() - if self is CountryEnum.IN: - return in_() - if self is CountryEnum.ID: - return id() - if self is CountryEnum.IR: - return ir() - if self is CountryEnum.IQ: - return iq() - if self is CountryEnum.IE: - return ie() - if self is CountryEnum.IM: - return im() - if self is CountryEnum.IL: - return il() - if self is CountryEnum.IT: - return it() - if self is CountryEnum.JM: - return jm() - if self is CountryEnum.JP: - return jp() - if self is CountryEnum.JE: - return je() - if self is CountryEnum.JO: - return jo() - if self is CountryEnum.KZ: - return kz() - if self is CountryEnum.KE: - return ke() - if self is CountryEnum.KI: - return ki() - if self is CountryEnum.KW: - return kw() - if self is CountryEnum.KG: - return kg() - if self is CountryEnum.LA: - return la() - if self is CountryEnum.LV: - return lv() - if self is CountryEnum.LB: - return lb() - if self is CountryEnum.LS: - return ls() - if self is CountryEnum.LR: - return lr() - if self is CountryEnum.LY: - return ly() - if self is CountryEnum.LI: - return li() - if self is CountryEnum.LT: - return lt() - if self is CountryEnum.LU: - return lu() - if self is CountryEnum.MO: - return mo() - if self is CountryEnum.MG: - return mg() - if self is CountryEnum.MW: - return mw() - if self is CountryEnum.MY: - return my() - if self is CountryEnum.MV: - return mv() - if self is CountryEnum.ML: - return ml() - if self is CountryEnum.MT: - return mt() - if self is CountryEnum.MH: - return mh() - if self is CountryEnum.MQ: - return mq() - if self is CountryEnum.MR: - return mr() - if self is CountryEnum.MU: - return mu() - if self is CountryEnum.YT: - return yt() - if self is CountryEnum.MX: - return mx() - if self is CountryEnum.FM: - return fm() - if self is CountryEnum.MD: - return md() - if self is CountryEnum.MC: - return mc() - if self is CountryEnum.MN: - return mn() - if self is CountryEnum.ME: - return me() - if self is CountryEnum.MS: - return ms() - if self is CountryEnum.MA: - return ma() - if self is CountryEnum.MZ: - return mz() - if self is CountryEnum.MM: - return mm() - if self is CountryEnum.NA: - return na() - if self is CountryEnum.NR: - return nr() - if self is CountryEnum.NP: - return np() - if self is CountryEnum.NL: - return nl() - if self is CountryEnum.NC: - return nc() - if self is CountryEnum.NZ: - return nz() - if self is CountryEnum.NI: - return ni() - if self is CountryEnum.NE: - return ne() - if self is CountryEnum.NG: - return ng() - if self is CountryEnum.NU: - return nu() - if self is CountryEnum.NF: - return nf() - if self is CountryEnum.KP: - return kp() - if self is CountryEnum.MK: - return mk() - if self is CountryEnum.MP: - return mp() - if self is CountryEnum.NO: - return no() - if self is CountryEnum.OM: - return om() - if self is CountryEnum.PK: - return pk() - if self is CountryEnum.PW: - return pw() - if self is CountryEnum.PS: - return ps() - if self is CountryEnum.PA: - return pa() - if self is CountryEnum.PG: - return pg() - if self is CountryEnum.PY: - return py() - if self is CountryEnum.PE: - return pe() - if self is CountryEnum.PH: - return ph() - if self is CountryEnum.PN: - return pn() - if self is CountryEnum.PL: - return pl() - if self is CountryEnum.PT: - return pt() - if self is CountryEnum.PR: - return pr() - if self is CountryEnum.QA: - return qa() - if self is CountryEnum.RE: - return re() - if self is CountryEnum.RO: - return ro() - if self is CountryEnum.RU: - return ru() - if self is CountryEnum.RW: - return rw() - if self is CountryEnum.BL: - return bl() - if self is CountryEnum.SH: - return sh() - if self is CountryEnum.KN: - return kn() - if self is CountryEnum.LC: - return lc() - if self is CountryEnum.MF: - return mf() - if self is CountryEnum.PM: - return pm() - if self is CountryEnum.VC: - return vc() - if self is CountryEnum.WS: - return ws() - if self is CountryEnum.SM: - return sm() - if self is CountryEnum.ST: - return st() - if self is CountryEnum.SA: - return sa() - if self is CountryEnum.SN: - return sn() - if self is CountryEnum.RS: - return rs() - if self is CountryEnum.SC: - return sc() - if self is CountryEnum.SL: - return sl() - if self is CountryEnum.SG: - return sg() - if self is CountryEnum.SX: - return sx() - if self is CountryEnum.SK: - return sk() - if self is CountryEnum.SI: - return si() - if self is CountryEnum.SB: - return sb() - if self is CountryEnum.SO: - return so() - if self is CountryEnum.ZA: - return za() - if self is CountryEnum.GS: - return gs() - if self is CountryEnum.KR: - return kr() - if self is CountryEnum.SS: - return ss() - if self is CountryEnum.ES: - return es() - if self is CountryEnum.LK: - return lk() - if self is CountryEnum.SD: - return sd() - if self is CountryEnum.SR: - return sr() - if self is CountryEnum.SJ: - return sj() - if self is CountryEnum.SE: - return se() - if self is CountryEnum.CH: - return ch() - if self is CountryEnum.SY: - return sy() - if self is CountryEnum.TW: - return tw() - if self is CountryEnum.TJ: - return tj() - if self is CountryEnum.TZ: - return tz() - if self is CountryEnum.TH: - return th() - if self is CountryEnum.TL: - return tl() - if self is CountryEnum.TG: - return tg() - if self is CountryEnum.TK: - return tk() - if self is CountryEnum.TO: - return to() - if self is CountryEnum.TT: - return tt() - if self is CountryEnum.TN: - return tn() - if self is CountryEnum.TR: - return tr() - if self is CountryEnum.TM: - return tm() - if self is CountryEnum.TC: - return tc() - if self is CountryEnum.TV: - return tv() - if self is CountryEnum.UG: - return ug() - if self is CountryEnum.UA: - return ua() - if self is CountryEnum.AE: - return ae() - if self is CountryEnum.GB: - return gb() - if self is CountryEnum.UM: - return um() - if self is CountryEnum.US: - return us() - if self is CountryEnum.UY: - return uy() - if self is CountryEnum.UZ: - return uz() - if self is CountryEnum.VU: - return vu() - if self is CountryEnum.VE: - return ve() - if self is CountryEnum.VN: - return vn() - if self is CountryEnum.VG: - return vg() - if self is CountryEnum.VI: - return vi() - if self is CountryEnum.WF: - return wf() - if self is CountryEnum.EH: - return eh() - if self is CountryEnum.YE: - return ye() - if self is CountryEnum.ZM: - return zm() - if self is CountryEnum.ZW: - return zw() diff --git a/src/merge/resources/crm/types/crm_account_response.py b/src/merge/resources/crm/types/crm_account_response.py deleted file mode 100644 index 644bf350..00000000 --- a/src/merge/resources/crm/types/crm_account_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account import Account -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class CrmAccountResponse(UncheckedBaseModel): - model: Account - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/crm_association_type_response.py b/src/merge/resources/crm/types/crm_association_type_response.py deleted file mode 100644 index 93461f51..00000000 --- a/src/merge/resources/crm/types/crm_association_type_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .association_type import AssociationType -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class CrmAssociationTypeResponse(UncheckedBaseModel): - model: AssociationType - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/crm_contact_response.py b/src/merge/resources/crm/types/crm_contact_response.py deleted file mode 100644 index 72e0962a..00000000 --- a/src/merge/resources/crm/types/crm_contact_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact import Contact -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class CrmContactResponse(UncheckedBaseModel): - model: Contact - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/crm_custom_object_response.py b/src/merge/resources/crm/types/crm_custom_object_response.py deleted file mode 100644 index 7a826ede..00000000 --- a/src/merge/resources/crm/types/crm_custom_object_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .custom_object import CustomObject -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class CrmCustomObjectResponse(UncheckedBaseModel): - model: CustomObject - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/custom_object.py b/src/merge/resources/crm/types/custom_object.py deleted file mode 100644 index 8f61f187..00000000 --- a/src/merge/resources/crm/types/custom_object.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field import RemoteField - - -class CustomObject(UncheckedBaseModel): - """ - # The CustomObject Object - ### Description - The `Custom Object` record refers to an instance of a Custom Object Class. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - object_class: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom object class the custom object record belongs to. - """ - - fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The fields and values contained within the custom object record. - """ - - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/custom_object_class.py b/src/merge/resources/crm/types/custom_object_class.py deleted file mode 100644 index e182b3a5..00000000 --- a/src/merge/resources/crm/types/custom_object_class.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_class_for_custom_object_class import RemoteFieldClassForCustomObjectClass - - -class CustomObjectClass(UncheckedBaseModel): - """ - # The Custom Object Class Object - ### Description - The `Custom Object Class` object is used to represent a Custom Object Schema in the remote system. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = None - modified_at: typing.Optional[dt.datetime] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom object class's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The custom object class's description. - """ - - labels: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None) - """ - The custom object class's singular and plural labels. - """ - - fields: typing.Optional[typing.List[RemoteFieldClassForCustomObjectClass]] = None - association_types: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field( - default=None - ) - """ - The types of associations with other models that the custom object class can have. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/custom_object_request.py b/src/merge/resources/crm/types/custom_object_request.py deleted file mode 100644 index 012650f9..00000000 --- a/src/merge/resources/crm/types/custom_object_request.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class CustomObjectRequest(UncheckedBaseModel): - fields: typing.Dict[str, typing.Optional[typing.Any]] - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/data_passthrough_request.py b/src/merge/resources/crm/types/data_passthrough_request.py deleted file mode 100644 index c9f0a799..00000000 --- a/src/merge/resources/crm/types/data_passthrough_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .method_enum import MethodEnum -from .multipart_form_field_request import MultipartFormFieldRequest -from .request_format_enum import RequestFormatEnum - - -class DataPassthroughRequest(UncheckedBaseModel): - """ - # The DataPassthrough Object - ### Description - The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - - ### Usage Example - Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - """ - - method: MethodEnum - path: str = pydantic.Field() - """ - The path of the request in the third party's platform. - """ - - base_url_override: typing.Optional[str] = pydantic.Field(default=None) - """ - An optional override of the third party's base url for the request. - """ - - data: typing.Optional[str] = pydantic.Field(default=None) - """ - The data with the request. You must include a `request_format` parameter matching the data's format - """ - - multipart_form_data: typing.Optional[typing.List[MultipartFormFieldRequest]] = pydantic.Field(default=None) - """ - Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. - """ - - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. - """ - - request_format: typing.Optional[RequestFormatEnum] = None - normalize_response: typing.Optional[bool] = pydantic.Field(default=None) - """ - Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/debug_mode_log.py b/src/merge/resources/crm/types/debug_mode_log.py deleted file mode 100644 index 9c7d2a3f..00000000 --- a/src/merge/resources/crm/types/debug_mode_log.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_model_log_summary import DebugModelLogSummary - - -class DebugModeLog(UncheckedBaseModel): - log_id: str - dashboard_view: str - log_summary: DebugModelLogSummary - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/debug_model_log_summary.py b/src/merge/resources/crm/types/debug_model_log_summary.py deleted file mode 100644 index d7e1d3e6..00000000 --- a/src/merge/resources/crm/types/debug_model_log_summary.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class DebugModelLogSummary(UncheckedBaseModel): - url: str - method: str - status_code: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/direction_enum.py b/src/merge/resources/crm/types/direction_enum.py deleted file mode 100644 index 07c93ea6..00000000 --- a/src/merge/resources/crm/types/direction_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class DirectionEnum(str, enum.Enum): - """ - * `INBOUND` - INBOUND - * `OUTBOUND` - OUTBOUND - """ - - INBOUND = "INBOUND" - OUTBOUND = "OUTBOUND" - - def visit(self, inbound: typing.Callable[[], T_Result], outbound: typing.Callable[[], T_Result]) -> T_Result: - if self is DirectionEnum.INBOUND: - return inbound() - if self is DirectionEnum.OUTBOUND: - return outbound() diff --git a/src/merge/resources/crm/types/email_address.py b/src/merge/resources/crm/types/email_address.py deleted file mode 100644 index f6d87c1f..00000000 --- a/src/merge/resources/crm/types/email_address.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class EmailAddress(UncheckedBaseModel): - """ - # The EmailAddress Object - ### Description - The `EmailAddress` object is used to represent an entity's email address. - ### Usage Example - Fetch from the `GET Contact` endpoint and view their email addresses. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The email address. - """ - - email_address_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The email address's type. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/email_address_request.py b/src/merge/resources/crm/types/email_address_request.py deleted file mode 100644 index ae878e00..00000000 --- a/src/merge/resources/crm/types/email_address_request.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class EmailAddressRequest(UncheckedBaseModel): - """ - # The EmailAddress Object - ### Description - The `EmailAddress` object is used to represent an entity's email address. - ### Usage Example - Fetch from the `GET Contact` endpoint and view their email addresses. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The email address. - """ - - email_address_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The email address's type. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/enabled_actions_enum.py b/src/merge/resources/crm/types/enabled_actions_enum.py deleted file mode 100644 index 29cf9839..00000000 --- a/src/merge/resources/crm/types/enabled_actions_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EnabledActionsEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - """ - - READ = "READ" - WRITE = "WRITE" - - def visit(self, read: typing.Callable[[], T_Result], write: typing.Callable[[], T_Result]) -> T_Result: - if self is EnabledActionsEnum.READ: - return read() - if self is EnabledActionsEnum.WRITE: - return write() diff --git a/src/merge/resources/crm/types/encoding_enum.py b/src/merge/resources/crm/types/encoding_enum.py deleted file mode 100644 index 7454647e..00000000 --- a/src/merge/resources/crm/types/encoding_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EncodingEnum(str, enum.Enum): - """ - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - RAW = "RAW" - BASE_64 = "BASE64" - GZIP_BASE_64 = "GZIP_BASE64" - - def visit( - self, - raw: typing.Callable[[], T_Result], - base_64: typing.Callable[[], T_Result], - gzip_base_64: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EncodingEnum.RAW: - return raw() - if self is EncodingEnum.BASE_64: - return base_64() - if self is EncodingEnum.GZIP_BASE_64: - return gzip_base_64() diff --git a/src/merge/resources/crm/types/engagement.py b/src/merge/resources/crm/types/engagement.py deleted file mode 100644 index 4a351907..00000000 --- a/src/merge/resources/crm/types/engagement.py +++ /dev/null @@ -1,103 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .engagement_account import EngagementAccount -from .engagement_contacts_item import EngagementContactsItem -from .engagement_direction import EngagementDirection -from .engagement_engagement_type import EngagementEngagementType -from .engagement_owner import EngagementOwner -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Engagement(UncheckedBaseModel): - """ - # The Engagement Object - ### Description - The `Engagement` object is used to represent an interaction noted in a CRM system. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - owner: typing.Optional[EngagementOwner] = pydantic.Field(default=None) - """ - The engagement's owner. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement's content. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement's subject. - """ - - direction: typing.Optional[EngagementDirection] = pydantic.Field(default=None) - """ - The engagement's direction. - - * `INBOUND` - INBOUND - * `OUTBOUND` - OUTBOUND - """ - - engagement_type: typing.Optional[EngagementEngagementType] = pydantic.Field(default=None) - """ - The engagement type of the engagement. - """ - - start_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the engagement started. - """ - - end_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the engagement ended. - """ - - account: typing.Optional[EngagementAccount] = pydantic.Field(default=None) - """ - The account of the engagement. - """ - - contacts: typing.Optional[typing.List[typing.Optional[EngagementContactsItem]]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/engagement_account.py b/src/merge/resources/crm/types/engagement_account.py deleted file mode 100644 index 670fbbd5..00000000 --- a/src/merge/resources/crm/types/engagement_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -EngagementAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/engagement_contacts_item.py b/src/merge/resources/crm/types/engagement_contacts_item.py deleted file mode 100644 index 12faa1ae..00000000 --- a/src/merge/resources/crm/types/engagement_contacts_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -EngagementContactsItem = typing.Union[str, Contact] diff --git a/src/merge/resources/crm/types/engagement_direction.py b/src/merge/resources/crm/types/engagement_direction.py deleted file mode 100644 index b37a6226..00000000 --- a/src/merge/resources/crm/types/engagement_direction.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .direction_enum import DirectionEnum - -EngagementDirection = typing.Union[DirectionEnum, str] diff --git a/src/merge/resources/crm/types/engagement_engagement_type.py b/src/merge/resources/crm/types/engagement_engagement_type.py deleted file mode 100644 index 9eee8736..00000000 --- a/src/merge/resources/crm/types/engagement_engagement_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .engagement_type import EngagementType - -EngagementEngagementType = typing.Union[str, EngagementType] diff --git a/src/merge/resources/crm/types/engagement_owner.py b/src/merge/resources/crm/types/engagement_owner.py deleted file mode 100644 index ec8d6da5..00000000 --- a/src/merge/resources/crm/types/engagement_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -EngagementOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/engagement_request.py b/src/merge/resources/crm/types/engagement_request.py deleted file mode 100644 index 682149c2..00000000 --- a/src/merge/resources/crm/types/engagement_request.py +++ /dev/null @@ -1,81 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .engagement_request_account import EngagementRequestAccount -from .engagement_request_contacts_item import EngagementRequestContactsItem -from .engagement_request_direction import EngagementRequestDirection -from .engagement_request_engagement_type import EngagementRequestEngagementType -from .engagement_request_owner import EngagementRequestOwner -from .remote_field_request import RemoteFieldRequest - - -class EngagementRequest(UncheckedBaseModel): - """ - # The Engagement Object - ### Description - The `Engagement` object is used to represent an interaction noted in a CRM system. - ### Usage Example - TODO - """ - - owner: typing.Optional[EngagementRequestOwner] = pydantic.Field(default=None) - """ - The engagement's owner. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement's content. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement's subject. - """ - - direction: typing.Optional[EngagementRequestDirection] = pydantic.Field(default=None) - """ - The engagement's direction. - - * `INBOUND` - INBOUND - * `OUTBOUND` - OUTBOUND - """ - - engagement_type: typing.Optional[EngagementRequestEngagementType] = pydantic.Field(default=None) - """ - The engagement type of the engagement. - """ - - start_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the engagement started. - """ - - end_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the engagement ended. - """ - - account: typing.Optional[EngagementRequestAccount] = pydantic.Field(default=None) - """ - The account of the engagement. - """ - - contacts: typing.Optional[typing.List[typing.Optional[EngagementRequestContactsItem]]] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/engagement_request_account.py b/src/merge/resources/crm/types/engagement_request_account.py deleted file mode 100644 index 4cb22f6d..00000000 --- a/src/merge/resources/crm/types/engagement_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -EngagementRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/engagement_request_contacts_item.py b/src/merge/resources/crm/types/engagement_request_contacts_item.py deleted file mode 100644 index 677c7247..00000000 --- a/src/merge/resources/crm/types/engagement_request_contacts_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -EngagementRequestContactsItem = typing.Union[str, Contact] diff --git a/src/merge/resources/crm/types/engagement_request_direction.py b/src/merge/resources/crm/types/engagement_request_direction.py deleted file mode 100644 index eeb8027e..00000000 --- a/src/merge/resources/crm/types/engagement_request_direction.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .direction_enum import DirectionEnum - -EngagementRequestDirection = typing.Union[DirectionEnum, str] diff --git a/src/merge/resources/crm/types/engagement_request_engagement_type.py b/src/merge/resources/crm/types/engagement_request_engagement_type.py deleted file mode 100644 index 37803788..00000000 --- a/src/merge/resources/crm/types/engagement_request_engagement_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .engagement_type import EngagementType - -EngagementRequestEngagementType = typing.Union[str, EngagementType] diff --git a/src/merge/resources/crm/types/engagement_request_owner.py b/src/merge/resources/crm/types/engagement_request_owner.py deleted file mode 100644 index 11fd7891..00000000 --- a/src/merge/resources/crm/types/engagement_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -EngagementRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/engagement_response.py b/src/merge/resources/crm/types/engagement_response.py deleted file mode 100644 index d3365c98..00000000 --- a/src/merge/resources/crm/types/engagement_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .engagement import Engagement -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class EngagementResponse(UncheckedBaseModel): - model: Engagement - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/engagement_type.py b/src/merge/resources/crm/types/engagement_type.py deleted file mode 100644 index 06a9d326..00000000 --- a/src/merge/resources/crm/types/engagement_type.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .engagement_type_activity_type import EngagementTypeActivityType -from .remote_field import RemoteField - - -class EngagementType(UncheckedBaseModel): - """ - # The Engagement Type Object - ### Description - The `Engagement Type` object is used to represent an interaction activity. A given `Engagement` typically has an `Engagement Type` object represented in the engagement_type field. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - activity_type: typing.Optional[EngagementTypeActivityType] = pydantic.Field(default=None) - """ - The engagement type's activity type. - - * `CALL` - CALL - * `MEETING` - MEETING - * `EMAIL` - EMAIL - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement type's name. - """ - - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/engagement_type_activity_type.py b/src/merge/resources/crm/types/engagement_type_activity_type.py deleted file mode 100644 index c5845a91..00000000 --- a/src/merge/resources/crm/types/engagement_type_activity_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .activity_type_enum import ActivityTypeEnum - -EngagementTypeActivityType = typing.Union[ActivityTypeEnum, str] diff --git a/src/merge/resources/crm/types/error_validation_problem.py b/src/merge/resources/crm/types/error_validation_problem.py deleted file mode 100644 index 04f82d05..00000000 --- a/src/merge/resources/crm/types/error_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class ErrorValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/event_type_enum.py b/src/merge/resources/crm/types/event_type_enum.py deleted file mode 100644 index 537cea3f..00000000 --- a/src/merge/resources/crm/types/event_type_enum.py +++ /dev/null @@ -1,231 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EventTypeEnum(str, enum.Enum): - """ - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY" - DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY" - CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" - DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" - REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" - REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" - INVITED_USER = "INVITED_USER" - TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" - TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" - DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT" - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT" - CREATED_DESTINATION = "CREATED_DESTINATION" - DELETED_DESTINATION = "DELETED_DESTINATION" - CHANGED_DESTINATION = "CHANGED_DESTINATION" - CHANGED_SCOPES = "CHANGED_SCOPES" - CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION" - CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS" - ENABLED_INTEGRATION = "ENABLED_INTEGRATION" - DISABLED_INTEGRATION = "DISABLED_INTEGRATION" - ENABLED_CATEGORY = "ENABLED_CATEGORY" - DISABLED_CATEGORY = "DISABLED_CATEGORY" - CHANGED_PASSWORD = "CHANGED_PASSWORD" - RESET_PASSWORD = "RESET_PASSWORD" - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING" - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING" - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING" - DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING" - DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC" - MUTED_ISSUE = "MUTED_ISSUE" - GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK" - ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK" - DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK" - MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED" - END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED" - - def visit( - self, - created_remote_production_api_key: typing.Callable[[], T_Result], - deleted_remote_production_api_key: typing.Callable[[], T_Result], - created_test_api_key: typing.Callable[[], T_Result], - deleted_test_api_key: typing.Callable[[], T_Result], - regenerated_production_api_key: typing.Callable[[], T_Result], - regenerated_webhook_signature: typing.Callable[[], T_Result], - invited_user: typing.Callable[[], T_Result], - two_factor_auth_enabled: typing.Callable[[], T_Result], - two_factor_auth_disabled: typing.Callable[[], T_Result], - deleted_linked_account: typing.Callable[[], T_Result], - deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result], - created_destination: typing.Callable[[], T_Result], - deleted_destination: typing.Callable[[], T_Result], - changed_destination: typing.Callable[[], T_Result], - changed_scopes: typing.Callable[[], T_Result], - changed_personal_information: typing.Callable[[], T_Result], - changed_organization_settings: typing.Callable[[], T_Result], - enabled_integration: typing.Callable[[], T_Result], - disabled_integration: typing.Callable[[], T_Result], - enabled_category: typing.Callable[[], T_Result], - disabled_category: typing.Callable[[], T_Result], - changed_password: typing.Callable[[], T_Result], - reset_password: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - created_integration_wide_field_mapping: typing.Callable[[], T_Result], - created_linked_account_field_mapping: typing.Callable[[], T_Result], - changed_integration_wide_field_mapping: typing.Callable[[], T_Result], - changed_linked_account_field_mapping: typing.Callable[[], T_Result], - deleted_integration_wide_field_mapping: typing.Callable[[], T_Result], - deleted_linked_account_field_mapping: typing.Callable[[], T_Result], - created_linked_account_common_model_override: typing.Callable[[], T_Result], - changed_linked_account_common_model_override: typing.Callable[[], T_Result], - deleted_linked_account_common_model_override: typing.Callable[[], T_Result], - forced_linked_account_resync: typing.Callable[[], T_Result], - muted_issue: typing.Callable[[], T_Result], - generated_magic_link: typing.Callable[[], T_Result], - enabled_merge_webhook: typing.Callable[[], T_Result], - disabled_merge_webhook: typing.Callable[[], T_Result], - merge_webhook_target_changed: typing.Callable[[], T_Result], - end_user_credentials_accessed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY: - return created_remote_production_api_key() - if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY: - return deleted_remote_production_api_key() - if self is EventTypeEnum.CREATED_TEST_API_KEY: - return created_test_api_key() - if self is EventTypeEnum.DELETED_TEST_API_KEY: - return deleted_test_api_key() - if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY: - return regenerated_production_api_key() - if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE: - return regenerated_webhook_signature() - if self is EventTypeEnum.INVITED_USER: - return invited_user() - if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED: - return two_factor_auth_enabled() - if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED: - return two_factor_auth_disabled() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT: - return deleted_linked_account() - if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT: - return deleted_all_common_models_for_linked_account() - if self is EventTypeEnum.CREATED_DESTINATION: - return created_destination() - if self is EventTypeEnum.DELETED_DESTINATION: - return deleted_destination() - if self is EventTypeEnum.CHANGED_DESTINATION: - return changed_destination() - if self is EventTypeEnum.CHANGED_SCOPES: - return changed_scopes() - if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION: - return changed_personal_information() - if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS: - return changed_organization_settings() - if self is EventTypeEnum.ENABLED_INTEGRATION: - return enabled_integration() - if self is EventTypeEnum.DISABLED_INTEGRATION: - return disabled_integration() - if self is EventTypeEnum.ENABLED_CATEGORY: - return enabled_category() - if self is EventTypeEnum.DISABLED_CATEGORY: - return disabled_category() - if self is EventTypeEnum.CHANGED_PASSWORD: - return changed_password() - if self is EventTypeEnum.RESET_PASSWORD: - return reset_password() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return enabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return enabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return disabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return disabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING: - return created_integration_wide_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING: - return created_linked_account_field_mapping() - if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING: - return changed_integration_wide_field_mapping() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING: - return changed_linked_account_field_mapping() - if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING: - return deleted_integration_wide_field_mapping() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING: - return deleted_linked_account_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return created_linked_account_common_model_override() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return changed_linked_account_common_model_override() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return deleted_linked_account_common_model_override() - if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC: - return forced_linked_account_resync() - if self is EventTypeEnum.MUTED_ISSUE: - return muted_issue() - if self is EventTypeEnum.GENERATED_MAGIC_LINK: - return generated_magic_link() - if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK: - return enabled_merge_webhook() - if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK: - return disabled_merge_webhook() - if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED: - return merge_webhook_target_changed() - if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED: - return end_user_credentials_accessed() diff --git a/src/merge/resources/crm/types/external_target_field_api.py b/src/merge/resources/crm/types/external_target_field_api.py deleted file mode 100644 index c0fea1eb..00000000 --- a/src/merge/resources/crm/types/external_target_field_api.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ExternalTargetFieldApi(UncheckedBaseModel): - name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_mapped: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/external_target_field_api_response.py b/src/merge/resources/crm/types/external_target_field_api_response.py deleted file mode 100644 index 8613e032..00000000 --- a/src/merge/resources/crm/types/external_target_field_api_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .external_target_field_api import ExternalTargetFieldApi - - -class ExternalTargetFieldApiResponse(UncheckedBaseModel): - account: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Account", default=None) - contact: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Contact", default=None) - lead: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Lead", default=None) - note: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Note", default=None) - opportunity: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="Opportunity", default=None - ) - stage: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Stage", default=None) - user: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="User", default=None) - task: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Task", default=None) - engagement: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Engagement", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_format_enum.py b/src/merge/resources/crm/types/field_format_enum.py deleted file mode 100644 index 2f6eda2f..00000000 --- a/src/merge/resources/crm/types/field_format_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FieldFormatEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FieldFormatEnum.STRING: - return string() - if self is FieldFormatEnum.NUMBER: - return number() - if self is FieldFormatEnum.DATE: - return date() - if self is FieldFormatEnum.DATETIME: - return datetime() - if self is FieldFormatEnum.BOOL: - return bool_() - if self is FieldFormatEnum.LIST: - return list_() diff --git a/src/merge/resources/crm/types/field_mapping_api_instance.py b/src/merge/resources/crm/types/field_mapping_api_instance.py deleted file mode 100644 index a5815313..00000000 --- a/src/merge/resources/crm/types/field_mapping_api_instance.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField -from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - - -class FieldMappingApiInstance(UncheckedBaseModel): - id: typing.Optional[str] = None - is_integration_wide: typing.Optional[bool] = None - target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None - remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_mapping_api_instance_remote_field.py b/src/merge/resources/crm/types/field_mapping_api_instance_remote_field.py deleted file mode 100644 index 578a2b10..00000000 --- a/src/merge/resources/crm/types/field_mapping_api_instance_remote_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, -) - - -class FieldMappingApiInstanceRemoteField(UncheckedBaseModel): - remote_key_name: typing.Optional[str] = None - schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field( - alias="schema", default=None - ) - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py b/src/merge/resources/crm/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py deleted file mode 100644 index 4171f08b..00000000 --- a/src/merge/resources/crm/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel): - method: typing.Optional[str] = None - url_path: typing.Optional[str] = None - field_traversal_path: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_mapping_api_instance_response.py b/src/merge/resources/crm/types/field_mapping_api_instance_response.py deleted file mode 100644 index 83c33ca6..00000000 --- a/src/merge/resources/crm/types/field_mapping_api_instance_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance import FieldMappingApiInstance - - -class FieldMappingApiInstanceResponse(UncheckedBaseModel): - account: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Account", default=None) - contact: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Contact", default=None) - lead: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Lead", default=None) - note: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Note", default=None) - opportunity: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="Opportunity", default=None - ) - stage: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Stage", default=None) - user: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="User", default=None) - task: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Task", default=None) - engagement: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Engagement", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_mapping_api_instance_target_field.py b/src/merge/resources/crm/types/field_mapping_api_instance_target_field.py deleted file mode 100644 index e6474cba..00000000 --- a/src/merge/resources/crm/types/field_mapping_api_instance_target_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceTargetField(UncheckedBaseModel): - name: str - description: str - is_organization_wide: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_mapping_instance_response.py b/src/merge/resources/crm/types/field_mapping_instance_response.py deleted file mode 100644 index f921e641..00000000 --- a/src/merge/resources/crm/types/field_mapping_instance_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .field_mapping_api_instance import FieldMappingApiInstance -from .warning_validation_problem import WarningValidationProblem - - -class FieldMappingInstanceResponse(UncheckedBaseModel): - model: FieldMappingApiInstance - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_permission_deserializer.py b/src/merge/resources/crm/types/field_permission_deserializer.py deleted file mode 100644 index 1d71ae04..00000000 --- a/src/merge/resources/crm/types/field_permission_deserializer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializer(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_permission_deserializer_request.py b/src/merge/resources/crm/types/field_permission_deserializer_request.py deleted file mode 100644 index a4113b46..00000000 --- a/src/merge/resources/crm/types/field_permission_deserializer_request.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializerRequest(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/field_type_enum.py b/src/merge/resources/crm/types/field_type_enum.py deleted file mode 100644 index b99c1309..00000000 --- a/src/merge/resources/crm/types/field_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FieldTypeEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FieldTypeEnum.STRING: - return string() - if self is FieldTypeEnum.NUMBER: - return number() - if self is FieldTypeEnum.DATE: - return date() - if self is FieldTypeEnum.DATETIME: - return datetime() - if self is FieldTypeEnum.BOOL: - return bool_() - if self is FieldTypeEnum.LIST: - return list_() diff --git a/src/merge/resources/crm/types/ignore_common_model_request.py b/src/merge/resources/crm/types/ignore_common_model_request.py deleted file mode 100644 index 5ecb9957..00000000 --- a/src/merge/resources/crm/types/ignore_common_model_request.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .ignore_common_model_request_reason import IgnoreCommonModelRequestReason - - -class IgnoreCommonModelRequest(UncheckedBaseModel): - reason: IgnoreCommonModelRequestReason - message: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/ignore_common_model_request_reason.py b/src/merge/resources/crm/types/ignore_common_model_request_reason.py deleted file mode 100644 index 114822b2..00000000 --- a/src/merge/resources/crm/types/ignore_common_model_request_reason.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .reason_enum import ReasonEnum - -IgnoreCommonModelRequestReason = typing.Union[ReasonEnum, str] diff --git a/src/merge/resources/crm/types/individual_common_model_scope_deserializer.py b/src/merge/resources/crm/types/individual_common_model_scope_deserializer.py deleted file mode 100644 index 4b1ef6a4..00000000 --- a/src/merge/resources/crm/types/individual_common_model_scope_deserializer.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer import FieldPermissionDeserializer -from .model_permission_deserializer import ModelPermissionDeserializer - - -class IndividualCommonModelScopeDeserializer(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None - field_permissions: typing.Optional[FieldPermissionDeserializer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/individual_common_model_scope_deserializer_request.py b/src/merge/resources/crm/types/individual_common_model_scope_deserializer_request.py deleted file mode 100644 index 1dcda203..00000000 --- a/src/merge/resources/crm/types/individual_common_model_scope_deserializer_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer_request import FieldPermissionDeserializerRequest -from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - - -class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None - field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/issue.py b/src/merge/resources/crm/types/issue.py deleted file mode 100644 index df31be95..00000000 --- a/src/merge/resources/crm/types/issue.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue_status import IssueStatus - - -class Issue(UncheckedBaseModel): - id: typing.Optional[str] = None - status: typing.Optional[IssueStatus] = pydantic.Field(default=None) - """ - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - error_description: str - end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - first_incident_time: typing.Optional[dt.datetime] = None - last_incident_time: typing.Optional[dt.datetime] = None - is_muted: typing.Optional[bool] = None - error_details: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/issue_status.py b/src/merge/resources/crm/types/issue_status.py deleted file mode 100644 index 8e4d6516..00000000 --- a/src/merge/resources/crm/types/issue_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .issue_status_enum import IssueStatusEnum - -IssueStatus = typing.Union[IssueStatusEnum, str] diff --git a/src/merge/resources/crm/types/issue_status_enum.py b/src/merge/resources/crm/types/issue_status_enum.py deleted file mode 100644 index 57eb9618..00000000 --- a/src/merge/resources/crm/types/issue_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssueStatusEnum(str, enum.Enum): - """ - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssueStatusEnum.ONGOING: - return ongoing() - if self is IssueStatusEnum.RESOLVED: - return resolved() diff --git a/src/merge/resources/crm/types/item_format_enum.py b/src/merge/resources/crm/types/item_format_enum.py deleted file mode 100644 index 6fef7236..00000000 --- a/src/merge/resources/crm/types/item_format_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemFormatEnum(str, enum.Enum): - """ - * `string` - uuid - * `number` - url - * `date` - email - * `datetime` - phone - * `bool` - currency - * `list` - decimal - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemFormatEnum.STRING: - return string() - if self is ItemFormatEnum.NUMBER: - return number() - if self is ItemFormatEnum.DATE: - return date() - if self is ItemFormatEnum.DATETIME: - return datetime() - if self is ItemFormatEnum.BOOL: - return bool_() - if self is ItemFormatEnum.LIST: - return list_() diff --git a/src/merge/resources/crm/types/item_schema.py b/src/merge/resources/crm/types/item_schema.py deleted file mode 100644 index fceec554..00000000 --- a/src/merge/resources/crm/types/item_schema.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item_format_enum import ItemFormatEnum -from .item_type_enum import ItemTypeEnum - - -class ItemSchema(UncheckedBaseModel): - item_type: typing.Optional[ItemTypeEnum] = None - item_format: typing.Optional[ItemFormatEnum] = None - item_choices: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/item_type_enum.py b/src/merge/resources/crm/types/item_type_enum.py deleted file mode 100644 index afcc4dd6..00000000 --- a/src/merge/resources/crm/types/item_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemTypeEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemTypeEnum.STRING: - return string() - if self is ItemTypeEnum.NUMBER: - return number() - if self is ItemTypeEnum.DATE: - return date() - if self is ItemTypeEnum.DATETIME: - return datetime() - if self is ItemTypeEnum.BOOL: - return bool_() - if self is ItemTypeEnum.LIST: - return list_() diff --git a/src/merge/resources/crm/types/language_enum.py b/src/merge/resources/crm/types/language_enum.py deleted file mode 100644 index 44b693f2..00000000 --- a/src/merge/resources/crm/types/language_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LanguageEnum(str, enum.Enum): - """ - * `en` - en - * `de` - de - """ - - EN = "en" - DE = "de" - - def visit(self, en: typing.Callable[[], T_Result], de: typing.Callable[[], T_Result]) -> T_Result: - if self is LanguageEnum.EN: - return en() - if self is LanguageEnum.DE: - return de() diff --git a/src/merge/resources/crm/types/last_sync_result_enum.py b/src/merge/resources/crm/types/last_sync_result_enum.py deleted file mode 100644 index ec777ee6..00000000 --- a/src/merge/resources/crm/types/last_sync_result_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LastSyncResultEnum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LastSyncResultEnum.SYNCING: - return syncing() - if self is LastSyncResultEnum.DONE: - return done() - if self is LastSyncResultEnum.FAILED: - return failed() - if self is LastSyncResultEnum.DISABLED: - return disabled() - if self is LastSyncResultEnum.PAUSED: - return paused() - if self is LastSyncResultEnum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/crm/types/lead.py b/src/merge/resources/crm/types/lead.py deleted file mode 100644 index 98d821e1..00000000 --- a/src/merge/resources/crm/types/lead.py +++ /dev/null @@ -1,118 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address import Address -from .email_address import EmailAddress -from .lead_converted_account import LeadConvertedAccount -from .lead_converted_contact import LeadConvertedContact -from .lead_owner import LeadOwner -from .phone_number import PhoneNumber -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Lead(UncheckedBaseModel): - """ - # The Lead Object - ### Description - The `Lead` object is used to represent an individual who is a potential customer. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - owner: typing.Optional[LeadOwner] = pydantic.Field(default=None) - """ - The lead's owner. - """ - - lead_source: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's source. - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's title. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's company. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's last name. - """ - - addresses: typing.Optional[typing.List[Address]] = None - email_addresses: typing.Optional[typing.List[EmailAddress]] = None - phone_numbers: typing.Optional[typing.List[PhoneNumber]] = None - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's lead was updated. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's lead was created. - """ - - converted_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the lead was converted. - """ - - converted_contact: typing.Optional[LeadConvertedContact] = pydantic.Field(default=None) - """ - The contact of the converted lead. - """ - - converted_account: typing.Optional[LeadConvertedAccount] = pydantic.Field(default=None) - """ - The account of the converted lead. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/lead_converted_account.py b/src/merge/resources/crm/types/lead_converted_account.py deleted file mode 100644 index 9fa3a0fb..00000000 --- a/src/merge/resources/crm/types/lead_converted_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -LeadConvertedAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/lead_converted_contact.py b/src/merge/resources/crm/types/lead_converted_contact.py deleted file mode 100644 index dc7f376b..00000000 --- a/src/merge/resources/crm/types/lead_converted_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -LeadConvertedContact = typing.Union[str, Contact] diff --git a/src/merge/resources/crm/types/lead_owner.py b/src/merge/resources/crm/types/lead_owner.py deleted file mode 100644 index 15b1c97f..00000000 --- a/src/merge/resources/crm/types/lead_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -LeadOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/lead_request.py b/src/merge/resources/crm/types/lead_request.py deleted file mode 100644 index f2cb290a..00000000 --- a/src/merge/resources/crm/types/lead_request.py +++ /dev/null @@ -1,86 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_request import AddressRequest -from .email_address_request import EmailAddressRequest -from .lead_request_converted_account import LeadRequestConvertedAccount -from .lead_request_converted_contact import LeadRequestConvertedContact -from .lead_request_owner import LeadRequestOwner -from .phone_number_request import PhoneNumberRequest -from .remote_field_request import RemoteFieldRequest - - -class LeadRequest(UncheckedBaseModel): - """ - # The Lead Object - ### Description - The `Lead` object is used to represent an individual who is a potential customer. - ### Usage Example - TODO - """ - - owner: typing.Optional[LeadRequestOwner] = pydantic.Field(default=None) - """ - The lead's owner. - """ - - lead_source: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's source. - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's title. - """ - - company: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's company. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The lead's last name. - """ - - addresses: typing.Optional[typing.List[AddressRequest]] = None - email_addresses: typing.Optional[typing.List[EmailAddressRequest]] = None - phone_numbers: typing.Optional[typing.List[PhoneNumberRequest]] = None - converted_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the lead was converted. - """ - - converted_contact: typing.Optional[LeadRequestConvertedContact] = pydantic.Field(default=None) - """ - The contact of the converted lead. - """ - - converted_account: typing.Optional[LeadRequestConvertedAccount] = pydantic.Field(default=None) - """ - The account of the converted lead. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/lead_request_converted_account.py b/src/merge/resources/crm/types/lead_request_converted_account.py deleted file mode 100644 index 6c66e7d6..00000000 --- a/src/merge/resources/crm/types/lead_request_converted_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -LeadRequestConvertedAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/lead_request_converted_contact.py b/src/merge/resources/crm/types/lead_request_converted_contact.py deleted file mode 100644 index 8d7e5a8d..00000000 --- a/src/merge/resources/crm/types/lead_request_converted_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -LeadRequestConvertedContact = typing.Union[str, Contact] diff --git a/src/merge/resources/crm/types/lead_request_owner.py b/src/merge/resources/crm/types/lead_request_owner.py deleted file mode 100644 index f0c6e51c..00000000 --- a/src/merge/resources/crm/types/lead_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -LeadRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/lead_response.py b/src/merge/resources/crm/types/lead_response.py deleted file mode 100644 index f859c98e..00000000 --- a/src/merge/resources/crm/types/lead_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .lead import Lead -from .warning_validation_problem import WarningValidationProblem - - -class LeadResponse(UncheckedBaseModel): - model: Lead - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/link_token.py b/src/merge/resources/crm/types/link_token.py deleted file mode 100644 index f78dedeb..00000000 --- a/src/merge/resources/crm/types/link_token.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkToken(UncheckedBaseModel): - link_token: str - integration_name: typing.Optional[str] = None - magic_link_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/linked_account_status.py b/src/merge/resources/crm/types/linked_account_status.py deleted file mode 100644 index ab2e0f09..00000000 --- a/src/merge/resources/crm/types/linked_account_status.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkedAccountStatus(UncheckedBaseModel): - linked_account_status: str - can_make_request: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/meta_response.py b/src/merge/resources/crm/types/meta_response.py deleted file mode 100644 index caa2c831..00000000 --- a/src/merge/resources/crm/types/meta_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .linked_account_status import LinkedAccountStatus - - -class MetaResponse(UncheckedBaseModel): - request_schema: typing.Dict[str, typing.Optional[typing.Any]] - remote_field_classes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - status: typing.Optional[LinkedAccountStatus] = None - has_conditional_params: bool - has_required_linked_account_params: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/method_enum.py b/src/merge/resources/crm/types/method_enum.py deleted file mode 100644 index 57bcde10..00000000 --- a/src/merge/resources/crm/types/method_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodEnum(str, enum.Enum): - """ - * `GET` - GET - * `OPTIONS` - OPTIONS - * `HEAD` - HEAD - * `POST` - POST - * `PUT` - PUT - * `PATCH` - PATCH - * `DELETE` - DELETE - """ - - GET = "GET" - OPTIONS = "OPTIONS" - HEAD = "HEAD" - POST = "POST" - PUT = "PUT" - PATCH = "PATCH" - DELETE = "DELETE" - - def visit( - self, - get: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - head: typing.Callable[[], T_Result], - post: typing.Callable[[], T_Result], - put: typing.Callable[[], T_Result], - patch: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodEnum.GET: - return get() - if self is MethodEnum.OPTIONS: - return options() - if self is MethodEnum.HEAD: - return head() - if self is MethodEnum.POST: - return post() - if self is MethodEnum.PUT: - return put() - if self is MethodEnum.PATCH: - return patch() - if self is MethodEnum.DELETE: - return delete() diff --git a/src/merge/resources/crm/types/model_operation.py b/src/merge/resources/crm/types/model_operation.py deleted file mode 100644 index c367572d..00000000 --- a/src/merge/resources/crm/types/model_operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelOperation(UncheckedBaseModel): - """ - # The ModelOperation Object - ### Description - The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - - ### Usage Example - View what operations are supported for the `Candidate` endpoint. - """ - - model_name: str - available_operations: typing.List[str] - required_post_parameters: typing.List[str] - supported_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/model_permission_deserializer.py b/src/merge/resources/crm/types/model_permission_deserializer.py deleted file mode 100644 index 6381814c..00000000 --- a/src/merge/resources/crm/types/model_permission_deserializer.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializer(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/model_permission_deserializer_request.py b/src/merge/resources/crm/types/model_permission_deserializer_request.py deleted file mode 100644 index cdc2ff4c..00000000 --- a/src/merge/resources/crm/types/model_permission_deserializer_request.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializerRequest(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/multipart_form_field_request.py b/src/merge/resources/crm/types/multipart_form_field_request.py deleted file mode 100644 index abc37692..00000000 --- a/src/merge/resources/crm/types/multipart_form_field_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - - -class MultipartFormFieldRequest(UncheckedBaseModel): - """ - # The MultipartFormField Object - ### Description - The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - - ### Usage Example - Create a `MultipartFormField` to define a multipart form entry. - """ - - name: str = pydantic.Field() - """ - The name of the form field - """ - - data: str = pydantic.Field() - """ - The data for the form field. - """ - - encoding: typing.Optional[MultipartFormFieldRequestEncoding] = pydantic.Field(default=None) - """ - The encoding of the value of `data`. Defaults to `RAW` if not defined. - - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The file name of the form field, if the field is for a file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The MIME type of the file, if the field is for a file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/multipart_form_field_request_encoding.py b/src/merge/resources/crm/types/multipart_form_field_request_encoding.py deleted file mode 100644 index c6513b6b..00000000 --- a/src/merge/resources/crm/types/multipart_form_field_request_encoding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .encoding_enum import EncodingEnum - -MultipartFormFieldRequestEncoding = typing.Union[EncodingEnum, str] diff --git a/src/merge/resources/crm/types/note.py b/src/merge/resources/crm/types/note.py deleted file mode 100644 index 06410996..00000000 --- a/src/merge/resources/crm/types/note.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .note_account import NoteAccount -from .note_contact import NoteContact -from .note_opportunity import NoteOpportunity -from .note_owner import NoteOwner -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Note(UncheckedBaseModel): - """ - # The Note Object - ### Description - The `Note` object is used to represent a note on another object. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - owner: typing.Optional[NoteOwner] = pydantic.Field(default=None) - """ - The note's owner. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The note's content. - """ - - contact: typing.Optional[NoteContact] = pydantic.Field(default=None) - """ - The note's contact. - """ - - account: typing.Optional[NoteAccount] = pydantic.Field(default=None) - """ - The note's account. - """ - - opportunity: typing.Optional[NoteOpportunity] = pydantic.Field(default=None) - """ - The note's opportunity. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's lead was updated. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's lead was created. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/note_account.py b/src/merge/resources/crm/types/note_account.py deleted file mode 100644 index 5dcfbb0f..00000000 --- a/src/merge/resources/crm/types/note_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -NoteAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/note_contact.py b/src/merge/resources/crm/types/note_contact.py deleted file mode 100644 index c1e000f6..00000000 --- a/src/merge/resources/crm/types/note_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -NoteContact = typing.Union[str, Contact] diff --git a/src/merge/resources/crm/types/note_opportunity.py b/src/merge/resources/crm/types/note_opportunity.py deleted file mode 100644 index c2c035a6..00000000 --- a/src/merge/resources/crm/types/note_opportunity.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .opportunity import Opportunity - -NoteOpportunity = typing.Union[str, Opportunity] diff --git a/src/merge/resources/crm/types/note_owner.py b/src/merge/resources/crm/types/note_owner.py deleted file mode 100644 index 27f125fd..00000000 --- a/src/merge/resources/crm/types/note_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -NoteOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/note_request.py b/src/merge/resources/crm/types/note_request.py deleted file mode 100644 index 7e9b1186..00000000 --- a/src/merge/resources/crm/types/note_request.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .note_request_account import NoteRequestAccount -from .note_request_contact import NoteRequestContact -from .note_request_opportunity import NoteRequestOpportunity -from .note_request_owner import NoteRequestOwner -from .remote_field_request import RemoteFieldRequest - - -class NoteRequest(UncheckedBaseModel): - """ - # The Note Object - ### Description - The `Note` object is used to represent a note on another object. - ### Usage Example - TODO - """ - - owner: typing.Optional[NoteRequestOwner] = pydantic.Field(default=None) - """ - The note's owner. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The note's content. - """ - - contact: typing.Optional[NoteRequestContact] = pydantic.Field(default=None) - """ - The note's contact. - """ - - account: typing.Optional[NoteRequestAccount] = pydantic.Field(default=None) - """ - The note's account. - """ - - opportunity: typing.Optional[NoteRequestOpportunity] = pydantic.Field(default=None) - """ - The note's opportunity. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/note_request_account.py b/src/merge/resources/crm/types/note_request_account.py deleted file mode 100644 index fbb7f8dd..00000000 --- a/src/merge/resources/crm/types/note_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -NoteRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/note_request_contact.py b/src/merge/resources/crm/types/note_request_contact.py deleted file mode 100644 index 3477ca0e..00000000 --- a/src/merge/resources/crm/types/note_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -NoteRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/crm/types/note_request_opportunity.py b/src/merge/resources/crm/types/note_request_opportunity.py deleted file mode 100644 index c08bebf8..00000000 --- a/src/merge/resources/crm/types/note_request_opportunity.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .opportunity import Opportunity - -NoteRequestOpportunity = typing.Union[str, Opportunity] diff --git a/src/merge/resources/crm/types/note_request_owner.py b/src/merge/resources/crm/types/note_request_owner.py deleted file mode 100644 index 558efe8f..00000000 --- a/src/merge/resources/crm/types/note_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -NoteRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/note_response.py b/src/merge/resources/crm/types/note_response.py deleted file mode 100644 index 3a77fac6..00000000 --- a/src/merge/resources/crm/types/note_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .note import Note -from .warning_validation_problem import WarningValidationProblem - - -class NoteResponse(UncheckedBaseModel): - model: Note - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/object_class_description_request.py b/src/merge/resources/crm/types/object_class_description_request.py deleted file mode 100644 index 0ac258ad..00000000 --- a/src/merge/resources/crm/types/object_class_description_request.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .origin_type_enum import OriginTypeEnum - - -class ObjectClassDescriptionRequest(UncheckedBaseModel): - id: str - origin_type: OriginTypeEnum - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/opportunity.py b/src/merge/resources/crm/types/opportunity.py deleted file mode 100644 index 681c24e0..00000000 --- a/src/merge/resources/crm/types/opportunity.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .opportunity_account import OpportunityAccount -from .opportunity_owner import OpportunityOwner -from .opportunity_stage import OpportunityStage -from .opportunity_status import OpportunityStatus -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Opportunity(UncheckedBaseModel): - """ - # The Opportunity Object - ### Description - The `Opportunity` object is used to represent a deal opportunity in a CRM system. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The opportunity's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The opportunity's description. - """ - - amount: typing.Optional[int] = pydantic.Field(default=None) - """ - The opportunity's amount. - """ - - owner: typing.Optional[OpportunityOwner] = pydantic.Field(default=None) - """ - The opportunity's owner. - """ - - account: typing.Optional[OpportunityAccount] = pydantic.Field(default=None) - """ - The account of the opportunity. - """ - - stage: typing.Optional[OpportunityStage] = pydantic.Field(default=None) - """ - The stage of the opportunity. - """ - - status: typing.Optional[OpportunityStatus] = pydantic.Field(default=None) - """ - The opportunity's status. - - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - """ - - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the opportunity's last activity occurred. - """ - - close_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the opportunity was closed. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's opportunity was created. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/opportunity_account.py b/src/merge/resources/crm/types/opportunity_account.py deleted file mode 100644 index db9ff512..00000000 --- a/src/merge/resources/crm/types/opportunity_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -OpportunityAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/opportunity_owner.py b/src/merge/resources/crm/types/opportunity_owner.py deleted file mode 100644 index 8ff3242c..00000000 --- a/src/merge/resources/crm/types/opportunity_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -OpportunityOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/opportunity_request.py b/src/merge/resources/crm/types/opportunity_request.py deleted file mode 100644 index d39733e5..00000000 --- a/src/merge/resources/crm/types/opportunity_request.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .opportunity_request_account import OpportunityRequestAccount -from .opportunity_request_owner import OpportunityRequestOwner -from .opportunity_request_stage import OpportunityRequestStage -from .opportunity_request_status import OpportunityRequestStatus -from .remote_field_request import RemoteFieldRequest - - -class OpportunityRequest(UncheckedBaseModel): - """ - # The Opportunity Object - ### Description - The `Opportunity` object is used to represent a deal opportunity in a CRM system. - ### Usage Example - TODO - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The opportunity's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The opportunity's description. - """ - - amount: typing.Optional[int] = pydantic.Field(default=None) - """ - The opportunity's amount. - """ - - owner: typing.Optional[OpportunityRequestOwner] = pydantic.Field(default=None) - """ - The opportunity's owner. - """ - - account: typing.Optional[OpportunityRequestAccount] = pydantic.Field(default=None) - """ - The account of the opportunity. - """ - - stage: typing.Optional[OpportunityRequestStage] = pydantic.Field(default=None) - """ - The stage of the opportunity. - """ - - status: typing.Optional[OpportunityRequestStatus] = pydantic.Field(default=None) - """ - The opportunity's status. - - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - """ - - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the opportunity's last activity occurred. - """ - - close_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the opportunity was closed. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/opportunity_request_account.py b/src/merge/resources/crm/types/opportunity_request_account.py deleted file mode 100644 index 4d405b9c..00000000 --- a/src/merge/resources/crm/types/opportunity_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -OpportunityRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/opportunity_request_owner.py b/src/merge/resources/crm/types/opportunity_request_owner.py deleted file mode 100644 index d97f6d73..00000000 --- a/src/merge/resources/crm/types/opportunity_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -OpportunityRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/opportunity_request_stage.py b/src/merge/resources/crm/types/opportunity_request_stage.py deleted file mode 100644 index d781d136..00000000 --- a/src/merge/resources/crm/types/opportunity_request_stage.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .stage import Stage - -OpportunityRequestStage = typing.Union[str, Stage] diff --git a/src/merge/resources/crm/types/opportunity_request_status.py b/src/merge/resources/crm/types/opportunity_request_status.py deleted file mode 100644 index 110790a6..00000000 --- a/src/merge/resources/crm/types/opportunity_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .opportunity_status_enum import OpportunityStatusEnum - -OpportunityRequestStatus = typing.Union[OpportunityStatusEnum, str] diff --git a/src/merge/resources/crm/types/opportunity_response.py b/src/merge/resources/crm/types/opportunity_response.py deleted file mode 100644 index e79f526c..00000000 --- a/src/merge/resources/crm/types/opportunity_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .opportunity import Opportunity -from .warning_validation_problem import WarningValidationProblem - - -class OpportunityResponse(UncheckedBaseModel): - model: Opportunity - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/opportunity_stage.py b/src/merge/resources/crm/types/opportunity_stage.py deleted file mode 100644 index d882ebd9..00000000 --- a/src/merge/resources/crm/types/opportunity_stage.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .stage import Stage - -OpportunityStage = typing.Union[str, Stage] diff --git a/src/merge/resources/crm/types/opportunity_status.py b/src/merge/resources/crm/types/opportunity_status.py deleted file mode 100644 index 1f98d9ea..00000000 --- a/src/merge/resources/crm/types/opportunity_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .opportunity_status_enum import OpportunityStatusEnum - -OpportunityStatus = typing.Union[OpportunityStatusEnum, str] diff --git a/src/merge/resources/crm/types/opportunity_status_enum.py b/src/merge/resources/crm/types/opportunity_status_enum.py deleted file mode 100644 index b07f8a0a..00000000 --- a/src/merge/resources/crm/types/opportunity_status_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OpportunityStatusEnum(str, enum.Enum): - """ - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - """ - - OPEN = "OPEN" - WON = "WON" - LOST = "LOST" - - def visit( - self, - open: typing.Callable[[], T_Result], - won: typing.Callable[[], T_Result], - lost: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OpportunityStatusEnum.OPEN: - return open() - if self is OpportunityStatusEnum.WON: - return won() - if self is OpportunityStatusEnum.LOST: - return lost() diff --git a/src/merge/resources/crm/types/origin_type_enum.py b/src/merge/resources/crm/types/origin_type_enum.py deleted file mode 100644 index e9ac3c11..00000000 --- a/src/merge/resources/crm/types/origin_type_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class OriginTypeEnum(str, enum.Enum): - """ - * `CUSTOM_OBJECT` - CUSTOM_OBJECT - * `COMMON_MODEL` - COMMON_MODEL - * `REMOTE_ONLY_MODEL` - REMOTE_ONLY_MODEL - """ - - CUSTOM_OBJECT = "CUSTOM_OBJECT" - COMMON_MODEL = "COMMON_MODEL" - REMOTE_ONLY_MODEL = "REMOTE_ONLY_MODEL" - - def visit( - self, - custom_object: typing.Callable[[], T_Result], - common_model: typing.Callable[[], T_Result], - remote_only_model: typing.Callable[[], T_Result], - ) -> T_Result: - if self is OriginTypeEnum.CUSTOM_OBJECT: - return custom_object() - if self is OriginTypeEnum.COMMON_MODEL: - return common_model() - if self is OriginTypeEnum.REMOTE_ONLY_MODEL: - return remote_only_model() diff --git a/src/merge/resources/crm/types/paginated_account_details_and_actions_list.py b/src/merge/resources/crm/types/paginated_account_details_and_actions_list.py deleted file mode 100644 index d2d16116..00000000 --- a/src/merge/resources/crm/types/paginated_account_details_and_actions_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions import AccountDetailsAndActions - - -class PaginatedAccountDetailsAndActionsList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountDetailsAndActions]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_account_list.py b/src/merge/resources/crm/types/paginated_account_list.py deleted file mode 100644 index 0d541b39..00000000 --- a/src/merge/resources/crm/types/paginated_account_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account import Account - - -class PaginatedAccountList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Account]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_association_list.py b/src/merge/resources/crm/types/paginated_association_list.py deleted file mode 100644 index 9cedf4aa..00000000 --- a/src/merge/resources/crm/types/paginated_association_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .association import Association - - -class PaginatedAssociationList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Association]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_association_type_list.py b/src/merge/resources/crm/types/paginated_association_type_list.py deleted file mode 100644 index 3b1fa6f8..00000000 --- a/src/merge/resources/crm/types/paginated_association_type_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .association_type import AssociationType - - -class PaginatedAssociationTypeList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AssociationType]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_audit_log_event_list.py b/src/merge/resources/crm/types/paginated_audit_log_event_list.py deleted file mode 100644 index 24139397..00000000 --- a/src/merge/resources/crm/types/paginated_audit_log_event_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event import AuditLogEvent - - -class PaginatedAuditLogEventList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AuditLogEvent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_contact_list.py b/src/merge/resources/crm/types/paginated_contact_list.py deleted file mode 100644 index 7a9d28a3..00000000 --- a/src/merge/resources/crm/types/paginated_contact_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact import Contact - - -class PaginatedContactList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Contact]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_custom_object_class_list.py b/src/merge/resources/crm/types/paginated_custom_object_class_list.py deleted file mode 100644 index df573844..00000000 --- a/src/merge/resources/crm/types/paginated_custom_object_class_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .custom_object_class import CustomObjectClass - - -class PaginatedCustomObjectClassList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[CustomObjectClass]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_custom_object_list.py b/src/merge/resources/crm/types/paginated_custom_object_list.py deleted file mode 100644 index 104c5962..00000000 --- a/src/merge/resources/crm/types/paginated_custom_object_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .custom_object import CustomObject - - -class PaginatedCustomObjectList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[CustomObject]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_engagement_list.py b/src/merge/resources/crm/types/paginated_engagement_list.py deleted file mode 100644 index e8dce57b..00000000 --- a/src/merge/resources/crm/types/paginated_engagement_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .engagement import Engagement - - -class PaginatedEngagementList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Engagement]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_engagement_type_list.py b/src/merge/resources/crm/types/paginated_engagement_type_list.py deleted file mode 100644 index de47a3d0..00000000 --- a/src/merge/resources/crm/types/paginated_engagement_type_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .engagement_type import EngagementType - - -class PaginatedEngagementTypeList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[EngagementType]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_issue_list.py b/src/merge/resources/crm/types/paginated_issue_list.py deleted file mode 100644 index 686173e5..00000000 --- a/src/merge/resources/crm/types/paginated_issue_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue import Issue - - -class PaginatedIssueList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Issue]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_lead_list.py b/src/merge/resources/crm/types/paginated_lead_list.py deleted file mode 100644 index ca4f4343..00000000 --- a/src/merge/resources/crm/types/paginated_lead_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .lead import Lead - - -class PaginatedLeadList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Lead]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_note_list.py b/src/merge/resources/crm/types/paginated_note_list.py deleted file mode 100644 index e16af204..00000000 --- a/src/merge/resources/crm/types/paginated_note_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .note import Note - - -class PaginatedNoteList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Note]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_opportunity_list.py b/src/merge/resources/crm/types/paginated_opportunity_list.py deleted file mode 100644 index b850d9c0..00000000 --- a/src/merge/resources/crm/types/paginated_opportunity_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .opportunity import Opportunity - - -class PaginatedOpportunityList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Opportunity]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_remote_field_class_list.py b/src/merge/resources/crm/types/paginated_remote_field_class_list.py deleted file mode 100644 index 9d68cf9b..00000000 --- a/src/merge/resources/crm/types/paginated_remote_field_class_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_class import RemoteFieldClass - - -class PaginatedRemoteFieldClassList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[RemoteFieldClass]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_stage_list.py b/src/merge/resources/crm/types/paginated_stage_list.py deleted file mode 100644 index adaa1c05..00000000 --- a/src/merge/resources/crm/types/paginated_stage_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .stage import Stage - - -class PaginatedStageList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Stage]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_sync_status_list.py b/src/merge/resources/crm/types/paginated_sync_status_list.py deleted file mode 100644 index cc4bd7a8..00000000 --- a/src/merge/resources/crm/types/paginated_sync_status_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .sync_status import SyncStatus - - -class PaginatedSyncStatusList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[SyncStatus]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_task_list.py b/src/merge/resources/crm/types/paginated_task_list.py deleted file mode 100644 index 85cc1eef..00000000 --- a/src/merge/resources/crm/types/paginated_task_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .task import Task - - -class PaginatedTaskList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Task]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/paginated_user_list.py b/src/merge/resources/crm/types/paginated_user_list.py deleted file mode 100644 index 809b285c..00000000 --- a/src/merge/resources/crm/types/paginated_user_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .user import User - - -class PaginatedUserList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[User]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/patched_account_request.py b/src/merge/resources/crm/types/patched_account_request.py deleted file mode 100644 index d24c8264..00000000 --- a/src/merge/resources/crm/types/patched_account_request.py +++ /dev/null @@ -1,69 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_request import AddressRequest -from .remote_field_request import RemoteFieldRequest - - -class PatchedAccountRequest(UncheckedBaseModel): - """ - # The Account Object - ### Description - The `Account` object is used to represent a company in a CRM system. - ### Usage Example - TODO - """ - - owner: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's owner. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's description. - """ - - industry: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's industry. - """ - - website: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's website. - """ - - number_of_employees: typing.Optional[int] = pydantic.Field(default=None) - """ - The account's number of employees. - """ - - addresses: typing.Optional[typing.List[AddressRequest]] = None - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The last date (either most recent or furthest in the future) of when an activity occurs in an account. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/patched_contact_request.py b/src/merge/resources/crm/types/patched_contact_request.py deleted file mode 100644 index cf2d59ff..00000000 --- a/src/merge/resources/crm/types/patched_contact_request.py +++ /dev/null @@ -1,64 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .address_request import AddressRequest -from .email_address_request import EmailAddressRequest -from .patched_contact_request_owner import PatchedContactRequestOwner -from .phone_number_request import PhoneNumberRequest -from .remote_field_request import RemoteFieldRequest - - -class PatchedContactRequest(UncheckedBaseModel): - """ - # The Contact Object - ### Description - The `Contact` object is used to represent an existing point of contact at a company in a CRM system. - ### Usage Example - TODO - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's last name. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's account. - """ - - owner: typing.Optional[PatchedContactRequestOwner] = pydantic.Field(default=None) - """ - The contact's owner. - """ - - addresses: typing.Optional[typing.List[AddressRequest]] = None - email_addresses: typing.Optional[typing.List[EmailAddressRequest]] = None - phone_numbers: typing.Optional[typing.List[PhoneNumberRequest]] = None - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the contact's last activity occurred. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/patched_contact_request_owner.py b/src/merge/resources/crm/types/patched_contact_request_owner.py deleted file mode 100644 index 00bd5551..00000000 --- a/src/merge/resources/crm/types/patched_contact_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -PatchedContactRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/patched_engagement_request.py b/src/merge/resources/crm/types/patched_engagement_request.py deleted file mode 100644 index eb35fca5..00000000 --- a/src/merge/resources/crm/types/patched_engagement_request.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .patched_engagement_request_direction import PatchedEngagementRequestDirection -from .remote_field_request import RemoteFieldRequest - - -class PatchedEngagementRequest(UncheckedBaseModel): - """ - # The Engagement Object - ### Description - The `Engagement` object is used to represent an interaction noted in a CRM system. - ### Usage Example - TODO - """ - - owner: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement's owner. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement's content. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement's subject. - """ - - direction: typing.Optional[PatchedEngagementRequestDirection] = pydantic.Field(default=None) - """ - The engagement's direction. - - * `INBOUND` - INBOUND - * `OUTBOUND` - OUTBOUND - """ - - engagement_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The engagement type of the engagement. - """ - - start_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the engagement started. - """ - - end_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the engagement ended. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The account of the engagement. - """ - - contacts: typing.Optional[typing.List[typing.Optional[str]]] = None - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/patched_engagement_request_direction.py b/src/merge/resources/crm/types/patched_engagement_request_direction.py deleted file mode 100644 index daa08d51..00000000 --- a/src/merge/resources/crm/types/patched_engagement_request_direction.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .direction_enum import DirectionEnum - -PatchedEngagementRequestDirection = typing.Union[DirectionEnum, str] diff --git a/src/merge/resources/crm/types/patched_opportunity_request.py b/src/merge/resources/crm/types/patched_opportunity_request.py deleted file mode 100644 index 624febe7..00000000 --- a/src/merge/resources/crm/types/patched_opportunity_request.py +++ /dev/null @@ -1,82 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .patched_opportunity_request_status import PatchedOpportunityRequestStatus -from .remote_field_request import RemoteFieldRequest - - -class PatchedOpportunityRequest(UncheckedBaseModel): - """ - # The Opportunity Object - ### Description - The `Opportunity` object is used to represent a deal opportunity in a CRM system. - ### Usage Example - TODO - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The opportunity's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The opportunity's description. - """ - - amount: typing.Optional[int] = pydantic.Field(default=None) - """ - The opportunity's amount. - """ - - owner: typing.Optional[str] = pydantic.Field(default=None) - """ - The opportunity's owner. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The account of the opportunity. - """ - - stage: typing.Optional[str] = pydantic.Field(default=None) - """ - The stage of the opportunity. - """ - - status: typing.Optional[PatchedOpportunityRequestStatus] = pydantic.Field(default=None) - """ - The opportunity's status. - - * `OPEN` - OPEN - * `WON` - WON - * `LOST` - LOST - """ - - last_activity_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the opportunity's last activity occurred. - """ - - close_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the opportunity was closed. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/patched_opportunity_request_status.py b/src/merge/resources/crm/types/patched_opportunity_request_status.py deleted file mode 100644 index a15565f9..00000000 --- a/src/merge/resources/crm/types/patched_opportunity_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .opportunity_status_enum import OpportunityStatusEnum - -PatchedOpportunityRequestStatus = typing.Union[OpportunityStatusEnum, str] diff --git a/src/merge/resources/crm/types/patched_task_request.py b/src/merge/resources/crm/types/patched_task_request.py deleted file mode 100644 index 098496ba..00000000 --- a/src/merge/resources/crm/types/patched_task_request.py +++ /dev/null @@ -1,76 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .patched_task_request_status import PatchedTaskRequestStatus -from .remote_field_request import RemoteFieldRequest - - -class PatchedTaskRequest(UncheckedBaseModel): - """ - # The Task Object - ### Description - The `Task` object is used to represent a task, such as a to-do item. - ### Usage Example - TODO - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's subject. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's content. - """ - - owner: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's owner. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's account. - """ - - opportunity: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's opportunity. - """ - - completed_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the task is completed. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the task is due. - """ - - status: typing.Optional[PatchedTaskRequestStatus] = pydantic.Field(default=None) - """ - The task's status. - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/patched_task_request_status.py b/src/merge/resources/crm/types/patched_task_request_status.py deleted file mode 100644 index 0432b058..00000000 --- a/src/merge/resources/crm/types/patched_task_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .task_status_enum import TaskStatusEnum - -PatchedTaskRequestStatus = typing.Union[TaskStatusEnum, str] diff --git a/src/merge/resources/crm/types/phone_number.py b/src/merge/resources/crm/types/phone_number.py deleted file mode 100644 index c5b17acc..00000000 --- a/src/merge/resources/crm/types/phone_number.py +++ /dev/null @@ -1,47 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PhoneNumber(UncheckedBaseModel): - """ - # The PhoneNumber Object - ### Description - The `PhoneNumber` object is used to represent an entity's phone number. - ### Usage Example - Fetch from the `GET Contact` endpoint and view their phone numbers. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number. - """ - - phone_number_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number's type. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/phone_number_request.py b/src/merge/resources/crm/types/phone_number_request.py deleted file mode 100644 index c70332b1..00000000 --- a/src/merge/resources/crm/types/phone_number_request.py +++ /dev/null @@ -1,39 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PhoneNumberRequest(UncheckedBaseModel): - """ - # The PhoneNumber Object - ### Description - The `PhoneNumber` object is used to represent an entity's phone number. - ### Usage Example - Fetch from the `GET Contact` endpoint and view their phone numbers. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number. - """ - - phone_number_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The phone number's type. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/reason_enum.py b/src/merge/resources/crm/types/reason_enum.py deleted file mode 100644 index ea6ba5b6..00000000 --- a/src/merge/resources/crm/types/reason_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ReasonEnum(str, enum.Enum): - """ - * `GENERAL_CUSTOMER_REQUEST` - GENERAL_CUSTOMER_REQUEST - * `GDPR` - GDPR - * `OTHER` - OTHER - """ - - GENERAL_CUSTOMER_REQUEST = "GENERAL_CUSTOMER_REQUEST" - GDPR = "GDPR" - OTHER = "OTHER" - - def visit( - self, - general_customer_request: typing.Callable[[], T_Result], - gdpr: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ReasonEnum.GENERAL_CUSTOMER_REQUEST: - return general_customer_request() - if self is ReasonEnum.GDPR: - return gdpr() - if self is ReasonEnum.OTHER: - return other() diff --git a/src/merge/resources/crm/types/remote_data.py b/src/merge/resources/crm/types/remote_data.py deleted file mode 100644 index f34bec80..00000000 --- a/src/merge/resources/crm/types/remote_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteData(UncheckedBaseModel): - """ - # The RemoteData Object - ### Description - The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - - ### Usage Example - TODO - """ - - path: str = pydantic.Field() - """ - The third-party API path that is being called. - """ - - data: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The data returned from the third-party for this object in its original, unnormalized format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_endpoint_info.py b/src/merge/resources/crm/types/remote_endpoint_info.py deleted file mode 100644 index 07ceff6a..00000000 --- a/src/merge/resources/crm/types/remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteEndpointInfo(UncheckedBaseModel): - method: str - url_path: str - field_traversal_path: typing.List[typing.Optional[typing.Any]] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field.py b/src/merge/resources/crm/types/remote_field.py deleted file mode 100644 index 1a9272f0..00000000 --- a/src/merge/resources/crm/types/remote_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_remote_field_class import RemoteFieldRemoteFieldClass - - -class RemoteField(UncheckedBaseModel): - remote_field_class: RemoteFieldRemoteFieldClass - value: typing.Optional[typing.Optional[typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_api.py b/src/merge/resources/crm/types/remote_field_api.py deleted file mode 100644 index 4c66a23b..00000000 --- a/src/merge/resources/crm/types/remote_field_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .advanced_metadata import AdvancedMetadata -from .remote_endpoint_info import RemoteEndpointInfo -from .remote_field_api_coverage import RemoteFieldApiCoverage - - -class RemoteFieldApi(UncheckedBaseModel): - schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema") - remote_key_name: str - remote_endpoint_info: RemoteEndpointInfo - example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - advanced_metadata: typing.Optional[AdvancedMetadata] = None - coverage: typing.Optional[RemoteFieldApiCoverage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_api_coverage.py b/src/merge/resources/crm/types/remote_field_api_coverage.py deleted file mode 100644 index adcd9be9..00000000 --- a/src/merge/resources/crm/types/remote_field_api_coverage.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RemoteFieldApiCoverage = typing.Union[int, float] diff --git a/src/merge/resources/crm/types/remote_field_api_response.py b/src/merge/resources/crm/types/remote_field_api_response.py deleted file mode 100644 index 070cb10e..00000000 --- a/src/merge/resources/crm/types/remote_field_api_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_api import RemoteFieldApi - - -class RemoteFieldApiResponse(UncheckedBaseModel): - account: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Account", default=None) - contact: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Contact", default=None) - lead: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Lead", default=None) - note: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Note", default=None) - opportunity: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Opportunity", default=None) - stage: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Stage", default=None) - user: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="User", default=None) - task: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Task", default=None) - engagement: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Engagement", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_class.py b/src/merge/resources/crm/types/remote_field_class.py deleted file mode 100644 index 76189afe..00000000 --- a/src/merge/resources/crm/types/remote_field_class.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item_schema import ItemSchema -from .remote_field_class_field_choices_item import RemoteFieldClassFieldChoicesItem -from .remote_field_class_field_format import RemoteFieldClassFieldFormat -from .remote_field_class_field_type import RemoteFieldClassFieldType - - -class RemoteFieldClass(UncheckedBaseModel): - id: typing.Optional[str] = None - display_name: typing.Optional[str] = None - remote_key_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_custom: typing.Optional[bool] = None - is_common_model_field: typing.Optional[bool] = None - is_required: typing.Optional[bool] = None - field_type: typing.Optional[RemoteFieldClassFieldType] = None - field_format: typing.Optional[RemoteFieldClassFieldFormat] = None - field_choices: typing.Optional[typing.List[RemoteFieldClassFieldChoicesItem]] = None - item_schema: typing.Optional[ItemSchema] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_class_field_choices_item.py b/src/merge/resources/crm/types/remote_field_class_field_choices_item.py deleted file mode 100644 index 9003f782..00000000 --- a/src/merge/resources/crm/types/remote_field_class_field_choices_item.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteFieldClassFieldChoicesItem(UncheckedBaseModel): - value: typing.Optional[typing.Optional[typing.Any]] = None - display_name: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_class_field_format.py b/src/merge/resources/crm/types/remote_field_class_field_format.py deleted file mode 100644 index 13634337..00000000 --- a/src/merge/resources/crm/types/remote_field_class_field_format.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .field_format_enum import FieldFormatEnum - -RemoteFieldClassFieldFormat = typing.Union[FieldFormatEnum, str] diff --git a/src/merge/resources/crm/types/remote_field_class_field_type.py b/src/merge/resources/crm/types/remote_field_class_field_type.py deleted file mode 100644 index 48735d56..00000000 --- a/src/merge/resources/crm/types/remote_field_class_field_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .field_type_enum import FieldTypeEnum - -RemoteFieldClassFieldType = typing.Union[FieldTypeEnum, str] diff --git a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class.py b/src/merge/resources/crm/types/remote_field_class_for_custom_object_class.py deleted file mode 100644 index 54450b18..00000000 --- a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_class_for_custom_object_class_field_choices_item import ( - RemoteFieldClassForCustomObjectClassFieldChoicesItem, -) -from .remote_field_class_for_custom_object_class_field_format import RemoteFieldClassForCustomObjectClassFieldFormat -from .remote_field_class_for_custom_object_class_field_type import RemoteFieldClassForCustomObjectClassFieldType -from .remote_field_class_for_custom_object_class_item_schema import RemoteFieldClassForCustomObjectClassItemSchema - - -class RemoteFieldClassForCustomObjectClass(UncheckedBaseModel): - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - display_name: typing.Optional[str] = None - remote_key_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - field_type: typing.Optional[RemoteFieldClassForCustomObjectClassFieldType] = None - field_format: typing.Optional[RemoteFieldClassForCustomObjectClassFieldFormat] = None - field_choices: typing.Optional[typing.List[RemoteFieldClassForCustomObjectClassFieldChoicesItem]] = None - item_schema: typing.Optional[RemoteFieldClassForCustomObjectClassItemSchema] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_choices_item.py b/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_choices_item.py deleted file mode 100644 index 930a4866..00000000 --- a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_choices_item.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteFieldClassForCustomObjectClassFieldChoicesItem(UncheckedBaseModel): - value: typing.Optional[typing.Optional[typing.Any]] = None - display_name: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_format.py b/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_format.py deleted file mode 100644 index 1393666d..00000000 --- a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_format.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .field_format_enum import FieldFormatEnum - -RemoteFieldClassForCustomObjectClassFieldFormat = typing.Union[FieldFormatEnum, str] diff --git a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_type.py b/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_type.py deleted file mode 100644 index dde99f51..00000000 --- a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_field_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .field_type_enum import FieldTypeEnum - -RemoteFieldClassForCustomObjectClassFieldType = typing.Union[FieldTypeEnum, str] diff --git a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_item_schema.py b/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_item_schema.py deleted file mode 100644 index 3b8a79fd..00000000 --- a/src/merge/resources/crm/types/remote_field_class_for_custom_object_class_item_schema.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteFieldClassForCustomObjectClassItemSchema(UncheckedBaseModel): - item_type: typing.Optional[str] = None - item_format: typing.Optional[str] = None - item_choices: typing.Optional[typing.List[typing.Optional[str]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_remote_field_class.py b/src/merge/resources/crm/types/remote_field_remote_field_class.py deleted file mode 100644 index b7ab0ef6..00000000 --- a/src/merge/resources/crm/types/remote_field_remote_field_class.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_field_class import RemoteFieldClass - -RemoteFieldRemoteFieldClass = typing.Union[str, RemoteFieldClass] diff --git a/src/merge/resources/crm/types/remote_field_request.py b/src/merge/resources/crm/types/remote_field_request.py deleted file mode 100644 index 69bc39da..00000000 --- a/src/merge/resources/crm/types/remote_field_request.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_request_remote_field_class import RemoteFieldRequestRemoteFieldClass - - -class RemoteFieldRequest(UncheckedBaseModel): - remote_field_class: RemoteFieldRequestRemoteFieldClass - value: typing.Optional[typing.Optional[typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_field_request_remote_field_class.py b/src/merge/resources/crm/types/remote_field_request_remote_field_class.py deleted file mode 100644 index 08797e5e..00000000 --- a/src/merge/resources/crm/types/remote_field_request_remote_field_class.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_field_class import RemoteFieldClass - -RemoteFieldRequestRemoteFieldClass = typing.Union[str, RemoteFieldClass] diff --git a/src/merge/resources/crm/types/remote_key.py b/src/merge/resources/crm/types/remote_key.py deleted file mode 100644 index e5d9758c..00000000 --- a/src/merge/resources/crm/types/remote_key.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteKey(UncheckedBaseModel): - """ - # The RemoteKey Object - ### Description - The `RemoteKey` object is used to represent a request for a new remote key. - - ### Usage Example - Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - """ - - name: str - key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/remote_response.py b/src/merge/resources/crm/types/remote_response.py deleted file mode 100644 index af181fc0..00000000 --- a/src/merge/resources/crm/types/remote_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .response_type_enum import ResponseTypeEnum - - -class RemoteResponse(UncheckedBaseModel): - """ - # The RemoteResponse Object - ### Description - The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - - ### Usage Example - View the `RemoteResponse` returned from your `DataPassthrough`. - """ - - method: str - path: str - status: int - response: typing.Optional[typing.Any] = None - response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[ResponseTypeEnum] = None - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/request_format_enum.py b/src/merge/resources/crm/types/request_format_enum.py deleted file mode 100644 index 21c272f2..00000000 --- a/src/merge/resources/crm/types/request_format_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestFormatEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `XML` - XML - * `MULTIPART` - MULTIPART - """ - - JSON = "JSON" - XML = "XML" - MULTIPART = "MULTIPART" - - def visit( - self, - json: typing.Callable[[], T_Result], - xml: typing.Callable[[], T_Result], - multipart: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestFormatEnum.JSON: - return json() - if self is RequestFormatEnum.XML: - return xml() - if self is RequestFormatEnum.MULTIPART: - return multipart() diff --git a/src/merge/resources/crm/types/response_type_enum.py b/src/merge/resources/crm/types/response_type_enum.py deleted file mode 100644 index ef241302..00000000 --- a/src/merge/resources/crm/types/response_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ResponseTypeEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `BASE64_GZIP` - BASE64_GZIP - """ - - JSON = "JSON" - BASE_64_GZIP = "BASE64_GZIP" - - def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result: - if self is ResponseTypeEnum.JSON: - return json() - if self is ResponseTypeEnum.BASE_64_GZIP: - return base_64_gzip() diff --git a/src/merge/resources/crm/types/role_enum.py b/src/merge/resources/crm/types/role_enum.py deleted file mode 100644 index a6cfcc6f..00000000 --- a/src/merge/resources/crm/types/role_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RoleEnum(str, enum.Enum): - """ - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ADMIN = "ADMIN" - DEVELOPER = "DEVELOPER" - MEMBER = "MEMBER" - API = "API" - SYSTEM = "SYSTEM" - MERGE_TEAM = "MERGE_TEAM" - - def visit( - self, - admin: typing.Callable[[], T_Result], - developer: typing.Callable[[], T_Result], - member: typing.Callable[[], T_Result], - api: typing.Callable[[], T_Result], - system: typing.Callable[[], T_Result], - merge_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RoleEnum.ADMIN: - return admin() - if self is RoleEnum.DEVELOPER: - return developer() - if self is RoleEnum.MEMBER: - return member() - if self is RoleEnum.API: - return api() - if self is RoleEnum.SYSTEM: - return system() - if self is RoleEnum.MERGE_TEAM: - return merge_team() diff --git a/src/merge/resources/crm/types/selective_sync_configurations_usage_enum.py b/src/merge/resources/crm/types/selective_sync_configurations_usage_enum.py deleted file mode 100644 index 9ff43813..00000000 --- a/src/merge/resources/crm/types/selective_sync_configurations_usage_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum): - """ - * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * `IN_LAST_SYNC` - IN_LAST_SYNC - """ - - IN_NEXT_SYNC = "IN_NEXT_SYNC" - IN_LAST_SYNC = "IN_LAST_SYNC" - - def visit( - self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result] - ) -> T_Result: - if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC: - return in_next_sync() - if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC: - return in_last_sync() diff --git a/src/merge/resources/crm/types/stage.py b/src/merge/resources/crm/types/stage.py deleted file mode 100644 index 8e16e6df..00000000 --- a/src/merge/resources/crm/types/stage.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class Stage(UncheckedBaseModel): - """ - # The Stage Object - ### Description - The `Stage` object is used to represent the stage of an opportunity. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The stage's name. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/status_fd_5_enum.py b/src/merge/resources/crm/types/status_fd_5_enum.py deleted file mode 100644 index d753f77c..00000000 --- a/src/merge/resources/crm/types/status_fd_5_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class StatusFd5Enum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is StatusFd5Enum.SYNCING: - return syncing() - if self is StatusFd5Enum.DONE: - return done() - if self is StatusFd5Enum.FAILED: - return failed() - if self is StatusFd5Enum.DISABLED: - return disabled() - if self is StatusFd5Enum.PAUSED: - return paused() - if self is StatusFd5Enum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/crm/types/sync_status.py b/src/merge/resources/crm/types/sync_status.py deleted file mode 100644 index 07ab1dc2..00000000 --- a/src/merge/resources/crm/types/sync_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .sync_status_last_sync_result import SyncStatusLastSyncResult -from .sync_status_status import SyncStatusStatus - - -class SyncStatus(UncheckedBaseModel): - """ - # The SyncStatus Object - ### Description - The `SyncStatus` object is used to represent the syncing state of an account - - ### Usage Example - View the `SyncStatus` for an account to see how recently its models were synced. - """ - - model_name: str - model_id: str - last_sync_start: typing.Optional[dt.datetime] = None - next_sync_start: typing.Optional[dt.datetime] = None - last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None - last_sync_finished: typing.Optional[dt.datetime] = None - status: SyncStatusStatus - is_initial_sync: bool - selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/sync_status_last_sync_result.py b/src/merge/resources/crm/types/sync_status_last_sync_result.py deleted file mode 100644 index 980e7d94..00000000 --- a/src/merge/resources/crm/types/sync_status_last_sync_result.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .last_sync_result_enum import LastSyncResultEnum - -SyncStatusLastSyncResult = typing.Union[LastSyncResultEnum, str] diff --git a/src/merge/resources/crm/types/sync_status_status.py b/src/merge/resources/crm/types/sync_status_status.py deleted file mode 100644 index 78e4cc47..00000000 --- a/src/merge/resources/crm/types/sync_status_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_fd_5_enum import StatusFd5Enum - -SyncStatusStatus = typing.Union[StatusFd5Enum, str] diff --git a/src/merge/resources/crm/types/task.py b/src/merge/resources/crm/types/task.py deleted file mode 100644 index 088d32bf..00000000 --- a/src/merge/resources/crm/types/task.py +++ /dev/null @@ -1,101 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .remote_field import RemoteField -from .task_account import TaskAccount -from .task_opportunity import TaskOpportunity -from .task_owner import TaskOwner -from .task_status import TaskStatus - - -class Task(UncheckedBaseModel): - """ - # The Task Object - ### Description - The `Task` object is used to represent a task, such as a to-do item. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's subject. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's content. - """ - - owner: typing.Optional[TaskOwner] = pydantic.Field(default=None) - """ - The task's owner. - """ - - account: typing.Optional[TaskAccount] = pydantic.Field(default=None) - """ - The task's account. - """ - - opportunity: typing.Optional[TaskOpportunity] = pydantic.Field(default=None) - """ - The task's opportunity. - """ - - completed_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the task is completed. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the task is due. - """ - - status: typing.Optional[TaskStatus] = pydantic.Field(default=None) - """ - The task's status. - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/task_account.py b/src/merge/resources/crm/types/task_account.py deleted file mode 100644 index a3bf248f..00000000 --- a/src/merge/resources/crm/types/task_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -TaskAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/task_opportunity.py b/src/merge/resources/crm/types/task_opportunity.py deleted file mode 100644 index b8cd81df..00000000 --- a/src/merge/resources/crm/types/task_opportunity.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .opportunity import Opportunity - -TaskOpportunity = typing.Union[str, Opportunity] diff --git a/src/merge/resources/crm/types/task_owner.py b/src/merge/resources/crm/types/task_owner.py deleted file mode 100644 index b7a0711f..00000000 --- a/src/merge/resources/crm/types/task_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -TaskOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/task_request.py b/src/merge/resources/crm/types/task_request.py deleted file mode 100644 index 15ec61fd..00000000 --- a/src/merge/resources/crm/types/task_request.py +++ /dev/null @@ -1,79 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_request import RemoteFieldRequest -from .task_request_account import TaskRequestAccount -from .task_request_opportunity import TaskRequestOpportunity -from .task_request_owner import TaskRequestOwner -from .task_request_status import TaskRequestStatus - - -class TaskRequest(UncheckedBaseModel): - """ - # The Task Object - ### Description - The `Task` object is used to represent a task, such as a to-do item. - ### Usage Example - TODO - """ - - subject: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's subject. - """ - - content: typing.Optional[str] = pydantic.Field(default=None) - """ - The task's content. - """ - - owner: typing.Optional[TaskRequestOwner] = pydantic.Field(default=None) - """ - The task's owner. - """ - - account: typing.Optional[TaskRequestAccount] = pydantic.Field(default=None) - """ - The task's account. - """ - - opportunity: typing.Optional[TaskRequestOpportunity] = pydantic.Field(default=None) - """ - The task's opportunity. - """ - - completed_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the task is completed. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the task is due. - """ - - status: typing.Optional[TaskRequestStatus] = pydantic.Field(default=None) - """ - The task's status. - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/task_request_account.py b/src/merge/resources/crm/types/task_request_account.py deleted file mode 100644 index cac39842..00000000 --- a/src/merge/resources/crm/types/task_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -TaskRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/crm/types/task_request_opportunity.py b/src/merge/resources/crm/types/task_request_opportunity.py deleted file mode 100644 index ee239cba..00000000 --- a/src/merge/resources/crm/types/task_request_opportunity.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .opportunity import Opportunity - -TaskRequestOpportunity = typing.Union[str, Opportunity] diff --git a/src/merge/resources/crm/types/task_request_owner.py b/src/merge/resources/crm/types/task_request_owner.py deleted file mode 100644 index e0344b13..00000000 --- a/src/merge/resources/crm/types/task_request_owner.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -TaskRequestOwner = typing.Union[str, User] diff --git a/src/merge/resources/crm/types/task_request_status.py b/src/merge/resources/crm/types/task_request_status.py deleted file mode 100644 index f309c6a8..00000000 --- a/src/merge/resources/crm/types/task_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .task_status_enum import TaskStatusEnum - -TaskRequestStatus = typing.Union[TaskStatusEnum, str] diff --git a/src/merge/resources/crm/types/task_response.py b/src/merge/resources/crm/types/task_response.py deleted file mode 100644 index e979314e..00000000 --- a/src/merge/resources/crm/types/task_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .task import Task -from .warning_validation_problem import WarningValidationProblem - - -class TaskResponse(UncheckedBaseModel): - model: Task - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/task_status.py b/src/merge/resources/crm/types/task_status.py deleted file mode 100644 index 38029669..00000000 --- a/src/merge/resources/crm/types/task_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .task_status_enum import TaskStatusEnum - -TaskStatus = typing.Union[TaskStatusEnum, str] diff --git a/src/merge/resources/crm/types/task_status_enum.py b/src/merge/resources/crm/types/task_status_enum.py deleted file mode 100644 index aec134f1..00000000 --- a/src/merge/resources/crm/types/task_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TaskStatusEnum(str, enum.Enum): - """ - * `OPEN` - OPEN - * `CLOSED` - CLOSED - """ - - OPEN = "OPEN" - CLOSED = "CLOSED" - - def visit(self, open: typing.Callable[[], T_Result], closed: typing.Callable[[], T_Result]) -> T_Result: - if self is TaskStatusEnum.OPEN: - return open() - if self is TaskStatusEnum.CLOSED: - return closed() diff --git a/src/merge/resources/crm/types/user.py b/src/merge/resources/crm/types/user.py deleted file mode 100644 index cc585c10..00000000 --- a/src/merge/resources/crm/types/user.py +++ /dev/null @@ -1,69 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .remote_field import RemoteField - - -class User(UncheckedBaseModel): - """ - # The User Object - ### Description - The `User` object is used to represent a user with a login to the CRM system. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's name. - """ - - email: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's email address. - """ - - is_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the user is active. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/validation_problem_source.py b/src/merge/resources/crm/types/validation_problem_source.py deleted file mode 100644 index fbebe626..00000000 --- a/src/merge/resources/crm/types/validation_problem_source.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ValidationProblemSource(UncheckedBaseModel): - pointer: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/warning_validation_problem.py b/src/merge/resources/crm/types/warning_validation_problem.py deleted file mode 100644 index 4785e836..00000000 --- a/src/merge/resources/crm/types/warning_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class WarningValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/crm/types/webhook_receiver.py b/src/merge/resources/crm/types/webhook_receiver.py deleted file mode 100644 index fb49c044..00000000 --- a/src/merge/resources/crm/types/webhook_receiver.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class WebhookReceiver(UncheckedBaseModel): - event: str - is_active: bool - key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/filestorage/__init__.py b/src/merge/resources/filestorage/__init__.py index 5f6a52bb..fbed13e7 100644 --- a/src/merge/resources/filestorage/__init__.py +++ b/src/merge/resources/filestorage/__init__.py @@ -9,8 +9,11 @@ from .types import ( AccountDetails, AccountDetailsAndActions, + AccountDetailsAndActionsCategory, AccountDetailsAndActionsIntegration, + AccountDetailsAndActionsStatus, AccountDetailsAndActionsStatusEnum, + AccountDetailsCategory, AccountIntegration, AccountToken, AdvancedMetadata, @@ -102,6 +105,7 @@ PermissionRolesItem, PermissionType, PermissionUser, + RegenerateAccountToken, RemoteData, RemoteEndpointInfo, RemoteFieldApi, @@ -109,6 +113,7 @@ RemoteFieldApiResponse, RemoteKey, RemoteResponse, + RemoteResponseResponseType, RequestFormatEnum, ResponseTypeEnum, RoleEnum, @@ -117,6 +122,7 @@ StatusFd5Enum, SyncStatus, SyncStatusLastSyncResult, + SyncStatusStatus, TypeEnum, User, ValidationProblemSource, @@ -125,12 +131,15 @@ ) from .resources import ( AsyncPassthroughRetrieveResponse, + EndUserDetailsRequestLanguage, FilesDownloadRequestMetaListRequestOrderBy, - FilesListRequestExpand, + FilesListRequestExpandItem, FilesListRequestOrderBy, - FilesRetrieveRequestExpand, - FoldersListRequestExpand, - FoldersRetrieveRequestExpand, + FilesRetrieveRequestExpandItem, + FoldersListRequestExpandItem, + FoldersRetrieveRequestExpandItem, + GroupsListRequestExpandItem, + GroupsRetrieveRequestExpandItem, IssuesListRequestStatus, LinkedAccountsListRequestCategory, account_details, @@ -159,8 +168,11 @@ _dynamic_imports: typing.Dict[str, str] = { "AccountDetails": ".types", "AccountDetailsAndActions": ".types", + "AccountDetailsAndActionsCategory": ".types", "AccountDetailsAndActionsIntegration": ".types", + "AccountDetailsAndActionsStatus": ".types", "AccountDetailsAndActionsStatusEnum": ".types", + "AccountDetailsCategory": ".types", "AccountIntegration": ".types", "AccountToken": ".types", "AdvancedMetadata": ".types", @@ -181,6 +193,7 @@ "Drive": ".types", "EnabledActionsEnum": ".types", "EncodingEnum": ".types", + "EndUserDetailsRequestLanguage": ".resources", "ErrorValidationProblem": ".types", "EventTypeEnum": ".types", "ExternalTargetFieldApi": ".types", @@ -206,9 +219,9 @@ "FileStorageFileResponse": ".types", "FileStorageFolderResponse": ".types", "FilesDownloadRequestMetaListRequestOrderBy": ".resources", - "FilesListRequestExpand": ".resources", + "FilesListRequestExpandItem": ".resources", "FilesListRequestOrderBy": ".resources", - "FilesRetrieveRequestExpand": ".resources", + "FilesRetrieveRequestExpandItem": ".resources", "Folder": ".types", "FolderDrive": ".types", "FolderParentFolder": ".types", @@ -219,10 +232,12 @@ "FolderRequestParentFolder": ".types", "FolderRequestPermissions": ".types", "FolderRequestPermissionsItem": ".types", - "FoldersListRequestExpand": ".resources", - "FoldersRetrieveRequestExpand": ".resources", + "FoldersListRequestExpandItem": ".resources", + "FoldersRetrieveRequestExpandItem": ".resources", "Group": ".types", "GroupChildGroupsItem": ".types", + "GroupsListRequestExpandItem": ".resources", + "GroupsRetrieveRequestExpandItem": ".resources", "IndividualCommonModelScopeDeserializer": ".types", "IndividualCommonModelScopeDeserializerRequest": ".types", "Issue": ".types", @@ -261,6 +276,7 @@ "PermissionRolesItem": ".types", "PermissionType": ".types", "PermissionUser": ".types", + "RegenerateAccountToken": ".types", "RemoteData": ".types", "RemoteEndpointInfo": ".types", "RemoteFieldApi": ".types", @@ -268,6 +284,7 @@ "RemoteFieldApiResponse": ".types", "RemoteKey": ".types", "RemoteResponse": ".types", + "RemoteResponseResponseType": ".types", "RequestFormatEnum": ".types", "ResponseTypeEnum": ".types", "RoleEnum": ".types", @@ -276,6 +293,7 @@ "StatusFd5Enum": ".types", "SyncStatus": ".types", "SyncStatusLastSyncResult": ".types", + "SyncStatusStatus": ".types", "TypeEnum": ".types", "User": ".types", "ValidationProblemSource": ".types", @@ -328,8 +346,11 @@ def __dir__(): __all__ = [ "AccountDetails", "AccountDetailsAndActions", + "AccountDetailsAndActionsCategory", "AccountDetailsAndActionsIntegration", + "AccountDetailsAndActionsStatus", "AccountDetailsAndActionsStatusEnum", + "AccountDetailsCategory", "AccountIntegration", "AccountToken", "AdvancedMetadata", @@ -350,6 +371,7 @@ def __dir__(): "Drive", "EnabledActionsEnum", "EncodingEnum", + "EndUserDetailsRequestLanguage", "ErrorValidationProblem", "EventTypeEnum", "ExternalTargetFieldApi", @@ -375,9 +397,9 @@ def __dir__(): "FileStorageFileResponse", "FileStorageFolderResponse", "FilesDownloadRequestMetaListRequestOrderBy", - "FilesListRequestExpand", + "FilesListRequestExpandItem", "FilesListRequestOrderBy", - "FilesRetrieveRequestExpand", + "FilesRetrieveRequestExpandItem", "Folder", "FolderDrive", "FolderParentFolder", @@ -388,10 +410,12 @@ def __dir__(): "FolderRequestParentFolder", "FolderRequestPermissions", "FolderRequestPermissionsItem", - "FoldersListRequestExpand", - "FoldersRetrieveRequestExpand", + "FoldersListRequestExpandItem", + "FoldersRetrieveRequestExpandItem", "Group", "GroupChildGroupsItem", + "GroupsListRequestExpandItem", + "GroupsRetrieveRequestExpandItem", "IndividualCommonModelScopeDeserializer", "IndividualCommonModelScopeDeserializerRequest", "Issue", @@ -430,6 +454,7 @@ def __dir__(): "PermissionRolesItem", "PermissionType", "PermissionUser", + "RegenerateAccountToken", "RemoteData", "RemoteEndpointInfo", "RemoteFieldApi", @@ -437,6 +462,7 @@ def __dir__(): "RemoteFieldApiResponse", "RemoteKey", "RemoteResponse", + "RemoteResponseResponseType", "RequestFormatEnum", "ResponseTypeEnum", "RoleEnum", @@ -445,6 +471,7 @@ def __dir__(): "StatusFd5Enum", "SyncStatus", "SyncStatusLastSyncResult", + "SyncStatusStatus", "TypeEnum", "User", "ValidationProblemSource", diff --git a/src/merge/resources/filestorage/resources/__init__.py b/src/merge/resources/filestorage/resources/__init__.py index de5b48ff..44fe3243 100644 --- a/src/merge/resources/filestorage/resources/__init__.py +++ b/src/merge/resources/filestorage/resources/__init__.py @@ -33,21 +33,26 @@ from .async_passthrough import AsyncPassthroughRetrieveResponse from .files import ( FilesDownloadRequestMetaListRequestOrderBy, - FilesListRequestExpand, + FilesListRequestExpandItem, FilesListRequestOrderBy, - FilesRetrieveRequestExpand, + FilesRetrieveRequestExpandItem, ) - from .folders import FoldersListRequestExpand, FoldersRetrieveRequestExpand + from .folders import FoldersListRequestExpandItem, FoldersRetrieveRequestExpandItem + from .groups import GroupsListRequestExpandItem, GroupsRetrieveRequestExpandItem from .issues import IssuesListRequestStatus + from .link_token import EndUserDetailsRequestLanguage from .linked_accounts import LinkedAccountsListRequestCategory _dynamic_imports: typing.Dict[str, str] = { "AsyncPassthroughRetrieveResponse": ".async_passthrough", + "EndUserDetailsRequestLanguage": ".link_token", "FilesDownloadRequestMetaListRequestOrderBy": ".files", - "FilesListRequestExpand": ".files", + "FilesListRequestExpandItem": ".files", "FilesListRequestOrderBy": ".files", - "FilesRetrieveRequestExpand": ".files", - "FoldersListRequestExpand": ".folders", - "FoldersRetrieveRequestExpand": ".folders", + "FilesRetrieveRequestExpandItem": ".files", + "FoldersListRequestExpandItem": ".folders", + "FoldersRetrieveRequestExpandItem": ".folders", + "GroupsListRequestExpandItem": ".groups", + "GroupsRetrieveRequestExpandItem": ".groups", "IssuesListRequestStatus": ".issues", "LinkedAccountsListRequestCategory": ".linked_accounts", "account_details": ".", @@ -96,12 +101,15 @@ def __dir__(): __all__ = [ "AsyncPassthroughRetrieveResponse", + "EndUserDetailsRequestLanguage", "FilesDownloadRequestMetaListRequestOrderBy", - "FilesListRequestExpand", + "FilesListRequestExpandItem", "FilesListRequestOrderBy", - "FilesRetrieveRequestExpand", - "FoldersListRequestExpand", - "FoldersRetrieveRequestExpand", + "FilesRetrieveRequestExpandItem", + "FoldersListRequestExpandItem", + "FoldersRetrieveRequestExpandItem", + "GroupsListRequestExpandItem", + "GroupsRetrieveRequestExpandItem", "IssuesListRequestStatus", "LinkedAccountsListRequestCategory", "account_details", diff --git a/src/merge/resources/filestorage/resources/account_token/client.py b/src/merge/resources/filestorage/resources/account_token/client.py index 7ca535bd..62c6c1fc 100644 --- a/src/merge/resources/filestorage/resources/account_token/client.py +++ b/src/merge/resources/filestorage/resources/account_token/client.py @@ -5,6 +5,7 @@ from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from .....core.request_options import RequestOptions from ...types.account_token import AccountToken +from ...types.regenerate_account_token import RegenerateAccountToken from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient @@ -54,6 +55,33 @@ def retrieve(self, public_token: str, *, request_options: typing.Optional[Reques _response = self._raw_client.retrieve(public_token, request_options=request_options) return _response.data + def regenerate_create(self, *, request_options: typing.Optional[RequestOptions] = None) -> RegenerateAccountToken: + """ + Exchange Linked Account account tokens. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + RegenerateAccountToken + + + Examples + -------- + from merge import Merge + + client = Merge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", + ) + client.filestorage.account_token.regenerate_create() + """ + _response = self._raw_client.regenerate_create(request_options=request_options) + return _response.data + class AsyncAccountTokenClient: def __init__(self, *, client_wrapper: AsyncClientWrapper): @@ -110,3 +138,40 @@ async def main() -> None: """ _response = await self._raw_client.retrieve(public_token, request_options=request_options) return _response.data + + async def regenerate_create( + self, *, request_options: typing.Optional[RequestOptions] = None + ) -> RegenerateAccountToken: + """ + Exchange Linked Account account tokens. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + RegenerateAccountToken + + + Examples + -------- + import asyncio + + from merge import AsyncMerge + + client = AsyncMerge( + account_token="YOUR_ACCOUNT_TOKEN", + api_key="YOUR_API_KEY", + ) + + + async def main() -> None: + await client.filestorage.account_token.regenerate_create() + + + asyncio.run(main()) + """ + _response = await self._raw_client.regenerate_create(request_options=request_options) + return _response.data diff --git a/src/merge/resources/filestorage/resources/account_token/raw_client.py b/src/merge/resources/filestorage/resources/account_token/raw_client.py index 5520a69a..5ea56f35 100644 --- a/src/merge/resources/filestorage/resources/account_token/raw_client.py +++ b/src/merge/resources/filestorage/resources/account_token/raw_client.py @@ -10,6 +10,7 @@ from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.account_token import AccountToken +from ...types.regenerate_account_token import RegenerateAccountToken class RawAccountTokenClient: @@ -54,6 +55,42 @@ def retrieve( raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + def regenerate_create( + self, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[RegenerateAccountToken]: + """ + Exchange Linked Account account tokens. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[RegenerateAccountToken] + + """ + _response = self._client_wrapper.httpx_client.request( + "filestorage/v1/account-token/regenerate", + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + RegenerateAccountToken, + construct_type( + type_=RegenerateAccountToken, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + class AsyncRawAccountTokenClient: def __init__(self, *, client_wrapper: AsyncClientWrapper): @@ -96,3 +133,39 @@ async def retrieve( except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def regenerate_create( + self, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[RegenerateAccountToken]: + """ + Exchange Linked Account account tokens. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[RegenerateAccountToken] + + """ + _response = await self._client_wrapper.httpx_client.request( + "filestorage/v1/account-token/regenerate", + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + RegenerateAccountToken, + construct_type( + type_=RegenerateAccountToken, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/filestorage/resources/audit_trail/client.py b/src/merge/resources/filestorage/resources/audit_trail/client.py index cd4b170a..c87f8766 100644 --- a/src/merge/resources/filestorage/resources/audit_trail/client.py +++ b/src/merge/resources/filestorage/resources/audit_trail/client.py @@ -3,8 +3,9 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList +from ...types.audit_log_event import AuditLogEvent from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient @@ -33,7 +34,7 @@ def list( start_date: typing.Optional[str] = None, user_email: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: + ) -> SyncPager[AuditLogEvent]: """ Gets a list of audit trail events. @@ -49,7 +50,7 @@ def list( If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include audit trail events that occurred after this time @@ -62,7 +63,7 @@ def list( Returns ------- - PaginatedAuditLogEventList + SyncPager[AuditLogEvent] Examples @@ -73,7 +74,7 @@ def list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.audit_trail.list( + response = client.filestorage.audit_trail.list( cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", end_date="end_date", event_type="event_type", @@ -81,8 +82,13 @@ def list( start_date="start_date", user_email="user_email", ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( cursor=cursor, end_date=end_date, event_type=event_type, @@ -91,7 +97,6 @@ def list( user_email=user_email, request_options=request_options, ) - return _response.data class AsyncAuditTrailClient: @@ -119,7 +124,7 @@ async def list( start_date: typing.Optional[str] = None, user_email: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: + ) -> AsyncPager[AuditLogEvent]: """ Gets a list of audit trail events. @@ -135,7 +140,7 @@ async def list( If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include audit trail events that occurred after this time @@ -148,7 +153,7 @@ async def list( Returns ------- - PaginatedAuditLogEventList + AsyncPager[AuditLogEvent] Examples @@ -164,7 +169,7 @@ async def list( async def main() -> None: - await client.filestorage.audit_trail.list( + response = await client.filestorage.audit_trail.list( cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", end_date="end_date", event_type="event_type", @@ -172,11 +177,17 @@ async def main() -> None: start_date="start_date", user_email="user_email", ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( cursor=cursor, end_date=end_date, event_type=event_type, @@ -185,4 +196,3 @@ async def main() -> None: user_email=user_email, request_options=request_options, ) - return _response.data diff --git a/src/merge/resources/filestorage/resources/audit_trail/raw_client.py b/src/merge/resources/filestorage/resources/audit_trail/raw_client.py index 7d7369a4..dca7c46a 100644 --- a/src/merge/resources/filestorage/resources/audit_trail/raw_client.py +++ b/src/merge/resources/filestorage/resources/audit_trail/raw_client.py @@ -5,9 +5,10 @@ from .....core.api_error import ApiError from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type +from ...types.audit_log_event import AuditLogEvent from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList @@ -25,7 +26,7 @@ def list( start_date: typing.Optional[str] = None, user_email: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: + ) -> SyncPager[AuditLogEvent]: """ Gets a list of audit trail events. @@ -41,7 +42,7 @@ def list( If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include audit trail events that occurred after this time @@ -54,7 +55,7 @@ def list( Returns ------- - HttpResponse[PaginatedAuditLogEventList] + SyncPager[AuditLogEvent] """ _response = self._client_wrapper.httpx_client.request( @@ -72,14 +73,28 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedAuditLogEventList, construct_type( type_=PaginatedAuditLogEventList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + cursor=_parsed_next, + end_date=end_date, + event_type=event_type, + page_size=page_size, + start_date=start_date, + user_email=user_email, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -100,7 +115,7 @@ async def list( start_date: typing.Optional[str] = None, user_email: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: + ) -> AsyncPager[AuditLogEvent]: """ Gets a list of audit trail events. @@ -116,7 +131,7 @@ async def list( If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include audit trail events that occurred after this time @@ -129,7 +144,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedAuditLogEventList] + AsyncPager[AuditLogEvent] """ _response = await self._client_wrapper.httpx_client.request( @@ -147,14 +162,31 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedAuditLogEventList, construct_type( type_=PaginatedAuditLogEventList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + cursor=_parsed_next, + end_date=end_date, + event_type=event_type, + page_size=page_size, + start_date=start_date, + user_email=user_email, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/merge/resources/filestorage/resources/drives/client.py b/src/merge/resources/filestorage/resources/drives/client.py index 76710f4b..7453b97b 100644 --- a/src/merge/resources/filestorage/resources/drives/client.py +++ b/src/merge/resources/filestorage/resources/drives/client.py @@ -4,9 +4,9 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions from ...types.drive import Drive -from ...types.paginated_drive_list import PaginatedDriveList from .raw_client import AsyncRawDrivesClient, RawDrivesClient @@ -40,7 +40,7 @@ def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDriveList: + ) -> SyncPager[Drive]: """ Returns a list of `Drive` objects. @@ -84,7 +84,7 @@ def list( Returns ------- - PaginatedDriveList + SyncPager[Drive] Examples @@ -97,7 +97,7 @@ def list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.drives.list( + response = client.filestorage.drives.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -118,8 +118,13 @@ def list( page_size=1, remote_id="remote_id", ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -133,7 +138,6 @@ def list( remote_id=remote_id, request_options=request_options, ) - return _response.data def retrieve( self, @@ -217,7 +221,7 @@ async def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDriveList: + ) -> AsyncPager[Drive]: """ Returns a list of `Drive` objects. @@ -261,7 +265,7 @@ async def list( Returns ------- - PaginatedDriveList + AsyncPager[Drive] Examples @@ -278,7 +282,7 @@ async def list( async def main() -> None: - await client.filestorage.drives.list( + response = await client.filestorage.drives.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -299,11 +303,17 @@ async def main() -> None: page_size=1, remote_id="remote_id", ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -317,7 +327,6 @@ async def main() -> None: remote_id=remote_id, request_options=request_options, ) - return _response.data async def retrieve( self, diff --git a/src/merge/resources/filestorage/resources/drives/raw_client.py b/src/merge/resources/filestorage/resources/drives/raw_client.py index 666e5081..ef3ce92f 100644 --- a/src/merge/resources/filestorage/resources/drives/raw_client.py +++ b/src/merge/resources/filestorage/resources/drives/raw_client.py @@ -9,6 +9,7 @@ from .....core.datetime_utils import serialize_datetime from .....core.http_response import AsyncHttpResponse, HttpResponse from .....core.jsonable_encoder import jsonable_encoder +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.drive import Drive @@ -34,7 +35,7 @@ def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedDriveList]: + ) -> SyncPager[Drive]: """ Returns a list of `Drive` objects. @@ -78,7 +79,7 @@ def list( Returns ------- - HttpResponse[PaginatedDriveList] + SyncPager[Drive] """ _response = self._client_wrapper.httpx_client.request( @@ -101,14 +102,33 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedDriveList, construct_type( type_=PaginatedDriveList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + modified_after=modified_after, + modified_before=modified_before, + name=name, + page_size=page_size, + remote_id=remote_id, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -187,7 +207,7 @@ async def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedDriveList]: + ) -> AsyncPager[Drive]: """ Returns a list of `Drive` objects. @@ -231,7 +251,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedDriveList] + AsyncPager[Drive] """ _response = await self._client_wrapper.httpx_client.request( @@ -254,14 +274,36 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedDriveList, construct_type( type_=PaginatedDriveList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + modified_after=modified_after, + modified_before=modified_before, + name=name, + page_size=page_size, + remote_id=remote_id, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/merge/resources/filestorage/resources/field_mapping/client.py b/src/merge/resources/filestorage/resources/field_mapping/client.py index e1e40571..066088f9 100644 --- a/src/merge/resources/filestorage/resources/field_mapping/client.py +++ b/src/merge/resources/filestorage/resources/field_mapping/client.py @@ -78,6 +78,8 @@ def field_mappings_create( remote_url_path: str, common_model_name: str, exclude_remote_field_metadata: typing.Optional[bool] = None, + remote_data_iteration_count: typing.Optional[int] = None, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> FieldMappingInstanceResponse: """ @@ -106,6 +108,12 @@ def field_mappings_create( exclude_remote_field_metadata : typing.Optional[bool] If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -124,6 +132,7 @@ def field_mappings_create( ) client.filestorage.field_mapping.field_mappings_create( exclude_remote_field_metadata=True, + remote_data_iteration_count=1, target_field_name="example_target_field_name", target_field_description="this is a example description of the target field", remote_field_traversal_path=["example_remote_field"], @@ -140,6 +149,8 @@ def field_mappings_create( remote_url_path=remote_url_path, common_model_name=common_model_name, exclude_remote_field_metadata=exclude_remote_field_metadata, + remote_data_iteration_count=remote_data_iteration_count, + jmes_path=jmes_path, request_options=request_options, ) return _response.data @@ -181,9 +192,11 @@ def field_mappings_partial_update( self, field_mapping_id: str, *, + remote_data_iteration_count: typing.Optional[int] = None, remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, remote_method: typing.Optional[str] = OMIT, remote_url_path: typing.Optional[str] = OMIT, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> FieldMappingInstanceResponse: """ @@ -193,6 +206,9 @@ def field_mappings_partial_update( ---------- field_mapping_id : str + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. @@ -202,6 +218,9 @@ def field_mappings_partial_update( remote_url_path : typing.Optional[str] The path of the remote endpoint where the remote field is coming from. + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -220,13 +239,16 @@ def field_mappings_partial_update( ) client.filestorage.field_mapping.field_mappings_partial_update( field_mapping_id="field_mapping_id", + remote_data_iteration_count=1, ) """ _response = self._raw_client.field_mappings_partial_update( field_mapping_id, + remote_data_iteration_count=remote_data_iteration_count, remote_field_traversal_path=remote_field_traversal_path, remote_method=remote_method, remote_url_path=remote_url_path, + jmes_path=jmes_path, request_options=request_options, ) return _response.data @@ -377,6 +399,8 @@ async def field_mappings_create( remote_url_path: str, common_model_name: str, exclude_remote_field_metadata: typing.Optional[bool] = None, + remote_data_iteration_count: typing.Optional[int] = None, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> FieldMappingInstanceResponse: """ @@ -405,6 +429,12 @@ async def field_mappings_create( exclude_remote_field_metadata : typing.Optional[bool] If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -428,6 +458,7 @@ async def field_mappings_create( async def main() -> None: await client.filestorage.field_mapping.field_mappings_create( exclude_remote_field_metadata=True, + remote_data_iteration_count=1, target_field_name="example_target_field_name", target_field_description="this is a example description of the target field", remote_field_traversal_path=["example_remote_field"], @@ -447,6 +478,8 @@ async def main() -> None: remote_url_path=remote_url_path, common_model_name=common_model_name, exclude_remote_field_metadata=exclude_remote_field_metadata, + remote_data_iteration_count=remote_data_iteration_count, + jmes_path=jmes_path, request_options=request_options, ) return _response.data @@ -496,9 +529,11 @@ async def field_mappings_partial_update( self, field_mapping_id: str, *, + remote_data_iteration_count: typing.Optional[int] = None, remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, remote_method: typing.Optional[str] = OMIT, remote_url_path: typing.Optional[str] = OMIT, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> FieldMappingInstanceResponse: """ @@ -508,6 +543,9 @@ async def field_mappings_partial_update( ---------- field_mapping_id : str + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. @@ -517,6 +555,9 @@ async def field_mappings_partial_update( remote_url_path : typing.Optional[str] The path of the remote endpoint where the remote field is coming from. + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -540,6 +581,7 @@ async def field_mappings_partial_update( async def main() -> None: await client.filestorage.field_mapping.field_mappings_partial_update( field_mapping_id="field_mapping_id", + remote_data_iteration_count=1, ) @@ -547,9 +589,11 @@ async def main() -> None: """ _response = await self._raw_client.field_mappings_partial_update( field_mapping_id, + remote_data_iteration_count=remote_data_iteration_count, remote_field_traversal_path=remote_field_traversal_path, remote_method=remote_method, remote_url_path=remote_url_path, + jmes_path=jmes_path, request_options=request_options, ) return _response.data diff --git a/src/merge/resources/filestorage/resources/field_mapping/raw_client.py b/src/merge/resources/filestorage/resources/field_mapping/raw_client.py index 02fe3e18..24a50dd7 100644 --- a/src/merge/resources/filestorage/resources/field_mapping/raw_client.py +++ b/src/merge/resources/filestorage/resources/field_mapping/raw_client.py @@ -77,6 +77,8 @@ def field_mappings_create( remote_url_path: str, common_model_name: str, exclude_remote_field_metadata: typing.Optional[bool] = None, + remote_data_iteration_count: typing.Optional[int] = None, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[FieldMappingInstanceResponse]: """ @@ -105,6 +107,12 @@ def field_mappings_create( exclude_remote_field_metadata : typing.Optional[bool] If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -118,6 +126,7 @@ def field_mappings_create( method="POST", params={ "exclude_remote_field_metadata": exclude_remote_field_metadata, + "remote_data_iteration_count": remote_data_iteration_count, }, json={ "target_field_name": target_field_name, @@ -126,6 +135,7 @@ def field_mappings_create( "remote_method": remote_method, "remote_url_path": remote_url_path, "common_model_name": common_model_name, + "jmes_path": jmes_path, }, headers={ "content-type": "application/json", @@ -190,9 +200,11 @@ def field_mappings_partial_update( self, field_mapping_id: str, *, + remote_data_iteration_count: typing.Optional[int] = None, remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, remote_method: typing.Optional[str] = OMIT, remote_url_path: typing.Optional[str] = OMIT, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[FieldMappingInstanceResponse]: """ @@ -202,6 +214,9 @@ def field_mappings_partial_update( ---------- field_mapping_id : str + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. @@ -211,6 +226,9 @@ def field_mappings_partial_update( remote_url_path : typing.Optional[str] The path of the remote endpoint where the remote field is coming from. + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -222,10 +240,14 @@ def field_mappings_partial_update( _response = self._client_wrapper.httpx_client.request( f"filestorage/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", method="PATCH", + params={ + "remote_data_iteration_count": remote_data_iteration_count, + }, json={ "remote_field_traversal_path": remote_field_traversal_path, "remote_method": remote_method, "remote_url_path": remote_url_path, + "jmes_path": jmes_path, }, headers={ "content-type": "application/json", @@ -394,6 +416,8 @@ async def field_mappings_create( remote_url_path: str, common_model_name: str, exclude_remote_field_metadata: typing.Optional[bool] = None, + remote_data_iteration_count: typing.Optional[int] = None, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: """ @@ -422,6 +446,12 @@ async def field_mappings_create( exclude_remote_field_metadata : typing.Optional[bool] If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -435,6 +465,7 @@ async def field_mappings_create( method="POST", params={ "exclude_remote_field_metadata": exclude_remote_field_metadata, + "remote_data_iteration_count": remote_data_iteration_count, }, json={ "target_field_name": target_field_name, @@ -443,6 +474,7 @@ async def field_mappings_create( "remote_method": remote_method, "remote_url_path": remote_url_path, "common_model_name": common_model_name, + "jmes_path": jmes_path, }, headers={ "content-type": "application/json", @@ -507,9 +539,11 @@ async def field_mappings_partial_update( self, field_mapping_id: str, *, + remote_data_iteration_count: typing.Optional[int] = None, remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, remote_method: typing.Optional[str] = OMIT, remote_url_path: typing.Optional[str] = OMIT, + jmes_path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: """ @@ -519,6 +553,9 @@ async def field_mappings_partial_update( ---------- field_mapping_id : str + remote_data_iteration_count : typing.Optional[int] + Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. + remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. @@ -528,6 +565,9 @@ async def field_mappings_partial_update( remote_url_path : typing.Optional[str] The path of the remote endpoint where the remote field is coming from. + jmes_path : typing.Optional[str] + JMES path to specify json query expression to be used on field mapping. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -539,10 +579,14 @@ async def field_mappings_partial_update( _response = await self._client_wrapper.httpx_client.request( f"filestorage/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", method="PATCH", + params={ + "remote_data_iteration_count": remote_data_iteration_count, + }, json={ "remote_field_traversal_path": remote_field_traversal_path, "remote_method": remote_method, "remote_url_path": remote_url_path, + "jmes_path": jmes_path, }, headers={ "content-type": "application/json", diff --git a/src/merge/resources/filestorage/resources/files/__init__.py b/src/merge/resources/filestorage/resources/files/__init__.py index 6836be98..c3aa546f 100644 --- a/src/merge/resources/filestorage/resources/files/__init__.py +++ b/src/merge/resources/filestorage/resources/files/__init__.py @@ -8,15 +8,15 @@ if typing.TYPE_CHECKING: from .types import ( FilesDownloadRequestMetaListRequestOrderBy, - FilesListRequestExpand, + FilesListRequestExpandItem, FilesListRequestOrderBy, - FilesRetrieveRequestExpand, + FilesRetrieveRequestExpandItem, ) _dynamic_imports: typing.Dict[str, str] = { "FilesDownloadRequestMetaListRequestOrderBy": ".types", - "FilesListRequestExpand": ".types", + "FilesListRequestExpandItem": ".types", "FilesListRequestOrderBy": ".types", - "FilesRetrieveRequestExpand": ".types", + "FilesRetrieveRequestExpandItem": ".types", } @@ -41,7 +41,7 @@ def __dir__(): __all__ = [ "FilesDownloadRequestMetaListRequestOrderBy", - "FilesListRequestExpand", + "FilesListRequestExpandItem", "FilesListRequestOrderBy", - "FilesRetrieveRequestExpand", + "FilesRetrieveRequestExpandItem", ] diff --git a/src/merge/resources/filestorage/resources/files/client.py b/src/merge/resources/filestorage/resources/files/client.py index 80a119ed..e1e8b02c 100644 --- a/src/merge/resources/filestorage/resources/files/client.py +++ b/src/merge/resources/filestorage/resources/files/client.py @@ -4,19 +4,18 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions from ...types.download_request_meta import DownloadRequestMeta from ...types.file import File from ...types.file_request import FileRequest from ...types.file_storage_file_response import FileStorageFileResponse from ...types.meta_response import MetaResponse -from ...types.paginated_download_request_meta_list import PaginatedDownloadRequestMetaList -from ...types.paginated_file_list import PaginatedFileList from .raw_client import AsyncRawFilesClient, RawFilesClient from .types.files_download_request_meta_list_request_order_by import FilesDownloadRequestMetaListRequestOrderBy -from .types.files_list_request_expand import FilesListRequestExpand +from .types.files_list_request_expand_item import FilesListRequestExpandItem from .types.files_list_request_order_by import FilesListRequestOrderBy -from .types.files_retrieve_request_expand import FilesRetrieveRequestExpand +from .types.files_retrieve_request_expand_item import FilesRetrieveRequestExpandItem # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -44,7 +43,9 @@ def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FilesListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]] + ] = None, folder_id: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, @@ -59,7 +60,7 @@ def list( remote_created_before: typing.Optional[dt.datetime] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedFileList: + ) -> SyncPager[File]: """ Returns a list of `File` objects. @@ -77,7 +78,7 @@ def list( drive_id : typing.Optional[str] Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive. - expand : typing.Optional[FilesListRequestExpand] + expand : typing.Optional[typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. folder_id : typing.Optional[str] @@ -108,7 +109,7 @@ def list( Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_created_after : typing.Optional[dt.datetime] If provided, will only return files created in the third party platform after this datetime. @@ -124,7 +125,7 @@ def list( Returns ------- - PaginatedFileList + SyncPager[File] Examples @@ -132,16 +133,13 @@ def list( import datetime from merge import Merge - from merge.resources.filestorage.resources.files import ( - FilesListRequestExpand, - FilesListRequestOrderBy, - ) + from merge.resources.filestorage.resources.files import FilesListRequestOrderBy client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.files.list( + response = client.filestorage.files.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -150,7 +148,6 @@ def list( ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", drive_id="drive_id", - expand=FilesListRequestExpand.DRIVE, folder_id="folder_id", include_deleted_data=True, include_remote_data=True, @@ -173,8 +170,13 @@ def list( ), remote_id="remote_id", ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -195,7 +197,6 @@ def list( remote_id=remote_id, request_options=request_options, ) - return _response.data def create( self, @@ -250,7 +251,9 @@ def retrieve( self, id: str, *, - expand: typing.Optional[FilesRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -262,7 +265,7 @@ def retrieve( ---------- id : str - expand : typing.Optional[FilesRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -282,9 +285,6 @@ def retrieve( Examples -------- from merge import Merge - from merge.resources.filestorage.resources.files import ( - FilesRetrieveRequestExpand, - ) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", @@ -292,7 +292,6 @@ def retrieve( ) client.filestorage.files.retrieve( id="id", - expand=FilesRetrieveRequestExpand.DRIVE, include_remote_data=True, include_shell_data=True, ) @@ -348,14 +347,14 @@ def download_request_meta_retrieve( request_options: typing.Optional[RequestOptions] = None, ) -> DownloadRequestMeta: """ - Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. + Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our direct file download help center article. Parameters ---------- id : str mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. + If provided, specifies the export format of the file to be downloaded. request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -397,7 +396,7 @@ def download_request_meta_list( order_by: typing.Optional[FilesDownloadRequestMetaListRequestOrderBy] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDownloadRequestMetaList: + ) -> SyncPager[DownloadRequestMeta]: """ Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. @@ -438,7 +437,7 @@ def download_request_meta_list( Returns ------- - PaginatedDownloadRequestMetaList + SyncPager[DownloadRequestMeta] Examples @@ -452,7 +451,7 @@ def download_request_meta_list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.files.download_request_meta_list( + response = client.filestorage.files.download_request_meta_list( created_after="created_after", created_before="created_before", cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -463,8 +462,13 @@ def download_request_meta_list( order_by=FilesDownloadRequestMetaListRequestOrderBy.CREATED_AT_DESCENDING, page_size=1, ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.download_request_meta_list( + return self._raw_client.download_request_meta_list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -477,7 +481,6 @@ def download_request_meta_list( page_size=page_size, request_options=request_options, ) - return _response.data def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: """ @@ -529,7 +532,9 @@ async def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FilesListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]] + ] = None, folder_id: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, @@ -544,7 +549,7 @@ async def list( remote_created_before: typing.Optional[dt.datetime] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedFileList: + ) -> AsyncPager[File]: """ Returns a list of `File` objects. @@ -562,7 +567,7 @@ async def list( drive_id : typing.Optional[str] Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive. - expand : typing.Optional[FilesListRequestExpand] + expand : typing.Optional[typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. folder_id : typing.Optional[str] @@ -593,7 +598,7 @@ async def list( Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_created_after : typing.Optional[dt.datetime] If provided, will only return files created in the third party platform after this datetime. @@ -609,7 +614,7 @@ async def list( Returns ------- - PaginatedFileList + AsyncPager[File] Examples @@ -618,10 +623,7 @@ async def list( import datetime from merge import AsyncMerge - from merge.resources.filestorage.resources.files import ( - FilesListRequestExpand, - FilesListRequestOrderBy, - ) + from merge.resources.filestorage.resources.files import FilesListRequestOrderBy client = AsyncMerge( account_token="YOUR_ACCOUNT_TOKEN", @@ -630,7 +632,7 @@ async def list( async def main() -> None: - await client.filestorage.files.list( + response = await client.filestorage.files.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -639,7 +641,6 @@ async def main() -> None: ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", drive_id="drive_id", - expand=FilesListRequestExpand.DRIVE, folder_id="folder_id", include_deleted_data=True, include_remote_data=True, @@ -662,11 +663,17 @@ async def main() -> None: ), remote_id="remote_id", ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -687,7 +694,6 @@ async def main() -> None: remote_id=remote_id, request_options=request_options, ) - return _response.data async def create( self, @@ -750,7 +756,9 @@ async def retrieve( self, id: str, *, - expand: typing.Optional[FilesRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -762,7 +770,7 @@ async def retrieve( ---------- id : str - expand : typing.Optional[FilesRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -784,9 +792,6 @@ async def retrieve( import asyncio from merge import AsyncMerge - from merge.resources.filestorage.resources.files import ( - FilesRetrieveRequestExpand, - ) client = AsyncMerge( account_token="YOUR_ACCOUNT_TOKEN", @@ -797,7 +802,6 @@ async def retrieve( async def main() -> None: await client.filestorage.files.retrieve( id="id", - expand=FilesRetrieveRequestExpand.DRIVE, include_remote_data=True, include_shell_data=True, ) @@ -857,14 +861,14 @@ async def download_request_meta_retrieve( request_options: typing.Optional[RequestOptions] = None, ) -> DownloadRequestMeta: """ - Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. + Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our direct file download help center article. Parameters ---------- id : str mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. + If provided, specifies the export format of the file to be downloaded. request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -914,7 +918,7 @@ async def download_request_meta_list( order_by: typing.Optional[FilesDownloadRequestMetaListRequestOrderBy] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDownloadRequestMetaList: + ) -> AsyncPager[DownloadRequestMeta]: """ Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. @@ -955,7 +959,7 @@ async def download_request_meta_list( Returns ------- - PaginatedDownloadRequestMetaList + AsyncPager[DownloadRequestMeta] Examples @@ -974,7 +978,7 @@ async def download_request_meta_list( async def main() -> None: - await client.filestorage.files.download_request_meta_list( + response = await client.filestorage.files.download_request_meta_list( created_after="created_after", created_before="created_before", cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -985,11 +989,17 @@ async def main() -> None: order_by=FilesDownloadRequestMetaListRequestOrderBy.CREATED_AT_DESCENDING, page_size=1, ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.download_request_meta_list( + return await self._raw_client.download_request_meta_list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -1002,7 +1012,6 @@ async def main() -> None: page_size=page_size, request_options=request_options, ) - return _response.data async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: """ diff --git a/src/merge/resources/filestorage/resources/files/raw_client.py b/src/merge/resources/filestorage/resources/files/raw_client.py index 8efa7999..74791bc8 100644 --- a/src/merge/resources/filestorage/resources/files/raw_client.py +++ b/src/merge/resources/filestorage/resources/files/raw_client.py @@ -10,6 +10,7 @@ from .....core.datetime_utils import serialize_datetime from .....core.http_response import AsyncHttpResponse, HttpResponse from .....core.jsonable_encoder import jsonable_encoder +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.download_request_meta import DownloadRequestMeta @@ -20,9 +21,9 @@ from ...types.paginated_download_request_meta_list import PaginatedDownloadRequestMetaList from ...types.paginated_file_list import PaginatedFileList from .types.files_download_request_meta_list_request_order_by import FilesDownloadRequestMetaListRequestOrderBy -from .types.files_list_request_expand import FilesListRequestExpand +from .types.files_list_request_expand_item import FilesListRequestExpandItem from .types.files_list_request_order_by import FilesListRequestOrderBy -from .types.files_retrieve_request_expand import FilesRetrieveRequestExpand +from .types.files_retrieve_request_expand_item import FilesRetrieveRequestExpandItem # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -39,7 +40,9 @@ def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FilesListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]] + ] = None, folder_id: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, @@ -54,7 +57,7 @@ def list( remote_created_before: typing.Optional[dt.datetime] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedFileList]: + ) -> SyncPager[File]: """ Returns a list of `File` objects. @@ -72,7 +75,7 @@ def list( drive_id : typing.Optional[str] Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive. - expand : typing.Optional[FilesListRequestExpand] + expand : typing.Optional[typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. folder_id : typing.Optional[str] @@ -103,7 +106,7 @@ def list( Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_created_after : typing.Optional[dt.datetime] If provided, will only return files created in the third party platform after this datetime. @@ -119,7 +122,7 @@ def list( Returns ------- - HttpResponse[PaginatedFileList] + SyncPager[File] """ _response = self._client_wrapper.httpx_client.request( @@ -153,14 +156,40 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedFileList, construct_type( type_=PaginatedFileList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + drive_id=drive_id, + expand=expand, + folder_id=folder_id, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + mime_type=mime_type, + modified_after=modified_after, + modified_before=modified_before, + name=name, + order_by=order_by, + page_size=page_size, + remote_created_after=remote_created_after, + remote_created_before=remote_created_before, + remote_id=remote_id, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -230,7 +259,9 @@ def retrieve( self, id: str, *, - expand: typing.Optional[FilesRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -242,7 +273,7 @@ def retrieve( ---------- id : str - expand : typing.Optional[FilesRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -349,14 +380,14 @@ def download_request_meta_retrieve( request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[DownloadRequestMeta]: """ - Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. + Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our direct file download help center article. Parameters ---------- id : str mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. + If provided, specifies the export format of the file to be downloaded. request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -403,7 +434,7 @@ def download_request_meta_list( order_by: typing.Optional[FilesDownloadRequestMetaListRequestOrderBy] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedDownloadRequestMetaList]: + ) -> SyncPager[DownloadRequestMeta]: """ Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. @@ -444,7 +475,7 @@ def download_request_meta_list( Returns ------- - HttpResponse[PaginatedDownloadRequestMetaList] + SyncPager[DownloadRequestMeta] """ _response = self._client_wrapper.httpx_client.request( @@ -466,14 +497,32 @@ def download_request_meta_list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedDownloadRequestMetaList, construct_type( type_=PaginatedDownloadRequestMetaList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.download_request_meta_list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + ids=ids, + include_deleted_data=include_deleted_data, + mime_types=mime_types, + modified_after=modified_after, + modified_before=modified_before, + order_by=order_by, + page_size=page_size, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -527,7 +576,9 @@ async def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FilesListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]] + ] = None, folder_id: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, @@ -542,7 +593,7 @@ async def list( remote_created_before: typing.Optional[dt.datetime] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedFileList]: + ) -> AsyncPager[File]: """ Returns a list of `File` objects. @@ -560,7 +611,7 @@ async def list( drive_id : typing.Optional[str] Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive. - expand : typing.Optional[FilesListRequestExpand] + expand : typing.Optional[typing.Union[FilesListRequestExpandItem, typing.Sequence[FilesListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. folder_id : typing.Optional[str] @@ -591,7 +642,7 @@ async def list( Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_created_after : typing.Optional[dt.datetime] If provided, will only return files created in the third party platform after this datetime. @@ -607,7 +658,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedFileList] + AsyncPager[File] """ _response = await self._client_wrapper.httpx_client.request( @@ -641,14 +692,43 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedFileList, construct_type( type_=PaginatedFileList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + drive_id=drive_id, + expand=expand, + folder_id=folder_id, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + mime_type=mime_type, + modified_after=modified_after, + modified_before=modified_before, + name=name, + order_by=order_by, + page_size=page_size, + remote_created_after=remote_created_after, + remote_created_before=remote_created_before, + remote_id=remote_id, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -718,7 +798,9 @@ async def retrieve( self, id: str, *, - expand: typing.Optional[FilesRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -730,7 +812,7 @@ async def retrieve( ---------- id : str - expand : typing.Optional[FilesRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FilesRetrieveRequestExpandItem, typing.Sequence[FilesRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -838,14 +920,14 @@ async def download_request_meta_retrieve( request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[DownloadRequestMeta]: """ - Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. + Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our direct file download help center article. Parameters ---------- id : str mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. + If provided, specifies the export format of the file to be downloaded. request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -892,7 +974,7 @@ async def download_request_meta_list( order_by: typing.Optional[FilesDownloadRequestMetaListRequestOrderBy] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedDownloadRequestMetaList]: + ) -> AsyncPager[DownloadRequestMeta]: """ Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. @@ -933,7 +1015,7 @@ async def download_request_meta_list( Returns ------- - AsyncHttpResponse[PaginatedDownloadRequestMetaList] + AsyncPager[DownloadRequestMeta] """ _response = await self._client_wrapper.httpx_client.request( @@ -955,14 +1037,35 @@ async def download_request_meta_list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedDownloadRequestMetaList, construct_type( type_=PaginatedDownloadRequestMetaList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.download_request_meta_list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + ids=ids, + include_deleted_data=include_deleted_data, + mime_types=mime_types, + modified_after=modified_after, + modified_before=modified_before, + order_by=order_by, + page_size=page_size, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/merge/resources/filestorage/resources/files/types/__init__.py b/src/merge/resources/filestorage/resources/files/types/__init__.py index 90775da7..c0027796 100644 --- a/src/merge/resources/filestorage/resources/files/types/__init__.py +++ b/src/merge/resources/filestorage/resources/files/types/__init__.py @@ -7,14 +7,14 @@ if typing.TYPE_CHECKING: from .files_download_request_meta_list_request_order_by import FilesDownloadRequestMetaListRequestOrderBy - from .files_list_request_expand import FilesListRequestExpand + from .files_list_request_expand_item import FilesListRequestExpandItem from .files_list_request_order_by import FilesListRequestOrderBy - from .files_retrieve_request_expand import FilesRetrieveRequestExpand + from .files_retrieve_request_expand_item import FilesRetrieveRequestExpandItem _dynamic_imports: typing.Dict[str, str] = { "FilesDownloadRequestMetaListRequestOrderBy": ".files_download_request_meta_list_request_order_by", - "FilesListRequestExpand": ".files_list_request_expand", + "FilesListRequestExpandItem": ".files_list_request_expand_item", "FilesListRequestOrderBy": ".files_list_request_order_by", - "FilesRetrieveRequestExpand": ".files_retrieve_request_expand", + "FilesRetrieveRequestExpandItem": ".files_retrieve_request_expand_item", } @@ -39,7 +39,7 @@ def __dir__(): __all__ = [ "FilesDownloadRequestMetaListRequestOrderBy", - "FilesListRequestExpand", + "FilesListRequestExpandItem", "FilesListRequestOrderBy", - "FilesRetrieveRequestExpand", + "FilesRetrieveRequestExpandItem", ] diff --git a/src/merge/resources/filestorage/resources/files/types/files_list_request_expand.py b/src/merge/resources/filestorage/resources/files/types/files_list_request_expand.py deleted file mode 100644 index f4c84b6f..00000000 --- a/src/merge/resources/filestorage/resources/files/types/files_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FilesListRequestExpand(str, enum.Enum): - DRIVE = "drive" - FOLDER = "folder" - FOLDER_DRIVE = "folder,drive" - PERMISSIONS = "permissions" - PERMISSIONS_DRIVE = "permissions,drive" - PERMISSIONS_FOLDER = "permissions,folder" - PERMISSIONS_FOLDER_DRIVE = "permissions,folder,drive" - - def visit( - self, - drive: typing.Callable[[], T_Result], - folder: typing.Callable[[], T_Result], - folder_drive: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_drive: typing.Callable[[], T_Result], - permissions_folder: typing.Callable[[], T_Result], - permissions_folder_drive: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FilesListRequestExpand.DRIVE: - return drive() - if self is FilesListRequestExpand.FOLDER: - return folder() - if self is FilesListRequestExpand.FOLDER_DRIVE: - return folder_drive() - if self is FilesListRequestExpand.PERMISSIONS: - return permissions() - if self is FilesListRequestExpand.PERMISSIONS_DRIVE: - return permissions_drive() - if self is FilesListRequestExpand.PERMISSIONS_FOLDER: - return permissions_folder() - if self is FilesListRequestExpand.PERMISSIONS_FOLDER_DRIVE: - return permissions_folder_drive() diff --git a/src/merge/resources/filestorage/resources/files/types/files_list_request_expand_item.py b/src/merge/resources/filestorage/resources/files/types/files_list_request_expand_item.py new file mode 100644 index 00000000..70700994 --- /dev/null +++ b/src/merge/resources/filestorage/resources/files/types/files_list_request_expand_item.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class FilesListRequestExpandItem(str, enum.Enum): + DRIVE = "drive" + FOLDER = "folder" + PERMISSIONS = "permissions" + + def visit( + self, + drive: typing.Callable[[], T_Result], + folder: typing.Callable[[], T_Result], + permissions: typing.Callable[[], T_Result], + ) -> T_Result: + if self is FilesListRequestExpandItem.DRIVE: + return drive() + if self is FilesListRequestExpandItem.FOLDER: + return folder() + if self is FilesListRequestExpandItem.PERMISSIONS: + return permissions() diff --git a/src/merge/resources/filestorage/resources/files/types/files_retrieve_request_expand.py b/src/merge/resources/filestorage/resources/files/types/files_retrieve_request_expand.py deleted file mode 100644 index cc09519b..00000000 --- a/src/merge/resources/filestorage/resources/files/types/files_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FilesRetrieveRequestExpand(str, enum.Enum): - DRIVE = "drive" - FOLDER = "folder" - FOLDER_DRIVE = "folder,drive" - PERMISSIONS = "permissions" - PERMISSIONS_DRIVE = "permissions,drive" - PERMISSIONS_FOLDER = "permissions,folder" - PERMISSIONS_FOLDER_DRIVE = "permissions,folder,drive" - - def visit( - self, - drive: typing.Callable[[], T_Result], - folder: typing.Callable[[], T_Result], - folder_drive: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_drive: typing.Callable[[], T_Result], - permissions_folder: typing.Callable[[], T_Result], - permissions_folder_drive: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FilesRetrieveRequestExpand.DRIVE: - return drive() - if self is FilesRetrieveRequestExpand.FOLDER: - return folder() - if self is FilesRetrieveRequestExpand.FOLDER_DRIVE: - return folder_drive() - if self is FilesRetrieveRequestExpand.PERMISSIONS: - return permissions() - if self is FilesRetrieveRequestExpand.PERMISSIONS_DRIVE: - return permissions_drive() - if self is FilesRetrieveRequestExpand.PERMISSIONS_FOLDER: - return permissions_folder() - if self is FilesRetrieveRequestExpand.PERMISSIONS_FOLDER_DRIVE: - return permissions_folder_drive() diff --git a/src/merge/resources/filestorage/resources/files/types/files_retrieve_request_expand_item.py b/src/merge/resources/filestorage/resources/files/types/files_retrieve_request_expand_item.py new file mode 100644 index 00000000..1770d94e --- /dev/null +++ b/src/merge/resources/filestorage/resources/files/types/files_retrieve_request_expand_item.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class FilesRetrieveRequestExpandItem(str, enum.Enum): + DRIVE = "drive" + FOLDER = "folder" + PERMISSIONS = "permissions" + + def visit( + self, + drive: typing.Callable[[], T_Result], + folder: typing.Callable[[], T_Result], + permissions: typing.Callable[[], T_Result], + ) -> T_Result: + if self is FilesRetrieveRequestExpandItem.DRIVE: + return drive() + if self is FilesRetrieveRequestExpandItem.FOLDER: + return folder() + if self is FilesRetrieveRequestExpandItem.PERMISSIONS: + return permissions() diff --git a/src/merge/resources/filestorage/resources/folders/__init__.py b/src/merge/resources/filestorage/resources/folders/__init__.py index 41e475d7..b9307deb 100644 --- a/src/merge/resources/filestorage/resources/folders/__init__.py +++ b/src/merge/resources/filestorage/resources/folders/__init__.py @@ -6,10 +6,10 @@ from importlib import import_module if typing.TYPE_CHECKING: - from .types import FoldersListRequestExpand, FoldersRetrieveRequestExpand + from .types import FoldersListRequestExpandItem, FoldersRetrieveRequestExpandItem _dynamic_imports: typing.Dict[str, str] = { - "FoldersListRequestExpand": ".types", - "FoldersRetrieveRequestExpand": ".types", + "FoldersListRequestExpandItem": ".types", + "FoldersRetrieveRequestExpandItem": ".types", } @@ -32,4 +32,4 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["FoldersListRequestExpand", "FoldersRetrieveRequestExpand"] +__all__ = ["FoldersListRequestExpandItem", "FoldersRetrieveRequestExpandItem"] diff --git a/src/merge/resources/filestorage/resources/folders/client.py b/src/merge/resources/filestorage/resources/folders/client.py index 56600980..85b4ee1c 100644 --- a/src/merge/resources/filestorage/resources/folders/client.py +++ b/src/merge/resources/filestorage/resources/folders/client.py @@ -4,15 +4,15 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions from ...types.file_storage_folder_response import FileStorageFolderResponse from ...types.folder import Folder from ...types.folder_request import FolderRequest from ...types.meta_response import MetaResponse -from ...types.paginated_folder_list import PaginatedFolderList from .raw_client import AsyncRawFoldersClient, RawFoldersClient -from .types.folders_list_request_expand import FoldersListRequestExpand -from .types.folders_retrieve_request_expand import FoldersRetrieveRequestExpand +from .types.folders_list_request_expand_item import FoldersListRequestExpandItem +from .types.folders_retrieve_request_expand_item import FoldersRetrieveRequestExpandItem # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -40,7 +40,9 @@ def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FoldersListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -51,7 +53,7 @@ def list( parent_folder_id: typing.Optional[str] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedFolderList: + ) -> SyncPager[Folder]: """ Returns a list of `Folder` objects. @@ -69,7 +71,7 @@ def list( drive_id : typing.Optional[str] If provided, will only return folders in this drive. - expand : typing.Optional[FoldersListRequestExpand] + expand : typing.Optional[typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -91,7 +93,7 @@ def list( If provided, will only return folders with this name. This performs an exact match. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. parent_folder_id : typing.Optional[str] If provided, will only return folders in this parent folder. If null, will return folders in root directory. @@ -104,7 +106,7 @@ def list( Returns ------- - PaginatedFolderList + SyncPager[Folder] Examples @@ -112,15 +114,12 @@ def list( import datetime from merge import Merge - from merge.resources.filestorage.resources.folders import ( - FoldersListRequestExpand, - ) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.folders.list( + response = client.filestorage.folders.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -129,7 +128,6 @@ def list( ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", drive_id="drive_id", - expand=FoldersListRequestExpand.DRIVE, include_deleted_data=True, include_remote_data=True, include_shell_data=True, @@ -144,8 +142,13 @@ def list( parent_folder_id="parent_folder_id", remote_id="remote_id", ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -162,7 +165,6 @@ def list( remote_id=remote_id, request_options=request_options, ) - return _response.data def create( self, @@ -217,7 +219,9 @@ def retrieve( self, id: str, *, - expand: typing.Optional[FoldersRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -229,7 +233,7 @@ def retrieve( ---------- id : str - expand : typing.Optional[FoldersRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -249,9 +253,6 @@ def retrieve( Examples -------- from merge import Merge - from merge.resources.filestorage.resources.folders import ( - FoldersRetrieveRequestExpand, - ) client = Merge( account_token="YOUR_ACCOUNT_TOKEN", @@ -259,7 +260,6 @@ def retrieve( ) client.filestorage.folders.retrieve( id="id", - expand=FoldersRetrieveRequestExpand.DRIVE, include_remote_data=True, include_shell_data=True, ) @@ -323,7 +323,9 @@ async def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FoldersListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -334,7 +336,7 @@ async def list( parent_folder_id: typing.Optional[str] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedFolderList: + ) -> AsyncPager[Folder]: """ Returns a list of `Folder` objects. @@ -352,7 +354,7 @@ async def list( drive_id : typing.Optional[str] If provided, will only return folders in this drive. - expand : typing.Optional[FoldersListRequestExpand] + expand : typing.Optional[typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -374,7 +376,7 @@ async def list( If provided, will only return folders with this name. This performs an exact match. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. parent_folder_id : typing.Optional[str] If provided, will only return folders in this parent folder. If null, will return folders in root directory. @@ -387,7 +389,7 @@ async def list( Returns ------- - PaginatedFolderList + AsyncPager[Folder] Examples @@ -396,9 +398,6 @@ async def list( import datetime from merge import AsyncMerge - from merge.resources.filestorage.resources.folders import ( - FoldersListRequestExpand, - ) client = AsyncMerge( account_token="YOUR_ACCOUNT_TOKEN", @@ -407,7 +406,7 @@ async def list( async def main() -> None: - await client.filestorage.folders.list( + response = await client.filestorage.folders.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -416,7 +415,6 @@ async def main() -> None: ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", drive_id="drive_id", - expand=FoldersListRequestExpand.DRIVE, include_deleted_data=True, include_remote_data=True, include_shell_data=True, @@ -431,11 +429,17 @@ async def main() -> None: parent_folder_id="parent_folder_id", remote_id="remote_id", ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -452,7 +456,6 @@ async def main() -> None: remote_id=remote_id, request_options=request_options, ) - return _response.data async def create( self, @@ -515,7 +518,9 @@ async def retrieve( self, id: str, *, - expand: typing.Optional[FoldersRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -527,7 +532,7 @@ async def retrieve( ---------- id : str - expand : typing.Optional[FoldersRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -549,9 +554,6 @@ async def retrieve( import asyncio from merge import AsyncMerge - from merge.resources.filestorage.resources.folders import ( - FoldersRetrieveRequestExpand, - ) client = AsyncMerge( account_token="YOUR_ACCOUNT_TOKEN", @@ -562,7 +564,6 @@ async def retrieve( async def main() -> None: await client.filestorage.folders.retrieve( id="id", - expand=FoldersRetrieveRequestExpand.DRIVE, include_remote_data=True, include_shell_data=True, ) diff --git a/src/merge/resources/filestorage/resources/folders/raw_client.py b/src/merge/resources/filestorage/resources/folders/raw_client.py index 1094fc1c..6678248e 100644 --- a/src/merge/resources/filestorage/resources/folders/raw_client.py +++ b/src/merge/resources/filestorage/resources/folders/raw_client.py @@ -9,6 +9,7 @@ from .....core.datetime_utils import serialize_datetime from .....core.http_response import AsyncHttpResponse, HttpResponse from .....core.jsonable_encoder import jsonable_encoder +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.file_storage_folder_response import FileStorageFolderResponse @@ -16,8 +17,8 @@ from ...types.folder_request import FolderRequest from ...types.meta_response import MetaResponse from ...types.paginated_folder_list import PaginatedFolderList -from .types.folders_list_request_expand import FoldersListRequestExpand -from .types.folders_retrieve_request_expand import FoldersRetrieveRequestExpand +from .types.folders_list_request_expand_item import FoldersListRequestExpandItem +from .types.folders_retrieve_request_expand_item import FoldersRetrieveRequestExpandItem # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -34,7 +35,9 @@ def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FoldersListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -45,7 +48,7 @@ def list( parent_folder_id: typing.Optional[str] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedFolderList]: + ) -> SyncPager[Folder]: """ Returns a list of `Folder` objects. @@ -63,7 +66,7 @@ def list( drive_id : typing.Optional[str] If provided, will only return folders in this drive. - expand : typing.Optional[FoldersListRequestExpand] + expand : typing.Optional[typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -85,7 +88,7 @@ def list( If provided, will only return folders with this name. This performs an exact match. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. parent_folder_id : typing.Optional[str] If provided, will only return folders in this parent folder. If null, will return folders in root directory. @@ -98,7 +101,7 @@ def list( Returns ------- - HttpResponse[PaginatedFolderList] + SyncPager[Folder] """ _response = self._client_wrapper.httpx_client.request( @@ -124,14 +127,36 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedFolderList, construct_type( type_=PaginatedFolderList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + drive_id=drive_id, + expand=expand, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + modified_after=modified_after, + modified_before=modified_before, + name=name, + page_size=page_size, + parent_folder_id=parent_folder_id, + remote_id=remote_id, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -201,7 +226,9 @@ def retrieve( self, id: str, *, - expand: typing.Optional[FoldersRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -213,7 +240,7 @@ def retrieve( ---------- id : str - expand : typing.Optional[FoldersRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -303,7 +330,9 @@ async def list( created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, drive_id: typing.Optional[str] = None, - expand: typing.Optional[FoldersListRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -314,7 +343,7 @@ async def list( parent_folder_id: typing.Optional[str] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedFolderList]: + ) -> AsyncPager[Folder]: """ Returns a list of `Folder` objects. @@ -332,7 +361,7 @@ async def list( drive_id : typing.Optional[str] If provided, will only return folders in this drive. - expand : typing.Optional[FoldersListRequestExpand] + expand : typing.Optional[typing.Union[FoldersListRequestExpandItem, typing.Sequence[FoldersListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -354,7 +383,7 @@ async def list( If provided, will only return folders with this name. This performs an exact match. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. parent_folder_id : typing.Optional[str] If provided, will only return folders in this parent folder. If null, will return folders in root directory. @@ -367,7 +396,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedFolderList] + AsyncPager[Folder] """ _response = await self._client_wrapper.httpx_client.request( @@ -393,14 +422,39 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedFolderList, construct_type( type_=PaginatedFolderList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + drive_id=drive_id, + expand=expand, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + modified_after=modified_after, + modified_before=modified_before, + name=name, + page_size=page_size, + parent_folder_id=parent_folder_id, + remote_id=remote_id, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -470,7 +524,9 @@ async def retrieve( self, id: str, *, - expand: typing.Optional[FoldersRetrieveRequestExpand] = None, + expand: typing.Optional[ + typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -482,7 +538,7 @@ async def retrieve( ---------- id : str - expand : typing.Optional[FoldersRetrieveRequestExpand] + expand : typing.Optional[typing.Union[FoldersRetrieveRequestExpandItem, typing.Sequence[FoldersRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] diff --git a/src/merge/resources/filestorage/resources/folders/types/__init__.py b/src/merge/resources/filestorage/resources/folders/types/__init__.py index 6279a573..064c3b61 100644 --- a/src/merge/resources/filestorage/resources/folders/types/__init__.py +++ b/src/merge/resources/filestorage/resources/folders/types/__init__.py @@ -6,11 +6,11 @@ from importlib import import_module if typing.TYPE_CHECKING: - from .folders_list_request_expand import FoldersListRequestExpand - from .folders_retrieve_request_expand import FoldersRetrieveRequestExpand + from .folders_list_request_expand_item import FoldersListRequestExpandItem + from .folders_retrieve_request_expand_item import FoldersRetrieveRequestExpandItem _dynamic_imports: typing.Dict[str, str] = { - "FoldersListRequestExpand": ".folders_list_request_expand", - "FoldersRetrieveRequestExpand": ".folders_retrieve_request_expand", + "FoldersListRequestExpandItem": ".folders_list_request_expand_item", + "FoldersRetrieveRequestExpandItem": ".folders_retrieve_request_expand_item", } @@ -33,4 +33,4 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["FoldersListRequestExpand", "FoldersRetrieveRequestExpand"] +__all__ = ["FoldersListRequestExpandItem", "FoldersRetrieveRequestExpandItem"] diff --git a/src/merge/resources/filestorage/resources/folders/types/folders_list_request_expand.py b/src/merge/resources/filestorage/resources/folders/types/folders_list_request_expand.py deleted file mode 100644 index 59ccf95d..00000000 --- a/src/merge/resources/filestorage/resources/folders/types/folders_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FoldersListRequestExpand(str, enum.Enum): - DRIVE = "drive" - PARENT_FOLDER = "parent_folder" - PARENT_FOLDER_DRIVE = "parent_folder,drive" - PERMISSIONS = "permissions" - PERMISSIONS_DRIVE = "permissions,drive" - PERMISSIONS_PARENT_FOLDER = "permissions,parent_folder" - PERMISSIONS_PARENT_FOLDER_DRIVE = "permissions,parent_folder,drive" - - def visit( - self, - drive: typing.Callable[[], T_Result], - parent_folder: typing.Callable[[], T_Result], - parent_folder_drive: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_drive: typing.Callable[[], T_Result], - permissions_parent_folder: typing.Callable[[], T_Result], - permissions_parent_folder_drive: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FoldersListRequestExpand.DRIVE: - return drive() - if self is FoldersListRequestExpand.PARENT_FOLDER: - return parent_folder() - if self is FoldersListRequestExpand.PARENT_FOLDER_DRIVE: - return parent_folder_drive() - if self is FoldersListRequestExpand.PERMISSIONS: - return permissions() - if self is FoldersListRequestExpand.PERMISSIONS_DRIVE: - return permissions_drive() - if self is FoldersListRequestExpand.PERMISSIONS_PARENT_FOLDER: - return permissions_parent_folder() - if self is FoldersListRequestExpand.PERMISSIONS_PARENT_FOLDER_DRIVE: - return permissions_parent_folder_drive() diff --git a/src/merge/resources/filestorage/resources/folders/types/folders_list_request_expand_item.py b/src/merge/resources/filestorage/resources/folders/types/folders_list_request_expand_item.py new file mode 100644 index 00000000..6a75787d --- /dev/null +++ b/src/merge/resources/filestorage/resources/folders/types/folders_list_request_expand_item.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class FoldersListRequestExpandItem(str, enum.Enum): + DRIVE = "drive" + PARENT_FOLDER = "parent_folder" + PERMISSIONS = "permissions" + + def visit( + self, + drive: typing.Callable[[], T_Result], + parent_folder: typing.Callable[[], T_Result], + permissions: typing.Callable[[], T_Result], + ) -> T_Result: + if self is FoldersListRequestExpandItem.DRIVE: + return drive() + if self is FoldersListRequestExpandItem.PARENT_FOLDER: + return parent_folder() + if self is FoldersListRequestExpandItem.PERMISSIONS: + return permissions() diff --git a/src/merge/resources/filestorage/resources/folders/types/folders_retrieve_request_expand.py b/src/merge/resources/filestorage/resources/folders/types/folders_retrieve_request_expand.py deleted file mode 100644 index f64d0f9d..00000000 --- a/src/merge/resources/filestorage/resources/folders/types/folders_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FoldersRetrieveRequestExpand(str, enum.Enum): - DRIVE = "drive" - PARENT_FOLDER = "parent_folder" - PARENT_FOLDER_DRIVE = "parent_folder,drive" - PERMISSIONS = "permissions" - PERMISSIONS_DRIVE = "permissions,drive" - PERMISSIONS_PARENT_FOLDER = "permissions,parent_folder" - PERMISSIONS_PARENT_FOLDER_DRIVE = "permissions,parent_folder,drive" - - def visit( - self, - drive: typing.Callable[[], T_Result], - parent_folder: typing.Callable[[], T_Result], - parent_folder_drive: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_drive: typing.Callable[[], T_Result], - permissions_parent_folder: typing.Callable[[], T_Result], - permissions_parent_folder_drive: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FoldersRetrieveRequestExpand.DRIVE: - return drive() - if self is FoldersRetrieveRequestExpand.PARENT_FOLDER: - return parent_folder() - if self is FoldersRetrieveRequestExpand.PARENT_FOLDER_DRIVE: - return parent_folder_drive() - if self is FoldersRetrieveRequestExpand.PERMISSIONS: - return permissions() - if self is FoldersRetrieveRequestExpand.PERMISSIONS_DRIVE: - return permissions_drive() - if self is FoldersRetrieveRequestExpand.PERMISSIONS_PARENT_FOLDER: - return permissions_parent_folder() - if self is FoldersRetrieveRequestExpand.PERMISSIONS_PARENT_FOLDER_DRIVE: - return permissions_parent_folder_drive() diff --git a/src/merge/resources/filestorage/resources/folders/types/folders_retrieve_request_expand_item.py b/src/merge/resources/filestorage/resources/folders/types/folders_retrieve_request_expand_item.py new file mode 100644 index 00000000..f2486a45 --- /dev/null +++ b/src/merge/resources/filestorage/resources/folders/types/folders_retrieve_request_expand_item.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class FoldersRetrieveRequestExpandItem(str, enum.Enum): + DRIVE = "drive" + PARENT_FOLDER = "parent_folder" + PERMISSIONS = "permissions" + + def visit( + self, + drive: typing.Callable[[], T_Result], + parent_folder: typing.Callable[[], T_Result], + permissions: typing.Callable[[], T_Result], + ) -> T_Result: + if self is FoldersRetrieveRequestExpandItem.DRIVE: + return drive() + if self is FoldersRetrieveRequestExpandItem.PARENT_FOLDER: + return parent_folder() + if self is FoldersRetrieveRequestExpandItem.PERMISSIONS: + return permissions() diff --git a/src/merge/resources/filestorage/resources/groups/__init__.py b/src/merge/resources/filestorage/resources/groups/__init__.py index 5cde0202..c42a8d2e 100644 --- a/src/merge/resources/filestorage/resources/groups/__init__.py +++ b/src/merge/resources/filestorage/resources/groups/__init__.py @@ -2,3 +2,34 @@ # isort: skip_file +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .types import GroupsListRequestExpandItem, GroupsRetrieveRequestExpandItem +_dynamic_imports: typing.Dict[str, str] = { + "GroupsListRequestExpandItem": ".types", + "GroupsRetrieveRequestExpandItem": ".types", +} + + +def __getattr__(attr_name: str) -> typing.Any: + module_name = _dynamic_imports.get(attr_name) + if module_name is None: + raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") + try: + module = import_module(module_name, __package__) + result = getattr(module, attr_name) + return result + except ImportError as e: + raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e + except AttributeError as e: + raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e + + +def __dir__(): + lazy_attrs = list(_dynamic_imports.keys()) + return sorted(lazy_attrs) + + +__all__ = ["GroupsListRequestExpandItem", "GroupsRetrieveRequestExpandItem"] diff --git a/src/merge/resources/filestorage/resources/groups/client.py b/src/merge/resources/filestorage/resources/groups/client.py index dd9c8e65..44db404d 100644 --- a/src/merge/resources/filestorage/resources/groups/client.py +++ b/src/merge/resources/filestorage/resources/groups/client.py @@ -4,10 +4,12 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions from ...types.group import Group -from ...types.paginated_group_list import PaginatedGroupList from .raw_client import AsyncRawGroupsClient, RawGroupsClient +from .types.groups_list_request_expand_item import GroupsListRequestExpandItem +from .types.groups_retrieve_request_expand_item import GroupsRetrieveRequestExpandItem class GroupsClient: @@ -31,7 +33,9 @@ def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -40,7 +44,7 @@ def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: + ) -> SyncPager[Group]: """ Returns a list of `Group` objects. @@ -55,7 +59,7 @@ def list( cursor : typing.Optional[str] The pagination cursor value. - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -74,7 +78,7 @@ def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -84,7 +88,7 @@ def list( Returns ------- - PaginatedGroupList + SyncPager[Group] Examples @@ -97,7 +101,7 @@ def list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.groups.list( + response = client.filestorage.groups.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -117,8 +121,13 @@ def list( page_size=1, remote_id="remote_id", ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -132,13 +141,14 @@ def list( remote_id=remote_id, request_options=request_options, ) - return _response.data def retrieve( self, id: str, *, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -150,7 +160,7 @@ def retrieve( ---------- id : str - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -212,7 +222,9 @@ async def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -221,7 +233,7 @@ async def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: + ) -> AsyncPager[Group]: """ Returns a list of `Group` objects. @@ -236,7 +248,7 @@ async def list( cursor : typing.Optional[str] The pagination cursor value. - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -255,7 +267,7 @@ async def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -265,7 +277,7 @@ async def list( Returns ------- - PaginatedGroupList + AsyncPager[Group] Examples @@ -282,7 +294,7 @@ async def list( async def main() -> None: - await client.filestorage.groups.list( + response = await client.filestorage.groups.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -302,11 +314,17 @@ async def main() -> None: page_size=1, remote_id="remote_id", ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, @@ -320,13 +338,14 @@ async def main() -> None: remote_id=remote_id, request_options=request_options, ) - return _response.data async def retrieve( self, id: str, *, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -338,7 +357,7 @@ async def retrieve( ---------- id : str - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] diff --git a/src/merge/resources/filestorage/resources/groups/raw_client.py b/src/merge/resources/filestorage/resources/groups/raw_client.py index 9ca38893..832c4da6 100644 --- a/src/merge/resources/filestorage/resources/groups/raw_client.py +++ b/src/merge/resources/filestorage/resources/groups/raw_client.py @@ -9,10 +9,13 @@ from .....core.datetime_utils import serialize_datetime from .....core.http_response import AsyncHttpResponse, HttpResponse from .....core.jsonable_encoder import jsonable_encoder +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.group import Group from ...types.paginated_group_list import PaginatedGroupList +from .types.groups_list_request_expand_item import GroupsListRequestExpandItem +from .types.groups_retrieve_request_expand_item import GroupsRetrieveRequestExpandItem class RawGroupsClient: @@ -25,7 +28,9 @@ def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -34,7 +39,7 @@ def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedGroupList]: + ) -> SyncPager[Group]: """ Returns a list of `Group` objects. @@ -49,7 +54,7 @@ def list( cursor : typing.Optional[str] The pagination cursor value. - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -68,7 +73,7 @@ def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -78,7 +83,7 @@ def list( Returns ------- - HttpResponse[PaginatedGroupList] + SyncPager[Group] """ _response = self._client_wrapper.httpx_client.request( @@ -101,14 +106,33 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedGroupList, construct_type( type_=PaginatedGroupList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + expand=expand, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + modified_after=modified_after, + modified_before=modified_before, + page_size=page_size, + remote_id=remote_id, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -118,7 +142,9 @@ def retrieve( self, id: str, *, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -130,7 +156,7 @@ def retrieve( ---------- id : str - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] @@ -183,7 +209,9 @@ async def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]] + ] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -192,7 +220,7 @@ async def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedGroupList]: + ) -> AsyncPager[Group]: """ Returns a list of `Group` objects. @@ -207,7 +235,7 @@ async def list( cursor : typing.Optional[str] The pagination cursor value. - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsListRequestExpandItem, typing.Sequence[GroupsListRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_deleted_data : typing.Optional[bool] @@ -226,7 +254,7 @@ async def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -236,7 +264,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedGroupList] + AsyncPager[Group] """ _response = await self._client_wrapper.httpx_client.request( @@ -259,14 +287,36 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedGroupList, construct_type( type_=PaginatedGroupList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + expand=expand, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + modified_after=modified_after, + modified_before=modified_before, + page_size=page_size, + remote_id=remote_id, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -276,7 +326,9 @@ async def retrieve( self, id: str, *, - expand: typing.Optional[typing.Literal["child_groups"]] = None, + expand: typing.Optional[ + typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]] + ] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None, @@ -288,7 +340,7 @@ async def retrieve( ---------- id : str - expand : typing.Optional[typing.Literal["child_groups"]] + expand : typing.Optional[typing.Union[GroupsRetrieveRequestExpandItem, typing.Sequence[GroupsRetrieveRequestExpandItem]]] Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. include_remote_data : typing.Optional[bool] diff --git a/src/merge/resources/accounting/resources/expenses/types/__init__.py b/src/merge/resources/filestorage/resources/groups/types/__init__.py similarity index 69% rename from src/merge/resources/accounting/resources/expenses/types/__init__.py rename to src/merge/resources/filestorage/resources/groups/types/__init__.py index 108b87d5..9f5d7290 100644 --- a/src/merge/resources/accounting/resources/expenses/types/__init__.py +++ b/src/merge/resources/filestorage/resources/groups/types/__init__.py @@ -6,11 +6,11 @@ from importlib import import_module if typing.TYPE_CHECKING: - from .expenses_list_request_expand import ExpensesListRequestExpand - from .expenses_retrieve_request_expand import ExpensesRetrieveRequestExpand + from .groups_list_request_expand_item import GroupsListRequestExpandItem + from .groups_retrieve_request_expand_item import GroupsRetrieveRequestExpandItem _dynamic_imports: typing.Dict[str, str] = { - "ExpensesListRequestExpand": ".expenses_list_request_expand", - "ExpensesRetrieveRequestExpand": ".expenses_retrieve_request_expand", + "GroupsListRequestExpandItem": ".groups_list_request_expand_item", + "GroupsRetrieveRequestExpandItem": ".groups_retrieve_request_expand_item", } @@ -33,4 +33,4 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["ExpensesListRequestExpand", "ExpensesRetrieveRequestExpand"] +__all__ = ["GroupsListRequestExpandItem", "GroupsRetrieveRequestExpandItem"] diff --git a/src/merge/resources/filestorage/resources/groups/types/groups_list_request_expand_item.py b/src/merge/resources/filestorage/resources/groups/types/groups_list_request_expand_item.py new file mode 100644 index 00000000..7e74c3cc --- /dev/null +++ b/src/merge/resources/filestorage/resources/groups/types/groups_list_request_expand_item.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class GroupsListRequestExpandItem(str, enum.Enum): + CHILD_GROUPS = "child_groups" + USERS = "users" + + def visit(self, child_groups: typing.Callable[[], T_Result], users: typing.Callable[[], T_Result]) -> T_Result: + if self is GroupsListRequestExpandItem.CHILD_GROUPS: + return child_groups() + if self is GroupsListRequestExpandItem.USERS: + return users() diff --git a/src/merge/resources/filestorage/resources/groups/types/groups_retrieve_request_expand_item.py b/src/merge/resources/filestorage/resources/groups/types/groups_retrieve_request_expand_item.py new file mode 100644 index 00000000..4843d494 --- /dev/null +++ b/src/merge/resources/filestorage/resources/groups/types/groups_retrieve_request_expand_item.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class GroupsRetrieveRequestExpandItem(str, enum.Enum): + CHILD_GROUPS = "child_groups" + USERS = "users" + + def visit(self, child_groups: typing.Callable[[], T_Result], users: typing.Callable[[], T_Result]) -> T_Result: + if self is GroupsRetrieveRequestExpandItem.CHILD_GROUPS: + return child_groups() + if self is GroupsRetrieveRequestExpandItem.USERS: + return users() diff --git a/src/merge/resources/filestorage/resources/issues/client.py b/src/merge/resources/filestorage/resources/issues/client.py index 423a956a..439ec69b 100644 --- a/src/merge/resources/filestorage/resources/issues/client.py +++ b/src/merge/resources/filestorage/resources/issues/client.py @@ -4,9 +4,9 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList from .raw_client import AsyncRawIssuesClient, RawIssuesClient from .types.issues_list_request_status import IssuesListRequestStatus @@ -44,7 +44,7 @@ def list( start_date: typing.Optional[str] = None, status: typing.Optional[IssuesListRequestStatus] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: + ) -> SyncPager[Issue]: """ Gets all issues for Organization. @@ -81,7 +81,7 @@ def list( If provided, will only include issues pertaining to the linked account passed in. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include issues whose most recent action occurred after this time @@ -97,7 +97,7 @@ def list( Returns ------- - PaginatedIssueList + SyncPager[Issue] Examples @@ -111,7 +111,7 @@ def list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.issues.list( + response = client.filestorage.issues.list( account_token="account_token", cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", end_date="end_date", @@ -135,8 +135,13 @@ def list( start_date="start_date", status=IssuesListRequestStatus.ONGOING, ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( account_token=account_token, cursor=cursor, end_date=end_date, @@ -153,7 +158,6 @@ def list( status=status, request_options=request_options, ) - return _response.data def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: """ @@ -220,7 +224,7 @@ async def list( start_date: typing.Optional[str] = None, status: typing.Optional[IssuesListRequestStatus] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: + ) -> AsyncPager[Issue]: """ Gets all issues for Organization. @@ -257,7 +261,7 @@ async def list( If provided, will only include issues pertaining to the linked account passed in. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include issues whose most recent action occurred after this time @@ -273,7 +277,7 @@ async def list( Returns ------- - PaginatedIssueList + AsyncPager[Issue] Examples @@ -291,7 +295,7 @@ async def list( async def main() -> None: - await client.filestorage.issues.list( + response = await client.filestorage.issues.list( account_token="account_token", cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", end_date="end_date", @@ -315,11 +319,17 @@ async def main() -> None: start_date="start_date", status=IssuesListRequestStatus.ONGOING, ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( account_token=account_token, cursor=cursor, end_date=end_date, @@ -336,7 +346,6 @@ async def main() -> None: status=status, request_options=request_options, ) - return _response.data async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: """ diff --git a/src/merge/resources/filestorage/resources/issues/raw_client.py b/src/merge/resources/filestorage/resources/issues/raw_client.py index 2c87dada..3707c8b7 100644 --- a/src/merge/resources/filestorage/resources/issues/raw_client.py +++ b/src/merge/resources/filestorage/resources/issues/raw_client.py @@ -9,6 +9,7 @@ from .....core.datetime_utils import serialize_datetime from .....core.http_response import AsyncHttpResponse, HttpResponse from .....core.jsonable_encoder import jsonable_encoder +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.issue import Issue @@ -38,7 +39,7 @@ def list( start_date: typing.Optional[str] = None, status: typing.Optional[IssuesListRequestStatus] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: + ) -> SyncPager[Issue]: """ Gets all issues for Organization. @@ -75,7 +76,7 @@ def list( If provided, will only include issues pertaining to the linked account passed in. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include issues whose most recent action occurred after this time @@ -91,7 +92,7 @@ def list( Returns ------- - HttpResponse[PaginatedIssueList] + SyncPager[Issue] """ _response = self._client_wrapper.httpx_client.request( @@ -125,14 +126,36 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedIssueList, construct_type( type_=PaginatedIssueList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + account_token=account_token, + cursor=_parsed_next, + end_date=end_date, + end_user_organization_name=end_user_organization_name, + first_incident_time_after=first_incident_time_after, + first_incident_time_before=first_incident_time_before, + include_muted=include_muted, + integration_name=integration_name, + last_incident_time_after=last_incident_time_after, + last_incident_time_before=last_incident_time_before, + linked_account_id=linked_account_id, + page_size=page_size, + start_date=start_date, + status=status, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -197,7 +220,7 @@ async def list( start_date: typing.Optional[str] = None, status: typing.Optional[IssuesListRequestStatus] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: + ) -> AsyncPager[Issue]: """ Gets all issues for Organization. @@ -234,7 +257,7 @@ async def list( If provided, will only include issues pertaining to the linked account passed in. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. start_date : typing.Optional[str] If included, will only include issues whose most recent action occurred after this time @@ -250,7 +273,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedIssueList] + AsyncPager[Issue] """ _response = await self._client_wrapper.httpx_client.request( @@ -284,14 +307,39 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedIssueList, construct_type( type_=PaginatedIssueList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + account_token=account_token, + cursor=_parsed_next, + end_date=end_date, + end_user_organization_name=end_user_organization_name, + first_incident_time_after=first_incident_time_after, + first_incident_time_before=first_incident_time_before, + include_muted=include_muted, + integration_name=integration_name, + last_incident_time_after=last_incident_time_after, + last_incident_time_before=last_incident_time_before, + linked_account_id=linked_account_id, + page_size=page_size, + start_date=start_date, + status=status, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/merge/resources/filestorage/resources/link_token/__init__.py b/src/merge/resources/filestorage/resources/link_token/__init__.py index 5cde0202..3bad6adf 100644 --- a/src/merge/resources/filestorage/resources/link_token/__init__.py +++ b/src/merge/resources/filestorage/resources/link_token/__init__.py @@ -2,3 +2,31 @@ # isort: skip_file +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .types import EndUserDetailsRequestLanguage +_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".types"} + + +def __getattr__(attr_name: str) -> typing.Any: + module_name = _dynamic_imports.get(attr_name) + if module_name is None: + raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") + try: + module = import_module(module_name, __package__) + result = getattr(module, attr_name) + return result + except ImportError as e: + raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e + except AttributeError as e: + raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e + + +def __dir__(): + lazy_attrs = list(_dynamic_imports.keys()) + return sorted(lazy_attrs) + + +__all__ = ["EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/filestorage/resources/link_token/client.py b/src/merge/resources/filestorage/resources/link_token/client.py index 9f8213f5..e1c3a8a2 100644 --- a/src/merge/resources/filestorage/resources/link_token/client.py +++ b/src/merge/resources/filestorage/resources/link_token/client.py @@ -7,9 +7,9 @@ from ...types.categories_enum import CategoriesEnum from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.language_enum import LanguageEnum from ...types.link_token import LinkToken from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient +from .types.end_user_details_request_language import EndUserDetailsRequestLanguage # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -45,13 +45,13 @@ def create( category_common_model_scopes: typing.Optional[ typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] ] = OMIT, - language: typing.Optional[LanguageEnum] = OMIT, + language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, are_syncs_disabled: typing.Optional[bool] = OMIT, integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> LinkToken: """ - Creates a link token to be used when linking a new end user. + Creates a link token to be used when linking a new end user. The link token expires after single use. Parameters ---------- @@ -85,7 +85,7 @@ def create( category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - language : typing.Optional[LanguageEnum] + language : typing.Optional[EndUserDetailsRequestLanguage] The following subset of IETF language tags can be used to configure localization. * `en` - en @@ -170,13 +170,13 @@ async def create( category_common_model_scopes: typing.Optional[ typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] ] = OMIT, - language: typing.Optional[LanguageEnum] = OMIT, + language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, are_syncs_disabled: typing.Optional[bool] = OMIT, integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> LinkToken: """ - Creates a link token to be used when linking a new end user. + Creates a link token to be used when linking a new end user. The link token expires after single use. Parameters ---------- @@ -210,7 +210,7 @@ async def create( category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - language : typing.Optional[LanguageEnum] + language : typing.Optional[EndUserDetailsRequestLanguage] The following subset of IETF language tags can be used to configure localization. * `en` - en diff --git a/src/merge/resources/filestorage/resources/link_token/raw_client.py b/src/merge/resources/filestorage/resources/link_token/raw_client.py index 391c7bb5..7bed415c 100644 --- a/src/merge/resources/filestorage/resources/link_token/raw_client.py +++ b/src/merge/resources/filestorage/resources/link_token/raw_client.py @@ -11,8 +11,8 @@ from ...types.categories_enum import CategoriesEnum from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.language_enum import LanguageEnum from ...types.link_token import LinkToken +from .types.end_user_details_request_language import EndUserDetailsRequestLanguage # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -37,13 +37,13 @@ def create( category_common_model_scopes: typing.Optional[ typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] ] = OMIT, - language: typing.Optional[LanguageEnum] = OMIT, + language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, are_syncs_disabled: typing.Optional[bool] = OMIT, integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[LinkToken]: """ - Creates a link token to be used when linking a new end user. + Creates a link token to be used when linking a new end user. The link token expires after single use. Parameters ---------- @@ -77,7 +77,7 @@ def create( category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - language : typing.Optional[LanguageEnum] + language : typing.Optional[EndUserDetailsRequestLanguage] The following subset of IETF language tags can be used to configure localization. * `en` - en @@ -156,13 +156,13 @@ async def create( category_common_model_scopes: typing.Optional[ typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] ] = OMIT, - language: typing.Optional[LanguageEnum] = OMIT, + language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, are_syncs_disabled: typing.Optional[bool] = OMIT, integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[LinkToken]: """ - Creates a link token to be used when linking a new end user. + Creates a link token to be used when linking a new end user. The link token expires after single use. Parameters ---------- @@ -196,7 +196,7 @@ async def create( category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - language : typing.Optional[LanguageEnum] + language : typing.Optional[EndUserDetailsRequestLanguage] The following subset of IETF language tags can be used to configure localization. * `en` - en diff --git a/src/merge/resources/accounting/resources/link_token/types/__init__.py b/src/merge/resources/filestorage/resources/link_token/types/__init__.py similarity index 100% rename from src/merge/resources/accounting/resources/link_token/types/__init__.py rename to src/merge/resources/filestorage/resources/link_token/types/__init__.py diff --git a/src/merge/resources/accounting/resources/link_token/types/end_user_details_request_language.py b/src/merge/resources/filestorage/resources/link_token/types/end_user_details_request_language.py similarity index 100% rename from src/merge/resources/accounting/resources/link_token/types/end_user_details_request_language.py rename to src/merge/resources/filestorage/resources/link_token/types/end_user_details_request_language.py diff --git a/src/merge/resources/filestorage/resources/linked_accounts/client.py b/src/merge/resources/filestorage/resources/linked_accounts/client.py index dbe48ae0..7b9cc272 100644 --- a/src/merge/resources/filestorage/resources/linked_accounts/client.py +++ b/src/merge/resources/filestorage/resources/linked_accounts/client.py @@ -3,8 +3,9 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList +from ...types.account_details_and_actions import AccountDetailsAndActions from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory @@ -41,7 +42,7 @@ def list( page_size: typing.Optional[int] = None, status: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: + ) -> SyncPager[AccountDetailsAndActions]: """ List linked accounts for your organization. @@ -88,7 +89,7 @@ def list( If included, will only include test linked accounts. If not included, will only include non-test linked accounts. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. status : typing.Optional[str] Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` @@ -98,7 +99,7 @@ def list( Returns ------- - PaginatedAccountDetailsAndActionsList + SyncPager[AccountDetailsAndActions] Examples @@ -112,7 +113,7 @@ def list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.linked_accounts.list( + response = client.filestorage.linked_accounts.list( category=LinkedAccountsListRequestCategory.ACCOUNTING, cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", end_user_email_address="end_user_email_address", @@ -127,8 +128,13 @@ def list( page_size=1, status="status", ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( category=category, cursor=cursor, end_user_email_address=end_user_email_address, @@ -144,7 +150,6 @@ def list( status=status, request_options=request_options, ) - return _response.data class AsyncLinkedAccountsClient: @@ -179,7 +184,7 @@ async def list( page_size: typing.Optional[int] = None, status: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: + ) -> AsyncPager[AccountDetailsAndActions]: """ List linked accounts for your organization. @@ -226,7 +231,7 @@ async def list( If included, will only include test linked accounts. If not included, will only include non-test linked accounts. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. status : typing.Optional[str] Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` @@ -236,7 +241,7 @@ async def list( Returns ------- - PaginatedAccountDetailsAndActionsList + AsyncPager[AccountDetailsAndActions] Examples @@ -255,7 +260,7 @@ async def list( async def main() -> None: - await client.filestorage.linked_accounts.list( + response = await client.filestorage.linked_accounts.list( category=LinkedAccountsListRequestCategory.ACCOUNTING, cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", end_user_email_address="end_user_email_address", @@ -270,11 +275,17 @@ async def main() -> None: page_size=1, status="status", ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( category=category, cursor=cursor, end_user_email_address=end_user_email_address, @@ -290,4 +301,3 @@ async def main() -> None: status=status, request_options=request_options, ) - return _response.data diff --git a/src/merge/resources/filestorage/resources/linked_accounts/raw_client.py b/src/merge/resources/filestorage/resources/linked_accounts/raw_client.py index 84226075..42f8665f 100644 --- a/src/merge/resources/filestorage/resources/linked_accounts/raw_client.py +++ b/src/merge/resources/filestorage/resources/linked_accounts/raw_client.py @@ -5,9 +5,10 @@ from .....core.api_error import ApiError from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type +from ...types.account_details_and_actions import AccountDetailsAndActions from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory @@ -33,7 +34,7 @@ def list( page_size: typing.Optional[int] = None, status: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: + ) -> SyncPager[AccountDetailsAndActions]: """ List linked accounts for your organization. @@ -80,7 +81,7 @@ def list( If included, will only include test linked accounts. If not included, will only include non-test linked accounts. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. status : typing.Optional[str] Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` @@ -90,7 +91,7 @@ def list( Returns ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] + SyncPager[AccountDetailsAndActions] """ _response = self._client_wrapper.httpx_client.request( @@ -115,14 +116,35 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedAccountDetailsAndActionsList, construct_type( type_=PaginatedAccountDetailsAndActionsList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + category=category, + cursor=_parsed_next, + end_user_email_address=end_user_email_address, + end_user_organization_name=end_user_organization_name, + end_user_origin_id=end_user_origin_id, + end_user_origin_ids=end_user_origin_ids, + id=id, + ids=ids, + include_duplicates=include_duplicates, + integration_name=integration_name, + is_test_account=is_test_account, + page_size=page_size, + status=status, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -150,7 +172,7 @@ async def list( page_size: typing.Optional[int] = None, status: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: + ) -> AsyncPager[AccountDetailsAndActions]: """ List linked accounts for your organization. @@ -197,7 +219,7 @@ async def list( If included, will only include test linked accounts. If not included, will only include non-test linked accounts. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. status : typing.Optional[str] Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` @@ -207,7 +229,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] + AsyncPager[AccountDetailsAndActions] """ _response = await self._client_wrapper.httpx_client.request( @@ -232,14 +254,38 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedAccountDetailsAndActionsList, construct_type( type_=PaginatedAccountDetailsAndActionsList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + category=category, + cursor=_parsed_next, + end_user_email_address=end_user_email_address, + end_user_organization_name=end_user_organization_name, + end_user_origin_id=end_user_origin_id, + end_user_origin_ids=end_user_origin_ids, + id=id, + ids=ids, + include_duplicates=include_duplicates, + integration_name=integration_name, + is_test_account=is_test_account, + page_size=page_size, + status=status, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/merge/resources/filestorage/resources/sync_status/client.py b/src/merge/resources/filestorage/resources/sync_status/client.py index 1ac89821..3795eec7 100644 --- a/src/merge/resources/filestorage/resources/sync_status/client.py +++ b/src/merge/resources/filestorage/resources/sync_status/client.py @@ -3,8 +3,9 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList +from ...types.sync_status import SyncStatus from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient @@ -29,7 +30,7 @@ def list( cursor: typing.Optional[str] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: + ) -> SyncPager[SyncStatus]: """ Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). @@ -39,14 +40,14 @@ def list( The pagination cursor value. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - PaginatedSyncStatusList + SyncPager[SyncStatus] Examples @@ -57,13 +58,17 @@ def list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.sync_status.list( + response = client.filestorage.sync_status.list( cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", page_size=1, ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data + return self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) class AsyncSyncStatusClient: @@ -87,7 +92,7 @@ async def list( cursor: typing.Optional[str] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: + ) -> AsyncPager[SyncStatus]: """ Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). @@ -97,14 +102,14 @@ async def list( The pagination cursor value. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - PaginatedSyncStatusList + AsyncPager[SyncStatus] Examples @@ -120,13 +125,18 @@ async def list( async def main() -> None: - await client.filestorage.sync_status.list( + response = await client.filestorage.sync_status.list( cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", page_size=1, ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data + return await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) diff --git a/src/merge/resources/filestorage/resources/sync_status/raw_client.py b/src/merge/resources/filestorage/resources/sync_status/raw_client.py index a3fccfec..71c1210f 100644 --- a/src/merge/resources/filestorage/resources/sync_status/raw_client.py +++ b/src/merge/resources/filestorage/resources/sync_status/raw_client.py @@ -5,10 +5,11 @@ from .....core.api_error import ApiError from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.paginated_sync_status_list import PaginatedSyncStatusList +from ...types.sync_status import SyncStatus class RawSyncStatusClient: @@ -21,7 +22,7 @@ def list( cursor: typing.Optional[str] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: + ) -> SyncPager[SyncStatus]: """ Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). @@ -31,14 +32,14 @@ def list( The pagination cursor value. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - HttpResponse[PaginatedSyncStatusList] + SyncPager[SyncStatus] """ _response = self._client_wrapper.httpx_client.request( @@ -52,14 +53,24 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedSyncStatusList, construct_type( type_=PaginatedSyncStatusList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + cursor=_parsed_next, + page_size=page_size, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -76,7 +87,7 @@ async def list( cursor: typing.Optional[str] = None, page_size: typing.Optional[int] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: + ) -> AsyncPager[SyncStatus]: """ Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). @@ -86,14 +97,14 @@ async def list( The pagination cursor value. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - AsyncHttpResponse[PaginatedSyncStatusList] + AsyncPager[SyncStatus] """ _response = await self._client_wrapper.httpx_client.request( @@ -107,14 +118,27 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedSyncStatusList, construct_type( type_=PaginatedSyncStatusList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + cursor=_parsed_next, + page_size=page_size, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/merge/resources/filestorage/resources/users/client.py b/src/merge/resources/filestorage/resources/users/client.py index 47767f06..9aeef6ab 100644 --- a/src/merge/resources/filestorage/resources/users/client.py +++ b/src/merge/resources/filestorage/resources/users/client.py @@ -4,8 +4,8 @@ import typing from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .....core.pagination import AsyncPager, SyncPager from .....core.request_options import RequestOptions -from ...types.paginated_user_list import PaginatedUserList from ...types.user import User from .raw_client import AsyncRawUsersClient, RawUsersClient @@ -31,6 +31,7 @@ def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, + email_address: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -40,7 +41,7 @@ def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: + ) -> SyncPager[User]: """ Returns a list of `User` objects. @@ -55,6 +56,9 @@ def list( cursor : typing.Optional[str] The pagination cursor value. + email_address : typing.Optional[str] + If provided, will only return users with emails equal to this value (case insensitive). + include_deleted_data : typing.Optional[bool] Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). @@ -74,7 +78,7 @@ def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -84,7 +88,7 @@ def list( Returns ------- - PaginatedUserList + SyncPager[User] Examples @@ -97,7 +101,7 @@ def list( account_token="YOUR_ACCOUNT_TOKEN", api_key="YOUR_API_KEY", ) - client.filestorage.users.list( + response = client.filestorage.users.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -105,6 +109,7 @@ def list( "2024-01-15 09:30:00+00:00", ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email_address="email_address", include_deleted_data=True, include_remote_data=True, include_shell_data=True, @@ -118,11 +123,17 @@ def list( page_size=1, remote_id="remote_id", ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page """ - _response = self._raw_client.list( + return self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, + email_address=email_address, include_deleted_data=include_deleted_data, include_remote_data=include_remote_data, include_shell_data=include_shell_data, @@ -133,7 +144,6 @@ def list( remote_id=remote_id, request_options=request_options, ) - return _response.data def retrieve( self, @@ -208,6 +218,7 @@ async def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, + email_address: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -217,7 +228,7 @@ async def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: + ) -> AsyncPager[User]: """ Returns a list of `User` objects. @@ -232,6 +243,9 @@ async def list( cursor : typing.Optional[str] The pagination cursor value. + email_address : typing.Optional[str] + If provided, will only return users with emails equal to this value (case insensitive). + include_deleted_data : typing.Optional[bool] Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). @@ -251,7 +265,7 @@ async def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -261,7 +275,7 @@ async def list( Returns ------- - PaginatedUserList + AsyncPager[User] Examples @@ -278,7 +292,7 @@ async def list( async def main() -> None: - await client.filestorage.users.list( + response = await client.filestorage.users.list( created_after=datetime.datetime.fromisoformat( "2024-01-15 09:30:00+00:00", ), @@ -286,6 +300,7 @@ async def main() -> None: "2024-01-15 09:30:00+00:00", ), cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email_address="email_address", include_deleted_data=True, include_remote_data=True, include_shell_data=True, @@ -299,14 +314,21 @@ async def main() -> None: page_size=1, remote_id="remote_id", ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page asyncio.run(main()) """ - _response = await self._raw_client.list( + return await self._raw_client.list( created_after=created_after, created_before=created_before, cursor=cursor, + email_address=email_address, include_deleted_data=include_deleted_data, include_remote_data=include_remote_data, include_shell_data=include_shell_data, @@ -317,7 +339,6 @@ async def main() -> None: remote_id=remote_id, request_options=request_options, ) - return _response.data async def retrieve( self, diff --git a/src/merge/resources/filestorage/resources/users/raw_client.py b/src/merge/resources/filestorage/resources/users/raw_client.py index 71f11280..476e9a7b 100644 --- a/src/merge/resources/filestorage/resources/users/raw_client.py +++ b/src/merge/resources/filestorage/resources/users/raw_client.py @@ -9,6 +9,7 @@ from .....core.datetime_utils import serialize_datetime from .....core.http_response import AsyncHttpResponse, HttpResponse from .....core.jsonable_encoder import jsonable_encoder +from .....core.pagination import AsyncPager, BaseHttpResponse, SyncPager from .....core.request_options import RequestOptions from .....core.unchecked_base_model import construct_type from ...types.paginated_user_list import PaginatedUserList @@ -25,6 +26,7 @@ def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, + email_address: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -34,7 +36,7 @@ def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedUserList]: + ) -> SyncPager[User]: """ Returns a list of `User` objects. @@ -49,6 +51,9 @@ def list( cursor : typing.Optional[str] The pagination cursor value. + email_address : typing.Optional[str] + If provided, will only return users with emails equal to this value (case insensitive). + include_deleted_data : typing.Optional[bool] Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). @@ -68,7 +73,7 @@ def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -78,7 +83,7 @@ def list( Returns ------- - HttpResponse[PaginatedUserList] + SyncPager[User] """ _response = self._client_wrapper.httpx_client.request( @@ -88,6 +93,7 @@ def list( "created_after": serialize_datetime(created_after) if created_after is not None else None, "created_before": serialize_datetime(created_before) if created_before is not None else None, "cursor": cursor, + "email_address": email_address, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_shell_data": include_shell_data, @@ -101,14 +107,34 @@ def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedUserList, construct_type( type_=PaginatedUserList, # type: ignore object_=_response.json(), ), ) - return HttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + email_address=email_address, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + is_me=is_me, + modified_after=modified_after, + modified_before=modified_before, + page_size=page_size, + remote_id=remote_id, + request_options=request_options, + ) + return SyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -178,6 +204,7 @@ async def list( created_after: typing.Optional[dt.datetime] = None, created_before: typing.Optional[dt.datetime] = None, cursor: typing.Optional[str] = None, + email_address: typing.Optional[str] = None, include_deleted_data: typing.Optional[bool] = None, include_remote_data: typing.Optional[bool] = None, include_shell_data: typing.Optional[bool] = None, @@ -187,7 +214,7 @@ async def list( page_size: typing.Optional[int] = None, remote_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedUserList]: + ) -> AsyncPager[User]: """ Returns a list of `User` objects. @@ -202,6 +229,9 @@ async def list( cursor : typing.Optional[str] The pagination cursor value. + email_address : typing.Optional[str] + If provided, will only return users with emails equal to this value (case insensitive). + include_deleted_data : typing.Optional[bool] Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). @@ -221,7 +251,7 @@ async def list( If provided, only objects synced by Merge before this date time will be returned. page_size : typing.Optional[int] - Number of results to return per page. + Number of results to return per page. The maximum limit is 100. remote_id : typing.Optional[str] The API provider's ID for the given object. @@ -231,7 +261,7 @@ async def list( Returns ------- - AsyncHttpResponse[PaginatedUserList] + AsyncPager[User] """ _response = await self._client_wrapper.httpx_client.request( @@ -241,6 +271,7 @@ async def list( "created_after": serialize_datetime(created_after) if created_after is not None else None, "created_before": serialize_datetime(created_before) if created_before is not None else None, "cursor": cursor, + "email_address": email_address, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_shell_data": include_shell_data, @@ -254,14 +285,37 @@ async def list( ) try: if 200 <= _response.status_code < 300: - _data = typing.cast( + _parsed_response = typing.cast( PaginatedUserList, construct_type( type_=PaginatedUserList, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + _items = _parsed_response.results + _parsed_next = _parsed_response.next + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + created_after=created_after, + created_before=created_before, + cursor=_parsed_next, + email_address=email_address, + include_deleted_data=include_deleted_data, + include_remote_data=include_remote_data, + include_shell_data=include_shell_data, + is_me=is_me, + modified_after=modified_after, + modified_before=modified_before, + page_size=page_size, + remote_id=remote_id, + request_options=request_options, + ) + + return AsyncPager( + has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response) + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/merge/resources/filestorage/types/__init__.py b/src/merge/resources/filestorage/types/__init__.py index 88a872d6..27b840b1 100644 --- a/src/merge/resources/filestorage/types/__init__.py +++ b/src/merge/resources/filestorage/types/__init__.py @@ -8,8 +8,11 @@ if typing.TYPE_CHECKING: from .account_details import AccountDetails from .account_details_and_actions import AccountDetailsAndActions + from .account_details_and_actions_category import AccountDetailsAndActionsCategory from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration + from .account_details_and_actions_status import AccountDetailsAndActionsStatus from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum + from .account_details_category import AccountDetailsCategory from .account_integration import AccountIntegration from .account_token import AccountToken from .advanced_metadata import AdvancedMetadata @@ -103,6 +106,7 @@ from .permission_roles_item import PermissionRolesItem from .permission_type import PermissionType from .permission_user import PermissionUser + from .regenerate_account_token import RegenerateAccountToken from .remote_data import RemoteData from .remote_endpoint_info import RemoteEndpointInfo from .remote_field_api import RemoteFieldApi @@ -110,6 +114,7 @@ from .remote_field_api_response import RemoteFieldApiResponse from .remote_key import RemoteKey from .remote_response import RemoteResponse + from .remote_response_response_type import RemoteResponseResponseType from .request_format_enum import RequestFormatEnum from .response_type_enum import ResponseTypeEnum from .role_enum import RoleEnum @@ -118,6 +123,7 @@ from .status_fd_5_enum import StatusFd5Enum from .sync_status import SyncStatus from .sync_status_last_sync_result import SyncStatusLastSyncResult + from .sync_status_status import SyncStatusStatus from .type_enum import TypeEnum from .user import User from .validation_problem_source import ValidationProblemSource @@ -126,8 +132,11 @@ _dynamic_imports: typing.Dict[str, str] = { "AccountDetails": ".account_details", "AccountDetailsAndActions": ".account_details_and_actions", + "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", + "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", + "AccountDetailsCategory": ".account_details_category", "AccountIntegration": ".account_integration", "AccountToken": ".account_token", "AdvancedMetadata": ".advanced_metadata", @@ -219,6 +228,7 @@ "PermissionRolesItem": ".permission_roles_item", "PermissionType": ".permission_type", "PermissionUser": ".permission_user", + "RegenerateAccountToken": ".regenerate_account_token", "RemoteData": ".remote_data", "RemoteEndpointInfo": ".remote_endpoint_info", "RemoteFieldApi": ".remote_field_api", @@ -226,6 +236,7 @@ "RemoteFieldApiResponse": ".remote_field_api_response", "RemoteKey": ".remote_key", "RemoteResponse": ".remote_response", + "RemoteResponseResponseType": ".remote_response_response_type", "RequestFormatEnum": ".request_format_enum", "ResponseTypeEnum": ".response_type_enum", "RoleEnum": ".role_enum", @@ -234,6 +245,7 @@ "StatusFd5Enum": ".status_fd_5_enum", "SyncStatus": ".sync_status", "SyncStatusLastSyncResult": ".sync_status_last_sync_result", + "SyncStatusStatus": ".sync_status_status", "TypeEnum": ".type_enum", "User": ".user", "ValidationProblemSource": ".validation_problem_source", @@ -264,8 +276,11 @@ def __dir__(): __all__ = [ "AccountDetails", "AccountDetailsAndActions", + "AccountDetailsAndActionsCategory", "AccountDetailsAndActionsIntegration", + "AccountDetailsAndActionsStatus", "AccountDetailsAndActionsStatusEnum", + "AccountDetailsCategory", "AccountIntegration", "AccountToken", "AdvancedMetadata", @@ -357,6 +372,7 @@ def __dir__(): "PermissionRolesItem", "PermissionType", "PermissionUser", + "RegenerateAccountToken", "RemoteData", "RemoteEndpointInfo", "RemoteFieldApi", @@ -364,6 +380,7 @@ def __dir__(): "RemoteFieldApiResponse", "RemoteKey", "RemoteResponse", + "RemoteResponseResponseType", "RequestFormatEnum", "ResponseTypeEnum", "RoleEnum", @@ -372,6 +389,7 @@ def __dir__(): "StatusFd5Enum", "SyncStatus", "SyncStatusLastSyncResult", + "SyncStatusStatus", "TypeEnum", "User", "ValidationProblemSource", diff --git a/src/merge/resources/filestorage/types/account_details.py b/src/merge/resources/filestorage/types/account_details.py index 58b10279..98923cd8 100644 --- a/src/merge/resources/filestorage/types/account_details.py +++ b/src/merge/resources/filestorage/types/account_details.py @@ -6,14 +6,14 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel -from .category_enum import CategoryEnum +from .account_details_category import AccountDetailsCategory class AccountDetails(UncheckedBaseModel): id: typing.Optional[str] = None integration: typing.Optional[str] = None integration_slug: typing.Optional[str] = None - category: typing.Optional[CategoryEnum] = None + category: typing.Optional[AccountDetailsCategory] = None end_user_origin_id: typing.Optional[str] = None end_user_organization_name: typing.Optional[str] = None end_user_email_address: typing.Optional[str] = None diff --git a/src/merge/resources/filestorage/types/account_details_and_actions.py b/src/merge/resources/filestorage/types/account_details_and_actions.py index 897c08ba..93c874ed 100644 --- a/src/merge/resources/filestorage/types/account_details_and_actions.py +++ b/src/merge/resources/filestorage/types/account_details_and_actions.py @@ -6,9 +6,9 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel +from .account_details_and_actions_category import AccountDetailsAndActionsCategory from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum -from .category_enum import CategoryEnum +from .account_details_and_actions_status import AccountDetailsAndActionsStatus class AccountDetailsAndActions(UncheckedBaseModel): @@ -22,8 +22,8 @@ class AccountDetailsAndActions(UncheckedBaseModel): """ id: str - category: typing.Optional[CategoryEnum] = None - status: AccountDetailsAndActionsStatusEnum + category: typing.Optional[AccountDetailsAndActionsCategory] = None + status: AccountDetailsAndActionsStatus status_detail: typing.Optional[str] = None end_user_origin_id: typing.Optional[str] = None end_user_organization_name: str diff --git a/src/merge/resources/accounting/types/account_details_and_actions_category.py b/src/merge/resources/filestorage/types/account_details_and_actions_category.py similarity index 100% rename from src/merge/resources/accounting/types/account_details_and_actions_category.py rename to src/merge/resources/filestorage/types/account_details_and_actions_category.py diff --git a/src/merge/resources/accounting/types/account_details_and_actions_status.py b/src/merge/resources/filestorage/types/account_details_and_actions_status.py similarity index 100% rename from src/merge/resources/accounting/types/account_details_and_actions_status.py rename to src/merge/resources/filestorage/types/account_details_and_actions_status.py diff --git a/src/merge/resources/accounting/types/account_details_category.py b/src/merge/resources/filestorage/types/account_details_category.py similarity index 100% rename from src/merge/resources/accounting/types/account_details_category.py rename to src/merge/resources/filestorage/types/account_details_category.py diff --git a/src/merge/resources/filestorage/types/drive.py b/src/merge/resources/filestorage/types/drive.py index c0f931ee..50a5f2bf 100644 --- a/src/merge/resources/filestorage/types/drive.py +++ b/src/merge/resources/filestorage/types/drive.py @@ -49,11 +49,6 @@ class Drive(UncheckedBaseModel): The drive's url. """ - size: typing.Optional[int] = pydantic.Field(default=None) - """ - The drive's size, in bytes. - """ - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) """ Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). diff --git a/src/merge/resources/filestorage/types/field_mapping_api_instance.py b/src/merge/resources/filestorage/types/field_mapping_api_instance.py index a5815313..0d257dcb 100644 --- a/src/merge/resources/filestorage/types/field_mapping_api_instance.py +++ b/src/merge/resources/filestorage/types/field_mapping_api_instance.py @@ -14,6 +14,7 @@ class FieldMappingApiInstance(UncheckedBaseModel): is_integration_wide: typing.Optional[bool] = None target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None + jmes_path: typing.Optional[str] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/merge/resources/filestorage/types/permission.py b/src/merge/resources/filestorage/types/permission.py index 19cb335f..954f589f 100644 --- a/src/merge/resources/filestorage/types/permission.py +++ b/src/merge/resources/filestorage/types/permission.py @@ -65,6 +65,13 @@ class Permission(UncheckedBaseModel): The permissions that the user or group has for the File or Folder. It is possible for a user or group to have multiple roles, such as viewing & uploading. Possible values include: `READ`, `WRITE`, `OWNER`. In cases where there is no clear mapping, the original value passed through will be returned. """ + remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) + """ + Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). + """ + + field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/merge/resources/ats/types/remote_key.py b/src/merge/resources/filestorage/types/regenerate_account_token.py similarity index 66% rename from src/merge/resources/ats/types/remote_key.py rename to src/merge/resources/filestorage/types/regenerate_account_token.py index e5d9758c..5c31cf57 100644 --- a/src/merge/resources/ats/types/remote_key.py +++ b/src/merge/resources/filestorage/types/regenerate_account_token.py @@ -7,18 +7,18 @@ from ....core.unchecked_base_model import UncheckedBaseModel -class RemoteKey(UncheckedBaseModel): +class RegenerateAccountToken(UncheckedBaseModel): """ - # The RemoteKey Object + # The RegenerateAccountToken Object ### Description - The `RemoteKey` object is used to represent a request for a new remote key. + The `RegenerateAccountToken` object is used to exchange an old account token for a new one. ### Usage Example - Post a `GenerateRemoteKey` to receive a new `RemoteKey`. + Post to receive a new `RegenerateAccountToken`. """ - name: str - key: str + linked_account_id: str + account_token: str if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/merge/resources/filestorage/types/remote_response.py b/src/merge/resources/filestorage/types/remote_response.py index af181fc0..db01131f 100644 --- a/src/merge/resources/filestorage/types/remote_response.py +++ b/src/merge/resources/filestorage/types/remote_response.py @@ -5,7 +5,7 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel -from .response_type_enum import ResponseTypeEnum +from .remote_response_response_type import RemoteResponseResponseType class RemoteResponse(UncheckedBaseModel): @@ -23,7 +23,7 @@ class RemoteResponse(UncheckedBaseModel): status: int response: typing.Optional[typing.Any] = None response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[ResponseTypeEnum] = None + response_type: typing.Optional[RemoteResponseResponseType] = None headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None if IS_PYDANTIC_V2: diff --git a/src/merge/resources/ats/types/remote_response_response_type.py b/src/merge/resources/filestorage/types/remote_response_response_type.py similarity index 100% rename from src/merge/resources/ats/types/remote_response_response_type.py rename to src/merge/resources/filestorage/types/remote_response_response_type.py diff --git a/src/merge/resources/filestorage/types/role_enum.py b/src/merge/resources/filestorage/types/role_enum.py index a6cfcc6f..8f2c9b1d 100644 --- a/src/merge/resources/filestorage/types/role_enum.py +++ b/src/merge/resources/filestorage/types/role_enum.py @@ -14,6 +14,7 @@ class RoleEnum(str, enum.Enum): * `API` - API * `SYSTEM` - SYSTEM * `MERGE_TEAM` - MERGE_TEAM + * `SUPPORT` - SUPPORT """ ADMIN = "ADMIN" @@ -22,6 +23,7 @@ class RoleEnum(str, enum.Enum): API = "API" SYSTEM = "SYSTEM" MERGE_TEAM = "MERGE_TEAM" + SUPPORT = "SUPPORT" def visit( self, @@ -31,6 +33,7 @@ def visit( api: typing.Callable[[], T_Result], system: typing.Callable[[], T_Result], merge_team: typing.Callable[[], T_Result], + support: typing.Callable[[], T_Result], ) -> T_Result: if self is RoleEnum.ADMIN: return admin() @@ -44,3 +47,5 @@ def visit( return system() if self is RoleEnum.MERGE_TEAM: return merge_team() + if self is RoleEnum.SUPPORT: + return support() diff --git a/src/merge/resources/filestorage/types/sync_status.py b/src/merge/resources/filestorage/types/sync_status.py index 4a628c4f..07ab1dc2 100644 --- a/src/merge/resources/filestorage/types/sync_status.py +++ b/src/merge/resources/filestorage/types/sync_status.py @@ -7,8 +7,8 @@ from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .status_fd_5_enum import StatusFd5Enum from .sync_status_last_sync_result import SyncStatusLastSyncResult +from .sync_status_status import SyncStatusStatus class SyncStatus(UncheckedBaseModel): @@ -27,7 +27,7 @@ class SyncStatus(UncheckedBaseModel): next_sync_start: typing.Optional[dt.datetime] = None last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None last_sync_finished: typing.Optional[dt.datetime] = None - status: StatusFd5Enum + status: SyncStatusStatus is_initial_sync: bool selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None diff --git a/src/merge/resources/accounting/types/sync_status_status.py b/src/merge/resources/filestorage/types/sync_status_status.py similarity index 100% rename from src/merge/resources/accounting/types/sync_status_status.py rename to src/merge/resources/filestorage/types/sync_status_status.py diff --git a/src/merge/resources/hris/__init__.py b/src/merge/resources/hris/__init__.py deleted file mode 100644 index 634ca2a4..00000000 --- a/src/merge/resources/hris/__init__.py +++ /dev/null @@ -1,865 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - AccountDetails, - AccountDetailsAndActions, - AccountDetailsAndActionsCategory, - AccountDetailsAndActionsIntegration, - AccountDetailsAndActionsStatus, - AccountDetailsAndActionsStatusEnum, - AccountDetailsCategory, - AccountIntegration, - AccountToken, - AccountTypeEnum, - AdvancedMetadata, - AsyncPassthroughReciept, - AuditLogEvent, - AuditLogEventEventType, - AuditLogEventRole, - AvailableActions, - BankInfo, - BankInfoAccountType, - BankInfoEmployee, - Benefit, - BenefitEmployee, - BenefitPlanTypeEnum, - CategoriesEnum, - CategoryEnum, - CommonModelScopeApi, - CommonModelScopesBodyRequest, - Company, - CompletedAccountInitialScreenEnum, - CountryEnum, - DataPassthroughRequest, - DebugModeLog, - DebugModelLogSummary, - Deduction, - Dependent, - DependentGender, - DependentRelationship, - Earning, - EarningType, - EarningTypeEnum, - Employee, - EmployeeCompany, - EmployeeEmploymentStatus, - EmployeeEmploymentsItem, - EmployeeEthnicity, - EmployeeGender, - EmployeeGroupsItem, - EmployeeHomeLocation, - EmployeeManager, - EmployeeMaritalStatus, - EmployeePayGroup, - EmployeePayrollRun, - EmployeePayrollRunEmployee, - EmployeePayrollRunPayrollRun, - EmployeeRequest, - EmployeeRequestCompany, - EmployeeRequestEmploymentStatus, - EmployeeRequestEmploymentsItem, - EmployeeRequestEthnicity, - EmployeeRequestGender, - EmployeeRequestGroupsItem, - EmployeeRequestHomeLocation, - EmployeeRequestManager, - EmployeeRequestMaritalStatus, - EmployeeRequestPayGroup, - EmployeeRequestTeam, - EmployeeRequestWorkLocation, - EmployeeResponse, - EmployeeTeam, - EmployeeWorkLocation, - EmployerBenefit, - EmployerBenefitBenefitPlanType, - Employment, - EmploymentEmployee, - EmploymentEmploymentType, - EmploymentFlsaStatus, - EmploymentPayCurrency, - EmploymentPayFrequency, - EmploymentPayGroup, - EmploymentPayPeriod, - EmploymentStatusEnum, - EmploymentTypeEnum, - EnabledActionsEnum, - EncodingEnum, - ErrorValidationProblem, - EthnicityEnum, - EventTypeEnum, - ExternalTargetFieldApi, - ExternalTargetFieldApiResponse, - FieldMappingApiInstance, - FieldMappingApiInstanceRemoteField, - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - FieldMappingApiInstanceResponse, - FieldMappingApiInstanceTargetField, - FieldMappingInstanceResponse, - FieldPermissionDeserializer, - FieldPermissionDeserializerRequest, - FlsaStatusEnum, - GenderEnum, - Group, - GroupType, - GroupTypeEnum, - IndividualCommonModelScopeDeserializer, - IndividualCommonModelScopeDeserializerRequest, - Issue, - IssueStatus, - IssueStatusEnum, - LanguageEnum, - LastSyncResultEnum, - LinkToken, - LinkedAccountStatus, - Location, - LocationCountry, - LocationLocationType, - LocationTypeEnum, - MaritalStatusEnum, - MetaResponse, - MethodEnum, - ModelOperation, - ModelPermissionDeserializer, - ModelPermissionDeserializerRequest, - MultipartFormFieldRequest, - MultipartFormFieldRequestEncoding, - PaginatedAccountDetailsAndActionsList, - PaginatedAuditLogEventList, - PaginatedBankInfoList, - PaginatedBenefitList, - PaginatedCompanyList, - PaginatedDependentList, - PaginatedEmployeeList, - PaginatedEmployeePayrollRunList, - PaginatedEmployerBenefitList, - PaginatedEmploymentList, - PaginatedGroupList, - PaginatedIssueList, - PaginatedLocationList, - PaginatedPayGroupList, - PaginatedPayrollRunList, - PaginatedSyncStatusList, - PaginatedTeamList, - PaginatedTimeOffBalanceList, - PaginatedTimeOffList, - PaginatedTimesheetEntryList, - PayCurrencyEnum, - PayFrequencyEnum, - PayGroup, - PayPeriodEnum, - PayrollRun, - PayrollRunRunState, - PayrollRunRunType, - PolicyTypeEnum, - ReasonEnum, - RelationshipEnum, - RemoteData, - RemoteEndpointInfo, - RemoteFieldApi, - RemoteFieldApiCoverage, - RemoteFieldApiResponse, - RemoteKey, - RemoteResponse, - RemoteResponseResponseType, - RequestFormatEnum, - RequestTypeEnum, - ResponseTypeEnum, - RoleEnum, - RunStateEnum, - RunTypeEnum, - SelectiveSyncConfigurationsUsageEnum, - StatusFd5Enum, - SyncStatus, - SyncStatusLastSyncResult, - Tax, - Team, - TeamParentTeam, - TimeOff, - TimeOffApprover, - TimeOffBalance, - TimeOffBalanceEmployee, - TimeOffBalancePolicyType, - TimeOffEmployee, - TimeOffRequest, - TimeOffRequestApprover, - TimeOffRequestEmployee, - TimeOffRequestRequestType, - TimeOffRequestStatus, - TimeOffRequestType, - TimeOffRequestUnits, - TimeOffResponse, - TimeOffStatus, - TimeOffStatusEnum, - TimeOffUnits, - TimesheetEntry, - TimesheetEntryEmployee, - TimesheetEntryRequest, - TimesheetEntryRequestEmployee, - TimesheetEntryResponse, - UnitsEnum, - ValidationProblemSource, - WarningValidationProblem, - WebhookReceiver, - ) - from .resources import ( - AsyncPassthroughRetrieveResponse, - BankInfoListRequestAccountType, - BankInfoListRequestOrderBy, - EmployeePayrollRunsListRequestExpand, - EmployeePayrollRunsRetrieveRequestExpand, - EmployeesListRequestEmploymentStatus, - EmployeesListRequestExpand, - EmployeesListRequestRemoteFields, - EmployeesListRequestShowEnumOrigins, - EmployeesRetrieveRequestExpand, - EmployeesRetrieveRequestRemoteFields, - EmployeesRetrieveRequestShowEnumOrigins, - EmploymentsListRequestExpand, - EmploymentsListRequestOrderBy, - EmploymentsListRequestRemoteFields, - EmploymentsListRequestShowEnumOrigins, - EmploymentsRetrieveRequestExpand, - EmploymentsRetrieveRequestRemoteFields, - EmploymentsRetrieveRequestShowEnumOrigins, - EndUserDetailsRequestCompletedAccountInitialScreen, - EndUserDetailsRequestLanguage, - IgnoreCommonModelRequestReason, - IssuesListRequestStatus, - LinkedAccountsListRequestCategory, - LocationsListRequestLocationType, - LocationsListRequestRemoteFields, - LocationsListRequestShowEnumOrigins, - LocationsRetrieveRequestRemoteFields, - LocationsRetrieveRequestShowEnumOrigins, - PayrollRunsListRequestRemoteFields, - PayrollRunsListRequestRunType, - PayrollRunsListRequestShowEnumOrigins, - PayrollRunsRetrieveRequestRemoteFields, - PayrollRunsRetrieveRequestShowEnumOrigins, - TimeOffBalancesListRequestPolicyType, - TimeOffListRequestExpand, - TimeOffListRequestRemoteFields, - TimeOffListRequestRequestType, - TimeOffListRequestShowEnumOrigins, - TimeOffListRequestStatus, - TimeOffRetrieveRequestExpand, - TimeOffRetrieveRequestRemoteFields, - TimeOffRetrieveRequestShowEnumOrigins, - TimesheetEntriesListRequestOrderBy, - account_details, - account_token, - async_passthrough, - audit_trail, - available_actions, - bank_info, - benefits, - companies, - delete_account, - dependents, - employee_payroll_runs, - employees, - employer_benefits, - employments, - field_mapping, - force_resync, - generate_key, - groups, - issues, - link_token, - linked_accounts, - locations, - passthrough, - pay_groups, - payroll_runs, - regenerate_key, - scopes, - sync_status, - teams, - time_off, - time_off_balances, - timesheet_entries, - webhook_receivers, - ) -_dynamic_imports: typing.Dict[str, str] = { - "AccountDetails": ".types", - "AccountDetailsAndActions": ".types", - "AccountDetailsAndActionsCategory": ".types", - "AccountDetailsAndActionsIntegration": ".types", - "AccountDetailsAndActionsStatus": ".types", - "AccountDetailsAndActionsStatusEnum": ".types", - "AccountDetailsCategory": ".types", - "AccountIntegration": ".types", - "AccountToken": ".types", - "AccountTypeEnum": ".types", - "AdvancedMetadata": ".types", - "AsyncPassthroughReciept": ".types", - "AsyncPassthroughRetrieveResponse": ".resources", - "AuditLogEvent": ".types", - "AuditLogEventEventType": ".types", - "AuditLogEventRole": ".types", - "AvailableActions": ".types", - "BankInfo": ".types", - "BankInfoAccountType": ".types", - "BankInfoEmployee": ".types", - "BankInfoListRequestAccountType": ".resources", - "BankInfoListRequestOrderBy": ".resources", - "Benefit": ".types", - "BenefitEmployee": ".types", - "BenefitPlanTypeEnum": ".types", - "CategoriesEnum": ".types", - "CategoryEnum": ".types", - "CommonModelScopeApi": ".types", - "CommonModelScopesBodyRequest": ".types", - "Company": ".types", - "CompletedAccountInitialScreenEnum": ".types", - "CountryEnum": ".types", - "DataPassthroughRequest": ".types", - "DebugModeLog": ".types", - "DebugModelLogSummary": ".types", - "Deduction": ".types", - "Dependent": ".types", - "DependentGender": ".types", - "DependentRelationship": ".types", - "Earning": ".types", - "EarningType": ".types", - "EarningTypeEnum": ".types", - "Employee": ".types", - "EmployeeCompany": ".types", - "EmployeeEmploymentStatus": ".types", - "EmployeeEmploymentsItem": ".types", - "EmployeeEthnicity": ".types", - "EmployeeGender": ".types", - "EmployeeGroupsItem": ".types", - "EmployeeHomeLocation": ".types", - "EmployeeManager": ".types", - "EmployeeMaritalStatus": ".types", - "EmployeePayGroup": ".types", - "EmployeePayrollRun": ".types", - "EmployeePayrollRunEmployee": ".types", - "EmployeePayrollRunPayrollRun": ".types", - "EmployeePayrollRunsListRequestExpand": ".resources", - "EmployeePayrollRunsRetrieveRequestExpand": ".resources", - "EmployeeRequest": ".types", - "EmployeeRequestCompany": ".types", - "EmployeeRequestEmploymentStatus": ".types", - "EmployeeRequestEmploymentsItem": ".types", - "EmployeeRequestEthnicity": ".types", - "EmployeeRequestGender": ".types", - "EmployeeRequestGroupsItem": ".types", - "EmployeeRequestHomeLocation": ".types", - "EmployeeRequestManager": ".types", - "EmployeeRequestMaritalStatus": ".types", - "EmployeeRequestPayGroup": ".types", - "EmployeeRequestTeam": ".types", - "EmployeeRequestWorkLocation": ".types", - "EmployeeResponse": ".types", - "EmployeeTeam": ".types", - "EmployeeWorkLocation": ".types", - "EmployeesListRequestEmploymentStatus": ".resources", - "EmployeesListRequestExpand": ".resources", - "EmployeesListRequestRemoteFields": ".resources", - "EmployeesListRequestShowEnumOrigins": ".resources", - "EmployeesRetrieveRequestExpand": ".resources", - "EmployeesRetrieveRequestRemoteFields": ".resources", - "EmployeesRetrieveRequestShowEnumOrigins": ".resources", - "EmployerBenefit": ".types", - "EmployerBenefitBenefitPlanType": ".types", - "Employment": ".types", - "EmploymentEmployee": ".types", - "EmploymentEmploymentType": ".types", - "EmploymentFlsaStatus": ".types", - "EmploymentPayCurrency": ".types", - "EmploymentPayFrequency": ".types", - "EmploymentPayGroup": ".types", - "EmploymentPayPeriod": ".types", - "EmploymentStatusEnum": ".types", - "EmploymentTypeEnum": ".types", - "EmploymentsListRequestExpand": ".resources", - "EmploymentsListRequestOrderBy": ".resources", - "EmploymentsListRequestRemoteFields": ".resources", - "EmploymentsListRequestShowEnumOrigins": ".resources", - "EmploymentsRetrieveRequestExpand": ".resources", - "EmploymentsRetrieveRequestRemoteFields": ".resources", - "EmploymentsRetrieveRequestShowEnumOrigins": ".resources", - "EnabledActionsEnum": ".types", - "EncodingEnum": ".types", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".resources", - "EndUserDetailsRequestLanguage": ".resources", - "ErrorValidationProblem": ".types", - "EthnicityEnum": ".types", - "EventTypeEnum": ".types", - "ExternalTargetFieldApi": ".types", - "ExternalTargetFieldApiResponse": ".types", - "FieldMappingApiInstance": ".types", - "FieldMappingApiInstanceRemoteField": ".types", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".types", - "FieldMappingApiInstanceResponse": ".types", - "FieldMappingApiInstanceTargetField": ".types", - "FieldMappingInstanceResponse": ".types", - "FieldPermissionDeserializer": ".types", - "FieldPermissionDeserializerRequest": ".types", - "FlsaStatusEnum": ".types", - "GenderEnum": ".types", - "Group": ".types", - "GroupType": ".types", - "GroupTypeEnum": ".types", - "IgnoreCommonModelRequestReason": ".resources", - "IndividualCommonModelScopeDeserializer": ".types", - "IndividualCommonModelScopeDeserializerRequest": ".types", - "Issue": ".types", - "IssueStatus": ".types", - "IssueStatusEnum": ".types", - "IssuesListRequestStatus": ".resources", - "LanguageEnum": ".types", - "LastSyncResultEnum": ".types", - "LinkToken": ".types", - "LinkedAccountStatus": ".types", - "LinkedAccountsListRequestCategory": ".resources", - "Location": ".types", - "LocationCountry": ".types", - "LocationLocationType": ".types", - "LocationTypeEnum": ".types", - "LocationsListRequestLocationType": ".resources", - "LocationsListRequestRemoteFields": ".resources", - "LocationsListRequestShowEnumOrigins": ".resources", - "LocationsRetrieveRequestRemoteFields": ".resources", - "LocationsRetrieveRequestShowEnumOrigins": ".resources", - "MaritalStatusEnum": ".types", - "MetaResponse": ".types", - "MethodEnum": ".types", - "ModelOperation": ".types", - "ModelPermissionDeserializer": ".types", - "ModelPermissionDeserializerRequest": ".types", - "MultipartFormFieldRequest": ".types", - "MultipartFormFieldRequestEncoding": ".types", - "PaginatedAccountDetailsAndActionsList": ".types", - "PaginatedAuditLogEventList": ".types", - "PaginatedBankInfoList": ".types", - "PaginatedBenefitList": ".types", - "PaginatedCompanyList": ".types", - "PaginatedDependentList": ".types", - "PaginatedEmployeeList": ".types", - "PaginatedEmployeePayrollRunList": ".types", - "PaginatedEmployerBenefitList": ".types", - "PaginatedEmploymentList": ".types", - "PaginatedGroupList": ".types", - "PaginatedIssueList": ".types", - "PaginatedLocationList": ".types", - "PaginatedPayGroupList": ".types", - "PaginatedPayrollRunList": ".types", - "PaginatedSyncStatusList": ".types", - "PaginatedTeamList": ".types", - "PaginatedTimeOffBalanceList": ".types", - "PaginatedTimeOffList": ".types", - "PaginatedTimesheetEntryList": ".types", - "PayCurrencyEnum": ".types", - "PayFrequencyEnum": ".types", - "PayGroup": ".types", - "PayPeriodEnum": ".types", - "PayrollRun": ".types", - "PayrollRunRunState": ".types", - "PayrollRunRunType": ".types", - "PayrollRunsListRequestRemoteFields": ".resources", - "PayrollRunsListRequestRunType": ".resources", - "PayrollRunsListRequestShowEnumOrigins": ".resources", - "PayrollRunsRetrieveRequestRemoteFields": ".resources", - "PayrollRunsRetrieveRequestShowEnumOrigins": ".resources", - "PolicyTypeEnum": ".types", - "ReasonEnum": ".types", - "RelationshipEnum": ".types", - "RemoteData": ".types", - "RemoteEndpointInfo": ".types", - "RemoteFieldApi": ".types", - "RemoteFieldApiCoverage": ".types", - "RemoteFieldApiResponse": ".types", - "RemoteKey": ".types", - "RemoteResponse": ".types", - "RemoteResponseResponseType": ".types", - "RequestFormatEnum": ".types", - "RequestTypeEnum": ".types", - "ResponseTypeEnum": ".types", - "RoleEnum": ".types", - "RunStateEnum": ".types", - "RunTypeEnum": ".types", - "SelectiveSyncConfigurationsUsageEnum": ".types", - "StatusFd5Enum": ".types", - "SyncStatus": ".types", - "SyncStatusLastSyncResult": ".types", - "Tax": ".types", - "Team": ".types", - "TeamParentTeam": ".types", - "TimeOff": ".types", - "TimeOffApprover": ".types", - "TimeOffBalance": ".types", - "TimeOffBalanceEmployee": ".types", - "TimeOffBalancePolicyType": ".types", - "TimeOffBalancesListRequestPolicyType": ".resources", - "TimeOffEmployee": ".types", - "TimeOffListRequestExpand": ".resources", - "TimeOffListRequestRemoteFields": ".resources", - "TimeOffListRequestRequestType": ".resources", - "TimeOffListRequestShowEnumOrigins": ".resources", - "TimeOffListRequestStatus": ".resources", - "TimeOffRequest": ".types", - "TimeOffRequestApprover": ".types", - "TimeOffRequestEmployee": ".types", - "TimeOffRequestRequestType": ".types", - "TimeOffRequestStatus": ".types", - "TimeOffRequestType": ".types", - "TimeOffRequestUnits": ".types", - "TimeOffResponse": ".types", - "TimeOffRetrieveRequestExpand": ".resources", - "TimeOffRetrieveRequestRemoteFields": ".resources", - "TimeOffRetrieveRequestShowEnumOrigins": ".resources", - "TimeOffStatus": ".types", - "TimeOffStatusEnum": ".types", - "TimeOffUnits": ".types", - "TimesheetEntriesListRequestOrderBy": ".resources", - "TimesheetEntry": ".types", - "TimesheetEntryEmployee": ".types", - "TimesheetEntryRequest": ".types", - "TimesheetEntryRequestEmployee": ".types", - "TimesheetEntryResponse": ".types", - "UnitsEnum": ".types", - "ValidationProblemSource": ".types", - "WarningValidationProblem": ".types", - "WebhookReceiver": ".types", - "account_details": ".resources", - "account_token": ".resources", - "async_passthrough": ".resources", - "audit_trail": ".resources", - "available_actions": ".resources", - "bank_info": ".resources", - "benefits": ".resources", - "companies": ".resources", - "delete_account": ".resources", - "dependents": ".resources", - "employee_payroll_runs": ".resources", - "employees": ".resources", - "employer_benefits": ".resources", - "employments": ".resources", - "field_mapping": ".resources", - "force_resync": ".resources", - "generate_key": ".resources", - "groups": ".resources", - "issues": ".resources", - "link_token": ".resources", - "linked_accounts": ".resources", - "locations": ".resources", - "passthrough": ".resources", - "pay_groups": ".resources", - "payroll_runs": ".resources", - "regenerate_key": ".resources", - "scopes": ".resources", - "sync_status": ".resources", - "teams": ".resources", - "time_off": ".resources", - "time_off_balances": ".resources", - "timesheet_entries": ".resources", - "webhook_receivers": ".resources", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AccountTypeEnum", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "AsyncPassthroughRetrieveResponse", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "BankInfo", - "BankInfoAccountType", - "BankInfoEmployee", - "BankInfoListRequestAccountType", - "BankInfoListRequestOrderBy", - "Benefit", - "BenefitEmployee", - "BenefitPlanTypeEnum", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "Company", - "CompletedAccountInitialScreenEnum", - "CountryEnum", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "Deduction", - "Dependent", - "DependentGender", - "DependentRelationship", - "Earning", - "EarningType", - "EarningTypeEnum", - "Employee", - "EmployeeCompany", - "EmployeeEmploymentStatus", - "EmployeeEmploymentsItem", - "EmployeeEthnicity", - "EmployeeGender", - "EmployeeGroupsItem", - "EmployeeHomeLocation", - "EmployeeManager", - "EmployeeMaritalStatus", - "EmployeePayGroup", - "EmployeePayrollRun", - "EmployeePayrollRunEmployee", - "EmployeePayrollRunPayrollRun", - "EmployeePayrollRunsListRequestExpand", - "EmployeePayrollRunsRetrieveRequestExpand", - "EmployeeRequest", - "EmployeeRequestCompany", - "EmployeeRequestEmploymentStatus", - "EmployeeRequestEmploymentsItem", - "EmployeeRequestEthnicity", - "EmployeeRequestGender", - "EmployeeRequestGroupsItem", - "EmployeeRequestHomeLocation", - "EmployeeRequestManager", - "EmployeeRequestMaritalStatus", - "EmployeeRequestPayGroup", - "EmployeeRequestTeam", - "EmployeeRequestWorkLocation", - "EmployeeResponse", - "EmployeeTeam", - "EmployeeWorkLocation", - "EmployeesListRequestEmploymentStatus", - "EmployeesListRequestExpand", - "EmployeesListRequestRemoteFields", - "EmployeesListRequestShowEnumOrigins", - "EmployeesRetrieveRequestExpand", - "EmployeesRetrieveRequestRemoteFields", - "EmployeesRetrieveRequestShowEnumOrigins", - "EmployerBenefit", - "EmployerBenefitBenefitPlanType", - "Employment", - "EmploymentEmployee", - "EmploymentEmploymentType", - "EmploymentFlsaStatus", - "EmploymentPayCurrency", - "EmploymentPayFrequency", - "EmploymentPayGroup", - "EmploymentPayPeriod", - "EmploymentStatusEnum", - "EmploymentTypeEnum", - "EmploymentsListRequestExpand", - "EmploymentsListRequestOrderBy", - "EmploymentsListRequestRemoteFields", - "EmploymentsListRequestShowEnumOrigins", - "EmploymentsRetrieveRequestExpand", - "EmploymentsRetrieveRequestRemoteFields", - "EmploymentsRetrieveRequestShowEnumOrigins", - "EnabledActionsEnum", - "EncodingEnum", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "ErrorValidationProblem", - "EthnicityEnum", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FlsaStatusEnum", - "GenderEnum", - "Group", - "GroupType", - "GroupTypeEnum", - "IgnoreCommonModelRequestReason", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "IssuesListRequestStatus", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "LinkedAccountsListRequestCategory", - "Location", - "LocationCountry", - "LocationLocationType", - "LocationTypeEnum", - "LocationsListRequestLocationType", - "LocationsListRequestRemoteFields", - "LocationsListRequestShowEnumOrigins", - "LocationsRetrieveRequestRemoteFields", - "LocationsRetrieveRequestShowEnumOrigins", - "MaritalStatusEnum", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAuditLogEventList", - "PaginatedBankInfoList", - "PaginatedBenefitList", - "PaginatedCompanyList", - "PaginatedDependentList", - "PaginatedEmployeeList", - "PaginatedEmployeePayrollRunList", - "PaginatedEmployerBenefitList", - "PaginatedEmploymentList", - "PaginatedGroupList", - "PaginatedIssueList", - "PaginatedLocationList", - "PaginatedPayGroupList", - "PaginatedPayrollRunList", - "PaginatedSyncStatusList", - "PaginatedTeamList", - "PaginatedTimeOffBalanceList", - "PaginatedTimeOffList", - "PaginatedTimesheetEntryList", - "PayCurrencyEnum", - "PayFrequencyEnum", - "PayGroup", - "PayPeriodEnum", - "PayrollRun", - "PayrollRunRunState", - "PayrollRunRunType", - "PayrollRunsListRequestRemoteFields", - "PayrollRunsListRequestRunType", - "PayrollRunsListRequestShowEnumOrigins", - "PayrollRunsRetrieveRequestRemoteFields", - "PayrollRunsRetrieveRequestShowEnumOrigins", - "PolicyTypeEnum", - "ReasonEnum", - "RelationshipEnum", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RequestFormatEnum", - "RequestTypeEnum", - "ResponseTypeEnum", - "RoleEnum", - "RunStateEnum", - "RunTypeEnum", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "Tax", - "Team", - "TeamParentTeam", - "TimeOff", - "TimeOffApprover", - "TimeOffBalance", - "TimeOffBalanceEmployee", - "TimeOffBalancePolicyType", - "TimeOffBalancesListRequestPolicyType", - "TimeOffEmployee", - "TimeOffListRequestExpand", - "TimeOffListRequestRemoteFields", - "TimeOffListRequestRequestType", - "TimeOffListRequestShowEnumOrigins", - "TimeOffListRequestStatus", - "TimeOffRequest", - "TimeOffRequestApprover", - "TimeOffRequestEmployee", - "TimeOffRequestRequestType", - "TimeOffRequestStatus", - "TimeOffRequestType", - "TimeOffRequestUnits", - "TimeOffResponse", - "TimeOffRetrieveRequestExpand", - "TimeOffRetrieveRequestRemoteFields", - "TimeOffRetrieveRequestShowEnumOrigins", - "TimeOffStatus", - "TimeOffStatusEnum", - "TimeOffUnits", - "TimesheetEntriesListRequestOrderBy", - "TimesheetEntry", - "TimesheetEntryEmployee", - "TimesheetEntryRequest", - "TimesheetEntryRequestEmployee", - "TimesheetEntryResponse", - "UnitsEnum", - "ValidationProblemSource", - "WarningValidationProblem", - "WebhookReceiver", - "account_details", - "account_token", - "async_passthrough", - "audit_trail", - "available_actions", - "bank_info", - "benefits", - "companies", - "delete_account", - "dependents", - "employee_payroll_runs", - "employees", - "employer_benefits", - "employments", - "field_mapping", - "force_resync", - "generate_key", - "groups", - "issues", - "link_token", - "linked_accounts", - "locations", - "passthrough", - "pay_groups", - "payroll_runs", - "regenerate_key", - "scopes", - "sync_status", - "teams", - "time_off", - "time_off_balances", - "timesheet_entries", - "webhook_receivers", -] diff --git a/src/merge/resources/hris/client.py b/src/merge/resources/hris/client.py deleted file mode 100644 index 9687055a..00000000 --- a/src/merge/resources/hris/client.py +++ /dev/null @@ -1,687 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawHrisClient, RawHrisClient - -if typing.TYPE_CHECKING: - from .resources.account_details.client import AccountDetailsClient, AsyncAccountDetailsClient - from .resources.account_token.client import AccountTokenClient, AsyncAccountTokenClient - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_hris_resources_async_passthrough_client_AsyncPassthroughClient, - ) - from .resources.audit_trail.client import AsyncAuditTrailClient, AuditTrailClient - from .resources.available_actions.client import AsyncAvailableActionsClient, AvailableActionsClient - from .resources.bank_info.client import AsyncBankInfoClient, BankInfoClient - from .resources.benefits.client import AsyncBenefitsClient, BenefitsClient - from .resources.companies.client import AsyncCompaniesClient, CompaniesClient - from .resources.delete_account.client import AsyncDeleteAccountClient, DeleteAccountClient - from .resources.dependents.client import AsyncDependentsClient, DependentsClient - from .resources.employee_payroll_runs.client import AsyncEmployeePayrollRunsClient, EmployeePayrollRunsClient - from .resources.employees.client import AsyncEmployeesClient, EmployeesClient - from .resources.employer_benefits.client import AsyncEmployerBenefitsClient, EmployerBenefitsClient - from .resources.employments.client import AsyncEmploymentsClient, EmploymentsClient - from .resources.field_mapping.client import AsyncFieldMappingClient, FieldMappingClient - from .resources.force_resync.client import AsyncForceResyncClient, ForceResyncClient - from .resources.generate_key.client import AsyncGenerateKeyClient, GenerateKeyClient - from .resources.groups.client import AsyncGroupsClient, GroupsClient - from .resources.issues.client import AsyncIssuesClient, IssuesClient - from .resources.link_token.client import AsyncLinkTokenClient, LinkTokenClient - from .resources.linked_accounts.client import AsyncLinkedAccountsClient, LinkedAccountsClient - from .resources.locations.client import AsyncLocationsClient, LocationsClient - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_hris_resources_passthrough_client_AsyncPassthroughClient, - ) - from .resources.passthrough.client import PassthroughClient - from .resources.pay_groups.client import AsyncPayGroupsClient, PayGroupsClient - from .resources.payroll_runs.client import AsyncPayrollRunsClient, PayrollRunsClient - from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient - from .resources.scopes.client import AsyncScopesClient, ScopesClient - from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient - from .resources.teams.client import AsyncTeamsClient, TeamsClient - from .resources.time_off.client import AsyncTimeOffClient, TimeOffClient - from .resources.time_off_balances.client import AsyncTimeOffBalancesClient, TimeOffBalancesClient - from .resources.timesheet_entries.client import AsyncTimesheetEntriesClient, TimesheetEntriesClient - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient - - -class HrisClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawHrisClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AccountDetailsClient] = None - self._account_token: typing.Optional[AccountTokenClient] = None - self._async_passthrough: typing.Optional[ - resources_hris_resources_async_passthrough_client_AsyncPassthroughClient - ] = None - self._audit_trail: typing.Optional[AuditTrailClient] = None - self._available_actions: typing.Optional[AvailableActionsClient] = None - self._bank_info: typing.Optional[BankInfoClient] = None - self._benefits: typing.Optional[BenefitsClient] = None - self._companies: typing.Optional[CompaniesClient] = None - self._scopes: typing.Optional[ScopesClient] = None - self._delete_account: typing.Optional[DeleteAccountClient] = None - self._dependents: typing.Optional[DependentsClient] = None - self._employee_payroll_runs: typing.Optional[EmployeePayrollRunsClient] = None - self._employees: typing.Optional[EmployeesClient] = None - self._employer_benefits: typing.Optional[EmployerBenefitsClient] = None - self._employments: typing.Optional[EmploymentsClient] = None - self._field_mapping: typing.Optional[FieldMappingClient] = None - self._generate_key: typing.Optional[GenerateKeyClient] = None - self._groups: typing.Optional[GroupsClient] = None - self._issues: typing.Optional[IssuesClient] = None - self._link_token: typing.Optional[LinkTokenClient] = None - self._linked_accounts: typing.Optional[LinkedAccountsClient] = None - self._locations: typing.Optional[LocationsClient] = None - self._passthrough: typing.Optional[PassthroughClient] = None - self._pay_groups: typing.Optional[PayGroupsClient] = None - self._payroll_runs: typing.Optional[PayrollRunsClient] = None - self._regenerate_key: typing.Optional[RegenerateKeyClient] = None - self._sync_status: typing.Optional[SyncStatusClient] = None - self._force_resync: typing.Optional[ForceResyncClient] = None - self._teams: typing.Optional[TeamsClient] = None - self._time_off: typing.Optional[TimeOffClient] = None - self._time_off_balances: typing.Optional[TimeOffBalancesClient] = None - self._timesheet_entries: typing.Optional[TimesheetEntriesClient] = None - self._webhook_receivers: typing.Optional[WebhookReceiversClient] = None - - @property - def with_raw_response(self) -> RawHrisClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawHrisClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AccountDetailsClient # noqa: E402 - - self._account_details = AccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AccountTokenClient # noqa: E402 - - self._account_token = AccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_hris_resources_async_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._async_passthrough = resources_hris_resources_async_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._async_passthrough - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AuditTrailClient # noqa: E402 - - self._audit_trail = AuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AvailableActionsClient # noqa: E402 - - self._available_actions = AvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def bank_info(self): - if self._bank_info is None: - from .resources.bank_info.client import BankInfoClient # noqa: E402 - - self._bank_info = BankInfoClient(client_wrapper=self._client_wrapper) - return self._bank_info - - @property - def benefits(self): - if self._benefits is None: - from .resources.benefits.client import BenefitsClient # noqa: E402 - - self._benefits = BenefitsClient(client_wrapper=self._client_wrapper) - return self._benefits - - @property - def companies(self): - if self._companies is None: - from .resources.companies.client import CompaniesClient # noqa: E402 - - self._companies = CompaniesClient(client_wrapper=self._client_wrapper) - return self._companies - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import ScopesClient # noqa: E402 - - self._scopes = ScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import DeleteAccountClient # noqa: E402 - - self._delete_account = DeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def dependents(self): - if self._dependents is None: - from .resources.dependents.client import DependentsClient # noqa: E402 - - self._dependents = DependentsClient(client_wrapper=self._client_wrapper) - return self._dependents - - @property - def employee_payroll_runs(self): - if self._employee_payroll_runs is None: - from .resources.employee_payroll_runs.client import EmployeePayrollRunsClient # noqa: E402 - - self._employee_payroll_runs = EmployeePayrollRunsClient(client_wrapper=self._client_wrapper) - return self._employee_payroll_runs - - @property - def employees(self): - if self._employees is None: - from .resources.employees.client import EmployeesClient # noqa: E402 - - self._employees = EmployeesClient(client_wrapper=self._client_wrapper) - return self._employees - - @property - def employer_benefits(self): - if self._employer_benefits is None: - from .resources.employer_benefits.client import EmployerBenefitsClient # noqa: E402 - - self._employer_benefits = EmployerBenefitsClient(client_wrapper=self._client_wrapper) - return self._employer_benefits - - @property - def employments(self): - if self._employments is None: - from .resources.employments.client import EmploymentsClient # noqa: E402 - - self._employments = EmploymentsClient(client_wrapper=self._client_wrapper) - return self._employments - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import FieldMappingClient # noqa: E402 - - self._field_mapping = FieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import GenerateKeyClient # noqa: E402 - - self._generate_key = GenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def groups(self): - if self._groups is None: - from .resources.groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import IssuesClient # noqa: E402 - - self._issues = IssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import LinkTokenClient # noqa: E402 - - self._link_token = LinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import LinkedAccountsClient # noqa: E402 - - self._linked_accounts = LinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def locations(self): - if self._locations is None: - from .resources.locations.client import LocationsClient # noqa: E402 - - self._locations = LocationsClient(client_wrapper=self._client_wrapper) - return self._locations - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import PassthroughClient # noqa: E402 - - self._passthrough = PassthroughClient(client_wrapper=self._client_wrapper) - return self._passthrough - - @property - def pay_groups(self): - if self._pay_groups is None: - from .resources.pay_groups.client import PayGroupsClient # noqa: E402 - - self._pay_groups = PayGroupsClient(client_wrapper=self._client_wrapper) - return self._pay_groups - - @property - def payroll_runs(self): - if self._payroll_runs is None: - from .resources.payroll_runs.client import PayrollRunsClient # noqa: E402 - - self._payroll_runs = PayrollRunsClient(client_wrapper=self._client_wrapper) - return self._payroll_runs - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import RegenerateKeyClient # noqa: E402 - - self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import SyncStatusClient # noqa: E402 - - self._sync_status = SyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import ForceResyncClient # noqa: E402 - - self._force_resync = ForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def teams(self): - if self._teams is None: - from .resources.teams.client import TeamsClient # noqa: E402 - - self._teams = TeamsClient(client_wrapper=self._client_wrapper) - return self._teams - - @property - def time_off(self): - if self._time_off is None: - from .resources.time_off.client import TimeOffClient # noqa: E402 - - self._time_off = TimeOffClient(client_wrapper=self._client_wrapper) - return self._time_off - - @property - def time_off_balances(self): - if self._time_off_balances is None: - from .resources.time_off_balances.client import TimeOffBalancesClient # noqa: E402 - - self._time_off_balances = TimeOffBalancesClient(client_wrapper=self._client_wrapper) - return self._time_off_balances - - @property - def timesheet_entries(self): - if self._timesheet_entries is None: - from .resources.timesheet_entries.client import TimesheetEntriesClient # noqa: E402 - - self._timesheet_entries = TimesheetEntriesClient(client_wrapper=self._client_wrapper) - return self._timesheet_entries - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import WebhookReceiversClient # noqa: E402 - - self._webhook_receivers = WebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers - - -class AsyncHrisClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawHrisClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AsyncAccountDetailsClient] = None - self._account_token: typing.Optional[AsyncAccountTokenClient] = None - self._async_passthrough: typing.Optional[AsyncAsyncPassthroughClient] = None - self._audit_trail: typing.Optional[AsyncAuditTrailClient] = None - self._available_actions: typing.Optional[AsyncAvailableActionsClient] = None - self._bank_info: typing.Optional[AsyncBankInfoClient] = None - self._benefits: typing.Optional[AsyncBenefitsClient] = None - self._companies: typing.Optional[AsyncCompaniesClient] = None - self._scopes: typing.Optional[AsyncScopesClient] = None - self._delete_account: typing.Optional[AsyncDeleteAccountClient] = None - self._dependents: typing.Optional[AsyncDependentsClient] = None - self._employee_payroll_runs: typing.Optional[AsyncEmployeePayrollRunsClient] = None - self._employees: typing.Optional[AsyncEmployeesClient] = None - self._employer_benefits: typing.Optional[AsyncEmployerBenefitsClient] = None - self._employments: typing.Optional[AsyncEmploymentsClient] = None - self._field_mapping: typing.Optional[AsyncFieldMappingClient] = None - self._generate_key: typing.Optional[AsyncGenerateKeyClient] = None - self._groups: typing.Optional[AsyncGroupsClient] = None - self._issues: typing.Optional[AsyncIssuesClient] = None - self._link_token: typing.Optional[AsyncLinkTokenClient] = None - self._linked_accounts: typing.Optional[AsyncLinkedAccountsClient] = None - self._locations: typing.Optional[AsyncLocationsClient] = None - self._passthrough: typing.Optional[resources_hris_resources_passthrough_client_AsyncPassthroughClient] = None - self._pay_groups: typing.Optional[AsyncPayGroupsClient] = None - self._payroll_runs: typing.Optional[AsyncPayrollRunsClient] = None - self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None - self._sync_status: typing.Optional[AsyncSyncStatusClient] = None - self._force_resync: typing.Optional[AsyncForceResyncClient] = None - self._teams: typing.Optional[AsyncTeamsClient] = None - self._time_off: typing.Optional[AsyncTimeOffClient] = None - self._time_off_balances: typing.Optional[AsyncTimeOffBalancesClient] = None - self._timesheet_entries: typing.Optional[AsyncTimesheetEntriesClient] = None - self._webhook_receivers: typing.Optional[AsyncWebhookReceiversClient] = None - - @property - def with_raw_response(self) -> AsyncRawHrisClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawHrisClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AsyncAccountDetailsClient # noqa: E402 - - self._account_details = AsyncAccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AsyncAccountTokenClient # noqa: E402 - - self._account_token = AsyncAccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient # noqa: E402 - - self._async_passthrough = AsyncAsyncPassthroughClient(client_wrapper=self._client_wrapper) - return self._async_passthrough - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AsyncAuditTrailClient # noqa: E402 - - self._audit_trail = AsyncAuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AsyncAvailableActionsClient # noqa: E402 - - self._available_actions = AsyncAvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def bank_info(self): - if self._bank_info is None: - from .resources.bank_info.client import AsyncBankInfoClient # noqa: E402 - - self._bank_info = AsyncBankInfoClient(client_wrapper=self._client_wrapper) - return self._bank_info - - @property - def benefits(self): - if self._benefits is None: - from .resources.benefits.client import AsyncBenefitsClient # noqa: E402 - - self._benefits = AsyncBenefitsClient(client_wrapper=self._client_wrapper) - return self._benefits - - @property - def companies(self): - if self._companies is None: - from .resources.companies.client import AsyncCompaniesClient # noqa: E402 - - self._companies = AsyncCompaniesClient(client_wrapper=self._client_wrapper) - return self._companies - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import AsyncScopesClient # noqa: E402 - - self._scopes = AsyncScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import AsyncDeleteAccountClient # noqa: E402 - - self._delete_account = AsyncDeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def dependents(self): - if self._dependents is None: - from .resources.dependents.client import AsyncDependentsClient # noqa: E402 - - self._dependents = AsyncDependentsClient(client_wrapper=self._client_wrapper) - return self._dependents - - @property - def employee_payroll_runs(self): - if self._employee_payroll_runs is None: - from .resources.employee_payroll_runs.client import AsyncEmployeePayrollRunsClient # noqa: E402 - - self._employee_payroll_runs = AsyncEmployeePayrollRunsClient(client_wrapper=self._client_wrapper) - return self._employee_payroll_runs - - @property - def employees(self): - if self._employees is None: - from .resources.employees.client import AsyncEmployeesClient # noqa: E402 - - self._employees = AsyncEmployeesClient(client_wrapper=self._client_wrapper) - return self._employees - - @property - def employer_benefits(self): - if self._employer_benefits is None: - from .resources.employer_benefits.client import AsyncEmployerBenefitsClient # noqa: E402 - - self._employer_benefits = AsyncEmployerBenefitsClient(client_wrapper=self._client_wrapper) - return self._employer_benefits - - @property - def employments(self): - if self._employments is None: - from .resources.employments.client import AsyncEmploymentsClient # noqa: E402 - - self._employments = AsyncEmploymentsClient(client_wrapper=self._client_wrapper) - return self._employments - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import AsyncFieldMappingClient # noqa: E402 - - self._field_mapping = AsyncFieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import AsyncGenerateKeyClient # noqa: E402 - - self._generate_key = AsyncGenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def groups(self): - if self._groups is None: - from .resources.groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import AsyncIssuesClient # noqa: E402 - - self._issues = AsyncIssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import AsyncLinkTokenClient # noqa: E402 - - self._link_token = AsyncLinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import AsyncLinkedAccountsClient # noqa: E402 - - self._linked_accounts = AsyncLinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def locations(self): - if self._locations is None: - from .resources.locations.client import AsyncLocationsClient # noqa: E402 - - self._locations = AsyncLocationsClient(client_wrapper=self._client_wrapper) - return self._locations - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_hris_resources_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._passthrough = resources_hris_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._passthrough - - @property - def pay_groups(self): - if self._pay_groups is None: - from .resources.pay_groups.client import AsyncPayGroupsClient # noqa: E402 - - self._pay_groups = AsyncPayGroupsClient(client_wrapper=self._client_wrapper) - return self._pay_groups - - @property - def payroll_runs(self): - if self._payroll_runs is None: - from .resources.payroll_runs.client import AsyncPayrollRunsClient # noqa: E402 - - self._payroll_runs = AsyncPayrollRunsClient(client_wrapper=self._client_wrapper) - return self._payroll_runs - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import AsyncRegenerateKeyClient # noqa: E402 - - self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import AsyncSyncStatusClient # noqa: E402 - - self._sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import AsyncForceResyncClient # noqa: E402 - - self._force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def teams(self): - if self._teams is None: - from .resources.teams.client import AsyncTeamsClient # noqa: E402 - - self._teams = AsyncTeamsClient(client_wrapper=self._client_wrapper) - return self._teams - - @property - def time_off(self): - if self._time_off is None: - from .resources.time_off.client import AsyncTimeOffClient # noqa: E402 - - self._time_off = AsyncTimeOffClient(client_wrapper=self._client_wrapper) - return self._time_off - - @property - def time_off_balances(self): - if self._time_off_balances is None: - from .resources.time_off_balances.client import AsyncTimeOffBalancesClient # noqa: E402 - - self._time_off_balances = AsyncTimeOffBalancesClient(client_wrapper=self._client_wrapper) - return self._time_off_balances - - @property - def timesheet_entries(self): - if self._timesheet_entries is None: - from .resources.timesheet_entries.client import AsyncTimesheetEntriesClient # noqa: E402 - - self._timesheet_entries = AsyncTimesheetEntriesClient(client_wrapper=self._client_wrapper) - return self._timesheet_entries - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient # noqa: E402 - - self._webhook_receivers = AsyncWebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers diff --git a/src/merge/resources/hris/raw_client.py b/src/merge/resources/hris/raw_client.py deleted file mode 100644 index 314307c0..00000000 --- a/src/merge/resources/hris/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawHrisClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawHrisClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/merge/resources/hris/resources/__init__.py b/src/merge/resources/hris/resources/__init__.py deleted file mode 100644 index 18381433..00000000 --- a/src/merge/resources/hris/resources/__init__.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - account_details, - account_token, - async_passthrough, - audit_trail, - available_actions, - bank_info, - benefits, - companies, - delete_account, - dependents, - employee_payroll_runs, - employees, - employer_benefits, - employments, - field_mapping, - force_resync, - generate_key, - groups, - issues, - link_token, - linked_accounts, - locations, - passthrough, - pay_groups, - payroll_runs, - regenerate_key, - scopes, - sync_status, - teams, - time_off, - time_off_balances, - timesheet_entries, - webhook_receivers, - ) - from .async_passthrough import AsyncPassthroughRetrieveResponse - from .bank_info import BankInfoListRequestAccountType, BankInfoListRequestOrderBy - from .employee_payroll_runs import EmployeePayrollRunsListRequestExpand, EmployeePayrollRunsRetrieveRequestExpand - from .employees import ( - EmployeesListRequestEmploymentStatus, - EmployeesListRequestExpand, - EmployeesListRequestRemoteFields, - EmployeesListRequestShowEnumOrigins, - EmployeesRetrieveRequestExpand, - EmployeesRetrieveRequestRemoteFields, - EmployeesRetrieveRequestShowEnumOrigins, - IgnoreCommonModelRequestReason, - ) - from .employments import ( - EmploymentsListRequestExpand, - EmploymentsListRequestOrderBy, - EmploymentsListRequestRemoteFields, - EmploymentsListRequestShowEnumOrigins, - EmploymentsRetrieveRequestExpand, - EmploymentsRetrieveRequestRemoteFields, - EmploymentsRetrieveRequestShowEnumOrigins, - ) - from .issues import IssuesListRequestStatus - from .link_token import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage - from .linked_accounts import LinkedAccountsListRequestCategory - from .locations import ( - LocationsListRequestLocationType, - LocationsListRequestRemoteFields, - LocationsListRequestShowEnumOrigins, - LocationsRetrieveRequestRemoteFields, - LocationsRetrieveRequestShowEnumOrigins, - ) - from .payroll_runs import ( - PayrollRunsListRequestRemoteFields, - PayrollRunsListRequestRunType, - PayrollRunsListRequestShowEnumOrigins, - PayrollRunsRetrieveRequestRemoteFields, - PayrollRunsRetrieveRequestShowEnumOrigins, - ) - from .time_off import ( - TimeOffListRequestExpand, - TimeOffListRequestRemoteFields, - TimeOffListRequestRequestType, - TimeOffListRequestShowEnumOrigins, - TimeOffListRequestStatus, - TimeOffRetrieveRequestExpand, - TimeOffRetrieveRequestRemoteFields, - TimeOffRetrieveRequestShowEnumOrigins, - ) - from .time_off_balances import TimeOffBalancesListRequestPolicyType - from .timesheet_entries import TimesheetEntriesListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = { - "AsyncPassthroughRetrieveResponse": ".async_passthrough", - "BankInfoListRequestAccountType": ".bank_info", - "BankInfoListRequestOrderBy": ".bank_info", - "EmployeePayrollRunsListRequestExpand": ".employee_payroll_runs", - "EmployeePayrollRunsRetrieveRequestExpand": ".employee_payroll_runs", - "EmployeesListRequestEmploymentStatus": ".employees", - "EmployeesListRequestExpand": ".employees", - "EmployeesListRequestRemoteFields": ".employees", - "EmployeesListRequestShowEnumOrigins": ".employees", - "EmployeesRetrieveRequestExpand": ".employees", - "EmployeesRetrieveRequestRemoteFields": ".employees", - "EmployeesRetrieveRequestShowEnumOrigins": ".employees", - "EmploymentsListRequestExpand": ".employments", - "EmploymentsListRequestOrderBy": ".employments", - "EmploymentsListRequestRemoteFields": ".employments", - "EmploymentsListRequestShowEnumOrigins": ".employments", - "EmploymentsRetrieveRequestExpand": ".employments", - "EmploymentsRetrieveRequestRemoteFields": ".employments", - "EmploymentsRetrieveRequestShowEnumOrigins": ".employments", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".link_token", - "EndUserDetailsRequestLanguage": ".link_token", - "IgnoreCommonModelRequestReason": ".employees", - "IssuesListRequestStatus": ".issues", - "LinkedAccountsListRequestCategory": ".linked_accounts", - "LocationsListRequestLocationType": ".locations", - "LocationsListRequestRemoteFields": ".locations", - "LocationsListRequestShowEnumOrigins": ".locations", - "LocationsRetrieveRequestRemoteFields": ".locations", - "LocationsRetrieveRequestShowEnumOrigins": ".locations", - "PayrollRunsListRequestRemoteFields": ".payroll_runs", - "PayrollRunsListRequestRunType": ".payroll_runs", - "PayrollRunsListRequestShowEnumOrigins": ".payroll_runs", - "PayrollRunsRetrieveRequestRemoteFields": ".payroll_runs", - "PayrollRunsRetrieveRequestShowEnumOrigins": ".payroll_runs", - "TimeOffBalancesListRequestPolicyType": ".time_off_balances", - "TimeOffListRequestExpand": ".time_off", - "TimeOffListRequestRemoteFields": ".time_off", - "TimeOffListRequestRequestType": ".time_off", - "TimeOffListRequestShowEnumOrigins": ".time_off", - "TimeOffListRequestStatus": ".time_off", - "TimeOffRetrieveRequestExpand": ".time_off", - "TimeOffRetrieveRequestRemoteFields": ".time_off", - "TimeOffRetrieveRequestShowEnumOrigins": ".time_off", - "TimesheetEntriesListRequestOrderBy": ".timesheet_entries", - "account_details": ".", - "account_token": ".", - "async_passthrough": ".", - "audit_trail": ".", - "available_actions": ".", - "bank_info": ".", - "benefits": ".", - "companies": ".", - "delete_account": ".", - "dependents": ".", - "employee_payroll_runs": ".", - "employees": ".", - "employer_benefits": ".", - "employments": ".", - "field_mapping": ".", - "force_resync": ".", - "generate_key": ".", - "groups": ".", - "issues": ".", - "link_token": ".", - "linked_accounts": ".", - "locations": ".", - "passthrough": ".", - "pay_groups": ".", - "payroll_runs": ".", - "regenerate_key": ".", - "scopes": ".", - "sync_status": ".", - "teams": ".", - "time_off": ".", - "time_off_balances": ".", - "timesheet_entries": ".", - "webhook_receivers": ".", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AsyncPassthroughRetrieveResponse", - "BankInfoListRequestAccountType", - "BankInfoListRequestOrderBy", - "EmployeePayrollRunsListRequestExpand", - "EmployeePayrollRunsRetrieveRequestExpand", - "EmployeesListRequestEmploymentStatus", - "EmployeesListRequestExpand", - "EmployeesListRequestRemoteFields", - "EmployeesListRequestShowEnumOrigins", - "EmployeesRetrieveRequestExpand", - "EmployeesRetrieveRequestRemoteFields", - "EmployeesRetrieveRequestShowEnumOrigins", - "EmploymentsListRequestExpand", - "EmploymentsListRequestOrderBy", - "EmploymentsListRequestRemoteFields", - "EmploymentsListRequestShowEnumOrigins", - "EmploymentsRetrieveRequestExpand", - "EmploymentsRetrieveRequestRemoteFields", - "EmploymentsRetrieveRequestShowEnumOrigins", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "IgnoreCommonModelRequestReason", - "IssuesListRequestStatus", - "LinkedAccountsListRequestCategory", - "LocationsListRequestLocationType", - "LocationsListRequestRemoteFields", - "LocationsListRequestShowEnumOrigins", - "LocationsRetrieveRequestRemoteFields", - "LocationsRetrieveRequestShowEnumOrigins", - "PayrollRunsListRequestRemoteFields", - "PayrollRunsListRequestRunType", - "PayrollRunsListRequestShowEnumOrigins", - "PayrollRunsRetrieveRequestRemoteFields", - "PayrollRunsRetrieveRequestShowEnumOrigins", - "TimeOffBalancesListRequestPolicyType", - "TimeOffListRequestExpand", - "TimeOffListRequestRemoteFields", - "TimeOffListRequestRequestType", - "TimeOffListRequestShowEnumOrigins", - "TimeOffListRequestStatus", - "TimeOffRetrieveRequestExpand", - "TimeOffRetrieveRequestRemoteFields", - "TimeOffRetrieveRequestShowEnumOrigins", - "TimesheetEntriesListRequestOrderBy", - "account_details", - "account_token", - "async_passthrough", - "audit_trail", - "available_actions", - "bank_info", - "benefits", - "companies", - "delete_account", - "dependents", - "employee_payroll_runs", - "employees", - "employer_benefits", - "employments", - "field_mapping", - "force_resync", - "generate_key", - "groups", - "issues", - "link_token", - "linked_accounts", - "locations", - "passthrough", - "pay_groups", - "payroll_runs", - "regenerate_key", - "scopes", - "sync_status", - "teams", - "time_off", - "time_off_balances", - "timesheet_entries", - "webhook_receivers", -] diff --git a/src/merge/resources/hris/resources/account_details/__init__.py b/src/merge/resources/hris/resources/account_details/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/account_details/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/account_details/client.py b/src/merge/resources/hris/resources/account_details/client.py deleted file mode 100644 index b7ce61b9..00000000 --- a/src/merge/resources/hris/resources/account_details/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_details import AccountDetails -from .raw_client import AsyncRawAccountDetailsClient, RawAccountDetailsClient - - -class AccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountDetailsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.account_details.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountDetailsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.account_details.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/account_details/raw_client.py b/src/merge/resources/hris/resources/account_details/raw_client.py deleted file mode 100644 index 9c729853..00000000 --- a/src/merge/resources/hris/resources/account_details/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_details import AccountDetails - - -class RawAccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountDetails] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountDetails] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/account_token/__init__.py b/src/merge/resources/hris/resources/account_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/account_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/account_token/client.py b/src/merge/resources/hris/resources/account_token/client.py deleted file mode 100644 index 0c87b2ea..00000000 --- a/src/merge/resources/hris/resources/account_token/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_token import AccountToken -from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient - - -class AccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountTokenClient - """ - return self._raw_client - - def retrieve(self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.account_token.retrieve( - public_token="public_token", - ) - """ - _response = self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data - - -class AsyncAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountTokenClient - """ - return self._raw_client - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.account_token.retrieve( - public_token="public_token", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/account_token/raw_client.py b/src/merge/resources/hris/resources/account_token/raw_client.py deleted file mode 100644 index 5ae02722..00000000 --- a/src/merge/resources/hris/resources/account_token/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_token import AccountToken - - -class RawAccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountToken] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/async_passthrough/__init__.py b/src/merge/resources/hris/resources/async_passthrough/__init__.py deleted file mode 100644 index 375c7953..00000000 --- a/src/merge/resources/hris/resources/async_passthrough/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/hris/resources/async_passthrough/client.py b/src/merge/resources/hris/resources/async_passthrough/client.py deleted file mode 100644 index e1db5514..00000000 --- a/src/merge/resources/hris/resources/async_passthrough/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .raw_client import AsyncRawAsyncPassthroughClient, RawAsyncPassthroughClient -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - from merge import Merge - from merge.resources.hris import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - """ - _response = self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data - - -class AsyncAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/async_passthrough/raw_client.py b/src/merge/resources/hris/resources/async_passthrough/raw_client.py deleted file mode 100644 index e4d6da0c..00000000 --- a/src/merge/resources/hris/resources/async_passthrough/raw_client.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughReciept] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughReciept] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/async_passthrough/types/__init__.py b/src/merge/resources/hris/resources/async_passthrough/types/__init__.py deleted file mode 100644 index f6e9bec9..00000000 --- a/src/merge/resources/hris/resources/async_passthrough/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".async_passthrough_retrieve_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/hris/resources/async_passthrough/types/async_passthrough_retrieve_response.py b/src/merge/resources/hris/resources/async_passthrough/types/async_passthrough_retrieve_response.py deleted file mode 100644 index f8f87c18..00000000 --- a/src/merge/resources/hris/resources/async_passthrough/types/async_passthrough_retrieve_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.remote_response import RemoteResponse - -AsyncPassthroughRetrieveResponse = typing.Union[RemoteResponse, str] diff --git a/src/merge/resources/hris/resources/audit_trail/__init__.py b/src/merge/resources/hris/resources/audit_trail/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/audit_trail/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/audit_trail/client.py b/src/merge/resources/hris/resources/audit_trail/client.py deleted file mode 100644 index 629f1716..00000000 --- a/src/merge/resources/hris/resources/audit_trail/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList -from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient - - -class AuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuditTrailClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - """ - _response = self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data - - -class AsyncAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuditTrailClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/audit_trail/raw_client.py b/src/merge/resources/hris/resources/audit_trail/raw_client.py deleted file mode 100644 index c9ff7ce6..00000000 --- a/src/merge/resources/hris/resources/audit_trail/raw_client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList - - -class RawAuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAuditLogEventList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAuditLogEventList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/available_actions/__init__.py b/src/merge/resources/hris/resources/available_actions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/available_actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/available_actions/client.py b/src/merge/resources/hris/resources/available_actions/client.py deleted file mode 100644 index a6a1aa33..00000000 --- a/src/merge/resources/hris/resources/available_actions/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.available_actions import AvailableActions -from .raw_client import AsyncRawAvailableActionsClient, RawAvailableActionsClient - - -class AvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAvailableActionsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.available_actions.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAvailableActionsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.available_actions.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/available_actions/raw_client.py b/src/merge/resources/hris/resources/available_actions/raw_client.py deleted file mode 100644 index 694d02ed..00000000 --- a/src/merge/resources/hris/resources/available_actions/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.available_actions import AvailableActions - - -class RawAvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AvailableActions] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AvailableActions] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/bank_info/__init__.py b/src/merge/resources/hris/resources/bank_info/__init__.py deleted file mode 100644 index c4f49abf..00000000 --- a/src/merge/resources/hris/resources/bank_info/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import BankInfoListRequestAccountType, BankInfoListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = { - "BankInfoListRequestAccountType": ".types", - "BankInfoListRequestOrderBy": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["BankInfoListRequestAccountType", "BankInfoListRequestOrderBy"] diff --git a/src/merge/resources/hris/resources/bank_info/client.py b/src/merge/resources/hris/resources/bank_info/client.py deleted file mode 100644 index d8b8421b..00000000 --- a/src/merge/resources/hris/resources/bank_info/client.py +++ /dev/null @@ -1,491 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.bank_info import BankInfo -from ...types.paginated_bank_info_list import PaginatedBankInfoList -from .raw_client import AsyncRawBankInfoClient, RawBankInfoClient -from .types.bank_info_list_request_account_type import BankInfoListRequestAccountType -from .types.bank_info_list_request_order_by import BankInfoListRequestOrderBy - - -class BankInfoClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBankInfoClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBankInfoClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBankInfoClient - """ - return self._raw_client - - def list( - self, - *, - account_type: typing.Optional[BankInfoListRequestAccountType] = None, - bank_name: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[BankInfoListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBankInfoList: - """ - Returns a list of `BankInfo` objects. - - Parameters - ---------- - account_type : typing.Optional[BankInfoListRequestAccountType] - If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') - - * `SAVINGS` - SAVINGS - * `CHECKING` - CHECKING - - bank_name : typing.Optional[str] - If provided, will only return BankInfo's with this bank name. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return bank accounts for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[BankInfoListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBankInfoList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.bank_info import ( - BankInfoListRequestAccountType, - BankInfoListRequestOrderBy, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.bank_info.list( - account_type=BankInfoListRequestAccountType.CHECKING, - bank_name="bank_name", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=BankInfoListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - account_type=account_type, - bank_name=bank_name, - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankInfo: - """ - Returns a `BankInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankInfo - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.bank_info.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncBankInfoClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBankInfoClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBankInfoClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBankInfoClient - """ - return self._raw_client - - async def list( - self, - *, - account_type: typing.Optional[BankInfoListRequestAccountType] = None, - bank_name: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[BankInfoListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBankInfoList: - """ - Returns a list of `BankInfo` objects. - - Parameters - ---------- - account_type : typing.Optional[BankInfoListRequestAccountType] - If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') - - * `SAVINGS` - SAVINGS - * `CHECKING` - CHECKING - - bank_name : typing.Optional[str] - If provided, will only return BankInfo's with this bank name. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return bank accounts for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[BankInfoListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBankInfoList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.bank_info import ( - BankInfoListRequestAccountType, - BankInfoListRequestOrderBy, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.bank_info.list( - account_type=BankInfoListRequestAccountType.CHECKING, - bank_name="bank_name", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=BankInfoListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING, - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_type=account_type, - bank_name=bank_name, - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> BankInfo: - """ - Returns a `BankInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BankInfo - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.bank_info.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/bank_info/raw_client.py b/src/merge/resources/hris/resources/bank_info/raw_client.py deleted file mode 100644 index c031bf3b..00000000 --- a/src/merge/resources/hris/resources/bank_info/raw_client.py +++ /dev/null @@ -1,419 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.bank_info import BankInfo -from ...types.paginated_bank_info_list import PaginatedBankInfoList -from .types.bank_info_list_request_account_type import BankInfoListRequestAccountType -from .types.bank_info_list_request_order_by import BankInfoListRequestOrderBy - - -class RawBankInfoClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_type: typing.Optional[BankInfoListRequestAccountType] = None, - bank_name: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[BankInfoListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedBankInfoList]: - """ - Returns a list of `BankInfo` objects. - - Parameters - ---------- - account_type : typing.Optional[BankInfoListRequestAccountType] - If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') - - * `SAVINGS` - SAVINGS - * `CHECKING` - CHECKING - - bank_name : typing.Optional[str] - If provided, will only return BankInfo's with this bank name. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return bank accounts for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[BankInfoListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedBankInfoList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/bank-info", - method="GET", - params={ - "account_type": account_type, - "bank_name": bank_name, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBankInfoList, - construct_type( - type_=PaginatedBankInfoList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[BankInfo]: - """ - Returns a `BankInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BankInfo] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/bank-info/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankInfo, - construct_type( - type_=BankInfo, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBankInfoClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_type: typing.Optional[BankInfoListRequestAccountType] = None, - bank_name: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[BankInfoListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedBankInfoList]: - """ - Returns a list of `BankInfo` objects. - - Parameters - ---------- - account_type : typing.Optional[BankInfoListRequestAccountType] - If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') - - * `SAVINGS` - SAVINGS - * `CHECKING` - CHECKING - - bank_name : typing.Optional[str] - If provided, will only return BankInfo's with this bank name. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return bank accounts for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[BankInfoListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedBankInfoList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/bank-info", - method="GET", - params={ - "account_type": account_type, - "bank_name": bank_name, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBankInfoList, - construct_type( - type_=PaginatedBankInfoList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["account_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["account_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[BankInfo]: - """ - Returns a `BankInfo` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["account_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["account_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BankInfo] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/bank-info/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BankInfo, - construct_type( - type_=BankInfo, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/bank_info/types/__init__.py b/src/merge/resources/hris/resources/bank_info/types/__init__.py deleted file mode 100644 index 9f1d7d37..00000000 --- a/src/merge/resources/hris/resources/bank_info/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .bank_info_list_request_account_type import BankInfoListRequestAccountType - from .bank_info_list_request_order_by import BankInfoListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = { - "BankInfoListRequestAccountType": ".bank_info_list_request_account_type", - "BankInfoListRequestOrderBy": ".bank_info_list_request_order_by", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["BankInfoListRequestAccountType", "BankInfoListRequestOrderBy"] diff --git a/src/merge/resources/hris/resources/bank_info/types/bank_info_list_request_account_type.py b/src/merge/resources/hris/resources/bank_info/types/bank_info_list_request_account_type.py deleted file mode 100644 index 91cd2c65..00000000 --- a/src/merge/resources/hris/resources/bank_info/types/bank_info_list_request_account_type.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class BankInfoListRequestAccountType(str, enum.Enum): - CHECKING = "CHECKING" - SAVINGS = "SAVINGS" - - def visit(self, checking: typing.Callable[[], T_Result], savings: typing.Callable[[], T_Result]) -> T_Result: - if self is BankInfoListRequestAccountType.CHECKING: - return checking() - if self is BankInfoListRequestAccountType.SAVINGS: - return savings() diff --git a/src/merge/resources/hris/resources/bank_info/types/bank_info_list_request_order_by.py b/src/merge/resources/hris/resources/bank_info/types/bank_info_list_request_order_by.py deleted file mode 100644 index 69c7361f..00000000 --- a/src/merge/resources/hris/resources/bank_info/types/bank_info_list_request_order_by.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class BankInfoListRequestOrderBy(str, enum.Enum): - REMOTE_CREATED_AT_DESCENDING = "-remote_created_at" - REMOTE_CREATED_AT_ASCENDING = "remote_created_at" - - def visit( - self, - remote_created_at_descending: typing.Callable[[], T_Result], - remote_created_at_ascending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is BankInfoListRequestOrderBy.REMOTE_CREATED_AT_DESCENDING: - return remote_created_at_descending() - if self is BankInfoListRequestOrderBy.REMOTE_CREATED_AT_ASCENDING: - return remote_created_at_ascending() diff --git a/src/merge/resources/hris/resources/benefits/__init__.py b/src/merge/resources/hris/resources/benefits/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/benefits/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/benefits/client.py b/src/merge/resources/hris/resources/benefits/client.py deleted file mode 100644 index 2a7380c8..00000000 --- a/src/merge/resources/hris/resources/benefits/client.py +++ /dev/null @@ -1,399 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.benefit import Benefit -from ...types.paginated_benefit_list import PaginatedBenefitList -from .raw_client import AsyncRawBenefitsClient, RawBenefitsClient - - -class BenefitsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawBenefitsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawBenefitsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawBenefitsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBenefitList: - """ - Returns a list of `Benefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will return the benefits associated with the employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBenefitList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.benefits.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Benefit: - """ - Returns a `Benefit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Benefit - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.benefits.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncBenefitsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawBenefitsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawBenefitsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawBenefitsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedBenefitList: - """ - Returns a list of `Benefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will return the benefits associated with the employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedBenefitList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.benefits.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Benefit: - """ - Returns a `Benefit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Benefit - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.benefits.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/benefits/raw_client.py b/src/merge/resources/hris/resources/benefits/raw_client.py deleted file mode 100644 index 0a3b37cf..00000000 --- a/src/merge/resources/hris/resources/benefits/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.benefit import Benefit -from ...types.paginated_benefit_list import PaginatedBenefitList - - -class RawBenefitsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedBenefitList]: - """ - Returns a list of `Benefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will return the benefits associated with the employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedBenefitList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/benefits", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBenefitList, - construct_type( - type_=PaginatedBenefitList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Benefit]: - """ - Returns a `Benefit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Benefit] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/benefits/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Benefit, - construct_type( - type_=Benefit, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawBenefitsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedBenefitList]: - """ - Returns a list of `Benefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will return the benefits associated with the employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedBenefitList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/benefits", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedBenefitList, - construct_type( - type_=PaginatedBenefitList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Benefit]: - """ - Returns a `Benefit` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Benefit] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/benefits/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Benefit, - construct_type( - type_=Benefit, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/companies/__init__.py b/src/merge/resources/hris/resources/companies/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/companies/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/companies/client.py b/src/merge/resources/hris/resources/companies/client.py deleted file mode 100644 index 598582d5..00000000 --- a/src/merge/resources/hris/resources/companies/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.company import Company -from ...types.paginated_company_list import PaginatedCompanyList -from .raw_client import AsyncRawCompaniesClient, RawCompaniesClient - - -class CompaniesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCompaniesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCompaniesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCompaniesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCompanyList: - """ - Returns a list of `Company` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCompanyList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.companies.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Company: - """ - Returns a `Company` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Company - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.companies.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncCompaniesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCompaniesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCompaniesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCompaniesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCompanyList: - """ - Returns a list of `Company` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCompanyList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.companies.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Company: - """ - Returns a `Company` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Company - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.companies.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/companies/raw_client.py b/src/merge/resources/hris/resources/companies/raw_client.py deleted file mode 100644 index 99a8715e..00000000 --- a/src/merge/resources/hris/resources/companies/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.company import Company -from ...types.paginated_company_list import PaginatedCompanyList - - -class RawCompaniesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCompanyList]: - """ - Returns a list of `Company` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCompanyList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/companies", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCompanyList, - construct_type( - type_=PaginatedCompanyList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Company]: - """ - Returns a `Company` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Company] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/companies/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Company, - construct_type( - type_=Company, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCompaniesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCompanyList]: - """ - Returns a list of `Company` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCompanyList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/companies", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCompanyList, - construct_type( - type_=PaginatedCompanyList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Company]: - """ - Returns a `Company` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Company] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/companies/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Company, - construct_type( - type_=Company, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/delete_account/__init__.py b/src/merge/resources/hris/resources/delete_account/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/delete_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/delete_account/client.py b/src/merge/resources/hris/resources/delete_account/client.py deleted file mode 100644 index b35192ee..00000000 --- a/src/merge/resources/hris/resources/delete_account/client.py +++ /dev/null @@ -1,99 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .raw_client import AsyncRawDeleteAccountClient, RawDeleteAccountClient - - -class DeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeleteAccountClient - """ - return self._raw_client - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.delete_account.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeleteAccountClient - """ - return self._raw_client - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.delete_account.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/delete_account/raw_client.py b/src/merge/resources/hris/resources/delete_account/raw_client.py deleted file mode 100644 index f71ea39d..00000000 --- a/src/merge/resources/hris/resources/delete_account/raw_client.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions - - -class RawDeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/dependents/__init__.py b/src/merge/resources/hris/resources/dependents/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/dependents/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/dependents/client.py b/src/merge/resources/hris/resources/dependents/client.py deleted file mode 100644 index a87e7ca9..00000000 --- a/src/merge/resources/hris/resources/dependents/client.py +++ /dev/null @@ -1,403 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.dependent import Dependent -from ...types.paginated_dependent_list import PaginatedDependentList -from .raw_client import AsyncRawDependentsClient, RawDependentsClient - - -class DependentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDependentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDependentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDependentsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDependentList: - """ - Returns a list of `Dependent` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return dependents for this employee. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedDependentList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.dependents.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Dependent: - """ - Returns a `Dependent` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Dependent - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.dependents.retrieve( - id="id", - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncDependentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDependentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDependentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDependentsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedDependentList: - """ - Returns a list of `Dependent` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return dependents for this employee. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedDependentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.dependents.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Dependent: - """ - Returns a `Dependent` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Dependent - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.dependents.retrieve( - id="id", - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/dependents/raw_client.py b/src/merge/resources/hris/resources/dependents/raw_client.py deleted file mode 100644 index 5e9fd5ef..00000000 --- a/src/merge/resources/hris/resources/dependents/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.dependent import Dependent -from ...types.paginated_dependent_list import PaginatedDependentList - - -class RawDependentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedDependentList]: - """ - Returns a list of `Dependent` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return dependents for this employee. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedDependentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/dependents", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedDependentList, - construct_type( - type_=PaginatedDependentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Dependent]: - """ - Returns a `Dependent` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Dependent] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/dependents/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Dependent, - construct_type( - type_=Dependent, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDependentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedDependentList]: - """ - Returns a list of `Dependent` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return dependents for this employee. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedDependentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/dependents", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedDependentList, - construct_type( - type_=PaginatedDependentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Dependent]: - """ - Returns a `Dependent` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Dependent] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/dependents/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Dependent, - construct_type( - type_=Dependent, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/employee_payroll_runs/__init__.py b/src/merge/resources/hris/resources/employee_payroll_runs/__init__.py deleted file mode 100644 index 78830ea4..00000000 --- a/src/merge/resources/hris/resources/employee_payroll_runs/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EmployeePayrollRunsListRequestExpand, EmployeePayrollRunsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "EmployeePayrollRunsListRequestExpand": ".types", - "EmployeePayrollRunsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EmployeePayrollRunsListRequestExpand", "EmployeePayrollRunsRetrieveRequestExpand"] diff --git a/src/merge/resources/hris/resources/employee_payroll_runs/client.py b/src/merge/resources/hris/resources/employee_payroll_runs/client.py deleted file mode 100644 index 8ccd63c3..00000000 --- a/src/merge/resources/hris/resources/employee_payroll_runs/client.py +++ /dev/null @@ -1,493 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.employee_payroll_run import EmployeePayrollRun -from ...types.paginated_employee_payroll_run_list import PaginatedEmployeePayrollRunList -from .raw_client import AsyncRawEmployeePayrollRunsClient, RawEmployeePayrollRunsClient -from .types.employee_payroll_runs_list_request_expand import EmployeePayrollRunsListRequestExpand -from .types.employee_payroll_runs_retrieve_request_expand import EmployeePayrollRunsRetrieveRequestExpand - - -class EmployeePayrollRunsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmployeePayrollRunsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEmployeePayrollRunsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmployeePayrollRunsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[EmployeePayrollRunsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - payroll_run_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployeePayrollRunList: - """ - Returns a list of `EmployeePayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended before this datetime. - - expand : typing.Optional[EmployeePayrollRunsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - payroll_run_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployeePayrollRunList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.employee_payroll_runs import ( - EmployeePayrollRunsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employee_payroll_runs.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=EmployeePayrollRunsListRequestExpand.EMPLOYEE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - payroll_run_id="payroll_run_id", - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - ended_after=ended_after, - ended_before=ended_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - payroll_run_id=payroll_run_id, - remote_id=remote_id, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EmployeePayrollRun: - """ - Returns an `EmployeePayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EmployeePayrollRun - - - Examples - -------- - from merge import Merge - from merge.resources.hris.resources.employee_payroll_runs import ( - EmployeePayrollRunsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employee_payroll_runs.retrieve( - id="id", - expand=EmployeePayrollRunsRetrieveRequestExpand.EMPLOYEE, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncEmployeePayrollRunsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmployeePayrollRunsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEmployeePayrollRunsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmployeePayrollRunsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[EmployeePayrollRunsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - payroll_run_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployeePayrollRunList: - """ - Returns a list of `EmployeePayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended before this datetime. - - expand : typing.Optional[EmployeePayrollRunsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - payroll_run_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployeePayrollRunList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.employee_payroll_runs import ( - EmployeePayrollRunsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employee_payroll_runs.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=EmployeePayrollRunsListRequestExpand.EMPLOYEE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - payroll_run_id="payroll_run_id", - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - ended_after=ended_after, - ended_before=ended_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - payroll_run_id=payroll_run_id, - remote_id=remote_id, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EmployeePayrollRun: - """ - Returns an `EmployeePayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EmployeePayrollRun - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris.resources.employee_payroll_runs import ( - EmployeePayrollRunsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employee_payroll_runs.retrieve( - id="id", - expand=EmployeePayrollRunsRetrieveRequestExpand.EMPLOYEE, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/employee_payroll_runs/raw_client.py b/src/merge/resources/hris/resources/employee_payroll_runs/raw_client.py deleted file mode 100644 index a9280452..00000000 --- a/src/merge/resources/hris/resources/employee_payroll_runs/raw_client.py +++ /dev/null @@ -1,393 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.employee_payroll_run import EmployeePayrollRun -from ...types.paginated_employee_payroll_run_list import PaginatedEmployeePayrollRunList -from .types.employee_payroll_runs_list_request_expand import EmployeePayrollRunsListRequestExpand -from .types.employee_payroll_runs_retrieve_request_expand import EmployeePayrollRunsRetrieveRequestExpand - - -class RawEmployeePayrollRunsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[EmployeePayrollRunsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - payroll_run_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEmployeePayrollRunList]: - """ - Returns a list of `EmployeePayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended before this datetime. - - expand : typing.Optional[EmployeePayrollRunsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - payroll_run_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEmployeePayrollRunList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/employee-payroll-runs", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "payroll_run_id": payroll_run_id, - "remote_id": remote_id, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployeePayrollRunList, - construct_type( - type_=PaginatedEmployeePayrollRunList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[EmployeePayrollRun]: - """ - Returns an `EmployeePayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[EmployeePayrollRun] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/employee-payroll-runs/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EmployeePayrollRun, - construct_type( - type_=EmployeePayrollRun, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEmployeePayrollRunsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[EmployeePayrollRunsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - payroll_run_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEmployeePayrollRunList]: - """ - Returns a list of `EmployeePayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs ended before this datetime. - - expand : typing.Optional[EmployeePayrollRunsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - payroll_run_id : typing.Optional[str] - If provided, will only return employee payroll runs for this employee. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employee payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEmployeePayrollRunList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/employee-payroll-runs", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "payroll_run_id": payroll_run_id, - "remote_id": remote_id, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployeePayrollRunList, - construct_type( - type_=PaginatedEmployeePayrollRunList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[EmployeePayrollRun]: - """ - Returns an `EmployeePayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeePayrollRunsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[EmployeePayrollRun] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/employee-payroll-runs/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EmployeePayrollRun, - construct_type( - type_=EmployeePayrollRun, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/employee_payroll_runs/types/__init__.py b/src/merge/resources/hris/resources/employee_payroll_runs/types/__init__.py deleted file mode 100644 index 49a39c9e..00000000 --- a/src/merge/resources/hris/resources/employee_payroll_runs/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .employee_payroll_runs_list_request_expand import EmployeePayrollRunsListRequestExpand - from .employee_payroll_runs_retrieve_request_expand import EmployeePayrollRunsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "EmployeePayrollRunsListRequestExpand": ".employee_payroll_runs_list_request_expand", - "EmployeePayrollRunsRetrieveRequestExpand": ".employee_payroll_runs_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EmployeePayrollRunsListRequestExpand", "EmployeePayrollRunsRetrieveRequestExpand"] diff --git a/src/merge/resources/hris/resources/employee_payroll_runs/types/employee_payroll_runs_list_request_expand.py b/src/merge/resources/hris/resources/employee_payroll_runs/types/employee_payroll_runs_list_request_expand.py deleted file mode 100644 index 8726143e..00000000 --- a/src/merge/resources/hris/resources/employee_payroll_runs/types/employee_payroll_runs_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeePayrollRunsListRequestExpand(str, enum.Enum): - EMPLOYEE = "employee" - EMPLOYEE_PAYROLL_RUN = "employee,payroll_run" - PAYROLL_RUN = "payroll_run" - - def visit( - self, - employee: typing.Callable[[], T_Result], - employee_payroll_run: typing.Callable[[], T_Result], - payroll_run: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeePayrollRunsListRequestExpand.EMPLOYEE: - return employee() - if self is EmployeePayrollRunsListRequestExpand.EMPLOYEE_PAYROLL_RUN: - return employee_payroll_run() - if self is EmployeePayrollRunsListRequestExpand.PAYROLL_RUN: - return payroll_run() diff --git a/src/merge/resources/hris/resources/employee_payroll_runs/types/employee_payroll_runs_retrieve_request_expand.py b/src/merge/resources/hris/resources/employee_payroll_runs/types/employee_payroll_runs_retrieve_request_expand.py deleted file mode 100644 index 683296ac..00000000 --- a/src/merge/resources/hris/resources/employee_payroll_runs/types/employee_payroll_runs_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeePayrollRunsRetrieveRequestExpand(str, enum.Enum): - EMPLOYEE = "employee" - EMPLOYEE_PAYROLL_RUN = "employee,payroll_run" - PAYROLL_RUN = "payroll_run" - - def visit( - self, - employee: typing.Callable[[], T_Result], - employee_payroll_run: typing.Callable[[], T_Result], - payroll_run: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeePayrollRunsRetrieveRequestExpand.EMPLOYEE: - return employee() - if self is EmployeePayrollRunsRetrieveRequestExpand.EMPLOYEE_PAYROLL_RUN: - return employee_payroll_run() - if self is EmployeePayrollRunsRetrieveRequestExpand.PAYROLL_RUN: - return payroll_run() diff --git a/src/merge/resources/hris/resources/employees/__init__.py b/src/merge/resources/hris/resources/employees/__init__.py deleted file mode 100644 index a9ee99e6..00000000 --- a/src/merge/resources/hris/resources/employees/__init__.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - EmployeesListRequestEmploymentStatus, - EmployeesListRequestExpand, - EmployeesListRequestRemoteFields, - EmployeesListRequestShowEnumOrigins, - EmployeesRetrieveRequestExpand, - EmployeesRetrieveRequestRemoteFields, - EmployeesRetrieveRequestShowEnumOrigins, - IgnoreCommonModelRequestReason, - ) -_dynamic_imports: typing.Dict[str, str] = { - "EmployeesListRequestEmploymentStatus": ".types", - "EmployeesListRequestExpand": ".types", - "EmployeesListRequestRemoteFields": ".types", - "EmployeesListRequestShowEnumOrigins": ".types", - "EmployeesRetrieveRequestExpand": ".types", - "EmployeesRetrieveRequestRemoteFields": ".types", - "EmployeesRetrieveRequestShowEnumOrigins": ".types", - "IgnoreCommonModelRequestReason": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "EmployeesListRequestEmploymentStatus", - "EmployeesListRequestExpand", - "EmployeesListRequestRemoteFields", - "EmployeesListRequestShowEnumOrigins", - "EmployeesRetrieveRequestExpand", - "EmployeesRetrieveRequestRemoteFields", - "EmployeesRetrieveRequestShowEnumOrigins", - "IgnoreCommonModelRequestReason", -] diff --git a/src/merge/resources/hris/resources/employees/client.py b/src/merge/resources/hris/resources/employees/client.py deleted file mode 100644 index 6f1b7fee..00000000 --- a/src/merge/resources/hris/resources/employees/client.py +++ /dev/null @@ -1,1029 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.employee import Employee -from ...types.employee_request import EmployeeRequest -from ...types.employee_response import EmployeeResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_employee_list import PaginatedEmployeeList -from .raw_client import AsyncRawEmployeesClient, RawEmployeesClient -from .types.employees_list_request_employment_status import EmployeesListRequestEmploymentStatus -from .types.employees_list_request_expand import EmployeesListRequestExpand -from .types.employees_list_request_remote_fields import EmployeesListRequestRemoteFields -from .types.employees_list_request_show_enum_origins import EmployeesListRequestShowEnumOrigins -from .types.employees_retrieve_request_expand import EmployeesRetrieveRequestExpand -from .types.employees_retrieve_request_remote_fields import EmployeesRetrieveRequestRemoteFields -from .types.employees_retrieve_request_show_enum_origins import EmployeesRetrieveRequestShowEnumOrigins -from .types.ignore_common_model_request_reason import IgnoreCommonModelRequestReason - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class EmployeesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmployeesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEmployeesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmployeesClient - """ - return self._raw_client - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - display_full_name: typing.Optional[str] = None, - employee_number: typing.Optional[str] = None, - employment_status: typing.Optional[EmployeesListRequestEmploymentStatus] = None, - employment_type: typing.Optional[str] = None, - expand: typing.Optional[EmployeesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - groups: typing.Optional[str] = None, - home_location_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_title: typing.Optional[str] = None, - last_name: typing.Optional[str] = None, - manager_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - pay_group_id: typing.Optional[str] = None, - personal_email: typing.Optional[str] = None, - remote_fields: typing.Optional[EmployeesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmployeesListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - team_id: typing.Optional[str] = None, - terminated_after: typing.Optional[dt.datetime] = None, - terminated_before: typing.Optional[dt.datetime] = None, - work_email: typing.Optional[str] = None, - work_location_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployeeList: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - display_full_name : typing.Optional[str] - If provided, will only return employees with this display name. - - employee_number : typing.Optional[str] - If provided, will only return employees with this employee number. - - employment_status : typing.Optional[EmployeesListRequestEmploymentStatus] - If provided, will only return employees with this employment status. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - - employment_type : typing.Optional[str] - If provided, will only return employees that have an employment of the specified employment type. - - expand : typing.Optional[EmployeesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return employees with this first name. - - groups : typing.Optional[str] - If provided, will only return employees matching the group ids; multiple groups can be separated by commas. - - home_location_id : typing.Optional[str] - If provided, will only return employees for this home location. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_title : typing.Optional[str] - If provided, will only return employees that have an employment of the specified job title. - - last_name : typing.Optional[str] - If provided, will only return employees with this last name. - - manager_id : typing.Optional[str] - If provided, will only return employees for this manager. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - pay_group_id : typing.Optional[str] - If provided, will only return employees for this pay group - - personal_email : typing.Optional[str] - If provided, will only return Employees with this personal email - - remote_fields : typing.Optional[EmployeesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmployeesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return employees that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employees that started before this datetime. - - team_id : typing.Optional[str] - If provided, will only return employees for this team. - - terminated_after : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated after this datetime. - - terminated_before : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated before this datetime. - - work_email : typing.Optional[str] - If provided, will only return Employees with this work email - - work_location_id : typing.Optional[str] - If provided, will only return employees for this location. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployeeList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.employees import ( - EmployeesListRequestEmploymentStatus, - EmployeesListRequestExpand, - EmployeesListRequestRemoteFields, - EmployeesListRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employees.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - display_full_name="display_full_name", - employee_number="employee_number", - employment_status=EmployeesListRequestEmploymentStatus.ACTIVE, - employment_type="employment_type", - expand=EmployeesListRequestExpand.COMPANY, - first_name="first_name", - groups="groups", - home_location_id="home_location_id", - include_deleted_data=True, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - job_title="job_title", - last_name="last_name", - manager_id="manager_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - pay_group_id="pay_group_id", - personal_email="personal_email", - remote_fields=EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS, - remote_id="remote_id", - show_enum_origins=EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - team_id="team_id", - terminated_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - terminated_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - work_email="work_email", - work_location_id="work_location_id", - ) - """ - _response = self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - display_full_name=display_full_name, - employee_number=employee_number, - employment_status=employment_status, - employment_type=employment_type, - expand=expand, - first_name=first_name, - groups=groups, - home_location_id=home_location_id, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - job_title=job_title, - last_name=last_name, - manager_id=manager_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - pay_group_id=pay_group_id, - personal_email=personal_email, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - started_after=started_after, - started_before=started_before, - team_id=team_id, - terminated_after=terminated_after, - terminated_before=terminated_before, - work_email=work_email, - work_location_id=work_location_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: EmployeeRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EmployeeResponse: - """ - Creates an `Employee` object with the given values. - - Parameters - ---------- - model : EmployeeRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EmployeeResponse - - - Examples - -------- - from merge import Merge - from merge.resources.hris import EmployeeRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employees.create( - is_debug_mode=True, - run_async=True, - model=EmployeeRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmployeesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Employee: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmployeesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Employee - - - Examples - -------- - from merge import Merge - from merge.resources.hris.resources.employees import ( - EmployeesRetrieveRequestExpand, - EmployeesRetrieveRequestRemoteFields, - EmployeesRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employees.retrieve( - id="id", - expand=EmployeesRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - remote_fields=EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS, - show_enum_origins=EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - from merge.resources.hris import ReasonEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employees.ignore_create( - model_id="model_id", - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ) - """ - _response = self._raw_client.ignore_create( - model_id, reason=reason, message=message, request_options=request_options - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Employee` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employees.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncEmployeesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmployeesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEmployeesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmployeesClient - """ - return self._raw_client - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - display_full_name: typing.Optional[str] = None, - employee_number: typing.Optional[str] = None, - employment_status: typing.Optional[EmployeesListRequestEmploymentStatus] = None, - employment_type: typing.Optional[str] = None, - expand: typing.Optional[EmployeesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - groups: typing.Optional[str] = None, - home_location_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_title: typing.Optional[str] = None, - last_name: typing.Optional[str] = None, - manager_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - pay_group_id: typing.Optional[str] = None, - personal_email: typing.Optional[str] = None, - remote_fields: typing.Optional[EmployeesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmployeesListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - team_id: typing.Optional[str] = None, - terminated_after: typing.Optional[dt.datetime] = None, - terminated_before: typing.Optional[dt.datetime] = None, - work_email: typing.Optional[str] = None, - work_location_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployeeList: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - display_full_name : typing.Optional[str] - If provided, will only return employees with this display name. - - employee_number : typing.Optional[str] - If provided, will only return employees with this employee number. - - employment_status : typing.Optional[EmployeesListRequestEmploymentStatus] - If provided, will only return employees with this employment status. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - - employment_type : typing.Optional[str] - If provided, will only return employees that have an employment of the specified employment type. - - expand : typing.Optional[EmployeesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return employees with this first name. - - groups : typing.Optional[str] - If provided, will only return employees matching the group ids; multiple groups can be separated by commas. - - home_location_id : typing.Optional[str] - If provided, will only return employees for this home location. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_title : typing.Optional[str] - If provided, will only return employees that have an employment of the specified job title. - - last_name : typing.Optional[str] - If provided, will only return employees with this last name. - - manager_id : typing.Optional[str] - If provided, will only return employees for this manager. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - pay_group_id : typing.Optional[str] - If provided, will only return employees for this pay group - - personal_email : typing.Optional[str] - If provided, will only return Employees with this personal email - - remote_fields : typing.Optional[EmployeesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmployeesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return employees that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employees that started before this datetime. - - team_id : typing.Optional[str] - If provided, will only return employees for this team. - - terminated_after : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated after this datetime. - - terminated_before : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated before this datetime. - - work_email : typing.Optional[str] - If provided, will only return Employees with this work email - - work_location_id : typing.Optional[str] - If provided, will only return employees for this location. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployeeList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.employees import ( - EmployeesListRequestEmploymentStatus, - EmployeesListRequestExpand, - EmployeesListRequestRemoteFields, - EmployeesListRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employees.list( - company_id="company_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - display_full_name="display_full_name", - employee_number="employee_number", - employment_status=EmployeesListRequestEmploymentStatus.ACTIVE, - employment_type="employment_type", - expand=EmployeesListRequestExpand.COMPANY, - first_name="first_name", - groups="groups", - home_location_id="home_location_id", - include_deleted_data=True, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - job_title="job_title", - last_name="last_name", - manager_id="manager_id", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - pay_group_id="pay_group_id", - personal_email="personal_email", - remote_fields=EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS, - remote_id="remote_id", - show_enum_origins=EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - team_id="team_id", - terminated_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - terminated_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - work_email="work_email", - work_location_id="work_location_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - company_id=company_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - display_full_name=display_full_name, - employee_number=employee_number, - employment_status=employment_status, - employment_type=employment_type, - expand=expand, - first_name=first_name, - groups=groups, - home_location_id=home_location_id, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - job_title=job_title, - last_name=last_name, - manager_id=manager_id, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - pay_group_id=pay_group_id, - personal_email=personal_email, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - started_after=started_after, - started_before=started_before, - team_id=team_id, - terminated_after=terminated_after, - terminated_before=terminated_before, - work_email=work_email, - work_location_id=work_location_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: EmployeeRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EmployeeResponse: - """ - Creates an `Employee` object with the given values. - - Parameters - ---------- - model : EmployeeRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EmployeeResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import EmployeeRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employees.create( - is_debug_mode=True, - run_async=True, - model=EmployeeRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmployeesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Employee: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmployeesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Employee - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris.resources.employees import ( - EmployeesRetrieveRequestExpand, - EmployeesRetrieveRequestRemoteFields, - EmployeesRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employees.retrieve( - id="id", - expand=EmployeesRetrieveRequestExpand.COMPANY, - include_remote_data=True, - include_sensitive_fields=True, - include_shell_data=True, - remote_fields=EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS, - show_enum_origins=EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_sensitive_fields=include_sensitive_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> None: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import ReasonEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employees.ignore_create( - model_id="model_id", - reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.ignore_create( - model_id, reason=reason, message=message, request_options=request_options - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Employee` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employees.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/employees/raw_client.py b/src/merge/resources/hris/resources/employees/raw_client.py deleted file mode 100644 index 96b80f82..00000000 --- a/src/merge/resources/hris/resources/employees/raw_client.py +++ /dev/null @@ -1,899 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.employee import Employee -from ...types.employee_request import EmployeeRequest -from ...types.employee_response import EmployeeResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_employee_list import PaginatedEmployeeList -from .types.employees_list_request_employment_status import EmployeesListRequestEmploymentStatus -from .types.employees_list_request_expand import EmployeesListRequestExpand -from .types.employees_list_request_remote_fields import EmployeesListRequestRemoteFields -from .types.employees_list_request_show_enum_origins import EmployeesListRequestShowEnumOrigins -from .types.employees_retrieve_request_expand import EmployeesRetrieveRequestExpand -from .types.employees_retrieve_request_remote_fields import EmployeesRetrieveRequestRemoteFields -from .types.employees_retrieve_request_show_enum_origins import EmployeesRetrieveRequestShowEnumOrigins -from .types.ignore_common_model_request_reason import IgnoreCommonModelRequestReason - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawEmployeesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - display_full_name: typing.Optional[str] = None, - employee_number: typing.Optional[str] = None, - employment_status: typing.Optional[EmployeesListRequestEmploymentStatus] = None, - employment_type: typing.Optional[str] = None, - expand: typing.Optional[EmployeesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - groups: typing.Optional[str] = None, - home_location_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_title: typing.Optional[str] = None, - last_name: typing.Optional[str] = None, - manager_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - pay_group_id: typing.Optional[str] = None, - personal_email: typing.Optional[str] = None, - remote_fields: typing.Optional[EmployeesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmployeesListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - team_id: typing.Optional[str] = None, - terminated_after: typing.Optional[dt.datetime] = None, - terminated_before: typing.Optional[dt.datetime] = None, - work_email: typing.Optional[str] = None, - work_location_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEmployeeList]: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - display_full_name : typing.Optional[str] - If provided, will only return employees with this display name. - - employee_number : typing.Optional[str] - If provided, will only return employees with this employee number. - - employment_status : typing.Optional[EmployeesListRequestEmploymentStatus] - If provided, will only return employees with this employment status. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - - employment_type : typing.Optional[str] - If provided, will only return employees that have an employment of the specified employment type. - - expand : typing.Optional[EmployeesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return employees with this first name. - - groups : typing.Optional[str] - If provided, will only return employees matching the group ids; multiple groups can be separated by commas. - - home_location_id : typing.Optional[str] - If provided, will only return employees for this home location. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_title : typing.Optional[str] - If provided, will only return employees that have an employment of the specified job title. - - last_name : typing.Optional[str] - If provided, will only return employees with this last name. - - manager_id : typing.Optional[str] - If provided, will only return employees for this manager. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - pay_group_id : typing.Optional[str] - If provided, will only return employees for this pay group - - personal_email : typing.Optional[str] - If provided, will only return Employees with this personal email - - remote_fields : typing.Optional[EmployeesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmployeesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return employees that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employees that started before this datetime. - - team_id : typing.Optional[str] - If provided, will only return employees for this team. - - terminated_after : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated after this datetime. - - terminated_before : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated before this datetime. - - work_email : typing.Optional[str] - If provided, will only return Employees with this work email - - work_location_id : typing.Optional[str] - If provided, will only return employees for this location. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEmployeeList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/employees", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "display_full_name": display_full_name, - "employee_number": employee_number, - "employment_status": employment_status, - "employment_type": employment_type, - "expand": expand, - "first_name": first_name, - "groups": groups, - "home_location_id": home_location_id, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - "job_title": job_title, - "last_name": last_name, - "manager_id": manager_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "pay_group_id": pay_group_id, - "personal_email": personal_email, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - "team_id": team_id, - "terminated_after": serialize_datetime(terminated_after) if terminated_after is not None else None, - "terminated_before": serialize_datetime(terminated_before) if terminated_before is not None else None, - "work_email": work_email, - "work_location_id": work_location_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployeeList, - construct_type( - type_=PaginatedEmployeeList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: EmployeeRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[EmployeeResponse]: - """ - Creates an `Employee` object with the given values. - - Parameters - ---------- - model : EmployeeRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[EmployeeResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/employees", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EmployeeResponse, - construct_type( - type_=EmployeeResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmployeesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Employee]: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmployeesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Employee] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/employees/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Employee, - construct_type( - type_=Employee, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/employees/ignore/{jsonable_encoder(model_id)}", - method="POST", - json={ - "reason": reason, - "message": message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Employee` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/employees/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEmployeesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - company_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - display_full_name: typing.Optional[str] = None, - employee_number: typing.Optional[str] = None, - employment_status: typing.Optional[EmployeesListRequestEmploymentStatus] = None, - employment_type: typing.Optional[str] = None, - expand: typing.Optional[EmployeesListRequestExpand] = None, - first_name: typing.Optional[str] = None, - groups: typing.Optional[str] = None, - home_location_id: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - job_title: typing.Optional[str] = None, - last_name: typing.Optional[str] = None, - manager_id: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - pay_group_id: typing.Optional[str] = None, - personal_email: typing.Optional[str] = None, - remote_fields: typing.Optional[EmployeesListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmployeesListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - team_id: typing.Optional[str] = None, - terminated_after: typing.Optional[dt.datetime] = None, - terminated_before: typing.Optional[dt.datetime] = None, - work_email: typing.Optional[str] = None, - work_location_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEmployeeList]: - """ - Returns a list of `Employee` objects. - - Parameters - ---------- - company_id : typing.Optional[str] - If provided, will only return employees for this company. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - display_full_name : typing.Optional[str] - If provided, will only return employees with this display name. - - employee_number : typing.Optional[str] - If provided, will only return employees with this employee number. - - employment_status : typing.Optional[EmployeesListRequestEmploymentStatus] - If provided, will only return employees with this employment status. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - - employment_type : typing.Optional[str] - If provided, will only return employees that have an employment of the specified employment type. - - expand : typing.Optional[EmployeesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - first_name : typing.Optional[str] - If provided, will only return employees with this first name. - - groups : typing.Optional[str] - If provided, will only return employees matching the group ids; multiple groups can be separated by commas. - - home_location_id : typing.Optional[str] - If provided, will only return employees for this home location. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - job_title : typing.Optional[str] - If provided, will only return employees that have an employment of the specified job title. - - last_name : typing.Optional[str] - If provided, will only return employees with this last name. - - manager_id : typing.Optional[str] - If provided, will only return employees for this manager. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - pay_group_id : typing.Optional[str] - If provided, will only return employees for this pay group - - personal_email : typing.Optional[str] - If provided, will only return Employees with this personal email - - remote_fields : typing.Optional[EmployeesListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmployeesListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return employees that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return employees that started before this datetime. - - team_id : typing.Optional[str] - If provided, will only return employees for this team. - - terminated_after : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated after this datetime. - - terminated_before : typing.Optional[dt.datetime] - If provided, will only return employees that were terminated before this datetime. - - work_email : typing.Optional[str] - If provided, will only return Employees with this work email - - work_location_id : typing.Optional[str] - If provided, will only return employees for this location. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEmployeeList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/employees", - method="GET", - params={ - "company_id": company_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "display_full_name": display_full_name, - "employee_number": employee_number, - "employment_status": employment_status, - "employment_type": employment_type, - "expand": expand, - "first_name": first_name, - "groups": groups, - "home_location_id": home_location_id, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - "job_title": job_title, - "last_name": last_name, - "manager_id": manager_id, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "pay_group_id": pay_group_id, - "personal_email": personal_email, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - "team_id": team_id, - "terminated_after": serialize_datetime(terminated_after) if terminated_after is not None else None, - "terminated_before": serialize_datetime(terminated_before) if terminated_before is not None else None, - "work_email": work_email, - "work_location_id": work_location_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployeeList, - construct_type( - type_=PaginatedEmployeeList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: EmployeeRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[EmployeeResponse]: - """ - Creates an `Employee` object with the given values. - - Parameters - ---------- - model : EmployeeRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[EmployeeResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/employees", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EmployeeResponse, - construct_type( - type_=EmployeeResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmployeesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_sensitive_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmployeesRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Employee]: - """ - Returns an `Employee` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmployeesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_sensitive_fields : typing.Optional[bool] - Whether to include sensitive fields (such as social security numbers) in the response. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmployeesRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmployeesRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Employee] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/employees/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_sensitive_fields": include_sensitive_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Employee, - construct_type( - type_=Employee, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def ignore_create( - self, - model_id: str, - *, - reason: IgnoreCommonModelRequestReason, - message: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[None]: - """ - Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. - - Parameters - ---------- - model_id : str - - reason : IgnoreCommonModelRequestReason - - message : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/employees/ignore/{jsonable_encoder(model_id)}", - method="POST", - json={ - "reason": reason, - "message": message, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Employee` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/employees/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/employees/types/__init__.py b/src/merge/resources/hris/resources/employees/types/__init__.py deleted file mode 100644 index 0a2174a1..00000000 --- a/src/merge/resources/hris/resources/employees/types/__init__.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .employees_list_request_employment_status import EmployeesListRequestEmploymentStatus - from .employees_list_request_expand import EmployeesListRequestExpand - from .employees_list_request_remote_fields import EmployeesListRequestRemoteFields - from .employees_list_request_show_enum_origins import EmployeesListRequestShowEnumOrigins - from .employees_retrieve_request_expand import EmployeesRetrieveRequestExpand - from .employees_retrieve_request_remote_fields import EmployeesRetrieveRequestRemoteFields - from .employees_retrieve_request_show_enum_origins import EmployeesRetrieveRequestShowEnumOrigins - from .ignore_common_model_request_reason import IgnoreCommonModelRequestReason -_dynamic_imports: typing.Dict[str, str] = { - "EmployeesListRequestEmploymentStatus": ".employees_list_request_employment_status", - "EmployeesListRequestExpand": ".employees_list_request_expand", - "EmployeesListRequestRemoteFields": ".employees_list_request_remote_fields", - "EmployeesListRequestShowEnumOrigins": ".employees_list_request_show_enum_origins", - "EmployeesRetrieveRequestExpand": ".employees_retrieve_request_expand", - "EmployeesRetrieveRequestRemoteFields": ".employees_retrieve_request_remote_fields", - "EmployeesRetrieveRequestShowEnumOrigins": ".employees_retrieve_request_show_enum_origins", - "IgnoreCommonModelRequestReason": ".ignore_common_model_request_reason", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "EmployeesListRequestEmploymentStatus", - "EmployeesListRequestExpand", - "EmployeesListRequestRemoteFields", - "EmployeesListRequestShowEnumOrigins", - "EmployeesRetrieveRequestExpand", - "EmployeesRetrieveRequestRemoteFields", - "EmployeesRetrieveRequestShowEnumOrigins", - "IgnoreCommonModelRequestReason", -] diff --git a/src/merge/resources/hris/resources/employees/types/employees_list_request_employment_status.py b/src/merge/resources/hris/resources/employees/types/employees_list_request_employment_status.py deleted file mode 100644 index f0406ec8..00000000 --- a/src/merge/resources/hris/resources/employees/types/employees_list_request_employment_status.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeesListRequestEmploymentStatus(str, enum.Enum): - ACTIVE = "ACTIVE" - INACTIVE = "INACTIVE" - PENDING = "PENDING" - - def visit( - self, - active: typing.Callable[[], T_Result], - inactive: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeesListRequestEmploymentStatus.ACTIVE: - return active() - if self is EmployeesListRequestEmploymentStatus.INACTIVE: - return inactive() - if self is EmployeesListRequestEmploymentStatus.PENDING: - return pending() diff --git a/src/merge/resources/hris/resources/employees/types/employees_list_request_expand.py b/src/merge/resources/hris/resources/employees/types/employees_list_request_expand.py deleted file mode 100644 index 2c8611fb..00000000 --- a/src/merge/resources/hris/resources/employees/types/employees_list_request_expand.py +++ /dev/null @@ -1,1096 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeesListRequestExpand(str, enum.Enum): - COMPANY = "company" - COMPANY_PAY_GROUP = "company,pay_group" - EMPLOYMENTS = "employments" - EMPLOYMENTS_COMPANY = "employments,company" - EMPLOYMENTS_COMPANY_PAY_GROUP = "employments,company,pay_group" - EMPLOYMENTS_GROUPS = "employments,groups" - EMPLOYMENTS_GROUPS_COMPANY = "employments,groups,company" - EMPLOYMENTS_GROUPS_COMPANY_PAY_GROUP = "employments,groups,company,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION = "employments,groups,home_location" - EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY = "employments,groups,home_location,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP = "employments,groups,home_location,company,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER = "employments,groups,home_location,manager" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY = "employments,groups,home_location,manager,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,manager,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP = "employments,groups,home_location,manager,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM = "employments,groups,home_location,manager,team" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY = "employments,groups,home_location,manager,team,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,groups,home_location,manager,team,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_PAY_GROUP = "employments,groups,home_location,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM = "employments,groups,home_location,team" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY = "employments,groups,home_location,team,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,groups,home_location,team,company,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_PAY_GROUP = "employments,groups,home_location,team,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION = "employments,groups,home_location,work_location" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY = "employments,groups,home_location,work_location,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER = "employments,groups,home_location,work_location,manager" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = ( - "employments,groups,home_location,work_location,manager,company" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = ( - "employments,groups,home_location,work_location,manager,team" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = ( - "employments,groups,home_location,work_location,manager,team,company" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,team,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP = ( - "employments,groups,home_location,work_location,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM = "employments,groups,home_location,work_location,team" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = ( - "employments,groups,home_location,work_location,team,company" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = ( - "employments,groups,home_location,work_location,team,pay_group" - ) - EMPLOYMENTS_GROUPS_MANAGER = "employments,groups,manager" - EMPLOYMENTS_GROUPS_MANAGER_COMPANY = "employments,groups,manager,company" - EMPLOYMENTS_GROUPS_MANAGER_COMPANY_PAY_GROUP = "employments,groups,manager,company,pay_group" - EMPLOYMENTS_GROUPS_MANAGER_PAY_GROUP = "employments,groups,manager,pay_group" - EMPLOYMENTS_GROUPS_MANAGER_TEAM = "employments,groups,manager,team" - EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY = "employments,groups,manager,team,company" - EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP = "employments,groups,manager,team,company,pay_group" - EMPLOYMENTS_GROUPS_MANAGER_TEAM_PAY_GROUP = "employments,groups,manager,team,pay_group" - EMPLOYMENTS_GROUPS_PAY_GROUP = "employments,groups,pay_group" - EMPLOYMENTS_GROUPS_TEAM = "employments,groups,team" - EMPLOYMENTS_GROUPS_TEAM_COMPANY = "employments,groups,team,company" - EMPLOYMENTS_GROUPS_TEAM_COMPANY_PAY_GROUP = "employments,groups,team,company,pay_group" - EMPLOYMENTS_GROUPS_TEAM_PAY_GROUP = "employments,groups,team,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION = "employments,groups,work_location" - EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY = "employments,groups,work_location,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP = "employments,groups,work_location,company,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER = "employments,groups,work_location,manager" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY = "employments,groups,work_location,manager,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,groups,work_location,manager,company,pay_group" - ) - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP = "employments,groups,work_location,manager,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM = "employments,groups,work_location,manager,team" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY = "employments,groups,work_location,manager,team,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,groups,work_location,manager,team,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_PAY_GROUP = "employments,groups,work_location,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM = "employments,groups,work_location,team" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY = "employments,groups,work_location,team,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,groups,work_location,team,company,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_PAY_GROUP = "employments,groups,work_location,team,pay_group" - EMPLOYMENTS_HOME_LOCATION = "employments,home_location" - EMPLOYMENTS_HOME_LOCATION_COMPANY = "employments,home_location,company" - EMPLOYMENTS_HOME_LOCATION_COMPANY_PAY_GROUP = "employments,home_location,company,pay_group" - EMPLOYMENTS_HOME_LOCATION_MANAGER = "employments,home_location,manager" - EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY = "employments,home_location,manager,company" - EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = "employments,home_location,manager,company,pay_group" - EMPLOYMENTS_HOME_LOCATION_MANAGER_PAY_GROUP = "employments,home_location,manager,pay_group" - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM = "employments,home_location,manager,team" - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY = "employments,home_location,manager,team,company" - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,home_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,home_location,manager,team,pay_group" - EMPLOYMENTS_HOME_LOCATION_PAY_GROUP = "employments,home_location,pay_group" - EMPLOYMENTS_HOME_LOCATION_TEAM = "employments,home_location,team" - EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY = "employments,home_location,team,company" - EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,home_location,team,company,pay_group" - EMPLOYMENTS_HOME_LOCATION_TEAM_PAY_GROUP = "employments,home_location,team,pay_group" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION = "employments,home_location,work_location" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY = "employments,home_location,work_location,company" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER = "employments,home_location,work_location,manager" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = "employments,home_location,work_location,manager,company" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,manager,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = ( - "employments,home_location,work_location,manager,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = "employments,home_location,work_location,manager,team" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = ( - "employments,home_location,work_location,manager,team,company" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = ( - "employments,home_location,work_location,manager,team,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP = "employments,home_location,work_location,pay_group" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM = "employments,home_location,work_location,team" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = "employments,home_location,work_location,team,company" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,team,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = "employments,home_location,work_location,team,pay_group" - EMPLOYMENTS_MANAGER = "employments,manager" - EMPLOYMENTS_MANAGER_COMPANY = "employments,manager,company" - EMPLOYMENTS_MANAGER_COMPANY_PAY_GROUP = "employments,manager,company,pay_group" - EMPLOYMENTS_MANAGER_PAY_GROUP = "employments,manager,pay_group" - EMPLOYMENTS_MANAGER_TEAM = "employments,manager,team" - EMPLOYMENTS_MANAGER_TEAM_COMPANY = "employments,manager,team,company" - EMPLOYMENTS_MANAGER_TEAM_COMPANY_PAY_GROUP = "employments,manager,team,company,pay_group" - EMPLOYMENTS_MANAGER_TEAM_PAY_GROUP = "employments,manager,team,pay_group" - EMPLOYMENTS_PAY_GROUP = "employments,pay_group" - EMPLOYMENTS_TEAM = "employments,team" - EMPLOYMENTS_TEAM_COMPANY = "employments,team,company" - EMPLOYMENTS_TEAM_COMPANY_PAY_GROUP = "employments,team,company,pay_group" - EMPLOYMENTS_TEAM_PAY_GROUP = "employments,team,pay_group" - EMPLOYMENTS_WORK_LOCATION = "employments,work_location" - EMPLOYMENTS_WORK_LOCATION_COMPANY = "employments,work_location,company" - EMPLOYMENTS_WORK_LOCATION_COMPANY_PAY_GROUP = "employments,work_location,company,pay_group" - EMPLOYMENTS_WORK_LOCATION_MANAGER = "employments,work_location,manager" - EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY = "employments,work_location,manager,company" - EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "employments,work_location,manager,company,pay_group" - EMPLOYMENTS_WORK_LOCATION_MANAGER_PAY_GROUP = "employments,work_location,manager,pay_group" - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM = "employments,work_location,manager,team" - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY = "employments,work_location,manager,team,company" - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,work_location,manager,team,pay_group" - EMPLOYMENTS_WORK_LOCATION_PAY_GROUP = "employments,work_location,pay_group" - EMPLOYMENTS_WORK_LOCATION_TEAM = "employments,work_location,team" - EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY = "employments,work_location,team,company" - EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,work_location,team,company,pay_group" - EMPLOYMENTS_WORK_LOCATION_TEAM_PAY_GROUP = "employments,work_location,team,pay_group" - GROUPS = "groups" - GROUPS_COMPANY = "groups,company" - GROUPS_COMPANY_PAY_GROUP = "groups,company,pay_group" - GROUPS_HOME_LOCATION = "groups,home_location" - GROUPS_HOME_LOCATION_COMPANY = "groups,home_location,company" - GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP = "groups,home_location,company,pay_group" - GROUPS_HOME_LOCATION_MANAGER = "groups,home_location,manager" - GROUPS_HOME_LOCATION_MANAGER_COMPANY = "groups,home_location,manager,company" - GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = "groups,home_location,manager,company,pay_group" - GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP = "groups,home_location,manager,pay_group" - GROUPS_HOME_LOCATION_MANAGER_TEAM = "groups,home_location,manager,team" - GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY = "groups,home_location,manager,team,company" - GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "groups,home_location,manager,team,company,pay_group" - GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "groups,home_location,manager,team,pay_group" - GROUPS_HOME_LOCATION_PAY_GROUP = "groups,home_location,pay_group" - GROUPS_HOME_LOCATION_TEAM = "groups,home_location,team" - GROUPS_HOME_LOCATION_TEAM_COMPANY = "groups,home_location,team,company" - GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "groups,home_location,team,company,pay_group" - GROUPS_HOME_LOCATION_TEAM_PAY_GROUP = "groups,home_location,team,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION = "groups,home_location,work_location" - GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY = "groups,home_location,work_location,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = "groups,home_location,work_location,company,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER = "groups,home_location,work_location,manager" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = "groups,home_location,work_location,manager,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "groups,home_location,work_location,manager,company,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = "groups,home_location,work_location,manager,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = "groups,home_location,work_location,manager,team" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = "groups,home_location,work_location,manager,team,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "groups,home_location,work_location,manager,team,company,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = ( - "groups,home_location,work_location,manager,team,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP = "groups,home_location,work_location,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM = "groups,home_location,work_location,team" - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = "groups,home_location,work_location,team,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = ( - "groups,home_location,work_location,team,company,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = "groups,home_location,work_location,team,pay_group" - GROUPS_MANAGER = "groups,manager" - GROUPS_MANAGER_COMPANY = "groups,manager,company" - GROUPS_MANAGER_COMPANY_PAY_GROUP = "groups,manager,company,pay_group" - GROUPS_MANAGER_PAY_GROUP = "groups,manager,pay_group" - GROUPS_MANAGER_TEAM = "groups,manager,team" - GROUPS_MANAGER_TEAM_COMPANY = "groups,manager,team,company" - GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP = "groups,manager,team,company,pay_group" - GROUPS_MANAGER_TEAM_PAY_GROUP = "groups,manager,team,pay_group" - GROUPS_PAY_GROUP = "groups,pay_group" - GROUPS_TEAM = "groups,team" - GROUPS_TEAM_COMPANY = "groups,team,company" - GROUPS_TEAM_COMPANY_PAY_GROUP = "groups,team,company,pay_group" - GROUPS_TEAM_PAY_GROUP = "groups,team,pay_group" - GROUPS_WORK_LOCATION = "groups,work_location" - GROUPS_WORK_LOCATION_COMPANY = "groups,work_location,company" - GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP = "groups,work_location,company,pay_group" - GROUPS_WORK_LOCATION_MANAGER = "groups,work_location,manager" - GROUPS_WORK_LOCATION_MANAGER_COMPANY = "groups,work_location,manager,company" - GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "groups,work_location,manager,company,pay_group" - GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP = "groups,work_location,manager,pay_group" - GROUPS_WORK_LOCATION_MANAGER_TEAM = "groups,work_location,manager,team" - GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY = "groups,work_location,manager,team,company" - GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "groups,work_location,manager,team,company,pay_group" - GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "groups,work_location,manager,team,pay_group" - GROUPS_WORK_LOCATION_PAY_GROUP = "groups,work_location,pay_group" - GROUPS_WORK_LOCATION_TEAM = "groups,work_location,team" - GROUPS_WORK_LOCATION_TEAM_COMPANY = "groups,work_location,team,company" - GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "groups,work_location,team,company,pay_group" - GROUPS_WORK_LOCATION_TEAM_PAY_GROUP = "groups,work_location,team,pay_group" - HOME_LOCATION = "home_location" - HOME_LOCATION_COMPANY = "home_location,company" - HOME_LOCATION_COMPANY_PAY_GROUP = "home_location,company,pay_group" - HOME_LOCATION_MANAGER = "home_location,manager" - HOME_LOCATION_MANAGER_COMPANY = "home_location,manager,company" - HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = "home_location,manager,company,pay_group" - HOME_LOCATION_MANAGER_PAY_GROUP = "home_location,manager,pay_group" - HOME_LOCATION_MANAGER_TEAM = "home_location,manager,team" - HOME_LOCATION_MANAGER_TEAM_COMPANY = "home_location,manager,team,company" - HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "home_location,manager,team,company,pay_group" - HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "home_location,manager,team,pay_group" - HOME_LOCATION_PAY_GROUP = "home_location,pay_group" - HOME_LOCATION_TEAM = "home_location,team" - HOME_LOCATION_TEAM_COMPANY = "home_location,team,company" - HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "home_location,team,company,pay_group" - HOME_LOCATION_TEAM_PAY_GROUP = "home_location,team,pay_group" - HOME_LOCATION_WORK_LOCATION = "home_location,work_location" - HOME_LOCATION_WORK_LOCATION_COMPANY = "home_location,work_location,company" - HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = "home_location,work_location,company,pay_group" - HOME_LOCATION_WORK_LOCATION_MANAGER = "home_location,work_location,manager" - HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = "home_location,work_location,manager,company" - HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "home_location,work_location,manager,company,pay_group" - HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = "home_location,work_location,manager,pay_group" - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = "home_location,work_location,manager,team" - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = "home_location,work_location,manager,team,company" - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "home_location,work_location,manager,team,company,pay_group" - ) - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "home_location,work_location,manager,team,pay_group" - HOME_LOCATION_WORK_LOCATION_PAY_GROUP = "home_location,work_location,pay_group" - HOME_LOCATION_WORK_LOCATION_TEAM = "home_location,work_location,team" - HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = "home_location,work_location,team,company" - HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "home_location,work_location,team,company,pay_group" - HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = "home_location,work_location,team,pay_group" - MANAGER = "manager" - MANAGER_COMPANY = "manager,company" - MANAGER_COMPANY_PAY_GROUP = "manager,company,pay_group" - MANAGER_PAY_GROUP = "manager,pay_group" - MANAGER_TEAM = "manager,team" - MANAGER_TEAM_COMPANY = "manager,team,company" - MANAGER_TEAM_COMPANY_PAY_GROUP = "manager,team,company,pay_group" - MANAGER_TEAM_PAY_GROUP = "manager,team,pay_group" - PAY_GROUP = "pay_group" - TEAM = "team" - TEAM_COMPANY = "team,company" - TEAM_COMPANY_PAY_GROUP = "team,company,pay_group" - TEAM_PAY_GROUP = "team,pay_group" - WORK_LOCATION = "work_location" - WORK_LOCATION_COMPANY = "work_location,company" - WORK_LOCATION_COMPANY_PAY_GROUP = "work_location,company,pay_group" - WORK_LOCATION_MANAGER = "work_location,manager" - WORK_LOCATION_MANAGER_COMPANY = "work_location,manager,company" - WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "work_location,manager,company,pay_group" - WORK_LOCATION_MANAGER_PAY_GROUP = "work_location,manager,pay_group" - WORK_LOCATION_MANAGER_TEAM = "work_location,manager,team" - WORK_LOCATION_MANAGER_TEAM_COMPANY = "work_location,manager,team,company" - WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "work_location,manager,team,company,pay_group" - WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "work_location,manager,team,pay_group" - WORK_LOCATION_PAY_GROUP = "work_location,pay_group" - WORK_LOCATION_TEAM = "work_location,team" - WORK_LOCATION_TEAM_COMPANY = "work_location,team,company" - WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "work_location,team,company,pay_group" - WORK_LOCATION_TEAM_PAY_GROUP = "work_location,team,pay_group" - - def visit( - self, - company: typing.Callable[[], T_Result], - company_pay_group: typing.Callable[[], T_Result], - employments: typing.Callable[[], T_Result], - employments_company: typing.Callable[[], T_Result], - employments_company_pay_group: typing.Callable[[], T_Result], - employments_groups: typing.Callable[[], T_Result], - employments_groups_company: typing.Callable[[], T_Result], - employments_groups_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location: typing.Callable[[], T_Result], - employments_groups_home_location_company: typing.Callable[[], T_Result], - employments_groups_home_location_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager: typing.Callable[[], T_Result], - employments_groups_home_location_manager_company: typing.Callable[[], T_Result], - employments_groups_home_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_team: typing.Callable[[], T_Result], - employments_groups_home_location_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_team_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - employments_groups_manager: typing.Callable[[], T_Result], - employments_groups_manager_company: typing.Callable[[], T_Result], - employments_groups_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_manager_team: typing.Callable[[], T_Result], - employments_groups_manager_team_company: typing.Callable[[], T_Result], - employments_groups_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_pay_group: typing.Callable[[], T_Result], - employments_groups_team: typing.Callable[[], T_Result], - employments_groups_team_company: typing.Callable[[], T_Result], - employments_groups_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_team_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location: typing.Callable[[], T_Result], - employments_groups_work_location_company: typing.Callable[[], T_Result], - employments_groups_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager: typing.Callable[[], T_Result], - employments_groups_work_location_manager_company: typing.Callable[[], T_Result], - employments_groups_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_team: typing.Callable[[], T_Result], - employments_groups_work_location_team_company: typing.Callable[[], T_Result], - employments_groups_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_team_pay_group: typing.Callable[[], T_Result], - employments_home_location: typing.Callable[[], T_Result], - employments_home_location_company: typing.Callable[[], T_Result], - employments_home_location_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager: typing.Callable[[], T_Result], - employments_home_location_manager_company: typing.Callable[[], T_Result], - employments_home_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager_team: typing.Callable[[], T_Result], - employments_home_location_manager_team_company: typing.Callable[[], T_Result], - employments_home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_home_location_pay_group: typing.Callable[[], T_Result], - employments_home_location_team: typing.Callable[[], T_Result], - employments_home_location_team_company: typing.Callable[[], T_Result], - employments_home_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_team_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location: typing.Callable[[], T_Result], - employments_home_location_work_location_company: typing.Callable[[], T_Result], - employments_home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_company: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_team: typing.Callable[[], T_Result], - employments_home_location_work_location_team_company: typing.Callable[[], T_Result], - employments_home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - employments_manager: typing.Callable[[], T_Result], - employments_manager_company: typing.Callable[[], T_Result], - employments_manager_company_pay_group: typing.Callable[[], T_Result], - employments_manager_pay_group: typing.Callable[[], T_Result], - employments_manager_team: typing.Callable[[], T_Result], - employments_manager_team_company: typing.Callable[[], T_Result], - employments_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_manager_team_pay_group: typing.Callable[[], T_Result], - employments_pay_group: typing.Callable[[], T_Result], - employments_team: typing.Callable[[], T_Result], - employments_team_company: typing.Callable[[], T_Result], - employments_team_company_pay_group: typing.Callable[[], T_Result], - employments_team_pay_group: typing.Callable[[], T_Result], - employments_work_location: typing.Callable[[], T_Result], - employments_work_location_company: typing.Callable[[], T_Result], - employments_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager: typing.Callable[[], T_Result], - employments_work_location_manager_company: typing.Callable[[], T_Result], - employments_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager_team: typing.Callable[[], T_Result], - employments_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_work_location_pay_group: typing.Callable[[], T_Result], - employments_work_location_team: typing.Callable[[], T_Result], - employments_work_location_team_company: typing.Callable[[], T_Result], - employments_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_team_pay_group: typing.Callable[[], T_Result], - groups: typing.Callable[[], T_Result], - groups_company: typing.Callable[[], T_Result], - groups_company_pay_group: typing.Callable[[], T_Result], - groups_home_location: typing.Callable[[], T_Result], - groups_home_location_company: typing.Callable[[], T_Result], - groups_home_location_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager: typing.Callable[[], T_Result], - groups_home_location_manager_company: typing.Callable[[], T_Result], - groups_home_location_manager_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager_team: typing.Callable[[], T_Result], - groups_home_location_manager_team_company: typing.Callable[[], T_Result], - groups_home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager_team_pay_group: typing.Callable[[], T_Result], - groups_home_location_pay_group: typing.Callable[[], T_Result], - groups_home_location_team: typing.Callable[[], T_Result], - groups_home_location_team_company: typing.Callable[[], T_Result], - groups_home_location_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_team_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location: typing.Callable[[], T_Result], - groups_home_location_work_location_company: typing.Callable[[], T_Result], - groups_home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_company: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_team: typing.Callable[[], T_Result], - groups_home_location_work_location_team_company: typing.Callable[[], T_Result], - groups_home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - groups_manager: typing.Callable[[], T_Result], - groups_manager_company: typing.Callable[[], T_Result], - groups_manager_company_pay_group: typing.Callable[[], T_Result], - groups_manager_pay_group: typing.Callable[[], T_Result], - groups_manager_team: typing.Callable[[], T_Result], - groups_manager_team_company: typing.Callable[[], T_Result], - groups_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_manager_team_pay_group: typing.Callable[[], T_Result], - groups_pay_group: typing.Callable[[], T_Result], - groups_team: typing.Callable[[], T_Result], - groups_team_company: typing.Callable[[], T_Result], - groups_team_company_pay_group: typing.Callable[[], T_Result], - groups_team_pay_group: typing.Callable[[], T_Result], - groups_work_location: typing.Callable[[], T_Result], - groups_work_location_company: typing.Callable[[], T_Result], - groups_work_location_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager: typing.Callable[[], T_Result], - groups_work_location_manager_company: typing.Callable[[], T_Result], - groups_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager_team: typing.Callable[[], T_Result], - groups_work_location_manager_team_company: typing.Callable[[], T_Result], - groups_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - groups_work_location_pay_group: typing.Callable[[], T_Result], - groups_work_location_team: typing.Callable[[], T_Result], - groups_work_location_team_company: typing.Callable[[], T_Result], - groups_work_location_team_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_team_pay_group: typing.Callable[[], T_Result], - home_location: typing.Callable[[], T_Result], - home_location_company: typing.Callable[[], T_Result], - home_location_company_pay_group: typing.Callable[[], T_Result], - home_location_manager: typing.Callable[[], T_Result], - home_location_manager_company: typing.Callable[[], T_Result], - home_location_manager_company_pay_group: typing.Callable[[], T_Result], - home_location_manager_pay_group: typing.Callable[[], T_Result], - home_location_manager_team: typing.Callable[[], T_Result], - home_location_manager_team_company: typing.Callable[[], T_Result], - home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - home_location_manager_team_pay_group: typing.Callable[[], T_Result], - home_location_pay_group: typing.Callable[[], T_Result], - home_location_team: typing.Callable[[], T_Result], - home_location_team_company: typing.Callable[[], T_Result], - home_location_team_company_pay_group: typing.Callable[[], T_Result], - home_location_team_pay_group: typing.Callable[[], T_Result], - home_location_work_location: typing.Callable[[], T_Result], - home_location_work_location_company: typing.Callable[[], T_Result], - home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager: typing.Callable[[], T_Result], - home_location_work_location_manager_company: typing.Callable[[], T_Result], - home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager_team: typing.Callable[[], T_Result], - home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - home_location_work_location_pay_group: typing.Callable[[], T_Result], - home_location_work_location_team: typing.Callable[[], T_Result], - home_location_work_location_team_company: typing.Callable[[], T_Result], - home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - manager: typing.Callable[[], T_Result], - manager_company: typing.Callable[[], T_Result], - manager_company_pay_group: typing.Callable[[], T_Result], - manager_pay_group: typing.Callable[[], T_Result], - manager_team: typing.Callable[[], T_Result], - manager_team_company: typing.Callable[[], T_Result], - manager_team_company_pay_group: typing.Callable[[], T_Result], - manager_team_pay_group: typing.Callable[[], T_Result], - pay_group: typing.Callable[[], T_Result], - team: typing.Callable[[], T_Result], - team_company: typing.Callable[[], T_Result], - team_company_pay_group: typing.Callable[[], T_Result], - team_pay_group: typing.Callable[[], T_Result], - work_location: typing.Callable[[], T_Result], - work_location_company: typing.Callable[[], T_Result], - work_location_company_pay_group: typing.Callable[[], T_Result], - work_location_manager: typing.Callable[[], T_Result], - work_location_manager_company: typing.Callable[[], T_Result], - work_location_manager_company_pay_group: typing.Callable[[], T_Result], - work_location_manager_pay_group: typing.Callable[[], T_Result], - work_location_manager_team: typing.Callable[[], T_Result], - work_location_manager_team_company: typing.Callable[[], T_Result], - work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - work_location_manager_team_pay_group: typing.Callable[[], T_Result], - work_location_pay_group: typing.Callable[[], T_Result], - work_location_team: typing.Callable[[], T_Result], - work_location_team_company: typing.Callable[[], T_Result], - work_location_team_company_pay_group: typing.Callable[[], T_Result], - work_location_team_pay_group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeesListRequestExpand.COMPANY: - return company() - if self is EmployeesListRequestExpand.COMPANY_PAY_GROUP: - return company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS: - return employments() - if self is EmployeesListRequestExpand.EMPLOYMENTS_COMPANY: - return employments_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_COMPANY_PAY_GROUP: - return employments_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS: - return employments_groups() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_COMPANY: - return employments_groups_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_COMPANY_PAY_GROUP: - return employments_groups_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION: - return employments_groups_home_location() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY: - return employments_groups_home_location_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP: - return employments_groups_home_location_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER: - return employments_groups_home_location_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY: - return employments_groups_home_location_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_groups_home_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP: - return employments_groups_home_location_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM: - return employments_groups_home_location_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY: - return employments_groups_home_location_manager_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_groups_home_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_groups_home_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_PAY_GROUP: - return employments_groups_home_location_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM: - return employments_groups_home_location_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY: - return employments_groups_home_location_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_groups_home_location_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_PAY_GROUP: - return employments_groups_home_location_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION: - return employments_groups_home_location_work_location() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY: - return employments_groups_home_location_work_location_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_groups_home_location_work_location_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER: - return employments_groups_home_location_work_location_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return employments_groups_home_location_work_location_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_groups_home_location_work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_groups_home_location_work_location_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return employments_groups_home_location_work_location_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_groups_home_location_work_location_manager_team_company() - if ( - self - is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP - ): - return employments_groups_home_location_work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_groups_home_location_work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return employments_groups_home_location_work_location_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM: - return employments_groups_home_location_work_location_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return employments_groups_home_location_work_location_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_groups_home_location_work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_groups_home_location_work_location_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER: - return employments_groups_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_COMPANY: - return employments_groups_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_COMPANY_PAY_GROUP: - return employments_groups_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_PAY_GROUP: - return employments_groups_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM: - return employments_groups_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY: - return employments_groups_manager_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_groups_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM_PAY_GROUP: - return employments_groups_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_PAY_GROUP: - return employments_groups_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_TEAM: - return employments_groups_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_TEAM_COMPANY: - return employments_groups_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_TEAM_COMPANY_PAY_GROUP: - return employments_groups_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_TEAM_PAY_GROUP: - return employments_groups_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION: - return employments_groups_work_location() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY: - return employments_groups_work_location_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_groups_work_location_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER: - return employments_groups_work_location_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY: - return employments_groups_work_location_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_groups_work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_groups_work_location_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM: - return employments_groups_work_location_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_groups_work_location_manager_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_groups_work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_groups_work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_PAY_GROUP: - return employments_groups_work_location_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM: - return employments_groups_work_location_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY: - return employments_groups_work_location_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_groups_work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_groups_work_location_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION: - return employments_home_location() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_COMPANY: - return employments_home_location_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_COMPANY_PAY_GROUP: - return employments_home_location_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER: - return employments_home_location_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY: - return employments_home_location_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_home_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_PAY_GROUP: - return employments_home_location_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM: - return employments_home_location_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY: - return employments_home_location_manager_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_home_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_home_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_PAY_GROUP: - return employments_home_location_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM: - return employments_home_location_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY: - return employments_home_location_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_home_location_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM_PAY_GROUP: - return employments_home_location_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION: - return employments_home_location_work_location() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY: - return employments_home_location_work_location_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_home_location_work_location_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER: - return employments_home_location_work_location_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return employments_home_location_work_location_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_home_location_work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_home_location_work_location_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return employments_home_location_work_location_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_home_location_work_location_manager_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_home_location_work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_home_location_work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return employments_home_location_work_location_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM: - return employments_home_location_work_location_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return employments_home_location_work_location_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_home_location_work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_home_location_work_location_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER: - return employments_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER_COMPANY: - return employments_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER_COMPANY_PAY_GROUP: - return employments_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER_PAY_GROUP: - return employments_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER_TEAM: - return employments_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER_TEAM_COMPANY: - return employments_manager_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_MANAGER_TEAM_PAY_GROUP: - return employments_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_PAY_GROUP: - return employments_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_TEAM: - return employments_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_TEAM_COMPANY: - return employments_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_TEAM_COMPANY_PAY_GROUP: - return employments_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_TEAM_PAY_GROUP: - return employments_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION: - return employments_work_location() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_COMPANY: - return employments_work_location_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_work_location_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER: - return employments_work_location_manager() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY: - return employments_work_location_manager_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_work_location_manager_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM: - return employments_work_location_manager_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_work_location_manager_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_PAY_GROUP: - return employments_work_location_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM: - return employments_work_location_team() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY: - return employments_work_location_team_company() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_work_location_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS: - return groups() - if self is EmployeesListRequestExpand.GROUPS_COMPANY: - return groups_company() - if self is EmployeesListRequestExpand.GROUPS_COMPANY_PAY_GROUP: - return groups_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION: - return groups_home_location() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_COMPANY: - return groups_home_location_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP: - return groups_home_location_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER: - return groups_home_location_manager() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER_COMPANY: - return groups_home_location_manager_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return groups_home_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP: - return groups_home_location_manager_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM: - return groups_home_location_manager_team() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY: - return groups_home_location_manager_team_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return groups_home_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_PAY_GROUP: - return groups_home_location_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_TEAM: - return groups_home_location_team() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_TEAM_COMPANY: - return groups_home_location_team_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_TEAM_PAY_GROUP: - return groups_home_location_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION: - return groups_home_location_work_location() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY: - return groups_home_location_work_location_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return groups_home_location_work_location_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER: - return groups_home_location_work_location_manager() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return groups_home_location_work_location_manager_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return groups_home_location_work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return groups_home_location_work_location_manager_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return groups_home_location_work_location_manager_team() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return groups_home_location_work_location_manager_team_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return groups_home_location_work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return groups_home_location_work_location_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM: - return groups_home_location_work_location_team() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return groups_home_location_work_location_team_company() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return groups_home_location_work_location_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS_MANAGER: - return groups_manager() - if self is EmployeesListRequestExpand.GROUPS_MANAGER_COMPANY: - return groups_manager_company() - if self is EmployeesListRequestExpand.GROUPS_MANAGER_COMPANY_PAY_GROUP: - return groups_manager_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_MANAGER_PAY_GROUP: - return groups_manager_pay_group() - if self is EmployeesListRequestExpand.GROUPS_MANAGER_TEAM: - return groups_manager_team() - if self is EmployeesListRequestExpand.GROUPS_MANAGER_TEAM_COMPANY: - return groups_manager_team_company() - if self is EmployeesListRequestExpand.GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_MANAGER_TEAM_PAY_GROUP: - return groups_manager_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS_PAY_GROUP: - return groups_pay_group() - if self is EmployeesListRequestExpand.GROUPS_TEAM: - return groups_team() - if self is EmployeesListRequestExpand.GROUPS_TEAM_COMPANY: - return groups_team_company() - if self is EmployeesListRequestExpand.GROUPS_TEAM_COMPANY_PAY_GROUP: - return groups_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_TEAM_PAY_GROUP: - return groups_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION: - return groups_work_location() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_COMPANY: - return groups_work_location_company() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP: - return groups_work_location_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER: - return groups_work_location_manager() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER_COMPANY: - return groups_work_location_manager_company() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return groups_work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP: - return groups_work_location_manager_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM: - return groups_work_location_manager_team() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return groups_work_location_manager_team_company() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return groups_work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_PAY_GROUP: - return groups_work_location_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_TEAM: - return groups_work_location_team() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_TEAM_COMPANY: - return groups_work_location_team_company() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return groups_work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.GROUPS_WORK_LOCATION_TEAM_PAY_GROUP: - return groups_work_location_team_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION: - return home_location() - if self is EmployeesListRequestExpand.HOME_LOCATION_COMPANY: - return home_location_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_COMPANY_PAY_GROUP: - return home_location_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER: - return home_location_manager() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER_COMPANY: - return home_location_manager_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return home_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER_PAY_GROUP: - return home_location_manager_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER_TEAM: - return home_location_manager_team() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER_TEAM_COMPANY: - return home_location_manager_team_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return home_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return home_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_PAY_GROUP: - return home_location_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_TEAM: - return home_location_team() - if self is EmployeesListRequestExpand.HOME_LOCATION_TEAM_COMPANY: - return home_location_team_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return home_location_team_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_TEAM_PAY_GROUP: - return home_location_team_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION: - return home_location_work_location() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_COMPANY: - return home_location_work_location_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return home_location_work_location_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER: - return home_location_work_location_manager() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return home_location_work_location_manager_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return home_location_work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return home_location_work_location_manager_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return home_location_work_location_manager_team() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return home_location_work_location_manager_team_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return home_location_work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return home_location_work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return home_location_work_location_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM: - return home_location_work_location_team() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return home_location_work_location_team_company() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return home_location_work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return home_location_work_location_team_pay_group() - if self is EmployeesListRequestExpand.MANAGER: - return manager() - if self is EmployeesListRequestExpand.MANAGER_COMPANY: - return manager_company() - if self is EmployeesListRequestExpand.MANAGER_COMPANY_PAY_GROUP: - return manager_company_pay_group() - if self is EmployeesListRequestExpand.MANAGER_PAY_GROUP: - return manager_pay_group() - if self is EmployeesListRequestExpand.MANAGER_TEAM: - return manager_team() - if self is EmployeesListRequestExpand.MANAGER_TEAM_COMPANY: - return manager_team_company() - if self is EmployeesListRequestExpand.MANAGER_TEAM_COMPANY_PAY_GROUP: - return manager_team_company_pay_group() - if self is EmployeesListRequestExpand.MANAGER_TEAM_PAY_GROUP: - return manager_team_pay_group() - if self is EmployeesListRequestExpand.PAY_GROUP: - return pay_group() - if self is EmployeesListRequestExpand.TEAM: - return team() - if self is EmployeesListRequestExpand.TEAM_COMPANY: - return team_company() - if self is EmployeesListRequestExpand.TEAM_COMPANY_PAY_GROUP: - return team_company_pay_group() - if self is EmployeesListRequestExpand.TEAM_PAY_GROUP: - return team_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION: - return work_location() - if self is EmployeesListRequestExpand.WORK_LOCATION_COMPANY: - return work_location_company() - if self is EmployeesListRequestExpand.WORK_LOCATION_COMPANY_PAY_GROUP: - return work_location_company_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER: - return work_location_manager() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER_COMPANY: - return work_location_manager_company() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return work_location_manager_company_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER_PAY_GROUP: - return work_location_manager_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER_TEAM: - return work_location_manager_team() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER_TEAM_COMPANY: - return work_location_manager_team_company() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return work_location_manager_team_company_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return work_location_manager_team_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION_PAY_GROUP: - return work_location_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION_TEAM: - return work_location_team() - if self is EmployeesListRequestExpand.WORK_LOCATION_TEAM_COMPANY: - return work_location_team_company() - if self is EmployeesListRequestExpand.WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return work_location_team_company_pay_group() - if self is EmployeesListRequestExpand.WORK_LOCATION_TEAM_PAY_GROUP: - return work_location_team_pay_group() diff --git a/src/merge/resources/hris/resources/employees/types/employees_list_request_remote_fields.py b/src/merge/resources/hris/resources/employees/types/employees_list_request_remote_fields.py deleted file mode 100644 index 87578468..00000000 --- a/src/merge/resources/hris/resources/employees/types/employees_list_request_remote_fields.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeesListRequestRemoteFields(str, enum.Enum): - EMPLOYMENT_STATUS = "employment_status" - EMPLOYMENT_STATUS_ETHNICITY = "employment_status,ethnicity" - EMPLOYMENT_STATUS_ETHNICITY_GENDER = "employment_status,ethnicity,gender" - EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS = "employment_status,ethnicity,gender,marital_status" - EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS = "employment_status,ethnicity,marital_status" - EMPLOYMENT_STATUS_GENDER = "employment_status,gender" - EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS = "employment_status,gender,marital_status" - EMPLOYMENT_STATUS_MARITAL_STATUS = "employment_status,marital_status" - ETHNICITY = "ethnicity" - ETHNICITY_GENDER = "ethnicity,gender" - ETHNICITY_GENDER_MARITAL_STATUS = "ethnicity,gender,marital_status" - ETHNICITY_MARITAL_STATUS = "ethnicity,marital_status" - GENDER = "gender" - GENDER_MARITAL_STATUS = "gender,marital_status" - MARITAL_STATUS = "marital_status" - - def visit( - self, - employment_status: typing.Callable[[], T_Result], - employment_status_ethnicity: typing.Callable[[], T_Result], - employment_status_ethnicity_gender: typing.Callable[[], T_Result], - employment_status_ethnicity_gender_marital_status: typing.Callable[[], T_Result], - employment_status_ethnicity_marital_status: typing.Callable[[], T_Result], - employment_status_gender: typing.Callable[[], T_Result], - employment_status_gender_marital_status: typing.Callable[[], T_Result], - employment_status_marital_status: typing.Callable[[], T_Result], - ethnicity: typing.Callable[[], T_Result], - ethnicity_gender: typing.Callable[[], T_Result], - ethnicity_gender_marital_status: typing.Callable[[], T_Result], - ethnicity_marital_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_marital_status: typing.Callable[[], T_Result], - marital_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS: - return employment_status() - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY: - return employment_status_ethnicity() - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY_GENDER: - return employment_status_ethnicity_gender() - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS: - return employment_status_ethnicity_gender_marital_status() - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS: - return employment_status_ethnicity_marital_status() - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS_GENDER: - return employment_status_gender() - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS: - return employment_status_gender_marital_status() - if self is EmployeesListRequestRemoteFields.EMPLOYMENT_STATUS_MARITAL_STATUS: - return employment_status_marital_status() - if self is EmployeesListRequestRemoteFields.ETHNICITY: - return ethnicity() - if self is EmployeesListRequestRemoteFields.ETHNICITY_GENDER: - return ethnicity_gender() - if self is EmployeesListRequestRemoteFields.ETHNICITY_GENDER_MARITAL_STATUS: - return ethnicity_gender_marital_status() - if self is EmployeesListRequestRemoteFields.ETHNICITY_MARITAL_STATUS: - return ethnicity_marital_status() - if self is EmployeesListRequestRemoteFields.GENDER: - return gender() - if self is EmployeesListRequestRemoteFields.GENDER_MARITAL_STATUS: - return gender_marital_status() - if self is EmployeesListRequestRemoteFields.MARITAL_STATUS: - return marital_status() diff --git a/src/merge/resources/hris/resources/employees/types/employees_list_request_show_enum_origins.py b/src/merge/resources/hris/resources/employees/types/employees_list_request_show_enum_origins.py deleted file mode 100644 index 2aa5f5c7..00000000 --- a/src/merge/resources/hris/resources/employees/types/employees_list_request_show_enum_origins.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeesListRequestShowEnumOrigins(str, enum.Enum): - EMPLOYMENT_STATUS = "employment_status" - EMPLOYMENT_STATUS_ETHNICITY = "employment_status,ethnicity" - EMPLOYMENT_STATUS_ETHNICITY_GENDER = "employment_status,ethnicity,gender" - EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS = "employment_status,ethnicity,gender,marital_status" - EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS = "employment_status,ethnicity,marital_status" - EMPLOYMENT_STATUS_GENDER = "employment_status,gender" - EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS = "employment_status,gender,marital_status" - EMPLOYMENT_STATUS_MARITAL_STATUS = "employment_status,marital_status" - ETHNICITY = "ethnicity" - ETHNICITY_GENDER = "ethnicity,gender" - ETHNICITY_GENDER_MARITAL_STATUS = "ethnicity,gender,marital_status" - ETHNICITY_MARITAL_STATUS = "ethnicity,marital_status" - GENDER = "gender" - GENDER_MARITAL_STATUS = "gender,marital_status" - MARITAL_STATUS = "marital_status" - - def visit( - self, - employment_status: typing.Callable[[], T_Result], - employment_status_ethnicity: typing.Callable[[], T_Result], - employment_status_ethnicity_gender: typing.Callable[[], T_Result], - employment_status_ethnicity_gender_marital_status: typing.Callable[[], T_Result], - employment_status_ethnicity_marital_status: typing.Callable[[], T_Result], - employment_status_gender: typing.Callable[[], T_Result], - employment_status_gender_marital_status: typing.Callable[[], T_Result], - employment_status_marital_status: typing.Callable[[], T_Result], - ethnicity: typing.Callable[[], T_Result], - ethnicity_gender: typing.Callable[[], T_Result], - ethnicity_gender_marital_status: typing.Callable[[], T_Result], - ethnicity_marital_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_marital_status: typing.Callable[[], T_Result], - marital_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS: - return employment_status() - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY: - return employment_status_ethnicity() - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY_GENDER: - return employment_status_ethnicity_gender() - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS: - return employment_status_ethnicity_gender_marital_status() - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS: - return employment_status_ethnicity_marital_status() - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS_GENDER: - return employment_status_gender() - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS: - return employment_status_gender_marital_status() - if self is EmployeesListRequestShowEnumOrigins.EMPLOYMENT_STATUS_MARITAL_STATUS: - return employment_status_marital_status() - if self is EmployeesListRequestShowEnumOrigins.ETHNICITY: - return ethnicity() - if self is EmployeesListRequestShowEnumOrigins.ETHNICITY_GENDER: - return ethnicity_gender() - if self is EmployeesListRequestShowEnumOrigins.ETHNICITY_GENDER_MARITAL_STATUS: - return ethnicity_gender_marital_status() - if self is EmployeesListRequestShowEnumOrigins.ETHNICITY_MARITAL_STATUS: - return ethnicity_marital_status() - if self is EmployeesListRequestShowEnumOrigins.GENDER: - return gender() - if self is EmployeesListRequestShowEnumOrigins.GENDER_MARITAL_STATUS: - return gender_marital_status() - if self is EmployeesListRequestShowEnumOrigins.MARITAL_STATUS: - return marital_status() diff --git a/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_expand.py b/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_expand.py deleted file mode 100644 index ff4ff63c..00000000 --- a/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_expand.py +++ /dev/null @@ -1,1102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeesRetrieveRequestExpand(str, enum.Enum): - COMPANY = "company" - COMPANY_PAY_GROUP = "company,pay_group" - EMPLOYMENTS = "employments" - EMPLOYMENTS_COMPANY = "employments,company" - EMPLOYMENTS_COMPANY_PAY_GROUP = "employments,company,pay_group" - EMPLOYMENTS_GROUPS = "employments,groups" - EMPLOYMENTS_GROUPS_COMPANY = "employments,groups,company" - EMPLOYMENTS_GROUPS_COMPANY_PAY_GROUP = "employments,groups,company,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION = "employments,groups,home_location" - EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY = "employments,groups,home_location,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP = "employments,groups,home_location,company,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER = "employments,groups,home_location,manager" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY = "employments,groups,home_location,manager,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,manager,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP = "employments,groups,home_location,manager,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM = "employments,groups,home_location,manager,team" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY = "employments,groups,home_location,manager,team,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,groups,home_location,manager,team,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_PAY_GROUP = "employments,groups,home_location,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM = "employments,groups,home_location,team" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY = "employments,groups,home_location,team,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,groups,home_location,team,company,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_PAY_GROUP = "employments,groups,home_location,team,pay_group" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION = "employments,groups,home_location,work_location" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY = "employments,groups,home_location,work_location,company" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER = "employments,groups,home_location,work_location,manager" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = ( - "employments,groups,home_location,work_location,manager,company" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = ( - "employments,groups,home_location,work_location,manager,team" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = ( - "employments,groups,home_location,work_location,manager,team,company" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = ( - "employments,groups,home_location,work_location,manager,team,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP = ( - "employments,groups,home_location,work_location,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM = "employments,groups,home_location,work_location,team" - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = ( - "employments,groups,home_location,work_location,team,company" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,home_location,work_location,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = ( - "employments,groups,home_location,work_location,team,pay_group" - ) - EMPLOYMENTS_GROUPS_MANAGER = "employments,groups,manager" - EMPLOYMENTS_GROUPS_MANAGER_COMPANY = "employments,groups,manager,company" - EMPLOYMENTS_GROUPS_MANAGER_COMPANY_PAY_GROUP = "employments,groups,manager,company,pay_group" - EMPLOYMENTS_GROUPS_MANAGER_PAY_GROUP = "employments,groups,manager,pay_group" - EMPLOYMENTS_GROUPS_MANAGER_TEAM = "employments,groups,manager,team" - EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY = "employments,groups,manager,team,company" - EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP = "employments,groups,manager,team,company,pay_group" - EMPLOYMENTS_GROUPS_MANAGER_TEAM_PAY_GROUP = "employments,groups,manager,team,pay_group" - EMPLOYMENTS_GROUPS_PAY_GROUP = "employments,groups,pay_group" - EMPLOYMENTS_GROUPS_TEAM = "employments,groups,team" - EMPLOYMENTS_GROUPS_TEAM_COMPANY = "employments,groups,team,company" - EMPLOYMENTS_GROUPS_TEAM_COMPANY_PAY_GROUP = "employments,groups,team,company,pay_group" - EMPLOYMENTS_GROUPS_TEAM_PAY_GROUP = "employments,groups,team,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION = "employments,groups,work_location" - EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY = "employments,groups,work_location,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP = "employments,groups,work_location,company,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER = "employments,groups,work_location,manager" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY = "employments,groups,work_location,manager,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,groups,work_location,manager,company,pay_group" - ) - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP = "employments,groups,work_location,manager,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM = "employments,groups,work_location,manager,team" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY = "employments,groups,work_location,manager,team,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,groups,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,groups,work_location,manager,team,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_PAY_GROUP = "employments,groups,work_location,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM = "employments,groups,work_location,team" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY = "employments,groups,work_location,team,company" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,groups,work_location,team,company,pay_group" - EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_PAY_GROUP = "employments,groups,work_location,team,pay_group" - EMPLOYMENTS_HOME_LOCATION = "employments,home_location" - EMPLOYMENTS_HOME_LOCATION_COMPANY = "employments,home_location,company" - EMPLOYMENTS_HOME_LOCATION_COMPANY_PAY_GROUP = "employments,home_location,company,pay_group" - EMPLOYMENTS_HOME_LOCATION_MANAGER = "employments,home_location,manager" - EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY = "employments,home_location,manager,company" - EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = "employments,home_location,manager,company,pay_group" - EMPLOYMENTS_HOME_LOCATION_MANAGER_PAY_GROUP = "employments,home_location,manager,pay_group" - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM = "employments,home_location,manager,team" - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY = "employments,home_location,manager,team,company" - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,home_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,home_location,manager,team,pay_group" - EMPLOYMENTS_HOME_LOCATION_PAY_GROUP = "employments,home_location,pay_group" - EMPLOYMENTS_HOME_LOCATION_TEAM = "employments,home_location,team" - EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY = "employments,home_location,team,company" - EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,home_location,team,company,pay_group" - EMPLOYMENTS_HOME_LOCATION_TEAM_PAY_GROUP = "employments,home_location,team,pay_group" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION = "employments,home_location,work_location" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY = "employments,home_location,work_location,company" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER = "employments,home_location,work_location,manager" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = "employments,home_location,work_location,manager,company" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,manager,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = ( - "employments,home_location,work_location,manager,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = "employments,home_location,work_location,manager,team" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = ( - "employments,home_location,work_location,manager,team,company" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = ( - "employments,home_location,work_location,manager,team,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP = "employments,home_location,work_location,pay_group" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM = "employments,home_location,work_location,team" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = "employments,home_location,work_location,team,company" - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = ( - "employments,home_location,work_location,team,company,pay_group" - ) - EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = "employments,home_location,work_location,team,pay_group" - EMPLOYMENTS_MANAGER = "employments,manager" - EMPLOYMENTS_MANAGER_COMPANY = "employments,manager,company" - EMPLOYMENTS_MANAGER_COMPANY_PAY_GROUP = "employments,manager,company,pay_group" - EMPLOYMENTS_MANAGER_PAY_GROUP = "employments,manager,pay_group" - EMPLOYMENTS_MANAGER_TEAM = "employments,manager,team" - EMPLOYMENTS_MANAGER_TEAM_COMPANY = "employments,manager,team,company" - EMPLOYMENTS_MANAGER_TEAM_COMPANY_PAY_GROUP = "employments,manager,team,company,pay_group" - EMPLOYMENTS_MANAGER_TEAM_PAY_GROUP = "employments,manager,team,pay_group" - EMPLOYMENTS_PAY_GROUP = "employments,pay_group" - EMPLOYMENTS_TEAM = "employments,team" - EMPLOYMENTS_TEAM_COMPANY = "employments,team,company" - EMPLOYMENTS_TEAM_COMPANY_PAY_GROUP = "employments,team,company,pay_group" - EMPLOYMENTS_TEAM_PAY_GROUP = "employments,team,pay_group" - EMPLOYMENTS_WORK_LOCATION = "employments,work_location" - EMPLOYMENTS_WORK_LOCATION_COMPANY = "employments,work_location,company" - EMPLOYMENTS_WORK_LOCATION_COMPANY_PAY_GROUP = "employments,work_location,company,pay_group" - EMPLOYMENTS_WORK_LOCATION_MANAGER = "employments,work_location,manager" - EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY = "employments,work_location,manager,company" - EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "employments,work_location,manager,company,pay_group" - EMPLOYMENTS_WORK_LOCATION_MANAGER_PAY_GROUP = "employments,work_location,manager,pay_group" - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM = "employments,work_location,manager,team" - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY = "employments,work_location,manager,team,company" - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "employments,work_location,manager,team,company,pay_group" - ) - EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "employments,work_location,manager,team,pay_group" - EMPLOYMENTS_WORK_LOCATION_PAY_GROUP = "employments,work_location,pay_group" - EMPLOYMENTS_WORK_LOCATION_TEAM = "employments,work_location,team" - EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY = "employments,work_location,team,company" - EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "employments,work_location,team,company,pay_group" - EMPLOYMENTS_WORK_LOCATION_TEAM_PAY_GROUP = "employments,work_location,team,pay_group" - GROUPS = "groups" - GROUPS_COMPANY = "groups,company" - GROUPS_COMPANY_PAY_GROUP = "groups,company,pay_group" - GROUPS_HOME_LOCATION = "groups,home_location" - GROUPS_HOME_LOCATION_COMPANY = "groups,home_location,company" - GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP = "groups,home_location,company,pay_group" - GROUPS_HOME_LOCATION_MANAGER = "groups,home_location,manager" - GROUPS_HOME_LOCATION_MANAGER_COMPANY = "groups,home_location,manager,company" - GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = "groups,home_location,manager,company,pay_group" - GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP = "groups,home_location,manager,pay_group" - GROUPS_HOME_LOCATION_MANAGER_TEAM = "groups,home_location,manager,team" - GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY = "groups,home_location,manager,team,company" - GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "groups,home_location,manager,team,company,pay_group" - GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "groups,home_location,manager,team,pay_group" - GROUPS_HOME_LOCATION_PAY_GROUP = "groups,home_location,pay_group" - GROUPS_HOME_LOCATION_TEAM = "groups,home_location,team" - GROUPS_HOME_LOCATION_TEAM_COMPANY = "groups,home_location,team,company" - GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "groups,home_location,team,company,pay_group" - GROUPS_HOME_LOCATION_TEAM_PAY_GROUP = "groups,home_location,team,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION = "groups,home_location,work_location" - GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY = "groups,home_location,work_location,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = "groups,home_location,work_location,company,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER = "groups,home_location,work_location,manager" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = "groups,home_location,work_location,manager,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = ( - "groups,home_location,work_location,manager,company,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = "groups,home_location,work_location,manager,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = "groups,home_location,work_location,manager,team" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = "groups,home_location,work_location,manager,team,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "groups,home_location,work_location,manager,team,company,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = ( - "groups,home_location,work_location,manager,team,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP = "groups,home_location,work_location,pay_group" - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM = "groups,home_location,work_location,team" - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = "groups,home_location,work_location,team,company" - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = ( - "groups,home_location,work_location,team,company,pay_group" - ) - GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = "groups,home_location,work_location,team,pay_group" - GROUPS_MANAGER = "groups,manager" - GROUPS_MANAGER_COMPANY = "groups,manager,company" - GROUPS_MANAGER_COMPANY_PAY_GROUP = "groups,manager,company,pay_group" - GROUPS_MANAGER_PAY_GROUP = "groups,manager,pay_group" - GROUPS_MANAGER_TEAM = "groups,manager,team" - GROUPS_MANAGER_TEAM_COMPANY = "groups,manager,team,company" - GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP = "groups,manager,team,company,pay_group" - GROUPS_MANAGER_TEAM_PAY_GROUP = "groups,manager,team,pay_group" - GROUPS_PAY_GROUP = "groups,pay_group" - GROUPS_TEAM = "groups,team" - GROUPS_TEAM_COMPANY = "groups,team,company" - GROUPS_TEAM_COMPANY_PAY_GROUP = "groups,team,company,pay_group" - GROUPS_TEAM_PAY_GROUP = "groups,team,pay_group" - GROUPS_WORK_LOCATION = "groups,work_location" - GROUPS_WORK_LOCATION_COMPANY = "groups,work_location,company" - GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP = "groups,work_location,company,pay_group" - GROUPS_WORK_LOCATION_MANAGER = "groups,work_location,manager" - GROUPS_WORK_LOCATION_MANAGER_COMPANY = "groups,work_location,manager,company" - GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "groups,work_location,manager,company,pay_group" - GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP = "groups,work_location,manager,pay_group" - GROUPS_WORK_LOCATION_MANAGER_TEAM = "groups,work_location,manager,team" - GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY = "groups,work_location,manager,team,company" - GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "groups,work_location,manager,team,company,pay_group" - GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "groups,work_location,manager,team,pay_group" - GROUPS_WORK_LOCATION_PAY_GROUP = "groups,work_location,pay_group" - GROUPS_WORK_LOCATION_TEAM = "groups,work_location,team" - GROUPS_WORK_LOCATION_TEAM_COMPANY = "groups,work_location,team,company" - GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "groups,work_location,team,company,pay_group" - GROUPS_WORK_LOCATION_TEAM_PAY_GROUP = "groups,work_location,team,pay_group" - HOME_LOCATION = "home_location" - HOME_LOCATION_COMPANY = "home_location,company" - HOME_LOCATION_COMPANY_PAY_GROUP = "home_location,company,pay_group" - HOME_LOCATION_MANAGER = "home_location,manager" - HOME_LOCATION_MANAGER_COMPANY = "home_location,manager,company" - HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP = "home_location,manager,company,pay_group" - HOME_LOCATION_MANAGER_PAY_GROUP = "home_location,manager,pay_group" - HOME_LOCATION_MANAGER_TEAM = "home_location,manager,team" - HOME_LOCATION_MANAGER_TEAM_COMPANY = "home_location,manager,team,company" - HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "home_location,manager,team,company,pay_group" - HOME_LOCATION_MANAGER_TEAM_PAY_GROUP = "home_location,manager,team,pay_group" - HOME_LOCATION_PAY_GROUP = "home_location,pay_group" - HOME_LOCATION_TEAM = "home_location,team" - HOME_LOCATION_TEAM_COMPANY = "home_location,team,company" - HOME_LOCATION_TEAM_COMPANY_PAY_GROUP = "home_location,team,company,pay_group" - HOME_LOCATION_TEAM_PAY_GROUP = "home_location,team,pay_group" - HOME_LOCATION_WORK_LOCATION = "home_location,work_location" - HOME_LOCATION_WORK_LOCATION_COMPANY = "home_location,work_location,company" - HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP = "home_location,work_location,company,pay_group" - HOME_LOCATION_WORK_LOCATION_MANAGER = "home_location,work_location,manager" - HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY = "home_location,work_location,manager,company" - HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "home_location,work_location,manager,company,pay_group" - HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP = "home_location,work_location,manager,pay_group" - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM = "home_location,work_location,manager,team" - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY = "home_location,work_location,manager,team,company" - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = ( - "home_location,work_location,manager,team,company,pay_group" - ) - HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "home_location,work_location,manager,team,pay_group" - HOME_LOCATION_WORK_LOCATION_PAY_GROUP = "home_location,work_location,pay_group" - HOME_LOCATION_WORK_LOCATION_TEAM = "home_location,work_location,team" - HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY = "home_location,work_location,team,company" - HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "home_location,work_location,team,company,pay_group" - HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP = "home_location,work_location,team,pay_group" - MANAGER = "manager" - MANAGER_COMPANY = "manager,company" - MANAGER_COMPANY_PAY_GROUP = "manager,company,pay_group" - MANAGER_PAY_GROUP = "manager,pay_group" - MANAGER_TEAM = "manager,team" - MANAGER_TEAM_COMPANY = "manager,team,company" - MANAGER_TEAM_COMPANY_PAY_GROUP = "manager,team,company,pay_group" - MANAGER_TEAM_PAY_GROUP = "manager,team,pay_group" - PAY_GROUP = "pay_group" - TEAM = "team" - TEAM_COMPANY = "team,company" - TEAM_COMPANY_PAY_GROUP = "team,company,pay_group" - TEAM_PAY_GROUP = "team,pay_group" - WORK_LOCATION = "work_location" - WORK_LOCATION_COMPANY = "work_location,company" - WORK_LOCATION_COMPANY_PAY_GROUP = "work_location,company,pay_group" - WORK_LOCATION_MANAGER = "work_location,manager" - WORK_LOCATION_MANAGER_COMPANY = "work_location,manager,company" - WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP = "work_location,manager,company,pay_group" - WORK_LOCATION_MANAGER_PAY_GROUP = "work_location,manager,pay_group" - WORK_LOCATION_MANAGER_TEAM = "work_location,manager,team" - WORK_LOCATION_MANAGER_TEAM_COMPANY = "work_location,manager,team,company" - WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP = "work_location,manager,team,company,pay_group" - WORK_LOCATION_MANAGER_TEAM_PAY_GROUP = "work_location,manager,team,pay_group" - WORK_LOCATION_PAY_GROUP = "work_location,pay_group" - WORK_LOCATION_TEAM = "work_location,team" - WORK_LOCATION_TEAM_COMPANY = "work_location,team,company" - WORK_LOCATION_TEAM_COMPANY_PAY_GROUP = "work_location,team,company,pay_group" - WORK_LOCATION_TEAM_PAY_GROUP = "work_location,team,pay_group" - - def visit( - self, - company: typing.Callable[[], T_Result], - company_pay_group: typing.Callable[[], T_Result], - employments: typing.Callable[[], T_Result], - employments_company: typing.Callable[[], T_Result], - employments_company_pay_group: typing.Callable[[], T_Result], - employments_groups: typing.Callable[[], T_Result], - employments_groups_company: typing.Callable[[], T_Result], - employments_groups_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location: typing.Callable[[], T_Result], - employments_groups_home_location_company: typing.Callable[[], T_Result], - employments_groups_home_location_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager: typing.Callable[[], T_Result], - employments_groups_home_location_manager_company: typing.Callable[[], T_Result], - employments_groups_home_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_team: typing.Callable[[], T_Result], - employments_groups_home_location_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_team_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team_company: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - employments_groups_manager: typing.Callable[[], T_Result], - employments_groups_manager_company: typing.Callable[[], T_Result], - employments_groups_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_manager_team: typing.Callable[[], T_Result], - employments_groups_manager_team_company: typing.Callable[[], T_Result], - employments_groups_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_pay_group: typing.Callable[[], T_Result], - employments_groups_team: typing.Callable[[], T_Result], - employments_groups_team_company: typing.Callable[[], T_Result], - employments_groups_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_team_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location: typing.Callable[[], T_Result], - employments_groups_work_location_company: typing.Callable[[], T_Result], - employments_groups_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager: typing.Callable[[], T_Result], - employments_groups_work_location_manager_company: typing.Callable[[], T_Result], - employments_groups_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_team: typing.Callable[[], T_Result], - employments_groups_work_location_team_company: typing.Callable[[], T_Result], - employments_groups_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_groups_work_location_team_pay_group: typing.Callable[[], T_Result], - employments_home_location: typing.Callable[[], T_Result], - employments_home_location_company: typing.Callable[[], T_Result], - employments_home_location_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager: typing.Callable[[], T_Result], - employments_home_location_manager_company: typing.Callable[[], T_Result], - employments_home_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager_team: typing.Callable[[], T_Result], - employments_home_location_manager_team_company: typing.Callable[[], T_Result], - employments_home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_home_location_pay_group: typing.Callable[[], T_Result], - employments_home_location_team: typing.Callable[[], T_Result], - employments_home_location_team_company: typing.Callable[[], T_Result], - employments_home_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_team_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location: typing.Callable[[], T_Result], - employments_home_location_work_location_company: typing.Callable[[], T_Result], - employments_home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_company: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_team: typing.Callable[[], T_Result], - employments_home_location_work_location_team_company: typing.Callable[[], T_Result], - employments_home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - employments_manager: typing.Callable[[], T_Result], - employments_manager_company: typing.Callable[[], T_Result], - employments_manager_company_pay_group: typing.Callable[[], T_Result], - employments_manager_pay_group: typing.Callable[[], T_Result], - employments_manager_team: typing.Callable[[], T_Result], - employments_manager_team_company: typing.Callable[[], T_Result], - employments_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_manager_team_pay_group: typing.Callable[[], T_Result], - employments_pay_group: typing.Callable[[], T_Result], - employments_team: typing.Callable[[], T_Result], - employments_team_company: typing.Callable[[], T_Result], - employments_team_company_pay_group: typing.Callable[[], T_Result], - employments_team_pay_group: typing.Callable[[], T_Result], - employments_work_location: typing.Callable[[], T_Result], - employments_work_location_company: typing.Callable[[], T_Result], - employments_work_location_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager: typing.Callable[[], T_Result], - employments_work_location_manager_company: typing.Callable[[], T_Result], - employments_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager_team: typing.Callable[[], T_Result], - employments_work_location_manager_team_company: typing.Callable[[], T_Result], - employments_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - employments_work_location_pay_group: typing.Callable[[], T_Result], - employments_work_location_team: typing.Callable[[], T_Result], - employments_work_location_team_company: typing.Callable[[], T_Result], - employments_work_location_team_company_pay_group: typing.Callable[[], T_Result], - employments_work_location_team_pay_group: typing.Callable[[], T_Result], - groups: typing.Callable[[], T_Result], - groups_company: typing.Callable[[], T_Result], - groups_company_pay_group: typing.Callable[[], T_Result], - groups_home_location: typing.Callable[[], T_Result], - groups_home_location_company: typing.Callable[[], T_Result], - groups_home_location_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager: typing.Callable[[], T_Result], - groups_home_location_manager_company: typing.Callable[[], T_Result], - groups_home_location_manager_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager_team: typing.Callable[[], T_Result], - groups_home_location_manager_team_company: typing.Callable[[], T_Result], - groups_home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_manager_team_pay_group: typing.Callable[[], T_Result], - groups_home_location_pay_group: typing.Callable[[], T_Result], - groups_home_location_team: typing.Callable[[], T_Result], - groups_home_location_team_company: typing.Callable[[], T_Result], - groups_home_location_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_team_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location: typing.Callable[[], T_Result], - groups_home_location_work_location_company: typing.Callable[[], T_Result], - groups_home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_company: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_team: typing.Callable[[], T_Result], - groups_home_location_work_location_team_company: typing.Callable[[], T_Result], - groups_home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - groups_home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - groups_manager: typing.Callable[[], T_Result], - groups_manager_company: typing.Callable[[], T_Result], - groups_manager_company_pay_group: typing.Callable[[], T_Result], - groups_manager_pay_group: typing.Callable[[], T_Result], - groups_manager_team: typing.Callable[[], T_Result], - groups_manager_team_company: typing.Callable[[], T_Result], - groups_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_manager_team_pay_group: typing.Callable[[], T_Result], - groups_pay_group: typing.Callable[[], T_Result], - groups_team: typing.Callable[[], T_Result], - groups_team_company: typing.Callable[[], T_Result], - groups_team_company_pay_group: typing.Callable[[], T_Result], - groups_team_pay_group: typing.Callable[[], T_Result], - groups_work_location: typing.Callable[[], T_Result], - groups_work_location_company: typing.Callable[[], T_Result], - groups_work_location_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager: typing.Callable[[], T_Result], - groups_work_location_manager_company: typing.Callable[[], T_Result], - groups_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager_team: typing.Callable[[], T_Result], - groups_work_location_manager_team_company: typing.Callable[[], T_Result], - groups_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - groups_work_location_pay_group: typing.Callable[[], T_Result], - groups_work_location_team: typing.Callable[[], T_Result], - groups_work_location_team_company: typing.Callable[[], T_Result], - groups_work_location_team_company_pay_group: typing.Callable[[], T_Result], - groups_work_location_team_pay_group: typing.Callable[[], T_Result], - home_location: typing.Callable[[], T_Result], - home_location_company: typing.Callable[[], T_Result], - home_location_company_pay_group: typing.Callable[[], T_Result], - home_location_manager: typing.Callable[[], T_Result], - home_location_manager_company: typing.Callable[[], T_Result], - home_location_manager_company_pay_group: typing.Callable[[], T_Result], - home_location_manager_pay_group: typing.Callable[[], T_Result], - home_location_manager_team: typing.Callable[[], T_Result], - home_location_manager_team_company: typing.Callable[[], T_Result], - home_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - home_location_manager_team_pay_group: typing.Callable[[], T_Result], - home_location_pay_group: typing.Callable[[], T_Result], - home_location_team: typing.Callable[[], T_Result], - home_location_team_company: typing.Callable[[], T_Result], - home_location_team_company_pay_group: typing.Callable[[], T_Result], - home_location_team_pay_group: typing.Callable[[], T_Result], - home_location_work_location: typing.Callable[[], T_Result], - home_location_work_location_company: typing.Callable[[], T_Result], - home_location_work_location_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager: typing.Callable[[], T_Result], - home_location_work_location_manager_company: typing.Callable[[], T_Result], - home_location_work_location_manager_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager_team: typing.Callable[[], T_Result], - home_location_work_location_manager_team_company: typing.Callable[[], T_Result], - home_location_work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_manager_team_pay_group: typing.Callable[[], T_Result], - home_location_work_location_pay_group: typing.Callable[[], T_Result], - home_location_work_location_team: typing.Callable[[], T_Result], - home_location_work_location_team_company: typing.Callable[[], T_Result], - home_location_work_location_team_company_pay_group: typing.Callable[[], T_Result], - home_location_work_location_team_pay_group: typing.Callable[[], T_Result], - manager: typing.Callable[[], T_Result], - manager_company: typing.Callable[[], T_Result], - manager_company_pay_group: typing.Callable[[], T_Result], - manager_pay_group: typing.Callable[[], T_Result], - manager_team: typing.Callable[[], T_Result], - manager_team_company: typing.Callable[[], T_Result], - manager_team_company_pay_group: typing.Callable[[], T_Result], - manager_team_pay_group: typing.Callable[[], T_Result], - pay_group: typing.Callable[[], T_Result], - team: typing.Callable[[], T_Result], - team_company: typing.Callable[[], T_Result], - team_company_pay_group: typing.Callable[[], T_Result], - team_pay_group: typing.Callable[[], T_Result], - work_location: typing.Callable[[], T_Result], - work_location_company: typing.Callable[[], T_Result], - work_location_company_pay_group: typing.Callable[[], T_Result], - work_location_manager: typing.Callable[[], T_Result], - work_location_manager_company: typing.Callable[[], T_Result], - work_location_manager_company_pay_group: typing.Callable[[], T_Result], - work_location_manager_pay_group: typing.Callable[[], T_Result], - work_location_manager_team: typing.Callable[[], T_Result], - work_location_manager_team_company: typing.Callable[[], T_Result], - work_location_manager_team_company_pay_group: typing.Callable[[], T_Result], - work_location_manager_team_pay_group: typing.Callable[[], T_Result], - work_location_pay_group: typing.Callable[[], T_Result], - work_location_team: typing.Callable[[], T_Result], - work_location_team_company: typing.Callable[[], T_Result], - work_location_team_company_pay_group: typing.Callable[[], T_Result], - work_location_team_pay_group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeesRetrieveRequestExpand.COMPANY: - return company() - if self is EmployeesRetrieveRequestExpand.COMPANY_PAY_GROUP: - return company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS: - return employments() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_COMPANY: - return employments_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_COMPANY_PAY_GROUP: - return employments_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS: - return employments_groups() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_COMPANY: - return employments_groups_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_COMPANY_PAY_GROUP: - return employments_groups_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION: - return employments_groups_home_location() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY: - return employments_groups_home_location_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP: - return employments_groups_home_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER: - return employments_groups_home_location_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY: - return employments_groups_home_location_manager_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_groups_home_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP: - return employments_groups_home_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM: - return employments_groups_home_location_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY: - return employments_groups_home_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_groups_home_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_groups_home_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_PAY_GROUP: - return employments_groups_home_location_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM: - return employments_groups_home_location_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY: - return employments_groups_home_location_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_groups_home_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_TEAM_PAY_GROUP: - return employments_groups_home_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION: - return employments_groups_home_location_work_location() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY: - return employments_groups_home_location_work_location_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_groups_home_location_work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER: - return employments_groups_home_location_work_location_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return employments_groups_home_location_work_location_manager_company() - if ( - self - is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP - ): - return employments_groups_home_location_work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_groups_home_location_work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return employments_groups_home_location_work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_groups_home_location_work_location_manager_team_company() - if ( - self - is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP - ): - return employments_groups_home_location_work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_groups_home_location_work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return employments_groups_home_location_work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM: - return employments_groups_home_location_work_location_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return employments_groups_home_location_work_location_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_groups_home_location_work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_groups_home_location_work_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER: - return employments_groups_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_COMPANY: - return employments_groups_manager_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_COMPANY_PAY_GROUP: - return employments_groups_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_PAY_GROUP: - return employments_groups_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM: - return employments_groups_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY: - return employments_groups_manager_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_groups_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_MANAGER_TEAM_PAY_GROUP: - return employments_groups_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_PAY_GROUP: - return employments_groups_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_TEAM: - return employments_groups_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_TEAM_COMPANY: - return employments_groups_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_TEAM_COMPANY_PAY_GROUP: - return employments_groups_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_TEAM_PAY_GROUP: - return employments_groups_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION: - return employments_groups_work_location() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY: - return employments_groups_work_location_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_groups_work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER: - return employments_groups_work_location_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY: - return employments_groups_work_location_manager_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_groups_work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_groups_work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM: - return employments_groups_work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_groups_work_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_groups_work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_groups_work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_PAY_GROUP: - return employments_groups_work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM: - return employments_groups_work_location_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY: - return employments_groups_work_location_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_groups_work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_GROUPS_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_groups_work_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION: - return employments_home_location() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_COMPANY: - return employments_home_location_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_COMPANY_PAY_GROUP: - return employments_home_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER: - return employments_home_location_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY: - return employments_home_location_manager_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_home_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_PAY_GROUP: - return employments_home_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM: - return employments_home_location_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY: - return employments_home_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_home_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_home_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_PAY_GROUP: - return employments_home_location_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM: - return employments_home_location_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY: - return employments_home_location_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_home_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_TEAM_PAY_GROUP: - return employments_home_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION: - return employments_home_location_work_location() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY: - return employments_home_location_work_location_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_home_location_work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER: - return employments_home_location_work_location_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return employments_home_location_work_location_manager_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_home_location_work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_home_location_work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return employments_home_location_work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_home_location_work_location_manager_team_company() - if ( - self - is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP - ): - return employments_home_location_work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_home_location_work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return employments_home_location_work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM: - return employments_home_location_work_location_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return employments_home_location_work_location_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_home_location_work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_home_location_work_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER: - return employments_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER_COMPANY: - return employments_manager_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER_COMPANY_PAY_GROUP: - return employments_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER_PAY_GROUP: - return employments_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER_TEAM: - return employments_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER_TEAM_COMPANY: - return employments_manager_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_MANAGER_TEAM_PAY_GROUP: - return employments_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_PAY_GROUP: - return employments_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_TEAM: - return employments_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_TEAM_COMPANY: - return employments_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_TEAM_COMPANY_PAY_GROUP: - return employments_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_TEAM_PAY_GROUP: - return employments_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION: - return employments_work_location() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_COMPANY: - return employments_work_location_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_COMPANY_PAY_GROUP: - return employments_work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER: - return employments_work_location_manager() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY: - return employments_work_location_manager_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return employments_work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_PAY_GROUP: - return employments_work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM: - return employments_work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return employments_work_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return employments_work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return employments_work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_PAY_GROUP: - return employments_work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM: - return employments_work_location_team() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY: - return employments_work_location_team_company() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return employments_work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.EMPLOYMENTS_WORK_LOCATION_TEAM_PAY_GROUP: - return employments_work_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS: - return groups() - if self is EmployeesRetrieveRequestExpand.GROUPS_COMPANY: - return groups_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_COMPANY_PAY_GROUP: - return groups_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION: - return groups_home_location() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_COMPANY: - return groups_home_location_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_COMPANY_PAY_GROUP: - return groups_home_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER: - return groups_home_location_manager() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER_COMPANY: - return groups_home_location_manager_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return groups_home_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER_PAY_GROUP: - return groups_home_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM: - return groups_home_location_manager_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY: - return groups_home_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return groups_home_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_PAY_GROUP: - return groups_home_location_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_TEAM: - return groups_home_location_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_TEAM_COMPANY: - return groups_home_location_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_TEAM_PAY_GROUP: - return groups_home_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION: - return groups_home_location_work_location() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY: - return groups_home_location_work_location_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return groups_home_location_work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER: - return groups_home_location_work_location_manager() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return groups_home_location_work_location_manager_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return groups_home_location_work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return groups_home_location_work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return groups_home_location_work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return groups_home_location_work_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return groups_home_location_work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return groups_home_location_work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM: - return groups_home_location_work_location_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return groups_home_location_work_location_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return groups_home_location_work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return groups_home_location_work_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER: - return groups_manager() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER_COMPANY: - return groups_manager_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER_COMPANY_PAY_GROUP: - return groups_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER_PAY_GROUP: - return groups_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER_TEAM: - return groups_manager_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER_TEAM_COMPANY: - return groups_manager_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_MANAGER_TEAM_PAY_GROUP: - return groups_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_PAY_GROUP: - return groups_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_TEAM: - return groups_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_TEAM_COMPANY: - return groups_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_TEAM_COMPANY_PAY_GROUP: - return groups_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_TEAM_PAY_GROUP: - return groups_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION: - return groups_work_location() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_COMPANY: - return groups_work_location_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_COMPANY_PAY_GROUP: - return groups_work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER: - return groups_work_location_manager() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER_COMPANY: - return groups_work_location_manager_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return groups_work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER_PAY_GROUP: - return groups_work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM: - return groups_work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return groups_work_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return groups_work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return groups_work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_PAY_GROUP: - return groups_work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_TEAM: - return groups_work_location_team() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_TEAM_COMPANY: - return groups_work_location_team_company() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return groups_work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.GROUPS_WORK_LOCATION_TEAM_PAY_GROUP: - return groups_work_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION: - return home_location() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_COMPANY: - return home_location_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_COMPANY_PAY_GROUP: - return home_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER: - return home_location_manager() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER_COMPANY: - return home_location_manager_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return home_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER_PAY_GROUP: - return home_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER_TEAM: - return home_location_manager_team() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER_TEAM_COMPANY: - return home_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return home_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_MANAGER_TEAM_PAY_GROUP: - return home_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_PAY_GROUP: - return home_location_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_TEAM: - return home_location_team() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_TEAM_COMPANY: - return home_location_team_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_TEAM_COMPANY_PAY_GROUP: - return home_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_TEAM_PAY_GROUP: - return home_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION: - return home_location_work_location() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_COMPANY: - return home_location_work_location_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_COMPANY_PAY_GROUP: - return home_location_work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER: - return home_location_work_location_manager() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY: - return home_location_work_location_manager_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return home_location_work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_PAY_GROUP: - return home_location_work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM: - return home_location_work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY: - return home_location_work_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return home_location_work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return home_location_work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_PAY_GROUP: - return home_location_work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM: - return home_location_work_location_team() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY: - return home_location_work_location_team_company() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return home_location_work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.HOME_LOCATION_WORK_LOCATION_TEAM_PAY_GROUP: - return home_location_work_location_team_pay_group() - if self is EmployeesRetrieveRequestExpand.MANAGER: - return manager() - if self is EmployeesRetrieveRequestExpand.MANAGER_COMPANY: - return manager_company() - if self is EmployeesRetrieveRequestExpand.MANAGER_COMPANY_PAY_GROUP: - return manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.MANAGER_PAY_GROUP: - return manager_pay_group() - if self is EmployeesRetrieveRequestExpand.MANAGER_TEAM: - return manager_team() - if self is EmployeesRetrieveRequestExpand.MANAGER_TEAM_COMPANY: - return manager_team_company() - if self is EmployeesRetrieveRequestExpand.MANAGER_TEAM_COMPANY_PAY_GROUP: - return manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.MANAGER_TEAM_PAY_GROUP: - return manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.PAY_GROUP: - return pay_group() - if self is EmployeesRetrieveRequestExpand.TEAM: - return team() - if self is EmployeesRetrieveRequestExpand.TEAM_COMPANY: - return team_company() - if self is EmployeesRetrieveRequestExpand.TEAM_COMPANY_PAY_GROUP: - return team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.TEAM_PAY_GROUP: - return team_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION: - return work_location() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_COMPANY: - return work_location_company() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_COMPANY_PAY_GROUP: - return work_location_company_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER: - return work_location_manager() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER_COMPANY: - return work_location_manager_company() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER_COMPANY_PAY_GROUP: - return work_location_manager_company_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER_PAY_GROUP: - return work_location_manager_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER_TEAM: - return work_location_manager_team() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER_TEAM_COMPANY: - return work_location_manager_team_company() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER_TEAM_COMPANY_PAY_GROUP: - return work_location_manager_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_MANAGER_TEAM_PAY_GROUP: - return work_location_manager_team_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_PAY_GROUP: - return work_location_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_TEAM: - return work_location_team() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_TEAM_COMPANY: - return work_location_team_company() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_TEAM_COMPANY_PAY_GROUP: - return work_location_team_company_pay_group() - if self is EmployeesRetrieveRequestExpand.WORK_LOCATION_TEAM_PAY_GROUP: - return work_location_team_pay_group() diff --git a/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_remote_fields.py b/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_remote_fields.py deleted file mode 100644 index d35a401f..00000000 --- a/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_remote_fields.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeesRetrieveRequestRemoteFields(str, enum.Enum): - EMPLOYMENT_STATUS = "employment_status" - EMPLOYMENT_STATUS_ETHNICITY = "employment_status,ethnicity" - EMPLOYMENT_STATUS_ETHNICITY_GENDER = "employment_status,ethnicity,gender" - EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS = "employment_status,ethnicity,gender,marital_status" - EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS = "employment_status,ethnicity,marital_status" - EMPLOYMENT_STATUS_GENDER = "employment_status,gender" - EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS = "employment_status,gender,marital_status" - EMPLOYMENT_STATUS_MARITAL_STATUS = "employment_status,marital_status" - ETHNICITY = "ethnicity" - ETHNICITY_GENDER = "ethnicity,gender" - ETHNICITY_GENDER_MARITAL_STATUS = "ethnicity,gender,marital_status" - ETHNICITY_MARITAL_STATUS = "ethnicity,marital_status" - GENDER = "gender" - GENDER_MARITAL_STATUS = "gender,marital_status" - MARITAL_STATUS = "marital_status" - - def visit( - self, - employment_status: typing.Callable[[], T_Result], - employment_status_ethnicity: typing.Callable[[], T_Result], - employment_status_ethnicity_gender: typing.Callable[[], T_Result], - employment_status_ethnicity_gender_marital_status: typing.Callable[[], T_Result], - employment_status_ethnicity_marital_status: typing.Callable[[], T_Result], - employment_status_gender: typing.Callable[[], T_Result], - employment_status_gender_marital_status: typing.Callable[[], T_Result], - employment_status_marital_status: typing.Callable[[], T_Result], - ethnicity: typing.Callable[[], T_Result], - ethnicity_gender: typing.Callable[[], T_Result], - ethnicity_gender_marital_status: typing.Callable[[], T_Result], - ethnicity_marital_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_marital_status: typing.Callable[[], T_Result], - marital_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS: - return employment_status() - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY: - return employment_status_ethnicity() - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY_GENDER: - return employment_status_ethnicity_gender() - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS: - return employment_status_ethnicity_gender_marital_status() - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS: - return employment_status_ethnicity_marital_status() - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS_GENDER: - return employment_status_gender() - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS: - return employment_status_gender_marital_status() - if self is EmployeesRetrieveRequestRemoteFields.EMPLOYMENT_STATUS_MARITAL_STATUS: - return employment_status_marital_status() - if self is EmployeesRetrieveRequestRemoteFields.ETHNICITY: - return ethnicity() - if self is EmployeesRetrieveRequestRemoteFields.ETHNICITY_GENDER: - return ethnicity_gender() - if self is EmployeesRetrieveRequestRemoteFields.ETHNICITY_GENDER_MARITAL_STATUS: - return ethnicity_gender_marital_status() - if self is EmployeesRetrieveRequestRemoteFields.ETHNICITY_MARITAL_STATUS: - return ethnicity_marital_status() - if self is EmployeesRetrieveRequestRemoteFields.GENDER: - return gender() - if self is EmployeesRetrieveRequestRemoteFields.GENDER_MARITAL_STATUS: - return gender_marital_status() - if self is EmployeesRetrieveRequestRemoteFields.MARITAL_STATUS: - return marital_status() diff --git a/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_show_enum_origins.py b/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_show_enum_origins.py deleted file mode 100644 index d307e05b..00000000 --- a/src/merge/resources/hris/resources/employees/types/employees_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmployeesRetrieveRequestShowEnumOrigins(str, enum.Enum): - EMPLOYMENT_STATUS = "employment_status" - EMPLOYMENT_STATUS_ETHNICITY = "employment_status,ethnicity" - EMPLOYMENT_STATUS_ETHNICITY_GENDER = "employment_status,ethnicity,gender" - EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS = "employment_status,ethnicity,gender,marital_status" - EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS = "employment_status,ethnicity,marital_status" - EMPLOYMENT_STATUS_GENDER = "employment_status,gender" - EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS = "employment_status,gender,marital_status" - EMPLOYMENT_STATUS_MARITAL_STATUS = "employment_status,marital_status" - ETHNICITY = "ethnicity" - ETHNICITY_GENDER = "ethnicity,gender" - ETHNICITY_GENDER_MARITAL_STATUS = "ethnicity,gender,marital_status" - ETHNICITY_MARITAL_STATUS = "ethnicity,marital_status" - GENDER = "gender" - GENDER_MARITAL_STATUS = "gender,marital_status" - MARITAL_STATUS = "marital_status" - - def visit( - self, - employment_status: typing.Callable[[], T_Result], - employment_status_ethnicity: typing.Callable[[], T_Result], - employment_status_ethnicity_gender: typing.Callable[[], T_Result], - employment_status_ethnicity_gender_marital_status: typing.Callable[[], T_Result], - employment_status_ethnicity_marital_status: typing.Callable[[], T_Result], - employment_status_gender: typing.Callable[[], T_Result], - employment_status_gender_marital_status: typing.Callable[[], T_Result], - employment_status_marital_status: typing.Callable[[], T_Result], - ethnicity: typing.Callable[[], T_Result], - ethnicity_gender: typing.Callable[[], T_Result], - ethnicity_gender_marital_status: typing.Callable[[], T_Result], - ethnicity_marital_status: typing.Callable[[], T_Result], - gender: typing.Callable[[], T_Result], - gender_marital_status: typing.Callable[[], T_Result], - marital_status: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS: - return employment_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY: - return employment_status_ethnicity() - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY_GENDER: - return employment_status_ethnicity_gender() - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY_GENDER_MARITAL_STATUS: - return employment_status_ethnicity_gender_marital_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS_ETHNICITY_MARITAL_STATUS: - return employment_status_ethnicity_marital_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS_GENDER: - return employment_status_gender() - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS_GENDER_MARITAL_STATUS: - return employment_status_gender_marital_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.EMPLOYMENT_STATUS_MARITAL_STATUS: - return employment_status_marital_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.ETHNICITY: - return ethnicity() - if self is EmployeesRetrieveRequestShowEnumOrigins.ETHNICITY_GENDER: - return ethnicity_gender() - if self is EmployeesRetrieveRequestShowEnumOrigins.ETHNICITY_GENDER_MARITAL_STATUS: - return ethnicity_gender_marital_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.ETHNICITY_MARITAL_STATUS: - return ethnicity_marital_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.GENDER: - return gender() - if self is EmployeesRetrieveRequestShowEnumOrigins.GENDER_MARITAL_STATUS: - return gender_marital_status() - if self is EmployeesRetrieveRequestShowEnumOrigins.MARITAL_STATUS: - return marital_status() diff --git a/src/merge/resources/hris/resources/employees/types/ignore_common_model_request_reason.py b/src/merge/resources/hris/resources/employees/types/ignore_common_model_request_reason.py deleted file mode 100644 index 4baf20f1..00000000 --- a/src/merge/resources/hris/resources/employees/types/ignore_common_model_request_reason.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.reason_enum import ReasonEnum - -IgnoreCommonModelRequestReason = typing.Union[ReasonEnum, str] diff --git a/src/merge/resources/hris/resources/employer_benefits/__init__.py b/src/merge/resources/hris/resources/employer_benefits/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/employer_benefits/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/employer_benefits/client.py b/src/merge/resources/hris/resources/employer_benefits/client.py deleted file mode 100644 index 9c6cd4d6..00000000 --- a/src/merge/resources/hris/resources/employer_benefits/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.employer_benefit import EmployerBenefit -from ...types.paginated_employer_benefit_list import PaginatedEmployerBenefitList -from .raw_client import AsyncRawEmployerBenefitsClient, RawEmployerBenefitsClient - - -class EmployerBenefitsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmployerBenefitsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEmployerBenefitsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmployerBenefitsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployerBenefitList: - """ - Returns a list of `EmployerBenefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployerBenefitList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employer_benefits.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EmployerBenefit: - """ - Returns an `EmployerBenefit` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EmployerBenefit - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employer_benefits.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncEmployerBenefitsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmployerBenefitsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEmployerBenefitsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmployerBenefitsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmployerBenefitList: - """ - Returns a list of `EmployerBenefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmployerBenefitList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employer_benefits.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> EmployerBenefit: - """ - Returns an `EmployerBenefit` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - EmployerBenefit - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employer_benefits.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/employer_benefits/raw_client.py b/src/merge/resources/hris/resources/employer_benefits/raw_client.py deleted file mode 100644 index 8d186abf..00000000 --- a/src/merge/resources/hris/resources/employer_benefits/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.employer_benefit import EmployerBenefit -from ...types.paginated_employer_benefit_list import PaginatedEmployerBenefitList - - -class RawEmployerBenefitsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEmployerBenefitList]: - """ - Returns a list of `EmployerBenefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEmployerBenefitList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/employer-benefits", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployerBenefitList, - construct_type( - type_=PaginatedEmployerBenefitList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[EmployerBenefit]: - """ - Returns an `EmployerBenefit` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[EmployerBenefit] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/employer-benefits/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EmployerBenefit, - construct_type( - type_=EmployerBenefit, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEmployerBenefitsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEmployerBenefitList]: - """ - Returns a list of `EmployerBenefit` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEmployerBenefitList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/employer-benefits", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmployerBenefitList, - construct_type( - type_=PaginatedEmployerBenefitList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[EmployerBenefit]: - """ - Returns an `EmployerBenefit` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[EmployerBenefit] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/employer-benefits/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - EmployerBenefit, - construct_type( - type_=EmployerBenefit, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/employments/__init__.py b/src/merge/resources/hris/resources/employments/__init__.py deleted file mode 100644 index 82ec0cea..00000000 --- a/src/merge/resources/hris/resources/employments/__init__.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - EmploymentsListRequestExpand, - EmploymentsListRequestOrderBy, - EmploymentsListRequestRemoteFields, - EmploymentsListRequestShowEnumOrigins, - EmploymentsRetrieveRequestExpand, - EmploymentsRetrieveRequestRemoteFields, - EmploymentsRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "EmploymentsListRequestExpand": ".types", - "EmploymentsListRequestOrderBy": ".types", - "EmploymentsListRequestRemoteFields": ".types", - "EmploymentsListRequestShowEnumOrigins": ".types", - "EmploymentsRetrieveRequestExpand": ".types", - "EmploymentsRetrieveRequestRemoteFields": ".types", - "EmploymentsRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "EmploymentsListRequestExpand", - "EmploymentsListRequestOrderBy", - "EmploymentsListRequestRemoteFields", - "EmploymentsListRequestShowEnumOrigins", - "EmploymentsRetrieveRequestExpand", - "EmploymentsRetrieveRequestRemoteFields", - "EmploymentsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/employments/client.py b/src/merge/resources/hris/resources/employments/client.py deleted file mode 100644 index 49118beb..00000000 --- a/src/merge/resources/hris/resources/employments/client.py +++ /dev/null @@ -1,492 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.employment import Employment -from ...types.paginated_employment_list import PaginatedEmploymentList -from .raw_client import AsyncRawEmploymentsClient, RawEmploymentsClient -from .types.employments_list_request_expand import EmploymentsListRequestExpand -from .types.employments_list_request_order_by import EmploymentsListRequestOrderBy -from .types.employments_list_request_remote_fields import EmploymentsListRequestRemoteFields -from .types.employments_list_request_show_enum_origins import EmploymentsListRequestShowEnumOrigins -from .types.employments_retrieve_request_expand import EmploymentsRetrieveRequestExpand -from .types.employments_retrieve_request_remote_fields import EmploymentsRetrieveRequestRemoteFields -from .types.employments_retrieve_request_show_enum_origins import EmploymentsRetrieveRequestShowEnumOrigins - - -class EmploymentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawEmploymentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawEmploymentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawEmploymentsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[EmploymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[EmploymentsListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EmploymentsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmploymentsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmploymentList: - """ - Returns a list of `Employment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employments for this employee. - - expand : typing.Optional[EmploymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[EmploymentsListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: effective_date, -effective_date. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[EmploymentsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmploymentsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmploymentList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.employments import ( - EmploymentsListRequestExpand, - EmploymentsListRequestOrderBy, - EmploymentsListRequestRemoteFields, - EmploymentsListRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - expand=EmploymentsListRequestExpand.EMPLOYEE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=EmploymentsListRequestOrderBy.EFFECTIVE_DATE_DESCENDING, - page_size=1, - remote_fields=EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE, - remote_id="remote_id", - show_enum_origins=EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE, - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmploymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmploymentsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Employment: - """ - Returns an `Employment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmploymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmploymentsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Employment - - - Examples - -------- - from merge import Merge - from merge.resources.hris.resources.employments import ( - EmploymentsRetrieveRequestExpand, - EmploymentsRetrieveRequestRemoteFields, - EmploymentsRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.employments.retrieve( - id="id", - expand=EmploymentsRetrieveRequestExpand.EMPLOYEE, - include_remote_data=True, - include_shell_data=True, - remote_fields=EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE, - show_enum_origins=EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncEmploymentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawEmploymentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawEmploymentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawEmploymentsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[EmploymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[EmploymentsListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EmploymentsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmploymentsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedEmploymentList: - """ - Returns a list of `Employment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employments for this employee. - - expand : typing.Optional[EmploymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[EmploymentsListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: effective_date, -effective_date. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[EmploymentsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmploymentsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedEmploymentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.employments import ( - EmploymentsListRequestExpand, - EmploymentsListRequestOrderBy, - EmploymentsListRequestRemoteFields, - EmploymentsListRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - expand=EmploymentsListRequestExpand.EMPLOYEE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=EmploymentsListRequestOrderBy.EFFECTIVE_DATE_DESCENDING, - page_size=1, - remote_fields=EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE, - remote_id="remote_id", - show_enum_origins=EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmploymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmploymentsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Employment: - """ - Returns an `Employment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmploymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmploymentsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Employment - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris.resources.employments import ( - EmploymentsRetrieveRequestExpand, - EmploymentsRetrieveRequestRemoteFields, - EmploymentsRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.employments.retrieve( - id="id", - expand=EmploymentsRetrieveRequestExpand.EMPLOYEE, - include_remote_data=True, - include_shell_data=True, - remote_fields=EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE, - show_enum_origins=EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/employments/raw_client.py b/src/merge/resources/hris/resources/employments/raw_client.py deleted file mode 100644 index 06dd96ac..00000000 --- a/src/merge/resources/hris/resources/employments/raw_client.py +++ /dev/null @@ -1,398 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.employment import Employment -from ...types.paginated_employment_list import PaginatedEmploymentList -from .types.employments_list_request_expand import EmploymentsListRequestExpand -from .types.employments_list_request_order_by import EmploymentsListRequestOrderBy -from .types.employments_list_request_remote_fields import EmploymentsListRequestRemoteFields -from .types.employments_list_request_show_enum_origins import EmploymentsListRequestShowEnumOrigins -from .types.employments_retrieve_request_expand import EmploymentsRetrieveRequestExpand -from .types.employments_retrieve_request_remote_fields import EmploymentsRetrieveRequestRemoteFields -from .types.employments_retrieve_request_show_enum_origins import EmploymentsRetrieveRequestShowEnumOrigins - - -class RawEmploymentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[EmploymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[EmploymentsListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EmploymentsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmploymentsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedEmploymentList]: - """ - Returns a list of `Employment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employments for this employee. - - expand : typing.Optional[EmploymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[EmploymentsListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: effective_date, -effective_date. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[EmploymentsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmploymentsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedEmploymentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/employments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmploymentList, - construct_type( - type_=PaginatedEmploymentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmploymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmploymentsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Employment]: - """ - Returns an `Employment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmploymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmploymentsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Employment] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/employments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Employment, - construct_type( - type_=Employment, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawEmploymentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[EmploymentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[EmploymentsListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[EmploymentsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[EmploymentsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedEmploymentList]: - """ - Returns a list of `Employment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return employments for this employee. - - expand : typing.Optional[EmploymentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[EmploymentsListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: effective_date, -effective_date. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[EmploymentsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[EmploymentsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedEmploymentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/employments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedEmploymentList, - construct_type( - type_=PaginatedEmploymentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[EmploymentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[EmploymentsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Employment]: - """ - Returns an `Employment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[EmploymentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[EmploymentsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[EmploymentsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Employment] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/employments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Employment, - construct_type( - type_=Employment, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/employments/types/__init__.py b/src/merge/resources/hris/resources/employments/types/__init__.py deleted file mode 100644 index 06af9d3d..00000000 --- a/src/merge/resources/hris/resources/employments/types/__init__.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .employments_list_request_expand import EmploymentsListRequestExpand - from .employments_list_request_order_by import EmploymentsListRequestOrderBy - from .employments_list_request_remote_fields import EmploymentsListRequestRemoteFields - from .employments_list_request_show_enum_origins import EmploymentsListRequestShowEnumOrigins - from .employments_retrieve_request_expand import EmploymentsRetrieveRequestExpand - from .employments_retrieve_request_remote_fields import EmploymentsRetrieveRequestRemoteFields - from .employments_retrieve_request_show_enum_origins import EmploymentsRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "EmploymentsListRequestExpand": ".employments_list_request_expand", - "EmploymentsListRequestOrderBy": ".employments_list_request_order_by", - "EmploymentsListRequestRemoteFields": ".employments_list_request_remote_fields", - "EmploymentsListRequestShowEnumOrigins": ".employments_list_request_show_enum_origins", - "EmploymentsRetrieveRequestExpand": ".employments_retrieve_request_expand", - "EmploymentsRetrieveRequestRemoteFields": ".employments_retrieve_request_remote_fields", - "EmploymentsRetrieveRequestShowEnumOrigins": ".employments_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "EmploymentsListRequestExpand", - "EmploymentsListRequestOrderBy", - "EmploymentsListRequestRemoteFields", - "EmploymentsListRequestShowEnumOrigins", - "EmploymentsRetrieveRequestExpand", - "EmploymentsRetrieveRequestRemoteFields", - "EmploymentsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/employments/types/employments_list_request_expand.py b/src/merge/resources/hris/resources/employments/types/employments_list_request_expand.py deleted file mode 100644 index f123ef47..00000000 --- a/src/merge/resources/hris/resources/employments/types/employments_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentsListRequestExpand(str, enum.Enum): - EMPLOYEE = "employee" - EMPLOYEE_PAY_GROUP = "employee,pay_group" - PAY_GROUP = "pay_group" - - def visit( - self, - employee: typing.Callable[[], T_Result], - employee_pay_group: typing.Callable[[], T_Result], - pay_group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentsListRequestExpand.EMPLOYEE: - return employee() - if self is EmploymentsListRequestExpand.EMPLOYEE_PAY_GROUP: - return employee_pay_group() - if self is EmploymentsListRequestExpand.PAY_GROUP: - return pay_group() diff --git a/src/merge/resources/hris/resources/employments/types/employments_list_request_order_by.py b/src/merge/resources/hris/resources/employments/types/employments_list_request_order_by.py deleted file mode 100644 index 4d1fe86f..00000000 --- a/src/merge/resources/hris/resources/employments/types/employments_list_request_order_by.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentsListRequestOrderBy(str, enum.Enum): - EFFECTIVE_DATE_DESCENDING = "-effective_date" - EFFECTIVE_DATE_ASCENDING = "effective_date" - - def visit( - self, - effective_date_descending: typing.Callable[[], T_Result], - effective_date_ascending: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentsListRequestOrderBy.EFFECTIVE_DATE_DESCENDING: - return effective_date_descending() - if self is EmploymentsListRequestOrderBy.EFFECTIVE_DATE_ASCENDING: - return effective_date_ascending() diff --git a/src/merge/resources/hris/resources/employments/types/employments_list_request_remote_fields.py b/src/merge/resources/hris/resources/employments/types/employments_list_request_remote_fields.py deleted file mode 100644 index b8b35640..00000000 --- a/src/merge/resources/hris/resources/employments/types/employments_list_request_remote_fields.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentsListRequestRemoteFields(str, enum.Enum): - EMPLOYMENT_TYPE = "employment_type" - EMPLOYMENT_TYPE_FLSA_STATUS = "employment_type,flsa_status" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY = "employment_type,flsa_status,pay_frequency" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "employment_type,flsa_status,pay_frequency,pay_period" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD = "employment_type,flsa_status,pay_period" - EMPLOYMENT_TYPE_PAY_FREQUENCY = "employment_type,pay_frequency" - EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD = "employment_type,pay_frequency,pay_period" - EMPLOYMENT_TYPE_PAY_PERIOD = "employment_type,pay_period" - FLSA_STATUS = "flsa_status" - FLSA_STATUS_PAY_FREQUENCY = "flsa_status,pay_frequency" - FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "flsa_status,pay_frequency,pay_period" - FLSA_STATUS_PAY_PERIOD = "flsa_status,pay_period" - PAY_FREQUENCY = "pay_frequency" - PAY_FREQUENCY_PAY_PERIOD = "pay_frequency,pay_period" - PAY_PERIOD = "pay_period" - - def visit( - self, - employment_type: typing.Callable[[], T_Result], - employment_type_flsa_status: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_period: typing.Callable[[], T_Result], - employment_type_pay_frequency: typing.Callable[[], T_Result], - employment_type_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_pay_period: typing.Callable[[], T_Result], - flsa_status: typing.Callable[[], T_Result], - flsa_status_pay_frequency: typing.Callable[[], T_Result], - flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - flsa_status_pay_period: typing.Callable[[], T_Result], - pay_frequency: typing.Callable[[], T_Result], - pay_frequency_pay_period: typing.Callable[[], T_Result], - pay_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE: - return employment_type() - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS: - return employment_type_flsa_status() - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY: - return employment_type_flsa_status_pay_frequency() - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_flsa_status_pay_frequency_pay_period() - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD: - return employment_type_flsa_status_pay_period() - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE_PAY_FREQUENCY: - return employment_type_pay_frequency() - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_pay_frequency_pay_period() - if self is EmploymentsListRequestRemoteFields.EMPLOYMENT_TYPE_PAY_PERIOD: - return employment_type_pay_period() - if self is EmploymentsListRequestRemoteFields.FLSA_STATUS: - return flsa_status() - if self is EmploymentsListRequestRemoteFields.FLSA_STATUS_PAY_FREQUENCY: - return flsa_status_pay_frequency() - if self is EmploymentsListRequestRemoteFields.FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return flsa_status_pay_frequency_pay_period() - if self is EmploymentsListRequestRemoteFields.FLSA_STATUS_PAY_PERIOD: - return flsa_status_pay_period() - if self is EmploymentsListRequestRemoteFields.PAY_FREQUENCY: - return pay_frequency() - if self is EmploymentsListRequestRemoteFields.PAY_FREQUENCY_PAY_PERIOD: - return pay_frequency_pay_period() - if self is EmploymentsListRequestRemoteFields.PAY_PERIOD: - return pay_period() diff --git a/src/merge/resources/hris/resources/employments/types/employments_list_request_show_enum_origins.py b/src/merge/resources/hris/resources/employments/types/employments_list_request_show_enum_origins.py deleted file mode 100644 index 023d425b..00000000 --- a/src/merge/resources/hris/resources/employments/types/employments_list_request_show_enum_origins.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentsListRequestShowEnumOrigins(str, enum.Enum): - EMPLOYMENT_TYPE = "employment_type" - EMPLOYMENT_TYPE_FLSA_STATUS = "employment_type,flsa_status" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY = "employment_type,flsa_status,pay_frequency" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "employment_type,flsa_status,pay_frequency,pay_period" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD = "employment_type,flsa_status,pay_period" - EMPLOYMENT_TYPE_PAY_FREQUENCY = "employment_type,pay_frequency" - EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD = "employment_type,pay_frequency,pay_period" - EMPLOYMENT_TYPE_PAY_PERIOD = "employment_type,pay_period" - FLSA_STATUS = "flsa_status" - FLSA_STATUS_PAY_FREQUENCY = "flsa_status,pay_frequency" - FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "flsa_status,pay_frequency,pay_period" - FLSA_STATUS_PAY_PERIOD = "flsa_status,pay_period" - PAY_FREQUENCY = "pay_frequency" - PAY_FREQUENCY_PAY_PERIOD = "pay_frequency,pay_period" - PAY_PERIOD = "pay_period" - - def visit( - self, - employment_type: typing.Callable[[], T_Result], - employment_type_flsa_status: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_period: typing.Callable[[], T_Result], - employment_type_pay_frequency: typing.Callable[[], T_Result], - employment_type_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_pay_period: typing.Callable[[], T_Result], - flsa_status: typing.Callable[[], T_Result], - flsa_status_pay_frequency: typing.Callable[[], T_Result], - flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - flsa_status_pay_period: typing.Callable[[], T_Result], - pay_frequency: typing.Callable[[], T_Result], - pay_frequency_pay_period: typing.Callable[[], T_Result], - pay_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE: - return employment_type() - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS: - return employment_type_flsa_status() - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY: - return employment_type_flsa_status_pay_frequency() - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_flsa_status_pay_frequency_pay_period() - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD: - return employment_type_flsa_status_pay_period() - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE_PAY_FREQUENCY: - return employment_type_pay_frequency() - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_pay_frequency_pay_period() - if self is EmploymentsListRequestShowEnumOrigins.EMPLOYMENT_TYPE_PAY_PERIOD: - return employment_type_pay_period() - if self is EmploymentsListRequestShowEnumOrigins.FLSA_STATUS: - return flsa_status() - if self is EmploymentsListRequestShowEnumOrigins.FLSA_STATUS_PAY_FREQUENCY: - return flsa_status_pay_frequency() - if self is EmploymentsListRequestShowEnumOrigins.FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return flsa_status_pay_frequency_pay_period() - if self is EmploymentsListRequestShowEnumOrigins.FLSA_STATUS_PAY_PERIOD: - return flsa_status_pay_period() - if self is EmploymentsListRequestShowEnumOrigins.PAY_FREQUENCY: - return pay_frequency() - if self is EmploymentsListRequestShowEnumOrigins.PAY_FREQUENCY_PAY_PERIOD: - return pay_frequency_pay_period() - if self is EmploymentsListRequestShowEnumOrigins.PAY_PERIOD: - return pay_period() diff --git a/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_expand.py b/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_expand.py deleted file mode 100644 index 98db9ac2..00000000 --- a/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentsRetrieveRequestExpand(str, enum.Enum): - EMPLOYEE = "employee" - EMPLOYEE_PAY_GROUP = "employee,pay_group" - PAY_GROUP = "pay_group" - - def visit( - self, - employee: typing.Callable[[], T_Result], - employee_pay_group: typing.Callable[[], T_Result], - pay_group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentsRetrieveRequestExpand.EMPLOYEE: - return employee() - if self is EmploymentsRetrieveRequestExpand.EMPLOYEE_PAY_GROUP: - return employee_pay_group() - if self is EmploymentsRetrieveRequestExpand.PAY_GROUP: - return pay_group() diff --git a/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_remote_fields.py b/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_remote_fields.py deleted file mode 100644 index b54db8d1..00000000 --- a/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_remote_fields.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentsRetrieveRequestRemoteFields(str, enum.Enum): - EMPLOYMENT_TYPE = "employment_type" - EMPLOYMENT_TYPE_FLSA_STATUS = "employment_type,flsa_status" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY = "employment_type,flsa_status,pay_frequency" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "employment_type,flsa_status,pay_frequency,pay_period" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD = "employment_type,flsa_status,pay_period" - EMPLOYMENT_TYPE_PAY_FREQUENCY = "employment_type,pay_frequency" - EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD = "employment_type,pay_frequency,pay_period" - EMPLOYMENT_TYPE_PAY_PERIOD = "employment_type,pay_period" - FLSA_STATUS = "flsa_status" - FLSA_STATUS_PAY_FREQUENCY = "flsa_status,pay_frequency" - FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "flsa_status,pay_frequency,pay_period" - FLSA_STATUS_PAY_PERIOD = "flsa_status,pay_period" - PAY_FREQUENCY = "pay_frequency" - PAY_FREQUENCY_PAY_PERIOD = "pay_frequency,pay_period" - PAY_PERIOD = "pay_period" - - def visit( - self, - employment_type: typing.Callable[[], T_Result], - employment_type_flsa_status: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_period: typing.Callable[[], T_Result], - employment_type_pay_frequency: typing.Callable[[], T_Result], - employment_type_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_pay_period: typing.Callable[[], T_Result], - flsa_status: typing.Callable[[], T_Result], - flsa_status_pay_frequency: typing.Callable[[], T_Result], - flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - flsa_status_pay_period: typing.Callable[[], T_Result], - pay_frequency: typing.Callable[[], T_Result], - pay_frequency_pay_period: typing.Callable[[], T_Result], - pay_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE: - return employment_type() - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS: - return employment_type_flsa_status() - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY: - return employment_type_flsa_status_pay_frequency() - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_flsa_status_pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD: - return employment_type_flsa_status_pay_period() - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE_PAY_FREQUENCY: - return employment_type_pay_frequency() - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestRemoteFields.EMPLOYMENT_TYPE_PAY_PERIOD: - return employment_type_pay_period() - if self is EmploymentsRetrieveRequestRemoteFields.FLSA_STATUS: - return flsa_status() - if self is EmploymentsRetrieveRequestRemoteFields.FLSA_STATUS_PAY_FREQUENCY: - return flsa_status_pay_frequency() - if self is EmploymentsRetrieveRequestRemoteFields.FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return flsa_status_pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestRemoteFields.FLSA_STATUS_PAY_PERIOD: - return flsa_status_pay_period() - if self is EmploymentsRetrieveRequestRemoteFields.PAY_FREQUENCY: - return pay_frequency() - if self is EmploymentsRetrieveRequestRemoteFields.PAY_FREQUENCY_PAY_PERIOD: - return pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestRemoteFields.PAY_PERIOD: - return pay_period() diff --git a/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_show_enum_origins.py b/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_show_enum_origins.py deleted file mode 100644 index 60ec6042..00000000 --- a/src/merge/resources/hris/resources/employments/types/employments_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,73 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentsRetrieveRequestShowEnumOrigins(str, enum.Enum): - EMPLOYMENT_TYPE = "employment_type" - EMPLOYMENT_TYPE_FLSA_STATUS = "employment_type,flsa_status" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY = "employment_type,flsa_status,pay_frequency" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "employment_type,flsa_status,pay_frequency,pay_period" - EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD = "employment_type,flsa_status,pay_period" - EMPLOYMENT_TYPE_PAY_FREQUENCY = "employment_type,pay_frequency" - EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD = "employment_type,pay_frequency,pay_period" - EMPLOYMENT_TYPE_PAY_PERIOD = "employment_type,pay_period" - FLSA_STATUS = "flsa_status" - FLSA_STATUS_PAY_FREQUENCY = "flsa_status,pay_frequency" - FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD = "flsa_status,pay_frequency,pay_period" - FLSA_STATUS_PAY_PERIOD = "flsa_status,pay_period" - PAY_FREQUENCY = "pay_frequency" - PAY_FREQUENCY_PAY_PERIOD = "pay_frequency,pay_period" - PAY_PERIOD = "pay_period" - - def visit( - self, - employment_type: typing.Callable[[], T_Result], - employment_type_flsa_status: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_flsa_status_pay_period: typing.Callable[[], T_Result], - employment_type_pay_frequency: typing.Callable[[], T_Result], - employment_type_pay_frequency_pay_period: typing.Callable[[], T_Result], - employment_type_pay_period: typing.Callable[[], T_Result], - flsa_status: typing.Callable[[], T_Result], - flsa_status_pay_frequency: typing.Callable[[], T_Result], - flsa_status_pay_frequency_pay_period: typing.Callable[[], T_Result], - flsa_status_pay_period: typing.Callable[[], T_Result], - pay_frequency: typing.Callable[[], T_Result], - pay_frequency_pay_period: typing.Callable[[], T_Result], - pay_period: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE: - return employment_type() - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS: - return employment_type_flsa_status() - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY: - return employment_type_flsa_status_pay_frequency() - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_flsa_status_pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE_FLSA_STATUS_PAY_PERIOD: - return employment_type_flsa_status_pay_period() - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE_PAY_FREQUENCY: - return employment_type_pay_frequency() - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE_PAY_FREQUENCY_PAY_PERIOD: - return employment_type_pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestShowEnumOrigins.EMPLOYMENT_TYPE_PAY_PERIOD: - return employment_type_pay_period() - if self is EmploymentsRetrieveRequestShowEnumOrigins.FLSA_STATUS: - return flsa_status() - if self is EmploymentsRetrieveRequestShowEnumOrigins.FLSA_STATUS_PAY_FREQUENCY: - return flsa_status_pay_frequency() - if self is EmploymentsRetrieveRequestShowEnumOrigins.FLSA_STATUS_PAY_FREQUENCY_PAY_PERIOD: - return flsa_status_pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestShowEnumOrigins.FLSA_STATUS_PAY_PERIOD: - return flsa_status_pay_period() - if self is EmploymentsRetrieveRequestShowEnumOrigins.PAY_FREQUENCY: - return pay_frequency() - if self is EmploymentsRetrieveRequestShowEnumOrigins.PAY_FREQUENCY_PAY_PERIOD: - return pay_frequency_pay_period() - if self is EmploymentsRetrieveRequestShowEnumOrigins.PAY_PERIOD: - return pay_period() diff --git a/src/merge/resources/hris/resources/field_mapping/__init__.py b/src/merge/resources/hris/resources/field_mapping/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/field_mapping/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/field_mapping/client.py b/src/merge/resources/hris/resources/field_mapping/client.py deleted file mode 100644 index a7019942..00000000 --- a/src/merge/resources/hris/resources/field_mapping/client.py +++ /dev/null @@ -1,664 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse -from .raw_client import AsyncRawFieldMappingClient, RawFieldMappingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFieldMappingClient - """ - return self._raw_client - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - """ - _response = self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - """ - _response = self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - """ - _response = self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.field_mapping.target_fields_retrieve() - """ - _response = self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data - - -class AsyncFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFieldMappingClient - """ - return self._raw_client - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.field_mapping.target_fields_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/field_mapping/raw_client.py b/src/merge/resources/hris/resources/field_mapping/raw_client.py deleted file mode 100644 index e484a3d9..00000000 --- a/src/merge/resources/hris/resources/field_mapping/raw_client.py +++ /dev/null @@ -1,672 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/force_resync/__init__.py b/src/merge/resources/hris/resources/force_resync/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/force_resync/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/force_resync/client.py b/src/merge/resources/hris/resources/force_resync/client.py deleted file mode 100644 index d1686b94..00000000 --- a/src/merge/resources/hris/resources/force_resync/client.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.sync_status import SyncStatus -from .raw_client import AsyncRawForceResyncClient, RawForceResyncClient - - -class ForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawForceResyncClient - """ - return self._raw_client - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.force_resync.sync_status_resync_create() - """ - _response = self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data - - -class AsyncForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawForceResyncClient - """ - return self._raw_client - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.force_resync.sync_status_resync_create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/force_resync/raw_client.py b/src/merge/resources/hris/resources/force_resync/raw_client.py deleted file mode 100644 index 53b5a1bd..00000000 --- a/src/merge/resources/hris/resources/force_resync/raw_client.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.sync_status import SyncStatus - - -class RawForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SyncStatus]] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SyncStatus]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/generate_key/__init__.py b/src/merge/resources/hris/resources/generate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/generate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/generate_key/client.py b/src/merge/resources/hris/resources/generate_key/client.py deleted file mode 100644 index f1c74600..00000000 --- a/src/merge/resources/hris/resources/generate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawGenerateKeyClient, RawGenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.generate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.generate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/generate_key/raw_client.py b/src/merge/resources/hris/resources/generate_key/raw_client.py deleted file mode 100644 index 2e28e450..00000000 --- a/src/merge/resources/hris/resources/generate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/groups/__init__.py b/src/merge/resources/hris/resources/groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/groups/client.py b/src/merge/resources/hris/resources/groups/client.py deleted file mode 100644 index ebb637f4..00000000 --- a/src/merge/resources/hris/resources/groups/client.py +++ /dev/null @@ -1,443 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.group import Group -from ...types.paginated_group_list import PaginatedGroupList -from .raw_client import AsyncRawGroupsClient, RawGroupsClient - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_commonly_used_as_team: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - names: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - types: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_commonly_used_as_team : typing.Optional[str] - If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - names : typing.Optional[str] - If provided, will only return groups with these names. Multiple values can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - types : typing.Optional[str] - If provided, will only return groups of these types. Multiple values can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGroupList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_commonly_used_as_team="is_commonly_used_as_team", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - names="names", - page_size=1, - remote_id="remote_id", - types="types", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_commonly_used_as_team=is_commonly_used_as_team, - modified_after=modified_after, - modified_before=modified_before, - names=names, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - types=types, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Group: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Group - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_commonly_used_as_team: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - names: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - types: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_commonly_used_as_team : typing.Optional[str] - If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - names : typing.Optional[str] - If provided, will only return groups with these names. Multiple values can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - types : typing.Optional[str] - If provided, will only return groups of these types. Multiple values can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGroupList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_commonly_used_as_team="is_commonly_used_as_team", - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - names="names", - page_size=1, - remote_id="remote_id", - types="types", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_commonly_used_as_team=is_commonly_used_as_team, - modified_after=modified_after, - modified_before=modified_before, - names=names, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - types=types, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Group: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Group - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/groups/raw_client.py b/src/merge/resources/hris/resources/groups/raw_client.py deleted file mode 100644 index 1bf09946..00000000 --- a/src/merge/resources/hris/resources/groups/raw_client.py +++ /dev/null @@ -1,381 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.group import Group -from ...types.paginated_group_list import PaginatedGroupList - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_commonly_used_as_team: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - names: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - types: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedGroupList]: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_commonly_used_as_team : typing.Optional[str] - If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - names : typing.Optional[str] - If provided, will only return groups with these names. Multiple values can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - types : typing.Optional[str] - If provided, will only return groups of these types. Multiple values can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedGroupList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_commonly_used_as_team": is_commonly_used_as_team, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "names": names, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "types": types, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGroupList, - construct_type( - type_=PaginatedGroupList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Group]: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Group] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/groups/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Group, - construct_type( - type_=Group, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_commonly_used_as_team: typing.Optional[str] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - names: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - types: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedGroupList]: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_commonly_used_as_team : typing.Optional[str] - If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform. - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - names : typing.Optional[str] - If provided, will only return groups with these names. Multiple values can be separated by commas. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - types : typing.Optional[str] - If provided, will only return groups of these types. Multiple values can be separated by commas. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedGroupList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_commonly_used_as_team": is_commonly_used_as_team, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "names": names, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - "types": types, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGroupList, - construct_type( - type_=PaginatedGroupList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Group]: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Group] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/groups/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Group, - construct_type( - type_=Group, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/issues/__init__.py b/src/merge/resources/hris/resources/issues/__init__.py deleted file mode 100644 index 3ca1094b..00000000 --- a/src/merge/resources/hris/resources/issues/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/hris/resources/issues/client.py b/src/merge/resources/hris/resources/issues/client.py deleted file mode 100644 index 211669fd..00000000 --- a/src/merge/resources/hris/resources/issues/client.py +++ /dev/null @@ -1,378 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .raw_client import AsyncRawIssuesClient, RawIssuesClient -from .types.issues_list_request_status import IssuesListRequestStatus - - -class IssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIssuesClient - """ - return self._raw_client - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.issues import IssuesListRequestStatus - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - """ - _response = self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.issues.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIssuesClient - """ - return self._raw_client - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.issues import IssuesListRequestStatus - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.issues.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/issues/raw_client.py b/src/merge/resources/hris/resources/issues/raw_client.py deleted file mode 100644 index bd80ca52..00000000 --- a/src/merge/resources/hris/resources/issues/raw_client.py +++ /dev/null @@ -1,336 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .types.issues_list_request_status import IssuesListRequestStatus - - -class RawIssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIssueList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Issue] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIssueList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Issue] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/issues/types/__init__.py b/src/merge/resources/hris/resources/issues/types/__init__.py deleted file mode 100644 index 88fbf977..00000000 --- a/src/merge/resources/hris/resources/issues/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .issues_list_request_status import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/hris/resources/issues/types/issues_list_request_status.py b/src/merge/resources/hris/resources/issues/types/issues_list_request_status.py deleted file mode 100644 index 2bd3521e..00000000 --- a/src/merge/resources/hris/resources/issues/types/issues_list_request_status.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssuesListRequestStatus(str, enum.Enum): - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssuesListRequestStatus.ONGOING: - return ongoing() - if self is IssuesListRequestStatus.RESOLVED: - return resolved() diff --git a/src/merge/resources/hris/resources/link_token/__init__.py b/src/merge/resources/hris/resources/link_token/__init__.py deleted file mode 100644 index be8c3839..00000000 --- a/src/merge/resources/hris/resources/link_token/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".types", - "EndUserDetailsRequestLanguage": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/hris/resources/link_token/client.py b/src/merge/resources/hris/resources/link_token/client.py deleted file mode 100644 index 15620041..00000000 --- a/src/merge/resources/hris/resources/link_token/client.py +++ /dev/null @@ -1,290 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkTokenClient - """ - return self._raw_client - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - from merge import Merge - from merge.resources.hris import CategoriesEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - """ - _response = self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkTokenClient - """ - return self._raw_client - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import CategoriesEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/link_token/raw_client.py b/src/merge/resources/hris/resources/link_token/raw_client.py deleted file mode 100644 index 979a2af4..00000000 --- a/src/merge/resources/hris/resources/link_token/raw_client.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LinkToken] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LinkToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/link_token/types/__init__.py b/src/merge/resources/hris/resources/link_token/types/__init__.py deleted file mode 100644 index 55cc1d4e..00000000 --- a/src/merge/resources/hris/resources/link_token/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, - ) - from .end_user_details_request_language import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".end_user_details_request_completed_account_initial_screen", - "EndUserDetailsRequestLanguage": ".end_user_details_request_language", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/hris/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py b/src/merge/resources/hris/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py deleted file mode 100644 index 0c5d586d..00000000 --- a/src/merge/resources/hris/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - -EndUserDetailsRequestCompletedAccountInitialScreen = typing.Union[CompletedAccountInitialScreenEnum, str] diff --git a/src/merge/resources/hris/resources/link_token/types/end_user_details_request_language.py b/src/merge/resources/hris/resources/link_token/types/end_user_details_request_language.py deleted file mode 100644 index 65c4b44a..00000000 --- a/src/merge/resources/hris/resources/link_token/types/end_user_details_request_language.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.language_enum import LanguageEnum - -EndUserDetailsRequestLanguage = typing.Union[LanguageEnum, str] diff --git a/src/merge/resources/hris/resources/linked_accounts/__init__.py b/src/merge/resources/hris/resources/linked_accounts/__init__.py deleted file mode 100644 index 0b9e42b4..00000000 --- a/src/merge/resources/hris/resources/linked_accounts/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/hris/resources/linked_accounts/client.py b/src/merge/resources/hris/resources/linked_accounts/client.py deleted file mode 100644 index ada41b71..00000000 --- a/src/merge/resources/hris/resources/linked_accounts/client.py +++ /dev/null @@ -1,293 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class LinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - from merge import Merge - from merge.resources.hris.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - """ - _response = self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/linked_accounts/raw_client.py b/src/merge/resources/hris/resources/linked_accounts/raw_client.py deleted file mode 100644 index cd2639e5..00000000 --- a/src/merge/resources/hris/resources/linked_accounts/raw_client.py +++ /dev/null @@ -1,246 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class RawLinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/linked_accounts/types/__init__.py b/src/merge/resources/hris/resources/linked_accounts/types/__init__.py deleted file mode 100644 index a28f38cc..00000000 --- a/src/merge/resources/hris/resources/linked_accounts/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/hris/resources/linked_accounts/types/linked_accounts_list_request_category.py b/src/merge/resources/hris/resources/linked_accounts/types/linked_accounts_list_request_category.py deleted file mode 100644 index bd873ea8..00000000 --- a/src/merge/resources/hris/resources/linked_accounts/types/linked_accounts_list_request_category.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LinkedAccountsListRequestCategory(str, enum.Enum): - ACCOUNTING = "accounting" - ATS = "ats" - CRM = "crm" - FILESTORAGE = "filestorage" - HRIS = "hris" - MKTG = "mktg" - TICKETING = "ticketing" - - def visit( - self, - accounting: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - hris: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LinkedAccountsListRequestCategory.ACCOUNTING: - return accounting() - if self is LinkedAccountsListRequestCategory.ATS: - return ats() - if self is LinkedAccountsListRequestCategory.CRM: - return crm() - if self is LinkedAccountsListRequestCategory.FILESTORAGE: - return filestorage() - if self is LinkedAccountsListRequestCategory.HRIS: - return hris() - if self is LinkedAccountsListRequestCategory.MKTG: - return mktg() - if self is LinkedAccountsListRequestCategory.TICKETING: - return ticketing() diff --git a/src/merge/resources/hris/resources/locations/__init__.py b/src/merge/resources/hris/resources/locations/__init__.py deleted file mode 100644 index 173f8bf1..00000000 --- a/src/merge/resources/hris/resources/locations/__init__.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - LocationsListRequestLocationType, - LocationsListRequestRemoteFields, - LocationsListRequestShowEnumOrigins, - LocationsRetrieveRequestRemoteFields, - LocationsRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "LocationsListRequestLocationType": ".types", - "LocationsListRequestRemoteFields": ".types", - "LocationsListRequestShowEnumOrigins": ".types", - "LocationsRetrieveRequestRemoteFields": ".types", - "LocationsRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "LocationsListRequestLocationType", - "LocationsListRequestRemoteFields", - "LocationsListRequestShowEnumOrigins", - "LocationsRetrieveRequestRemoteFields", - "LocationsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/locations/client.py b/src/merge/resources/hris/resources/locations/client.py deleted file mode 100644 index 7663787c..00000000 --- a/src/merge/resources/hris/resources/locations/client.py +++ /dev/null @@ -1,456 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.location import Location -from ...types.paginated_location_list import PaginatedLocationList -from .raw_client import AsyncRawLocationsClient, RawLocationsClient -from .types.locations_list_request_location_type import LocationsListRequestLocationType -from .types.locations_list_request_remote_fields import LocationsListRequestRemoteFields -from .types.locations_list_request_show_enum_origins import LocationsListRequestShowEnumOrigins -from .types.locations_retrieve_request_remote_fields import LocationsRetrieveRequestRemoteFields -from .types.locations_retrieve_request_show_enum_origins import LocationsRetrieveRequestShowEnumOrigins - - -class LocationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLocationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLocationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLocationsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - location_type: typing.Optional[LocationsListRequestLocationType] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[LocationsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[LocationsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedLocationList: - """ - Returns a list of `Location` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - location_type : typing.Optional[LocationsListRequestLocationType] - If provided, will only return locations with this location type - - * `HOME` - HOME - * `WORK` - WORK - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[LocationsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[LocationsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedLocationList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.locations import ( - LocationsListRequestLocationType, - LocationsListRequestRemoteFields, - LocationsListRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.locations.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - location_type=LocationsListRequestLocationType.HOME, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=LocationsListRequestRemoteFields.COUNTRY, - remote_id="remote_id", - show_enum_origins=LocationsListRequestShowEnumOrigins.COUNTRY, - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - location_type=location_type, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[LocationsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[LocationsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Location: - """ - Returns a `Location` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[LocationsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[LocationsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Location - - - Examples - -------- - from merge import Merge - from merge.resources.hris.resources.locations import ( - LocationsRetrieveRequestRemoteFields, - LocationsRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.locations.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=LocationsRetrieveRequestRemoteFields.COUNTRY, - show_enum_origins=LocationsRetrieveRequestShowEnumOrigins.COUNTRY, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncLocationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLocationsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLocationsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLocationsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - location_type: typing.Optional[LocationsListRequestLocationType] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[LocationsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[LocationsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedLocationList: - """ - Returns a list of `Location` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - location_type : typing.Optional[LocationsListRequestLocationType] - If provided, will only return locations with this location type - - * `HOME` - HOME - * `WORK` - WORK - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[LocationsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[LocationsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedLocationList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.locations import ( - LocationsListRequestLocationType, - LocationsListRequestRemoteFields, - LocationsListRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.locations.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - location_type=LocationsListRequestLocationType.HOME, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=LocationsListRequestRemoteFields.COUNTRY, - remote_id="remote_id", - show_enum_origins=LocationsListRequestShowEnumOrigins.COUNTRY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - location_type=location_type, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[LocationsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[LocationsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Location: - """ - Returns a `Location` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[LocationsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[LocationsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Location - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris.resources.locations import ( - LocationsRetrieveRequestRemoteFields, - LocationsRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.locations.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=LocationsRetrieveRequestRemoteFields.COUNTRY, - show_enum_origins=LocationsRetrieveRequestShowEnumOrigins.COUNTRY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/locations/raw_client.py b/src/merge/resources/hris/resources/locations/raw_client.py deleted file mode 100644 index cdf539bd..00000000 --- a/src/merge/resources/hris/resources/locations/raw_client.py +++ /dev/null @@ -1,372 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.location import Location -from ...types.paginated_location_list import PaginatedLocationList -from .types.locations_list_request_location_type import LocationsListRequestLocationType -from .types.locations_list_request_remote_fields import LocationsListRequestRemoteFields -from .types.locations_list_request_show_enum_origins import LocationsListRequestShowEnumOrigins -from .types.locations_retrieve_request_remote_fields import LocationsRetrieveRequestRemoteFields -from .types.locations_retrieve_request_show_enum_origins import LocationsRetrieveRequestShowEnumOrigins - - -class RawLocationsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - location_type: typing.Optional[LocationsListRequestLocationType] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[LocationsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[LocationsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedLocationList]: - """ - Returns a list of `Location` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - location_type : typing.Optional[LocationsListRequestLocationType] - If provided, will only return locations with this location type - - * `HOME` - HOME - * `WORK` - WORK - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[LocationsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[LocationsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedLocationList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/locations", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "location_type": location_type, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedLocationList, - construct_type( - type_=PaginatedLocationList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[LocationsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[LocationsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Location]: - """ - Returns a `Location` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[LocationsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[LocationsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Location] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/locations/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Location, - construct_type( - type_=Location, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLocationsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - location_type: typing.Optional[LocationsListRequestLocationType] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[LocationsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[LocationsListRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedLocationList]: - """ - Returns a list of `Location` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - location_type : typing.Optional[LocationsListRequestLocationType] - If provided, will only return locations with this location type - - * `HOME` - HOME - * `WORK` - WORK - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[LocationsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[LocationsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedLocationList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/locations", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "location_type": location_type, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedLocationList, - construct_type( - type_=PaginatedLocationList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[LocationsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[LocationsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Location]: - """ - Returns a `Location` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[LocationsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[LocationsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Location] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/locations/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Location, - construct_type( - type_=Location, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/locations/types/__init__.py b/src/merge/resources/hris/resources/locations/types/__init__.py deleted file mode 100644 index ef281848..00000000 --- a/src/merge/resources/hris/resources/locations/types/__init__.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .locations_list_request_location_type import LocationsListRequestLocationType - from .locations_list_request_remote_fields import LocationsListRequestRemoteFields - from .locations_list_request_show_enum_origins import LocationsListRequestShowEnumOrigins - from .locations_retrieve_request_remote_fields import LocationsRetrieveRequestRemoteFields - from .locations_retrieve_request_show_enum_origins import LocationsRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "LocationsListRequestLocationType": ".locations_list_request_location_type", - "LocationsListRequestRemoteFields": ".locations_list_request_remote_fields", - "LocationsListRequestShowEnumOrigins": ".locations_list_request_show_enum_origins", - "LocationsRetrieveRequestRemoteFields": ".locations_retrieve_request_remote_fields", - "LocationsRetrieveRequestShowEnumOrigins": ".locations_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "LocationsListRequestLocationType", - "LocationsListRequestRemoteFields", - "LocationsListRequestShowEnumOrigins", - "LocationsRetrieveRequestRemoteFields", - "LocationsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/locations/types/locations_list_request_location_type.py b/src/merge/resources/hris/resources/locations/types/locations_list_request_location_type.py deleted file mode 100644 index b24d33e7..00000000 --- a/src/merge/resources/hris/resources/locations/types/locations_list_request_location_type.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LocationsListRequestLocationType(str, enum.Enum): - HOME = "HOME" - WORK = "WORK" - - def visit(self, home: typing.Callable[[], T_Result], work: typing.Callable[[], T_Result]) -> T_Result: - if self is LocationsListRequestLocationType.HOME: - return home() - if self is LocationsListRequestLocationType.WORK: - return work() diff --git a/src/merge/resources/hris/resources/locations/types/locations_list_request_remote_fields.py b/src/merge/resources/hris/resources/locations/types/locations_list_request_remote_fields.py deleted file mode 100644 index bf820b9f..00000000 --- a/src/merge/resources/hris/resources/locations/types/locations_list_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LocationsListRequestRemoteFields(str, enum.Enum): - COUNTRY = "country" - COUNTRY_LOCATION_TYPE = "country,location_type" - LOCATION_TYPE = "location_type" - - def visit( - self, - country: typing.Callable[[], T_Result], - country_location_type: typing.Callable[[], T_Result], - location_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LocationsListRequestRemoteFields.COUNTRY: - return country() - if self is LocationsListRequestRemoteFields.COUNTRY_LOCATION_TYPE: - return country_location_type() - if self is LocationsListRequestRemoteFields.LOCATION_TYPE: - return location_type() diff --git a/src/merge/resources/hris/resources/locations/types/locations_list_request_show_enum_origins.py b/src/merge/resources/hris/resources/locations/types/locations_list_request_show_enum_origins.py deleted file mode 100644 index 6d2c01ef..00000000 --- a/src/merge/resources/hris/resources/locations/types/locations_list_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LocationsListRequestShowEnumOrigins(str, enum.Enum): - COUNTRY = "country" - COUNTRY_LOCATION_TYPE = "country,location_type" - LOCATION_TYPE = "location_type" - - def visit( - self, - country: typing.Callable[[], T_Result], - country_location_type: typing.Callable[[], T_Result], - location_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LocationsListRequestShowEnumOrigins.COUNTRY: - return country() - if self is LocationsListRequestShowEnumOrigins.COUNTRY_LOCATION_TYPE: - return country_location_type() - if self is LocationsListRequestShowEnumOrigins.LOCATION_TYPE: - return location_type() diff --git a/src/merge/resources/hris/resources/locations/types/locations_retrieve_request_remote_fields.py b/src/merge/resources/hris/resources/locations/types/locations_retrieve_request_remote_fields.py deleted file mode 100644 index a1fb54ae..00000000 --- a/src/merge/resources/hris/resources/locations/types/locations_retrieve_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LocationsRetrieveRequestRemoteFields(str, enum.Enum): - COUNTRY = "country" - COUNTRY_LOCATION_TYPE = "country,location_type" - LOCATION_TYPE = "location_type" - - def visit( - self, - country: typing.Callable[[], T_Result], - country_location_type: typing.Callable[[], T_Result], - location_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LocationsRetrieveRequestRemoteFields.COUNTRY: - return country() - if self is LocationsRetrieveRequestRemoteFields.COUNTRY_LOCATION_TYPE: - return country_location_type() - if self is LocationsRetrieveRequestRemoteFields.LOCATION_TYPE: - return location_type() diff --git a/src/merge/resources/hris/resources/locations/types/locations_retrieve_request_show_enum_origins.py b/src/merge/resources/hris/resources/locations/types/locations_retrieve_request_show_enum_origins.py deleted file mode 100644 index 5fabdd8e..00000000 --- a/src/merge/resources/hris/resources/locations/types/locations_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LocationsRetrieveRequestShowEnumOrigins(str, enum.Enum): - COUNTRY = "country" - COUNTRY_LOCATION_TYPE = "country,location_type" - LOCATION_TYPE = "location_type" - - def visit( - self, - country: typing.Callable[[], T_Result], - country_location_type: typing.Callable[[], T_Result], - location_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LocationsRetrieveRequestShowEnumOrigins.COUNTRY: - return country() - if self is LocationsRetrieveRequestShowEnumOrigins.COUNTRY_LOCATION_TYPE: - return country_location_type() - if self is LocationsRetrieveRequestShowEnumOrigins.LOCATION_TYPE: - return location_type() diff --git a/src/merge/resources/hris/resources/passthrough/__init__.py b/src/merge/resources/hris/resources/passthrough/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/passthrough/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/passthrough/client.py b/src/merge/resources/hris/resources/passthrough/client.py deleted file mode 100644 index e0e92717..00000000 --- a/src/merge/resources/hris/resources/passthrough/client.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse -from .raw_client import AsyncRawPassthroughClient, RawPassthroughClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.hris import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/passthrough/raw_client.py b/src/merge/resources/hris/resources/passthrough/raw_client.py deleted file mode 100644 index 72abab9a..00000000 --- a/src/merge/resources/hris/resources/passthrough/raw_client.py +++ /dev/null @@ -1,111 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/pay_groups/__init__.py b/src/merge/resources/hris/resources/pay_groups/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/pay_groups/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/pay_groups/client.py b/src/merge/resources/hris/resources/pay_groups/client.py deleted file mode 100644 index dd944a00..00000000 --- a/src/merge/resources/hris/resources/pay_groups/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_pay_group_list import PaginatedPayGroupList -from ...types.pay_group import PayGroup -from .raw_client import AsyncRawPayGroupsClient, RawPayGroupsClient - - -class PayGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPayGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPayGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPayGroupsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPayGroupList: - """ - Returns a list of `PayGroup` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPayGroupList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.pay_groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PayGroup: - """ - Returns a `PayGroup` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PayGroup - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.pay_groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncPayGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPayGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPayGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPayGroupsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPayGroupList: - """ - Returns a list of `PayGroup` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPayGroupList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.pay_groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PayGroup: - """ - Returns a `PayGroup` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PayGroup - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.pay_groups.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/pay_groups/raw_client.py b/src/merge/resources/hris/resources/pay_groups/raw_client.py deleted file mode 100644 index 8a3fdb7d..00000000 --- a/src/merge/resources/hris/resources/pay_groups/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_pay_group_list import PaginatedPayGroupList -from ...types.pay_group import PayGroup - - -class RawPayGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedPayGroupList]: - """ - Returns a list of `PayGroup` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedPayGroupList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/pay-groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPayGroupList, - construct_type( - type_=PaginatedPayGroupList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PayGroup]: - """ - Returns a `PayGroup` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PayGroup] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/pay-groups/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PayGroup, - construct_type( - type_=PayGroup, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPayGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedPayGroupList]: - """ - Returns a list of `PayGroup` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedPayGroupList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/pay-groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPayGroupList, - construct_type( - type_=PaginatedPayGroupList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PayGroup]: - """ - Returns a `PayGroup` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PayGroup] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/pay-groups/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PayGroup, - construct_type( - type_=PayGroup, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/payroll_runs/__init__.py b/src/merge/resources/hris/resources/payroll_runs/__init__.py deleted file mode 100644 index 9d371263..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/__init__.py +++ /dev/null @@ -1,50 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - PayrollRunsListRequestRemoteFields, - PayrollRunsListRequestRunType, - PayrollRunsListRequestShowEnumOrigins, - PayrollRunsRetrieveRequestRemoteFields, - PayrollRunsRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "PayrollRunsListRequestRemoteFields": ".types", - "PayrollRunsListRequestRunType": ".types", - "PayrollRunsListRequestShowEnumOrigins": ".types", - "PayrollRunsRetrieveRequestRemoteFields": ".types", - "PayrollRunsRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "PayrollRunsListRequestRemoteFields", - "PayrollRunsListRequestRunType", - "PayrollRunsListRequestShowEnumOrigins", - "PayrollRunsRetrieveRequestRemoteFields", - "PayrollRunsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/payroll_runs/client.py b/src/merge/resources/hris/resources/payroll_runs/client.py deleted file mode 100644 index b7f01c0a..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/client.py +++ /dev/null @@ -1,526 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_payroll_run_list import PaginatedPayrollRunList -from ...types.payroll_run import PayrollRun -from .raw_client import AsyncRawPayrollRunsClient, RawPayrollRunsClient -from .types.payroll_runs_list_request_remote_fields import PayrollRunsListRequestRemoteFields -from .types.payroll_runs_list_request_run_type import PayrollRunsListRequestRunType -from .types.payroll_runs_list_request_show_enum_origins import PayrollRunsListRequestShowEnumOrigins -from .types.payroll_runs_retrieve_request_remote_fields import PayrollRunsRetrieveRequestRemoteFields -from .types.payroll_runs_retrieve_request_show_enum_origins import PayrollRunsRetrieveRequestShowEnumOrigins - - -class PayrollRunsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPayrollRunsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPayrollRunsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPayrollRunsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[PayrollRunsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - run_type: typing.Optional[PayrollRunsListRequestRunType] = None, - show_enum_origins: typing.Optional[PayrollRunsListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPayrollRunList: - """ - Returns a list of `PayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended before this datetime. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[PayrollRunsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - run_type : typing.Optional[PayrollRunsListRequestRunType] - If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS') - - * `REGULAR` - REGULAR - * `OFF_CYCLE` - OFF_CYCLE - * `CORRECTION` - CORRECTION - * `TERMINATION` - TERMINATION - * `SIGN_ON_BONUS` - SIGN_ON_BONUS - - show_enum_origins : typing.Optional[PayrollRunsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPayrollRunList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.payroll_runs import ( - PayrollRunsListRequestRemoteFields, - PayrollRunsListRequestRunType, - PayrollRunsListRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.payroll_runs.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=PayrollRunsListRequestRemoteFields.RUN_STATE, - remote_id="remote_id", - run_type=PayrollRunsListRequestRunType.CORRECTION, - show_enum_origins=PayrollRunsListRequestShowEnumOrigins.RUN_STATE, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - ended_after=ended_after, - ended_before=ended_before, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - run_type=run_type, - show_enum_origins=show_enum_origins, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[PayrollRunsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PayrollRun: - """ - Returns a `PayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[PayrollRunsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PayrollRun - - - Examples - -------- - from merge import Merge - from merge.resources.hris.resources.payroll_runs import ( - PayrollRunsRetrieveRequestRemoteFields, - PayrollRunsRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.payroll_runs.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=PayrollRunsRetrieveRequestRemoteFields.RUN_STATE, - show_enum_origins=PayrollRunsRetrieveRequestShowEnumOrigins.RUN_STATE, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncPayrollRunsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPayrollRunsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPayrollRunsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPayrollRunsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[PayrollRunsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - run_type: typing.Optional[PayrollRunsListRequestRunType] = None, - show_enum_origins: typing.Optional[PayrollRunsListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedPayrollRunList: - """ - Returns a list of `PayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended before this datetime. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[PayrollRunsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - run_type : typing.Optional[PayrollRunsListRequestRunType] - If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS') - - * `REGULAR` - REGULAR - * `OFF_CYCLE` - OFF_CYCLE - * `CORRECTION` - CORRECTION - * `TERMINATION` - TERMINATION - * `SIGN_ON_BONUS` - SIGN_ON_BONUS - - show_enum_origins : typing.Optional[PayrollRunsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedPayrollRunList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.payroll_runs import ( - PayrollRunsListRequestRemoteFields, - PayrollRunsListRequestRunType, - PayrollRunsListRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.payroll_runs.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=PayrollRunsListRequestRemoteFields.RUN_STATE, - remote_id="remote_id", - run_type=PayrollRunsListRequestRunType.CORRECTION, - show_enum_origins=PayrollRunsListRequestShowEnumOrigins.RUN_STATE, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - ended_after=ended_after, - ended_before=ended_before, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - run_type=run_type, - show_enum_origins=show_enum_origins, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[PayrollRunsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PayrollRun: - """ - Returns a `PayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[PayrollRunsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PayrollRun - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris.resources.payroll_runs import ( - PayrollRunsRetrieveRequestRemoteFields, - PayrollRunsRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.payroll_runs.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - remote_fields=PayrollRunsRetrieveRequestRemoteFields.RUN_STATE, - show_enum_origins=PayrollRunsRetrieveRequestShowEnumOrigins.RUN_STATE, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/payroll_runs/raw_client.py b/src/merge/resources/hris/resources/payroll_runs/raw_client.py deleted file mode 100644 index ae455ae9..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/raw_client.py +++ /dev/null @@ -1,418 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_payroll_run_list import PaginatedPayrollRunList -from ...types.payroll_run import PayrollRun -from .types.payroll_runs_list_request_remote_fields import PayrollRunsListRequestRemoteFields -from .types.payroll_runs_list_request_run_type import PayrollRunsListRequestRunType -from .types.payroll_runs_list_request_show_enum_origins import PayrollRunsListRequestShowEnumOrigins -from .types.payroll_runs_retrieve_request_remote_fields import PayrollRunsRetrieveRequestRemoteFields -from .types.payroll_runs_retrieve_request_show_enum_origins import PayrollRunsRetrieveRequestShowEnumOrigins - - -class RawPayrollRunsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[PayrollRunsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - run_type: typing.Optional[PayrollRunsListRequestRunType] = None, - show_enum_origins: typing.Optional[PayrollRunsListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedPayrollRunList]: - """ - Returns a list of `PayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended before this datetime. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[PayrollRunsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - run_type : typing.Optional[PayrollRunsListRequestRunType] - If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS') - - * `REGULAR` - REGULAR - * `OFF_CYCLE` - OFF_CYCLE - * `CORRECTION` - CORRECTION - * `TERMINATION` - TERMINATION - * `SIGN_ON_BONUS` - SIGN_ON_BONUS - - show_enum_origins : typing.Optional[PayrollRunsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedPayrollRunList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/payroll-runs", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "run_type": run_type, - "show_enum_origins": show_enum_origins, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPayrollRunList, - construct_type( - type_=PaginatedPayrollRunList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[PayrollRunsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PayrollRun]: - """ - Returns a `PayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[PayrollRunsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PayrollRun] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/payroll-runs/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PayrollRun, - construct_type( - type_=PayrollRun, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPayrollRunsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[PayrollRunsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - run_type: typing.Optional[PayrollRunsListRequestRunType] = None, - show_enum_origins: typing.Optional[PayrollRunsListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedPayrollRunList]: - """ - Returns a list of `PayrollRun` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs ended before this datetime. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[PayrollRunsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - run_type : typing.Optional[PayrollRunsListRequestRunType] - If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS') - - * `REGULAR` - REGULAR - * `OFF_CYCLE` - OFF_CYCLE - * `CORRECTION` - CORRECTION - * `TERMINATION` - TERMINATION - * `SIGN_ON_BONUS` - SIGN_ON_BONUS - - show_enum_origins : typing.Optional[PayrollRunsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return payroll runs started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return payroll runs started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedPayrollRunList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/payroll-runs", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "run_type": run_type, - "show_enum_origins": show_enum_origins, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedPayrollRunList, - construct_type( - type_=PaginatedPayrollRunList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[PayrollRunsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PayrollRun]: - """ - Returns a `PayrollRun` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[PayrollRunsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[PayrollRunsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PayrollRun] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/payroll-runs/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PayrollRun, - construct_type( - type_=PayrollRun, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/payroll_runs/types/__init__.py b/src/merge/resources/hris/resources/payroll_runs/types/__init__.py deleted file mode 100644 index 36fb2bb1..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/types/__init__.py +++ /dev/null @@ -1,48 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .payroll_runs_list_request_remote_fields import PayrollRunsListRequestRemoteFields - from .payroll_runs_list_request_run_type import PayrollRunsListRequestRunType - from .payroll_runs_list_request_show_enum_origins import PayrollRunsListRequestShowEnumOrigins - from .payroll_runs_retrieve_request_remote_fields import PayrollRunsRetrieveRequestRemoteFields - from .payroll_runs_retrieve_request_show_enum_origins import PayrollRunsRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "PayrollRunsListRequestRemoteFields": ".payroll_runs_list_request_remote_fields", - "PayrollRunsListRequestRunType": ".payroll_runs_list_request_run_type", - "PayrollRunsListRequestShowEnumOrigins": ".payroll_runs_list_request_show_enum_origins", - "PayrollRunsRetrieveRequestRemoteFields": ".payroll_runs_retrieve_request_remote_fields", - "PayrollRunsRetrieveRequestShowEnumOrigins": ".payroll_runs_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "PayrollRunsListRequestRemoteFields", - "PayrollRunsListRequestRunType", - "PayrollRunsListRequestShowEnumOrigins", - "PayrollRunsRetrieveRequestRemoteFields", - "PayrollRunsRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_remote_fields.py b/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_remote_fields.py deleted file mode 100644 index 7ab87d64..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayrollRunsListRequestRemoteFields(str, enum.Enum): - RUN_STATE = "run_state" - RUN_STATE_RUN_TYPE = "run_state,run_type" - RUN_TYPE = "run_type" - - def visit( - self, - run_state: typing.Callable[[], T_Result], - run_state_run_type: typing.Callable[[], T_Result], - run_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayrollRunsListRequestRemoteFields.RUN_STATE: - return run_state() - if self is PayrollRunsListRequestRemoteFields.RUN_STATE_RUN_TYPE: - return run_state_run_type() - if self is PayrollRunsListRequestRemoteFields.RUN_TYPE: - return run_type() diff --git a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_run_type.py b/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_run_type.py deleted file mode 100644 index 0a8acc2a..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_run_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayrollRunsListRequestRunType(str, enum.Enum): - CORRECTION = "CORRECTION" - OFF_CYCLE = "OFF_CYCLE" - REGULAR = "REGULAR" - SIGN_ON_BONUS = "SIGN_ON_BONUS" - TERMINATION = "TERMINATION" - - def visit( - self, - correction: typing.Callable[[], T_Result], - off_cycle: typing.Callable[[], T_Result], - regular: typing.Callable[[], T_Result], - sign_on_bonus: typing.Callable[[], T_Result], - termination: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayrollRunsListRequestRunType.CORRECTION: - return correction() - if self is PayrollRunsListRequestRunType.OFF_CYCLE: - return off_cycle() - if self is PayrollRunsListRequestRunType.REGULAR: - return regular() - if self is PayrollRunsListRequestRunType.SIGN_ON_BONUS: - return sign_on_bonus() - if self is PayrollRunsListRequestRunType.TERMINATION: - return termination() diff --git a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_show_enum_origins.py b/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_show_enum_origins.py deleted file mode 100644 index d4d03e13..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_list_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayrollRunsListRequestShowEnumOrigins(str, enum.Enum): - RUN_STATE = "run_state" - RUN_STATE_RUN_TYPE = "run_state,run_type" - RUN_TYPE = "run_type" - - def visit( - self, - run_state: typing.Callable[[], T_Result], - run_state_run_type: typing.Callable[[], T_Result], - run_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayrollRunsListRequestShowEnumOrigins.RUN_STATE: - return run_state() - if self is PayrollRunsListRequestShowEnumOrigins.RUN_STATE_RUN_TYPE: - return run_state_run_type() - if self is PayrollRunsListRequestShowEnumOrigins.RUN_TYPE: - return run_type() diff --git a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_retrieve_request_remote_fields.py b/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_retrieve_request_remote_fields.py deleted file mode 100644 index 3a3b0653..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_retrieve_request_remote_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayrollRunsRetrieveRequestRemoteFields(str, enum.Enum): - RUN_STATE = "run_state" - RUN_STATE_RUN_TYPE = "run_state,run_type" - RUN_TYPE = "run_type" - - def visit( - self, - run_state: typing.Callable[[], T_Result], - run_state_run_type: typing.Callable[[], T_Result], - run_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayrollRunsRetrieveRequestRemoteFields.RUN_STATE: - return run_state() - if self is PayrollRunsRetrieveRequestRemoteFields.RUN_STATE_RUN_TYPE: - return run_state_run_type() - if self is PayrollRunsRetrieveRequestRemoteFields.RUN_TYPE: - return run_type() diff --git a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_retrieve_request_show_enum_origins.py b/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_retrieve_request_show_enum_origins.py deleted file mode 100644 index ecc6fe99..00000000 --- a/src/merge/resources/hris/resources/payroll_runs/types/payroll_runs_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayrollRunsRetrieveRequestShowEnumOrigins(str, enum.Enum): - RUN_STATE = "run_state" - RUN_STATE_RUN_TYPE = "run_state,run_type" - RUN_TYPE = "run_type" - - def visit( - self, - run_state: typing.Callable[[], T_Result], - run_state_run_type: typing.Callable[[], T_Result], - run_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayrollRunsRetrieveRequestShowEnumOrigins.RUN_STATE: - return run_state() - if self is PayrollRunsRetrieveRequestShowEnumOrigins.RUN_STATE_RUN_TYPE: - return run_state_run_type() - if self is PayrollRunsRetrieveRequestShowEnumOrigins.RUN_TYPE: - return run_type() diff --git a/src/merge/resources/hris/resources/regenerate_key/__init__.py b/src/merge/resources/hris/resources/regenerate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/regenerate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/regenerate_key/client.py b/src/merge/resources/hris/resources/regenerate_key/client.py deleted file mode 100644 index 1a6f1bc3..00000000 --- a/src/merge/resources/hris/resources/regenerate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawRegenerateKeyClient, RawRegenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRegenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.regenerate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRegenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.regenerate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/regenerate_key/raw_client.py b/src/merge/resources/hris/resources/regenerate_key/raw_client.py deleted file mode 100644 index 4808ec48..00000000 --- a/src/merge/resources/hris/resources/regenerate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/scopes/__init__.py b/src/merge/resources/hris/resources/scopes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/scopes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/scopes/client.py b/src/merge/resources/hris/resources/scopes/client.py deleted file mode 100644 index 002d5401..00000000 --- a/src/merge/resources/hris/resources/scopes/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from .raw_client import AsyncRawScopesClient, RawScopesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScopesClient - """ - return self._raw_client - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.scopes.default_scopes_retrieve() - """ - _response = self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.scopes.linked_account_scopes_retrieve() - """ - _response = self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - from merge.resources.hris import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - """ - _response = self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data - - -class AsyncScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScopesClient - """ - return self._raw_client - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.scopes.default_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.scopes.linked_account_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/hris/resources/scopes/raw_client.py b/src/merge/resources/hris/resources/scopes/raw_client.py deleted file mode 100644 index 51db897d..00000000 --- a/src/merge/resources/hris/resources/scopes/raw_client.py +++ /dev/null @@ -1,267 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/sync_status/__init__.py b/src/merge/resources/hris/resources/sync_status/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/sync_status/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/sync_status/client.py b/src/merge/resources/hris/resources/sync_status/client.py deleted file mode 100644 index 17a75770..00000000 --- a/src/merge/resources/hris/resources/sync_status/client.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList -from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient - - -class SyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSyncStatusClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data - - -class AsyncSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSyncStatusClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/sync_status/raw_client.py b/src/merge/resources/hris/resources/sync_status/raw_client.py deleted file mode 100644 index 5f49dd4b..00000000 --- a/src/merge/resources/hris/resources/sync_status/raw_client.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_sync_status_list import PaginatedSyncStatusList - - -class RawSyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedSyncStatusList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedSyncStatusList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/teams/__init__.py b/src/merge/resources/hris/resources/teams/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/teams/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/teams/client.py b/src/merge/resources/hris/resources/teams/client.py deleted file mode 100644 index 52d2093d..00000000 --- a/src/merge/resources/hris/resources/teams/client.py +++ /dev/null @@ -1,399 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_team_list import PaginatedTeamList -from ...types.team import Team -from .raw_client import AsyncRawTeamsClient, RawTeamsClient - - -class TeamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTeamsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTeamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTeamsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_team_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTeamList: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_team_id : typing.Optional[str] - If provided, will only return teams with this parent team. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTeamList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.teams.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_team_id="parent_team_id", - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - parent_team_id=parent_team_id, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Team: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Team - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.teams.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncTeamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTeamsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTeamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTeamsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_team_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTeamList: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_team_id : typing.Optional[str] - If provided, will only return teams with this parent team. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTeamList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.teams.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_team_id="parent_team_id", - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - parent_team_id=parent_team_id, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Team: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Team - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.teams.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/teams/raw_client.py b/src/merge/resources/hris/resources/teams/raw_client.py deleted file mode 100644 index ef38a115..00000000 --- a/src/merge/resources/hris/resources/teams/raw_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_team_list import PaginatedTeamList -from ...types.team import Team - - -class RawTeamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_team_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTeamList]: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_team_id : typing.Optional[str] - If provided, will only return teams with this parent team. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTeamList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/teams", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "parent_team_id": parent_team_id, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTeamList, - construct_type( - type_=PaginatedTeamList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Team]: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Team] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/teams/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Team, - construct_type( - type_=Team, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTeamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_team_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTeamList]: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_team_id : typing.Optional[str] - If provided, will only return teams with this parent team. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTeamList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/teams", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "parent_team_id": parent_team_id, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTeamList, - construct_type( - type_=PaginatedTeamList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_team"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Team]: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_team"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Team] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/teams/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Team, - construct_type( - type_=Team, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/time_off/__init__.py b/src/merge/resources/hris/resources/time_off/__init__.py deleted file mode 100644 index 0e34a8e5..00000000 --- a/src/merge/resources/hris/resources/time_off/__init__.py +++ /dev/null @@ -1,59 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - TimeOffListRequestExpand, - TimeOffListRequestRemoteFields, - TimeOffListRequestRequestType, - TimeOffListRequestShowEnumOrigins, - TimeOffListRequestStatus, - TimeOffRetrieveRequestExpand, - TimeOffRetrieveRequestRemoteFields, - TimeOffRetrieveRequestShowEnumOrigins, - ) -_dynamic_imports: typing.Dict[str, str] = { - "TimeOffListRequestExpand": ".types", - "TimeOffListRequestRemoteFields": ".types", - "TimeOffListRequestRequestType": ".types", - "TimeOffListRequestShowEnumOrigins": ".types", - "TimeOffListRequestStatus": ".types", - "TimeOffRetrieveRequestExpand": ".types", - "TimeOffRetrieveRequestRemoteFields": ".types", - "TimeOffRetrieveRequestShowEnumOrigins": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "TimeOffListRequestExpand", - "TimeOffListRequestRemoteFields", - "TimeOffListRequestRequestType", - "TimeOffListRequestShowEnumOrigins", - "TimeOffListRequestStatus", - "TimeOffRetrieveRequestExpand", - "TimeOffRetrieveRequestRemoteFields", - "TimeOffRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/time_off/client.py b/src/merge/resources/hris/resources/time_off/client.py deleted file mode 100644 index 2f0f9663..00000000 --- a/src/merge/resources/hris/resources/time_off/client.py +++ /dev/null @@ -1,783 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_time_off_list import PaginatedTimeOffList -from ...types.time_off import TimeOff -from ...types.time_off_request import TimeOffRequest -from ...types.time_off_response import TimeOffResponse -from .raw_client import AsyncRawTimeOffClient, RawTimeOffClient -from .types.time_off_list_request_expand import TimeOffListRequestExpand -from .types.time_off_list_request_remote_fields import TimeOffListRequestRemoteFields -from .types.time_off_list_request_request_type import TimeOffListRequestRequestType -from .types.time_off_list_request_show_enum_origins import TimeOffListRequestShowEnumOrigins -from .types.time_off_list_request_status import TimeOffListRequestStatus -from .types.time_off_retrieve_request_expand import TimeOffRetrieveRequestExpand -from .types.time_off_retrieve_request_remote_fields import TimeOffRetrieveRequestRemoteFields -from .types.time_off_retrieve_request_show_enum_origins import TimeOffRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TimeOffClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTimeOffClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTimeOffClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTimeOffClient - """ - return self._raw_client - - def list( - self, - *, - approver_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TimeOffListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[TimeOffListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - request_type: typing.Optional[TimeOffListRequestRequestType] = None, - show_enum_origins: typing.Optional[TimeOffListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - status: typing.Optional[TimeOffListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTimeOffList: - """ - Returns a list of `TimeOff` objects. - - Parameters - ---------- - approver_id : typing.Optional[str] - If provided, will only return time off for this approver. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employees that ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that ended before this datetime. - - expand : typing.Optional[TimeOffListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[TimeOffListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_type : typing.Optional[TimeOffListRequestRequestType] - If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - show_enum_origins : typing.Optional[TimeOffListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return time-offs that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that started before this datetime. - - status : typing.Optional[TimeOffListRequestStatus] - If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') - - * `REQUESTED` - REQUESTED - * `APPROVED` - APPROVED - * `DECLINED` - DECLINED - * `CANCELLED` - CANCELLED - * `DELETED` - DELETED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTimeOffList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.time_off import ( - TimeOffListRequestExpand, - TimeOffListRequestRemoteFields, - TimeOffListRequestRequestType, - TimeOffListRequestShowEnumOrigins, - TimeOffListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.time_off.list( - approver_id="approver_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=TimeOffListRequestExpand.APPROVER, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=TimeOffListRequestRemoteFields.REQUEST_TYPE, - remote_id="remote_id", - request_type=TimeOffListRequestRequestType.BEREAVEMENT, - show_enum_origins=TimeOffListRequestShowEnumOrigins.REQUEST_TYPE, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - status=TimeOffListRequestStatus.APPROVED, - ) - """ - _response = self._raw_client.list( - approver_id=approver_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - ended_after=ended_after, - ended_before=ended_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - request_type=request_type, - show_enum_origins=show_enum_origins, - started_after=started_after, - started_before=started_before, - status=status, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: TimeOffRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimeOffResponse: - """ - Creates a `TimeOff` object with the given values. - - Parameters - ---------- - model : TimeOffRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimeOffResponse - - - Examples - -------- - from merge import Merge - from merge.resources.hris import TimeOffRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.time_off.create( - is_debug_mode=True, - run_async=True, - model=TimeOffRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TimeOffRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TimeOffRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimeOff: - """ - Returns a `TimeOff` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TimeOffRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TimeOffRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimeOff - - - Examples - -------- - from merge import Merge - from merge.resources.hris.resources.time_off import ( - TimeOffRetrieveRequestExpand, - TimeOffRetrieveRequestRemoteFields, - TimeOffRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.time_off.retrieve( - id="id", - expand=TimeOffRetrieveRequestExpand.APPROVER, - include_remote_data=True, - include_shell_data=True, - remote_fields=TimeOffRetrieveRequestRemoteFields.REQUEST_TYPE, - show_enum_origins=TimeOffRetrieveRequestShowEnumOrigins.REQUEST_TYPE, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TimeOff` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.time_off.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncTimeOffClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTimeOffClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTimeOffClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTimeOffClient - """ - return self._raw_client - - async def list( - self, - *, - approver_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TimeOffListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[TimeOffListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - request_type: typing.Optional[TimeOffListRequestRequestType] = None, - show_enum_origins: typing.Optional[TimeOffListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - status: typing.Optional[TimeOffListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTimeOffList: - """ - Returns a list of `TimeOff` objects. - - Parameters - ---------- - approver_id : typing.Optional[str] - If provided, will only return time off for this approver. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employees that ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that ended before this datetime. - - expand : typing.Optional[TimeOffListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[TimeOffListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_type : typing.Optional[TimeOffListRequestRequestType] - If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - show_enum_origins : typing.Optional[TimeOffListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return time-offs that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that started before this datetime. - - status : typing.Optional[TimeOffListRequestStatus] - If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') - - * `REQUESTED` - REQUESTED - * `APPROVED` - APPROVED - * `DECLINED` - DECLINED - * `CANCELLED` - CANCELLED - * `DELETED` - DELETED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTimeOffList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.time_off import ( - TimeOffListRequestExpand, - TimeOffListRequestRemoteFields, - TimeOffListRequestRequestType, - TimeOffListRequestShowEnumOrigins, - TimeOffListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.time_off.list( - approver_id="approver_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=TimeOffListRequestExpand.APPROVER, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_fields=TimeOffListRequestRemoteFields.REQUEST_TYPE, - remote_id="remote_id", - request_type=TimeOffListRequestRequestType.BEREAVEMENT, - show_enum_origins=TimeOffListRequestShowEnumOrigins.REQUEST_TYPE, - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - status=TimeOffListRequestStatus.APPROVED, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - approver_id=approver_id, - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - ended_after=ended_after, - ended_before=ended_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_fields=remote_fields, - remote_id=remote_id, - request_type=request_type, - show_enum_origins=show_enum_origins, - started_after=started_after, - started_before=started_before, - status=status, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: TimeOffRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimeOffResponse: - """ - Creates a `TimeOff` object with the given values. - - Parameters - ---------- - model : TimeOffRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimeOffResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import TimeOffRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.time_off.create( - is_debug_mode=True, - run_async=True, - model=TimeOffRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TimeOffRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TimeOffRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimeOff: - """ - Returns a `TimeOff` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TimeOffRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TimeOffRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimeOff - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris.resources.time_off import ( - TimeOffRetrieveRequestExpand, - TimeOffRetrieveRequestRemoteFields, - TimeOffRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.time_off.retrieve( - id="id", - expand=TimeOffRetrieveRequestExpand.APPROVER, - include_remote_data=True, - include_shell_data=True, - remote_fields=TimeOffRetrieveRequestRemoteFields.REQUEST_TYPE, - show_enum_origins=TimeOffRetrieveRequestShowEnumOrigins.REQUEST_TYPE, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TimeOff` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.time_off.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/time_off/raw_client.py b/src/merge/resources/hris/resources/time_off/raw_client.py deleted file mode 100644 index ada13edd..00000000 --- a/src/merge/resources/hris/resources/time_off/raw_client.py +++ /dev/null @@ -1,683 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_time_off_list import PaginatedTimeOffList -from ...types.time_off import TimeOff -from ...types.time_off_request import TimeOffRequest -from ...types.time_off_response import TimeOffResponse -from .types.time_off_list_request_expand import TimeOffListRequestExpand -from .types.time_off_list_request_remote_fields import TimeOffListRequestRemoteFields -from .types.time_off_list_request_request_type import TimeOffListRequestRequestType -from .types.time_off_list_request_show_enum_origins import TimeOffListRequestShowEnumOrigins -from .types.time_off_list_request_status import TimeOffListRequestStatus -from .types.time_off_retrieve_request_expand import TimeOffRetrieveRequestExpand -from .types.time_off_retrieve_request_remote_fields import TimeOffRetrieveRequestRemoteFields -from .types.time_off_retrieve_request_show_enum_origins import TimeOffRetrieveRequestShowEnumOrigins - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTimeOffClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - approver_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TimeOffListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[TimeOffListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - request_type: typing.Optional[TimeOffListRequestRequestType] = None, - show_enum_origins: typing.Optional[TimeOffListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - status: typing.Optional[TimeOffListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTimeOffList]: - """ - Returns a list of `TimeOff` objects. - - Parameters - ---------- - approver_id : typing.Optional[str] - If provided, will only return time off for this approver. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employees that ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that ended before this datetime. - - expand : typing.Optional[TimeOffListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[TimeOffListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_type : typing.Optional[TimeOffListRequestRequestType] - If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - show_enum_origins : typing.Optional[TimeOffListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return time-offs that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that started before this datetime. - - status : typing.Optional[TimeOffListRequestStatus] - If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') - - * `REQUESTED` - REQUESTED - * `APPROVED` - APPROVED - * `DECLINED` - DECLINED - * `CANCELLED` - CANCELLED - * `DELETED` - DELETED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTimeOffList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/time-off", - method="GET", - params={ - "approver_id": approver_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "request_type": request_type, - "show_enum_origins": show_enum_origins, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTimeOffList, - construct_type( - type_=PaginatedTimeOffList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: TimeOffRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TimeOffResponse]: - """ - Creates a `TimeOff` object with the given values. - - Parameters - ---------- - model : TimeOffRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TimeOffResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/time-off", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimeOffResponse, - construct_type( - type_=TimeOffResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TimeOffRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TimeOffRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TimeOff]: - """ - Returns a `TimeOff` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TimeOffRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TimeOffRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TimeOff] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/time-off/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimeOff, - construct_type( - type_=TimeOff, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `TimeOff` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/time-off/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTimeOffClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - approver_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TimeOffListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_fields: typing.Optional[TimeOffListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - request_type: typing.Optional[TimeOffListRequestRequestType] = None, - show_enum_origins: typing.Optional[TimeOffListRequestShowEnumOrigins] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - status: typing.Optional[TimeOffListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTimeOffList]: - """ - Returns a list of `TimeOff` objects. - - Parameters - ---------- - approver_id : typing.Optional[str] - If provided, will only return time off for this approver. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return employees that ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that ended before this datetime. - - expand : typing.Optional[TimeOffListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_fields : typing.Optional[TimeOffListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_type : typing.Optional[TimeOffListRequestRequestType] - If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - show_enum_origins : typing.Optional[TimeOffListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - started_after : typing.Optional[dt.datetime] - If provided, will only return time-offs that started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return time-offs that started before this datetime. - - status : typing.Optional[TimeOffListRequestStatus] - If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') - - * `REQUESTED` - REQUESTED - * `APPROVED` - APPROVED - * `DECLINED` - DECLINED - * `CANCELLED` - CANCELLED - * `DELETED` - DELETED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTimeOffList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/time-off", - method="GET", - params={ - "approver_id": approver_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_fields": remote_fields, - "remote_id": remote_id, - "request_type": request_type, - "show_enum_origins": show_enum_origins, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTimeOffList, - construct_type( - type_=PaginatedTimeOffList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: TimeOffRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TimeOffResponse]: - """ - Creates a `TimeOff` object with the given values. - - Parameters - ---------- - model : TimeOffRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TimeOffResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/time-off", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimeOffResponse, - construct_type( - type_=TimeOffResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TimeOffRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TimeOffRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TimeOff]: - """ - Returns a `TimeOff` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TimeOffRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TimeOffRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TimeOffRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TimeOff] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/time-off/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimeOff, - construct_type( - type_=TimeOff, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `TimeOff` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/time-off/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/time_off/types/__init__.py b/src/merge/resources/hris/resources/time_off/types/__init__.py deleted file mode 100644 index 17f7d68f..00000000 --- a/src/merge/resources/hris/resources/time_off/types/__init__.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .time_off_list_request_expand import TimeOffListRequestExpand - from .time_off_list_request_remote_fields import TimeOffListRequestRemoteFields - from .time_off_list_request_request_type import TimeOffListRequestRequestType - from .time_off_list_request_show_enum_origins import TimeOffListRequestShowEnumOrigins - from .time_off_list_request_status import TimeOffListRequestStatus - from .time_off_retrieve_request_expand import TimeOffRetrieveRequestExpand - from .time_off_retrieve_request_remote_fields import TimeOffRetrieveRequestRemoteFields - from .time_off_retrieve_request_show_enum_origins import TimeOffRetrieveRequestShowEnumOrigins -_dynamic_imports: typing.Dict[str, str] = { - "TimeOffListRequestExpand": ".time_off_list_request_expand", - "TimeOffListRequestRemoteFields": ".time_off_list_request_remote_fields", - "TimeOffListRequestRequestType": ".time_off_list_request_request_type", - "TimeOffListRequestShowEnumOrigins": ".time_off_list_request_show_enum_origins", - "TimeOffListRequestStatus": ".time_off_list_request_status", - "TimeOffRetrieveRequestExpand": ".time_off_retrieve_request_expand", - "TimeOffRetrieveRequestRemoteFields": ".time_off_retrieve_request_remote_fields", - "TimeOffRetrieveRequestShowEnumOrigins": ".time_off_retrieve_request_show_enum_origins", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "TimeOffListRequestExpand", - "TimeOffListRequestRemoteFields", - "TimeOffListRequestRequestType", - "TimeOffListRequestShowEnumOrigins", - "TimeOffListRequestStatus", - "TimeOffRetrieveRequestExpand", - "TimeOffRetrieveRequestRemoteFields", - "TimeOffRetrieveRequestShowEnumOrigins", -] diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_expand.py b/src/merge/resources/hris/resources/time_off/types/time_off_list_request_expand.py deleted file mode 100644 index 6c41625f..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffListRequestExpand(str, enum.Enum): - APPROVER = "approver" - EMPLOYEE = "employee" - EMPLOYEE_APPROVER = "employee,approver" - - def visit( - self, - approver: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_approver: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffListRequestExpand.APPROVER: - return approver() - if self is TimeOffListRequestExpand.EMPLOYEE: - return employee() - if self is TimeOffListRequestExpand.EMPLOYEE_APPROVER: - return employee_approver() diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_remote_fields.py b/src/merge/resources/hris/resources/time_off/types/time_off_list_request_remote_fields.py deleted file mode 100644 index 4f22e08e..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_remote_fields.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffListRequestRemoteFields(str, enum.Enum): - REQUEST_TYPE = "request_type" - REQUEST_TYPE_STATUS = "request_type,status" - REQUEST_TYPE_STATUS_UNITS = "request_type,status,units" - REQUEST_TYPE_UNITS = "request_type,units" - STATUS = "status" - STATUS_UNITS = "status,units" - UNITS = "units" - - def visit( - self, - request_type: typing.Callable[[], T_Result], - request_type_status: typing.Callable[[], T_Result], - request_type_status_units: typing.Callable[[], T_Result], - request_type_units: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_units: typing.Callable[[], T_Result], - units: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffListRequestRemoteFields.REQUEST_TYPE: - return request_type() - if self is TimeOffListRequestRemoteFields.REQUEST_TYPE_STATUS: - return request_type_status() - if self is TimeOffListRequestRemoteFields.REQUEST_TYPE_STATUS_UNITS: - return request_type_status_units() - if self is TimeOffListRequestRemoteFields.REQUEST_TYPE_UNITS: - return request_type_units() - if self is TimeOffListRequestRemoteFields.STATUS: - return status() - if self is TimeOffListRequestRemoteFields.STATUS_UNITS: - return status_units() - if self is TimeOffListRequestRemoteFields.UNITS: - return units() diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_request_type.py b/src/merge/resources/hris/resources/time_off/types/time_off_list_request_request_type.py deleted file mode 100644 index bacc5d5c..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_request_type.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffListRequestRequestType(str, enum.Enum): - BEREAVEMENT = "BEREAVEMENT" - JURY_DUTY = "JURY_DUTY" - PERSONAL = "PERSONAL" - SICK = "SICK" - VACATION = "VACATION" - VOLUNTEER = "VOLUNTEER" - - def visit( - self, - bereavement: typing.Callable[[], T_Result], - jury_duty: typing.Callable[[], T_Result], - personal: typing.Callable[[], T_Result], - sick: typing.Callable[[], T_Result], - vacation: typing.Callable[[], T_Result], - volunteer: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffListRequestRequestType.BEREAVEMENT: - return bereavement() - if self is TimeOffListRequestRequestType.JURY_DUTY: - return jury_duty() - if self is TimeOffListRequestRequestType.PERSONAL: - return personal() - if self is TimeOffListRequestRequestType.SICK: - return sick() - if self is TimeOffListRequestRequestType.VACATION: - return vacation() - if self is TimeOffListRequestRequestType.VOLUNTEER: - return volunteer() diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_show_enum_origins.py b/src/merge/resources/hris/resources/time_off/types/time_off_list_request_show_enum_origins.py deleted file mode 100644 index 15187c89..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_show_enum_origins.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffListRequestShowEnumOrigins(str, enum.Enum): - REQUEST_TYPE = "request_type" - REQUEST_TYPE_STATUS = "request_type,status" - REQUEST_TYPE_STATUS_UNITS = "request_type,status,units" - REQUEST_TYPE_UNITS = "request_type,units" - STATUS = "status" - STATUS_UNITS = "status,units" - UNITS = "units" - - def visit( - self, - request_type: typing.Callable[[], T_Result], - request_type_status: typing.Callable[[], T_Result], - request_type_status_units: typing.Callable[[], T_Result], - request_type_units: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_units: typing.Callable[[], T_Result], - units: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffListRequestShowEnumOrigins.REQUEST_TYPE: - return request_type() - if self is TimeOffListRequestShowEnumOrigins.REQUEST_TYPE_STATUS: - return request_type_status() - if self is TimeOffListRequestShowEnumOrigins.REQUEST_TYPE_STATUS_UNITS: - return request_type_status_units() - if self is TimeOffListRequestShowEnumOrigins.REQUEST_TYPE_UNITS: - return request_type_units() - if self is TimeOffListRequestShowEnumOrigins.STATUS: - return status() - if self is TimeOffListRequestShowEnumOrigins.STATUS_UNITS: - return status_units() - if self is TimeOffListRequestShowEnumOrigins.UNITS: - return units() diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_status.py b/src/merge/resources/hris/resources/time_off/types/time_off_list_request_status.py deleted file mode 100644 index 40bdbd45..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_list_request_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffListRequestStatus(str, enum.Enum): - APPROVED = "APPROVED" - CANCELLED = "CANCELLED" - DECLINED = "DECLINED" - DELETED = "DELETED" - REQUESTED = "REQUESTED" - - def visit( - self, - approved: typing.Callable[[], T_Result], - cancelled: typing.Callable[[], T_Result], - declined: typing.Callable[[], T_Result], - deleted: typing.Callable[[], T_Result], - requested: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffListRequestStatus.APPROVED: - return approved() - if self is TimeOffListRequestStatus.CANCELLED: - return cancelled() - if self is TimeOffListRequestStatus.DECLINED: - return declined() - if self is TimeOffListRequestStatus.DELETED: - return deleted() - if self is TimeOffListRequestStatus.REQUESTED: - return requested() diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_expand.py b/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_expand.py deleted file mode 100644 index 6a0972a8..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffRetrieveRequestExpand(str, enum.Enum): - APPROVER = "approver" - EMPLOYEE = "employee" - EMPLOYEE_APPROVER = "employee,approver" - - def visit( - self, - approver: typing.Callable[[], T_Result], - employee: typing.Callable[[], T_Result], - employee_approver: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffRetrieveRequestExpand.APPROVER: - return approver() - if self is TimeOffRetrieveRequestExpand.EMPLOYEE: - return employee() - if self is TimeOffRetrieveRequestExpand.EMPLOYEE_APPROVER: - return employee_approver() diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_remote_fields.py b/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_remote_fields.py deleted file mode 100644 index e76db22a..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_remote_fields.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffRetrieveRequestRemoteFields(str, enum.Enum): - REQUEST_TYPE = "request_type" - REQUEST_TYPE_STATUS = "request_type,status" - REQUEST_TYPE_STATUS_UNITS = "request_type,status,units" - REQUEST_TYPE_UNITS = "request_type,units" - STATUS = "status" - STATUS_UNITS = "status,units" - UNITS = "units" - - def visit( - self, - request_type: typing.Callable[[], T_Result], - request_type_status: typing.Callable[[], T_Result], - request_type_status_units: typing.Callable[[], T_Result], - request_type_units: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_units: typing.Callable[[], T_Result], - units: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffRetrieveRequestRemoteFields.REQUEST_TYPE: - return request_type() - if self is TimeOffRetrieveRequestRemoteFields.REQUEST_TYPE_STATUS: - return request_type_status() - if self is TimeOffRetrieveRequestRemoteFields.REQUEST_TYPE_STATUS_UNITS: - return request_type_status_units() - if self is TimeOffRetrieveRequestRemoteFields.REQUEST_TYPE_UNITS: - return request_type_units() - if self is TimeOffRetrieveRequestRemoteFields.STATUS: - return status() - if self is TimeOffRetrieveRequestRemoteFields.STATUS_UNITS: - return status_units() - if self is TimeOffRetrieveRequestRemoteFields.UNITS: - return units() diff --git a/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_show_enum_origins.py b/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_show_enum_origins.py deleted file mode 100644 index 079a76e8..00000000 --- a/src/merge/resources/hris/resources/time_off/types/time_off_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffRetrieveRequestShowEnumOrigins(str, enum.Enum): - REQUEST_TYPE = "request_type" - REQUEST_TYPE_STATUS = "request_type,status" - REQUEST_TYPE_STATUS_UNITS = "request_type,status,units" - REQUEST_TYPE_UNITS = "request_type,units" - STATUS = "status" - STATUS_UNITS = "status,units" - UNITS = "units" - - def visit( - self, - request_type: typing.Callable[[], T_Result], - request_type_status: typing.Callable[[], T_Result], - request_type_status_units: typing.Callable[[], T_Result], - request_type_units: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_units: typing.Callable[[], T_Result], - units: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffRetrieveRequestShowEnumOrigins.REQUEST_TYPE: - return request_type() - if self is TimeOffRetrieveRequestShowEnumOrigins.REQUEST_TYPE_STATUS: - return request_type_status() - if self is TimeOffRetrieveRequestShowEnumOrigins.REQUEST_TYPE_STATUS_UNITS: - return request_type_status_units() - if self is TimeOffRetrieveRequestShowEnumOrigins.REQUEST_TYPE_UNITS: - return request_type_units() - if self is TimeOffRetrieveRequestShowEnumOrigins.STATUS: - return status() - if self is TimeOffRetrieveRequestShowEnumOrigins.STATUS_UNITS: - return status_units() - if self is TimeOffRetrieveRequestShowEnumOrigins.UNITS: - return units() diff --git a/src/merge/resources/hris/resources/time_off_balances/__init__.py b/src/merge/resources/hris/resources/time_off_balances/__init__.py deleted file mode 100644 index 570dc594..00000000 --- a/src/merge/resources/hris/resources/time_off_balances/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import TimeOffBalancesListRequestPolicyType -_dynamic_imports: typing.Dict[str, str] = {"TimeOffBalancesListRequestPolicyType": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TimeOffBalancesListRequestPolicyType"] diff --git a/src/merge/resources/hris/resources/time_off_balances/client.py b/src/merge/resources/hris/resources/time_off_balances/client.py deleted file mode 100644 index 99968e26..00000000 --- a/src/merge/resources/hris/resources/time_off_balances/client.py +++ /dev/null @@ -1,472 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_time_off_balance_list import PaginatedTimeOffBalanceList -from ...types.time_off_balance import TimeOffBalance -from .raw_client import AsyncRawTimeOffBalancesClient, RawTimeOffBalancesClient -from .types.time_off_balances_list_request_policy_type import TimeOffBalancesListRequestPolicyType - - -class TimeOffBalancesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTimeOffBalancesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTimeOffBalancesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTimeOffBalancesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - policy_type: typing.Optional[TimeOffBalancesListRequestPolicyType] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTimeOffBalanceList: - """ - Returns a list of `TimeOffBalance` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off balances for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - policy_type : typing.Optional[TimeOffBalancesListRequestPolicyType] - If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTimeOffBalanceList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.time_off_balances import ( - TimeOffBalancesListRequestPolicyType, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.time_off_balances.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - policy_type=TimeOffBalancesListRequestPolicyType.BEREAVEMENT, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - policy_type=policy_type, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimeOffBalance: - """ - Returns a `TimeOffBalance` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimeOffBalance - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.time_off_balances.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncTimeOffBalancesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTimeOffBalancesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTimeOffBalancesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTimeOffBalancesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - policy_type: typing.Optional[TimeOffBalancesListRequestPolicyType] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTimeOffBalanceList: - """ - Returns a list of `TimeOffBalance` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off balances for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - policy_type : typing.Optional[TimeOffBalancesListRequestPolicyType] - If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTimeOffBalanceList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.time_off_balances import ( - TimeOffBalancesListRequestPolicyType, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.time_off_balances.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - policy_type=TimeOffBalancesListRequestPolicyType.BEREAVEMENT, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - policy_type=policy_type, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimeOffBalance: - """ - Returns a `TimeOffBalance` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimeOffBalance - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.time_off_balances.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/hris/resources/time_off_balances/raw_client.py b/src/merge/resources/hris/resources/time_off_balances/raw_client.py deleted file mode 100644 index 156d341d..00000000 --- a/src/merge/resources/hris/resources/time_off_balances/raw_client.py +++ /dev/null @@ -1,406 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_time_off_balance_list import PaginatedTimeOffBalanceList -from ...types.time_off_balance import TimeOffBalance -from .types.time_off_balances_list_request_policy_type import TimeOffBalancesListRequestPolicyType - - -class RawTimeOffBalancesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - policy_type: typing.Optional[TimeOffBalancesListRequestPolicyType] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTimeOffBalanceList]: - """ - Returns a list of `TimeOffBalance` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off balances for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - policy_type : typing.Optional[TimeOffBalancesListRequestPolicyType] - If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTimeOffBalanceList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/time-off-balances", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "policy_type": policy_type, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTimeOffBalanceList, - construct_type( - type_=PaginatedTimeOffBalanceList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TimeOffBalance]: - """ - Returns a `TimeOffBalance` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TimeOffBalance] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/time-off-balances/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimeOffBalance, - construct_type( - type_=TimeOffBalance, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTimeOffBalancesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - policy_type: typing.Optional[TimeOffBalancesListRequestPolicyType] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTimeOffBalanceList]: - """ - Returns a list of `TimeOffBalance` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return time off balances for this employee. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - policy_type : typing.Optional[TimeOffBalancesListRequestPolicyType] - If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTimeOffBalanceList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/time-off-balances", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "policy_type": policy_type, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTimeOffBalanceList, - construct_type( - type_=PaginatedTimeOffBalanceList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["policy_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["policy_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TimeOffBalance]: - """ - Returns a `TimeOffBalance` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["policy_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["policy_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TimeOffBalance] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/time-off-balances/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimeOffBalance, - construct_type( - type_=TimeOffBalance, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/time_off_balances/types/__init__.py b/src/merge/resources/hris/resources/time_off_balances/types/__init__.py deleted file mode 100644 index a517cd9a..00000000 --- a/src/merge/resources/hris/resources/time_off_balances/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .time_off_balances_list_request_policy_type import TimeOffBalancesListRequestPolicyType -_dynamic_imports: typing.Dict[str, str] = { - "TimeOffBalancesListRequestPolicyType": ".time_off_balances_list_request_policy_type" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TimeOffBalancesListRequestPolicyType"] diff --git a/src/merge/resources/hris/resources/time_off_balances/types/time_off_balances_list_request_policy_type.py b/src/merge/resources/hris/resources/time_off_balances/types/time_off_balances_list_request_policy_type.py deleted file mode 100644 index e2f96117..00000000 --- a/src/merge/resources/hris/resources/time_off_balances/types/time_off_balances_list_request_policy_type.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffBalancesListRequestPolicyType(str, enum.Enum): - BEREAVEMENT = "BEREAVEMENT" - JURY_DUTY = "JURY_DUTY" - PERSONAL = "PERSONAL" - SICK = "SICK" - VACATION = "VACATION" - VOLUNTEER = "VOLUNTEER" - - def visit( - self, - bereavement: typing.Callable[[], T_Result], - jury_duty: typing.Callable[[], T_Result], - personal: typing.Callable[[], T_Result], - sick: typing.Callable[[], T_Result], - vacation: typing.Callable[[], T_Result], - volunteer: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffBalancesListRequestPolicyType.BEREAVEMENT: - return bereavement() - if self is TimeOffBalancesListRequestPolicyType.JURY_DUTY: - return jury_duty() - if self is TimeOffBalancesListRequestPolicyType.PERSONAL: - return personal() - if self is TimeOffBalancesListRequestPolicyType.SICK: - return sick() - if self is TimeOffBalancesListRequestPolicyType.VACATION: - return vacation() - if self is TimeOffBalancesListRequestPolicyType.VOLUNTEER: - return volunteer() diff --git a/src/merge/resources/hris/resources/timesheet_entries/__init__.py b/src/merge/resources/hris/resources/timesheet_entries/__init__.py deleted file mode 100644 index edf3ff9c..00000000 --- a/src/merge/resources/hris/resources/timesheet_entries/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import TimesheetEntriesListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = {"TimesheetEntriesListRequestOrderBy": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TimesheetEntriesListRequestOrderBy"] diff --git a/src/merge/resources/hris/resources/timesheet_entries/client.py b/src/merge/resources/hris/resources/timesheet_entries/client.py deleted file mode 100644 index 76335fdd..00000000 --- a/src/merge/resources/hris/resources/timesheet_entries/client.py +++ /dev/null @@ -1,656 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_timesheet_entry_list import PaginatedTimesheetEntryList -from ...types.timesheet_entry import TimesheetEntry -from ...types.timesheet_entry_request import TimesheetEntryRequest -from ...types.timesheet_entry_response import TimesheetEntryResponse -from .raw_client import AsyncRawTimesheetEntriesClient, RawTimesheetEntriesClient -from .types.timesheet_entries_list_request_order_by import TimesheetEntriesListRequestOrderBy - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TimesheetEntriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTimesheetEntriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTimesheetEntriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTimesheetEntriesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[TimesheetEntriesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTimesheetEntryList: - """ - Returns a list of `TimesheetEntry` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return timesheet entries for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended before this datetime. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[TimesheetEntriesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: start_time, -start_time. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTimesheetEntryList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.hris.resources.timesheet_entries import ( - TimesheetEntriesListRequestOrderBy, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.timesheet_entries.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=TimesheetEntriesListRequestOrderBy.START_TIME_DESCENDING, - page_size=1, - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - ended_after=ended_after, - ended_before=ended_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_id=remote_id, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: TimesheetEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimesheetEntryResponse: - """ - Creates a `TimesheetEntry` object with the given values. - - Parameters - ---------- - model : TimesheetEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimesheetEntryResponse - - - Examples - -------- - from merge import Merge - from merge.resources.hris import TimesheetEntryRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.timesheet_entries.create( - is_debug_mode=True, - run_async=True, - model=TimesheetEntryRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimesheetEntry: - """ - Returns a `TimesheetEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimesheetEntry - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.timesheet_entries.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TimesheetEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.timesheet_entries.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncTimesheetEntriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTimesheetEntriesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTimesheetEntriesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTimesheetEntriesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[TimesheetEntriesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTimesheetEntryList: - """ - Returns a list of `TimesheetEntry` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return timesheet entries for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended before this datetime. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[TimesheetEntriesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: start_time, -start_time. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTimesheetEntryList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.hris.resources.timesheet_entries import ( - TimesheetEntriesListRequestOrderBy, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.timesheet_entries.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employee_id="employee_id", - ended_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ended_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - order_by=TimesheetEntriesListRequestOrderBy.START_TIME_DESCENDING, - page_size=1, - remote_id="remote_id", - started_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - started_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - employee_id=employee_id, - ended_after=ended_after, - ended_before=ended_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - order_by=order_by, - page_size=page_size, - remote_id=remote_id, - started_after=started_after, - started_before=started_before, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: TimesheetEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimesheetEntryResponse: - """ - Creates a `TimesheetEntry` object with the given values. - - Parameters - ---------- - model : TimesheetEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimesheetEntryResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.hris import TimesheetEntryRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.timesheet_entries.create( - is_debug_mode=True, - run_async=True, - model=TimesheetEntryRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TimesheetEntry: - """ - Returns a `TimesheetEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TimesheetEntry - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.timesheet_entries.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TimesheetEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.timesheet_entries.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/hris/resources/timesheet_entries/raw_client.py b/src/merge/resources/hris/resources/timesheet_entries/raw_client.py deleted file mode 100644 index ba12d21e..00000000 --- a/src/merge/resources/hris/resources/timesheet_entries/raw_client.py +++ /dev/null @@ -1,590 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_timesheet_entry_list import PaginatedTimesheetEntryList -from ...types.timesheet_entry import TimesheetEntry -from ...types.timesheet_entry_request import TimesheetEntryRequest -from ...types.timesheet_entry_response import TimesheetEntryResponse -from .types.timesheet_entries_list_request_order_by import TimesheetEntriesListRequestOrderBy - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTimesheetEntriesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[TimesheetEntriesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTimesheetEntryList]: - """ - Returns a list of `TimesheetEntry` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return timesheet entries for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended before this datetime. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[TimesheetEntriesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: start_time, -start_time. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTimesheetEntryList] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/timesheet-entries", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_id": remote_id, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTimesheetEntryList, - construct_type( - type_=PaginatedTimesheetEntryList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: TimesheetEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TimesheetEntryResponse]: - """ - Creates a `TimesheetEntry` object with the given values. - - Parameters - ---------- - model : TimesheetEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TimesheetEntryResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/timesheet-entries", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimesheetEntryResponse, - construct_type( - type_=TimesheetEntryResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TimesheetEntry]: - """ - Returns a `TimesheetEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TimesheetEntry] - - """ - _response = self._client_wrapper.httpx_client.request( - f"hris/v1/timesheet-entries/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimesheetEntry, - construct_type( - type_=TimesheetEntry, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `TimesheetEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/timesheet-entries/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTimesheetEntriesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - employee_id: typing.Optional[str] = None, - ended_after: typing.Optional[dt.datetime] = None, - ended_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - order_by: typing.Optional[TimesheetEntriesListRequestOrderBy] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - started_after: typing.Optional[dt.datetime] = None, - started_before: typing.Optional[dt.datetime] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTimesheetEntryList]: - """ - Returns a list of `TimesheetEntry` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - employee_id : typing.Optional[str] - If provided, will only return timesheet entries for this employee. - - ended_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended after this datetime. - - ended_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries ended before this datetime. - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - order_by : typing.Optional[TimesheetEntriesListRequestOrderBy] - Overrides the default ordering for this endpoint. Possible values include: start_time, -start_time. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - started_after : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started after this datetime. - - started_before : typing.Optional[dt.datetime] - If provided, will only return timesheet entries started before this datetime. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTimesheetEntryList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/timesheet-entries", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "employee_id": employee_id, - "ended_after": serialize_datetime(ended_after) if ended_after is not None else None, - "ended_before": serialize_datetime(ended_before) if ended_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "order_by": order_by, - "page_size": page_size, - "remote_id": remote_id, - "started_after": serialize_datetime(started_after) if started_after is not None else None, - "started_before": serialize_datetime(started_before) if started_before is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTimesheetEntryList, - construct_type( - type_=PaginatedTimesheetEntryList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: TimesheetEntryRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TimesheetEntryResponse]: - """ - Creates a `TimesheetEntry` object with the given values. - - Parameters - ---------- - model : TimesheetEntryRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TimesheetEntryResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/timesheet-entries", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimesheetEntryResponse, - construct_type( - type_=TimesheetEntryResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["employee"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TimesheetEntry]: - """ - Returns a `TimesheetEntry` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["employee"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TimesheetEntry] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"hris/v1/timesheet-entries/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TimesheetEntry, - construct_type( - type_=TimesheetEntry, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `TimesheetEntry` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/timesheet-entries/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/resources/timesheet_entries/types/__init__.py b/src/merge/resources/hris/resources/timesheet_entries/types/__init__.py deleted file mode 100644 index af47f1f5..00000000 --- a/src/merge/resources/hris/resources/timesheet_entries/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .timesheet_entries_list_request_order_by import TimesheetEntriesListRequestOrderBy -_dynamic_imports: typing.Dict[str, str] = { - "TimesheetEntriesListRequestOrderBy": ".timesheet_entries_list_request_order_by" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["TimesheetEntriesListRequestOrderBy"] diff --git a/src/merge/resources/hris/resources/timesheet_entries/types/timesheet_entries_list_request_order_by.py b/src/merge/resources/hris/resources/timesheet_entries/types/timesheet_entries_list_request_order_by.py deleted file mode 100644 index bd5713ff..00000000 --- a/src/merge/resources/hris/resources/timesheet_entries/types/timesheet_entries_list_request_order_by.py +++ /dev/null @@ -1,19 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimesheetEntriesListRequestOrderBy(str, enum.Enum): - START_TIME_DESCENDING = "-start_time" - START_TIME_ASCENDING = "start_time" - - def visit( - self, start_time_descending: typing.Callable[[], T_Result], start_time_ascending: typing.Callable[[], T_Result] - ) -> T_Result: - if self is TimesheetEntriesListRequestOrderBy.START_TIME_DESCENDING: - return start_time_descending() - if self is TimesheetEntriesListRequestOrderBy.START_TIME_ASCENDING: - return start_time_ascending() diff --git a/src/merge/resources/hris/resources/webhook_receivers/__init__.py b/src/merge/resources/hris/resources/webhook_receivers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/hris/resources/webhook_receivers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/hris/resources/webhook_receivers/client.py b/src/merge/resources/hris/resources/webhook_receivers/client.py deleted file mode 100644 index 94fbbe1d..00000000 --- a/src/merge/resources/hris/resources/webhook_receivers/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.webhook_receiver import WebhookReceiver -from .raw_client import AsyncRawWebhookReceiversClient, RawWebhookReceiversClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class WebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawWebhookReceiversClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.webhook_receivers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.hris.webhook_receivers.create( - event="event", - is_active=True, - ) - """ - _response = self._raw_client.create(event=event, is_active=is_active, key=key, request_options=request_options) - return _response.data - - -class AsyncWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawWebhookReceiversClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.webhook_receivers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.hris.webhook_receivers.create( - event="event", - is_active=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - event=event, is_active=is_active, key=key, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/hris/resources/webhook_receivers/raw_client.py b/src/merge/resources/hris/resources/webhook_receivers/raw_client.py deleted file mode 100644 index 436fce7b..00000000 --- a/src/merge/resources/hris/resources/webhook_receivers/raw_client.py +++ /dev/null @@ -1,208 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.webhook_receiver import WebhookReceiver - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawWebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[WebhookReceiver]] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[WebhookReceiver] - - """ - _response = self._client_wrapper.httpx_client.request( - "hris/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[WebhookReceiver]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[WebhookReceiver] - - """ - _response = await self._client_wrapper.httpx_client.request( - "hris/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/hris/types/__init__.py b/src/merge/resources/hris/types/__init__.py deleted file mode 100644 index 2fd80be2..00000000 --- a/src/merge/resources/hris/types/__init__.py +++ /dev/null @@ -1,632 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .account_details import AccountDetails - from .account_details_and_actions import AccountDetailsAndActions - from .account_details_and_actions_category import AccountDetailsAndActionsCategory - from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration - from .account_details_and_actions_status import AccountDetailsAndActionsStatus - from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - from .account_details_category import AccountDetailsCategory - from .account_integration import AccountIntegration - from .account_token import AccountToken - from .account_type_enum import AccountTypeEnum - from .advanced_metadata import AdvancedMetadata - from .async_passthrough_reciept import AsyncPassthroughReciept - from .audit_log_event import AuditLogEvent - from .audit_log_event_event_type import AuditLogEventEventType - from .audit_log_event_role import AuditLogEventRole - from .available_actions import AvailableActions - from .bank_info import BankInfo - from .bank_info_account_type import BankInfoAccountType - from .bank_info_employee import BankInfoEmployee - from .benefit import Benefit - from .benefit_employee import BenefitEmployee - from .benefit_plan_type_enum import BenefitPlanTypeEnum - from .categories_enum import CategoriesEnum - from .category_enum import CategoryEnum - from .common_model_scope_api import CommonModelScopeApi - from .common_model_scopes_body_request import CommonModelScopesBodyRequest - from .company import Company - from .completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - from .country_enum import CountryEnum - from .data_passthrough_request import DataPassthroughRequest - from .debug_mode_log import DebugModeLog - from .debug_model_log_summary import DebugModelLogSummary - from .deduction import Deduction - from .dependent import Dependent - from .dependent_gender import DependentGender - from .dependent_relationship import DependentRelationship - from .earning import Earning - from .earning_type import EarningType - from .earning_type_enum import EarningTypeEnum - from .employee import Employee - from .employee_company import EmployeeCompany - from .employee_employment_status import EmployeeEmploymentStatus - from .employee_employments_item import EmployeeEmploymentsItem - from .employee_ethnicity import EmployeeEthnicity - from .employee_gender import EmployeeGender - from .employee_groups_item import EmployeeGroupsItem - from .employee_home_location import EmployeeHomeLocation - from .employee_manager import EmployeeManager - from .employee_marital_status import EmployeeMaritalStatus - from .employee_pay_group import EmployeePayGroup - from .employee_payroll_run import EmployeePayrollRun - from .employee_payroll_run_employee import EmployeePayrollRunEmployee - from .employee_payroll_run_payroll_run import EmployeePayrollRunPayrollRun - from .employee_request import EmployeeRequest - from .employee_request_company import EmployeeRequestCompany - from .employee_request_employment_status import EmployeeRequestEmploymentStatus - from .employee_request_employments_item import EmployeeRequestEmploymentsItem - from .employee_request_ethnicity import EmployeeRequestEthnicity - from .employee_request_gender import EmployeeRequestGender - from .employee_request_groups_item import EmployeeRequestGroupsItem - from .employee_request_home_location import EmployeeRequestHomeLocation - from .employee_request_manager import EmployeeRequestManager - from .employee_request_marital_status import EmployeeRequestMaritalStatus - from .employee_request_pay_group import EmployeeRequestPayGroup - from .employee_request_team import EmployeeRequestTeam - from .employee_request_work_location import EmployeeRequestWorkLocation - from .employee_response import EmployeeResponse - from .employee_team import EmployeeTeam - from .employee_work_location import EmployeeWorkLocation - from .employer_benefit import EmployerBenefit - from .employer_benefit_benefit_plan_type import EmployerBenefitBenefitPlanType - from .employment import Employment - from .employment_employee import EmploymentEmployee - from .employment_employment_type import EmploymentEmploymentType - from .employment_flsa_status import EmploymentFlsaStatus - from .employment_pay_currency import EmploymentPayCurrency - from .employment_pay_frequency import EmploymentPayFrequency - from .employment_pay_group import EmploymentPayGroup - from .employment_pay_period import EmploymentPayPeriod - from .employment_status_enum import EmploymentStatusEnum - from .employment_type_enum import EmploymentTypeEnum - from .enabled_actions_enum import EnabledActionsEnum - from .encoding_enum import EncodingEnum - from .error_validation_problem import ErrorValidationProblem - from .ethnicity_enum import EthnicityEnum - from .event_type_enum import EventTypeEnum - from .external_target_field_api import ExternalTargetFieldApi - from .external_target_field_api_response import ExternalTargetFieldApiResponse - from .field_mapping_api_instance import FieldMappingApiInstance - from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField - from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ) - from .field_mapping_api_instance_response import FieldMappingApiInstanceResponse - from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - from .field_mapping_instance_response import FieldMappingInstanceResponse - from .field_permission_deserializer import FieldPermissionDeserializer - from .field_permission_deserializer_request import FieldPermissionDeserializerRequest - from .flsa_status_enum import FlsaStatusEnum - from .gender_enum import GenderEnum - from .group import Group - from .group_type import GroupType - from .group_type_enum import GroupTypeEnum - from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - from .individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - from .issue import Issue - from .issue_status import IssueStatus - from .issue_status_enum import IssueStatusEnum - from .language_enum import LanguageEnum - from .last_sync_result_enum import LastSyncResultEnum - from .link_token import LinkToken - from .linked_account_status import LinkedAccountStatus - from .location import Location - from .location_country import LocationCountry - from .location_location_type import LocationLocationType - from .location_type_enum import LocationTypeEnum - from .marital_status_enum import MaritalStatusEnum - from .meta_response import MetaResponse - from .method_enum import MethodEnum - from .model_operation import ModelOperation - from .model_permission_deserializer import ModelPermissionDeserializer - from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - from .multipart_form_field_request import MultipartFormFieldRequest - from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList - from .paginated_audit_log_event_list import PaginatedAuditLogEventList - from .paginated_bank_info_list import PaginatedBankInfoList - from .paginated_benefit_list import PaginatedBenefitList - from .paginated_company_list import PaginatedCompanyList - from .paginated_dependent_list import PaginatedDependentList - from .paginated_employee_list import PaginatedEmployeeList - from .paginated_employee_payroll_run_list import PaginatedEmployeePayrollRunList - from .paginated_employer_benefit_list import PaginatedEmployerBenefitList - from .paginated_employment_list import PaginatedEmploymentList - from .paginated_group_list import PaginatedGroupList - from .paginated_issue_list import PaginatedIssueList - from .paginated_location_list import PaginatedLocationList - from .paginated_pay_group_list import PaginatedPayGroupList - from .paginated_payroll_run_list import PaginatedPayrollRunList - from .paginated_sync_status_list import PaginatedSyncStatusList - from .paginated_team_list import PaginatedTeamList - from .paginated_time_off_balance_list import PaginatedTimeOffBalanceList - from .paginated_time_off_list import PaginatedTimeOffList - from .paginated_timesheet_entry_list import PaginatedTimesheetEntryList - from .pay_currency_enum import PayCurrencyEnum - from .pay_frequency_enum import PayFrequencyEnum - from .pay_group import PayGroup - from .pay_period_enum import PayPeriodEnum - from .payroll_run import PayrollRun - from .payroll_run_run_state import PayrollRunRunState - from .payroll_run_run_type import PayrollRunRunType - from .policy_type_enum import PolicyTypeEnum - from .reason_enum import ReasonEnum - from .relationship_enum import RelationshipEnum - from .remote_data import RemoteData - from .remote_endpoint_info import RemoteEndpointInfo - from .remote_field_api import RemoteFieldApi - from .remote_field_api_coverage import RemoteFieldApiCoverage - from .remote_field_api_response import RemoteFieldApiResponse - from .remote_key import RemoteKey - from .remote_response import RemoteResponse - from .remote_response_response_type import RemoteResponseResponseType - from .request_format_enum import RequestFormatEnum - from .request_type_enum import RequestTypeEnum - from .response_type_enum import ResponseTypeEnum - from .role_enum import RoleEnum - from .run_state_enum import RunStateEnum - from .run_type_enum import RunTypeEnum - from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum - from .status_fd_5_enum import StatusFd5Enum - from .sync_status import SyncStatus - from .sync_status_last_sync_result import SyncStatusLastSyncResult - from .tax import Tax - from .team import Team - from .team_parent_team import TeamParentTeam - from .time_off import TimeOff - from .time_off_approver import TimeOffApprover - from .time_off_balance import TimeOffBalance - from .time_off_balance_employee import TimeOffBalanceEmployee - from .time_off_balance_policy_type import TimeOffBalancePolicyType - from .time_off_employee import TimeOffEmployee - from .time_off_request import TimeOffRequest - from .time_off_request_approver import TimeOffRequestApprover - from .time_off_request_employee import TimeOffRequestEmployee - from .time_off_request_request_type import TimeOffRequestRequestType - from .time_off_request_status import TimeOffRequestStatus - from .time_off_request_type import TimeOffRequestType - from .time_off_request_units import TimeOffRequestUnits - from .time_off_response import TimeOffResponse - from .time_off_status import TimeOffStatus - from .time_off_status_enum import TimeOffStatusEnum - from .time_off_units import TimeOffUnits - from .timesheet_entry import TimesheetEntry - from .timesheet_entry_employee import TimesheetEntryEmployee - from .timesheet_entry_request import TimesheetEntryRequest - from .timesheet_entry_request_employee import TimesheetEntryRequestEmployee - from .timesheet_entry_response import TimesheetEntryResponse - from .units_enum import UnitsEnum - from .validation_problem_source import ValidationProblemSource - from .warning_validation_problem import WarningValidationProblem - from .webhook_receiver import WebhookReceiver -_dynamic_imports: typing.Dict[str, str] = { - "AccountDetails": ".account_details", - "AccountDetailsAndActions": ".account_details_and_actions", - "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", - "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", - "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", - "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", - "AccountDetailsCategory": ".account_details_category", - "AccountIntegration": ".account_integration", - "AccountToken": ".account_token", - "AccountTypeEnum": ".account_type_enum", - "AdvancedMetadata": ".advanced_metadata", - "AsyncPassthroughReciept": ".async_passthrough_reciept", - "AuditLogEvent": ".audit_log_event", - "AuditLogEventEventType": ".audit_log_event_event_type", - "AuditLogEventRole": ".audit_log_event_role", - "AvailableActions": ".available_actions", - "BankInfo": ".bank_info", - "BankInfoAccountType": ".bank_info_account_type", - "BankInfoEmployee": ".bank_info_employee", - "Benefit": ".benefit", - "BenefitEmployee": ".benefit_employee", - "BenefitPlanTypeEnum": ".benefit_plan_type_enum", - "CategoriesEnum": ".categories_enum", - "CategoryEnum": ".category_enum", - "CommonModelScopeApi": ".common_model_scope_api", - "CommonModelScopesBodyRequest": ".common_model_scopes_body_request", - "Company": ".company", - "CompletedAccountInitialScreenEnum": ".completed_account_initial_screen_enum", - "CountryEnum": ".country_enum", - "DataPassthroughRequest": ".data_passthrough_request", - "DebugModeLog": ".debug_mode_log", - "DebugModelLogSummary": ".debug_model_log_summary", - "Deduction": ".deduction", - "Dependent": ".dependent", - "DependentGender": ".dependent_gender", - "DependentRelationship": ".dependent_relationship", - "Earning": ".earning", - "EarningType": ".earning_type", - "EarningTypeEnum": ".earning_type_enum", - "Employee": ".employee", - "EmployeeCompany": ".employee_company", - "EmployeeEmploymentStatus": ".employee_employment_status", - "EmployeeEmploymentsItem": ".employee_employments_item", - "EmployeeEthnicity": ".employee_ethnicity", - "EmployeeGender": ".employee_gender", - "EmployeeGroupsItem": ".employee_groups_item", - "EmployeeHomeLocation": ".employee_home_location", - "EmployeeManager": ".employee_manager", - "EmployeeMaritalStatus": ".employee_marital_status", - "EmployeePayGroup": ".employee_pay_group", - "EmployeePayrollRun": ".employee_payroll_run", - "EmployeePayrollRunEmployee": ".employee_payroll_run_employee", - "EmployeePayrollRunPayrollRun": ".employee_payroll_run_payroll_run", - "EmployeeRequest": ".employee_request", - "EmployeeRequestCompany": ".employee_request_company", - "EmployeeRequestEmploymentStatus": ".employee_request_employment_status", - "EmployeeRequestEmploymentsItem": ".employee_request_employments_item", - "EmployeeRequestEthnicity": ".employee_request_ethnicity", - "EmployeeRequestGender": ".employee_request_gender", - "EmployeeRequestGroupsItem": ".employee_request_groups_item", - "EmployeeRequestHomeLocation": ".employee_request_home_location", - "EmployeeRequestManager": ".employee_request_manager", - "EmployeeRequestMaritalStatus": ".employee_request_marital_status", - "EmployeeRequestPayGroup": ".employee_request_pay_group", - "EmployeeRequestTeam": ".employee_request_team", - "EmployeeRequestWorkLocation": ".employee_request_work_location", - "EmployeeResponse": ".employee_response", - "EmployeeTeam": ".employee_team", - "EmployeeWorkLocation": ".employee_work_location", - "EmployerBenefit": ".employer_benefit", - "EmployerBenefitBenefitPlanType": ".employer_benefit_benefit_plan_type", - "Employment": ".employment", - "EmploymentEmployee": ".employment_employee", - "EmploymentEmploymentType": ".employment_employment_type", - "EmploymentFlsaStatus": ".employment_flsa_status", - "EmploymentPayCurrency": ".employment_pay_currency", - "EmploymentPayFrequency": ".employment_pay_frequency", - "EmploymentPayGroup": ".employment_pay_group", - "EmploymentPayPeriod": ".employment_pay_period", - "EmploymentStatusEnum": ".employment_status_enum", - "EmploymentTypeEnum": ".employment_type_enum", - "EnabledActionsEnum": ".enabled_actions_enum", - "EncodingEnum": ".encoding_enum", - "ErrorValidationProblem": ".error_validation_problem", - "EthnicityEnum": ".ethnicity_enum", - "EventTypeEnum": ".event_type_enum", - "ExternalTargetFieldApi": ".external_target_field_api", - "ExternalTargetFieldApiResponse": ".external_target_field_api_response", - "FieldMappingApiInstance": ".field_mapping_api_instance", - "FieldMappingApiInstanceRemoteField": ".field_mapping_api_instance_remote_field", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".field_mapping_api_instance_remote_field_remote_endpoint_info", - "FieldMappingApiInstanceResponse": ".field_mapping_api_instance_response", - "FieldMappingApiInstanceTargetField": ".field_mapping_api_instance_target_field", - "FieldMappingInstanceResponse": ".field_mapping_instance_response", - "FieldPermissionDeserializer": ".field_permission_deserializer", - "FieldPermissionDeserializerRequest": ".field_permission_deserializer_request", - "FlsaStatusEnum": ".flsa_status_enum", - "GenderEnum": ".gender_enum", - "Group": ".group", - "GroupType": ".group_type", - "GroupTypeEnum": ".group_type_enum", - "IndividualCommonModelScopeDeserializer": ".individual_common_model_scope_deserializer", - "IndividualCommonModelScopeDeserializerRequest": ".individual_common_model_scope_deserializer_request", - "Issue": ".issue", - "IssueStatus": ".issue_status", - "IssueStatusEnum": ".issue_status_enum", - "LanguageEnum": ".language_enum", - "LastSyncResultEnum": ".last_sync_result_enum", - "LinkToken": ".link_token", - "LinkedAccountStatus": ".linked_account_status", - "Location": ".location", - "LocationCountry": ".location_country", - "LocationLocationType": ".location_location_type", - "LocationTypeEnum": ".location_type_enum", - "MaritalStatusEnum": ".marital_status_enum", - "MetaResponse": ".meta_response", - "MethodEnum": ".method_enum", - "ModelOperation": ".model_operation", - "ModelPermissionDeserializer": ".model_permission_deserializer", - "ModelPermissionDeserializerRequest": ".model_permission_deserializer_request", - "MultipartFormFieldRequest": ".multipart_form_field_request", - "MultipartFormFieldRequestEncoding": ".multipart_form_field_request_encoding", - "PaginatedAccountDetailsAndActionsList": ".paginated_account_details_and_actions_list", - "PaginatedAuditLogEventList": ".paginated_audit_log_event_list", - "PaginatedBankInfoList": ".paginated_bank_info_list", - "PaginatedBenefitList": ".paginated_benefit_list", - "PaginatedCompanyList": ".paginated_company_list", - "PaginatedDependentList": ".paginated_dependent_list", - "PaginatedEmployeeList": ".paginated_employee_list", - "PaginatedEmployeePayrollRunList": ".paginated_employee_payroll_run_list", - "PaginatedEmployerBenefitList": ".paginated_employer_benefit_list", - "PaginatedEmploymentList": ".paginated_employment_list", - "PaginatedGroupList": ".paginated_group_list", - "PaginatedIssueList": ".paginated_issue_list", - "PaginatedLocationList": ".paginated_location_list", - "PaginatedPayGroupList": ".paginated_pay_group_list", - "PaginatedPayrollRunList": ".paginated_payroll_run_list", - "PaginatedSyncStatusList": ".paginated_sync_status_list", - "PaginatedTeamList": ".paginated_team_list", - "PaginatedTimeOffBalanceList": ".paginated_time_off_balance_list", - "PaginatedTimeOffList": ".paginated_time_off_list", - "PaginatedTimesheetEntryList": ".paginated_timesheet_entry_list", - "PayCurrencyEnum": ".pay_currency_enum", - "PayFrequencyEnum": ".pay_frequency_enum", - "PayGroup": ".pay_group", - "PayPeriodEnum": ".pay_period_enum", - "PayrollRun": ".payroll_run", - "PayrollRunRunState": ".payroll_run_run_state", - "PayrollRunRunType": ".payroll_run_run_type", - "PolicyTypeEnum": ".policy_type_enum", - "ReasonEnum": ".reason_enum", - "RelationshipEnum": ".relationship_enum", - "RemoteData": ".remote_data", - "RemoteEndpointInfo": ".remote_endpoint_info", - "RemoteFieldApi": ".remote_field_api", - "RemoteFieldApiCoverage": ".remote_field_api_coverage", - "RemoteFieldApiResponse": ".remote_field_api_response", - "RemoteKey": ".remote_key", - "RemoteResponse": ".remote_response", - "RemoteResponseResponseType": ".remote_response_response_type", - "RequestFormatEnum": ".request_format_enum", - "RequestTypeEnum": ".request_type_enum", - "ResponseTypeEnum": ".response_type_enum", - "RoleEnum": ".role_enum", - "RunStateEnum": ".run_state_enum", - "RunTypeEnum": ".run_type_enum", - "SelectiveSyncConfigurationsUsageEnum": ".selective_sync_configurations_usage_enum", - "StatusFd5Enum": ".status_fd_5_enum", - "SyncStatus": ".sync_status", - "SyncStatusLastSyncResult": ".sync_status_last_sync_result", - "Tax": ".tax", - "Team": ".team", - "TeamParentTeam": ".team_parent_team", - "TimeOff": ".time_off", - "TimeOffApprover": ".time_off_approver", - "TimeOffBalance": ".time_off_balance", - "TimeOffBalanceEmployee": ".time_off_balance_employee", - "TimeOffBalancePolicyType": ".time_off_balance_policy_type", - "TimeOffEmployee": ".time_off_employee", - "TimeOffRequest": ".time_off_request", - "TimeOffRequestApprover": ".time_off_request_approver", - "TimeOffRequestEmployee": ".time_off_request_employee", - "TimeOffRequestRequestType": ".time_off_request_request_type", - "TimeOffRequestStatus": ".time_off_request_status", - "TimeOffRequestType": ".time_off_request_type", - "TimeOffRequestUnits": ".time_off_request_units", - "TimeOffResponse": ".time_off_response", - "TimeOffStatus": ".time_off_status", - "TimeOffStatusEnum": ".time_off_status_enum", - "TimeOffUnits": ".time_off_units", - "TimesheetEntry": ".timesheet_entry", - "TimesheetEntryEmployee": ".timesheet_entry_employee", - "TimesheetEntryRequest": ".timesheet_entry_request", - "TimesheetEntryRequestEmployee": ".timesheet_entry_request_employee", - "TimesheetEntryResponse": ".timesheet_entry_response", - "UnitsEnum": ".units_enum", - "ValidationProblemSource": ".validation_problem_source", - "WarningValidationProblem": ".warning_validation_problem", - "WebhookReceiver": ".webhook_receiver", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AccountTypeEnum", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "BankInfo", - "BankInfoAccountType", - "BankInfoEmployee", - "Benefit", - "BenefitEmployee", - "BenefitPlanTypeEnum", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "Company", - "CompletedAccountInitialScreenEnum", - "CountryEnum", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "Deduction", - "Dependent", - "DependentGender", - "DependentRelationship", - "Earning", - "EarningType", - "EarningTypeEnum", - "Employee", - "EmployeeCompany", - "EmployeeEmploymentStatus", - "EmployeeEmploymentsItem", - "EmployeeEthnicity", - "EmployeeGender", - "EmployeeGroupsItem", - "EmployeeHomeLocation", - "EmployeeManager", - "EmployeeMaritalStatus", - "EmployeePayGroup", - "EmployeePayrollRun", - "EmployeePayrollRunEmployee", - "EmployeePayrollRunPayrollRun", - "EmployeeRequest", - "EmployeeRequestCompany", - "EmployeeRequestEmploymentStatus", - "EmployeeRequestEmploymentsItem", - "EmployeeRequestEthnicity", - "EmployeeRequestGender", - "EmployeeRequestGroupsItem", - "EmployeeRequestHomeLocation", - "EmployeeRequestManager", - "EmployeeRequestMaritalStatus", - "EmployeeRequestPayGroup", - "EmployeeRequestTeam", - "EmployeeRequestWorkLocation", - "EmployeeResponse", - "EmployeeTeam", - "EmployeeWorkLocation", - "EmployerBenefit", - "EmployerBenefitBenefitPlanType", - "Employment", - "EmploymentEmployee", - "EmploymentEmploymentType", - "EmploymentFlsaStatus", - "EmploymentPayCurrency", - "EmploymentPayFrequency", - "EmploymentPayGroup", - "EmploymentPayPeriod", - "EmploymentStatusEnum", - "EmploymentTypeEnum", - "EnabledActionsEnum", - "EncodingEnum", - "ErrorValidationProblem", - "EthnicityEnum", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FlsaStatusEnum", - "GenderEnum", - "Group", - "GroupType", - "GroupTypeEnum", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "Location", - "LocationCountry", - "LocationLocationType", - "LocationTypeEnum", - "MaritalStatusEnum", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAuditLogEventList", - "PaginatedBankInfoList", - "PaginatedBenefitList", - "PaginatedCompanyList", - "PaginatedDependentList", - "PaginatedEmployeeList", - "PaginatedEmployeePayrollRunList", - "PaginatedEmployerBenefitList", - "PaginatedEmploymentList", - "PaginatedGroupList", - "PaginatedIssueList", - "PaginatedLocationList", - "PaginatedPayGroupList", - "PaginatedPayrollRunList", - "PaginatedSyncStatusList", - "PaginatedTeamList", - "PaginatedTimeOffBalanceList", - "PaginatedTimeOffList", - "PaginatedTimesheetEntryList", - "PayCurrencyEnum", - "PayFrequencyEnum", - "PayGroup", - "PayPeriodEnum", - "PayrollRun", - "PayrollRunRunState", - "PayrollRunRunType", - "PolicyTypeEnum", - "ReasonEnum", - "RelationshipEnum", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RequestFormatEnum", - "RequestTypeEnum", - "ResponseTypeEnum", - "RoleEnum", - "RunStateEnum", - "RunTypeEnum", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "Tax", - "Team", - "TeamParentTeam", - "TimeOff", - "TimeOffApprover", - "TimeOffBalance", - "TimeOffBalanceEmployee", - "TimeOffBalancePolicyType", - "TimeOffEmployee", - "TimeOffRequest", - "TimeOffRequestApprover", - "TimeOffRequestEmployee", - "TimeOffRequestRequestType", - "TimeOffRequestStatus", - "TimeOffRequestType", - "TimeOffRequestUnits", - "TimeOffResponse", - "TimeOffStatus", - "TimeOffStatusEnum", - "TimeOffUnits", - "TimesheetEntry", - "TimesheetEntryEmployee", - "TimesheetEntryRequest", - "TimesheetEntryRequestEmployee", - "TimesheetEntryResponse", - "UnitsEnum", - "ValidationProblemSource", - "WarningValidationProblem", - "WebhookReceiver", -] diff --git a/src/merge/resources/hris/types/account_details.py b/src/merge/resources/hris/types/account_details.py deleted file mode 100644 index 98923cd8..00000000 --- a/src/merge/resources/hris/types/account_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_category import AccountDetailsCategory - - -class AccountDetails(UncheckedBaseModel): - id: typing.Optional[str] = None - integration: typing.Optional[str] = None - integration_slug: typing.Optional[str] = None - category: typing.Optional[AccountDetailsCategory] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: typing.Optional[str] = None - end_user_email_address: typing.Optional[str] = None - status: typing.Optional[str] = None - webhook_listener_url: typing.Optional[str] = None - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - account_type: typing.Optional[str] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which account completes the linking flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/account_details_and_actions.py b/src/merge/resources/hris/types/account_details_and_actions.py deleted file mode 100644 index 93c874ed..00000000 --- a/src/merge/resources/hris/types/account_details_and_actions.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions_category import AccountDetailsAndActionsCategory -from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status import AccountDetailsAndActionsStatus - - -class AccountDetailsAndActions(UncheckedBaseModel): - """ - # The LinkedAccount Object - ### Description - The `LinkedAccount` object is used to represent an end user's link with a specific integration. - - ### Usage Example - View a list of your organization's `LinkedAccount` objects. - """ - - id: str - category: typing.Optional[AccountDetailsAndActionsCategory] = None - status: AccountDetailsAndActionsStatus - status_detail: typing.Optional[str] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: str - end_user_email_address: str - subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The tenant or domain the customer has provided access to. - """ - - webhook_listener_url: str - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - integration: typing.Optional[AccountDetailsAndActionsIntegration] = None - account_type: str - completed_at: dt.datetime - integration_specific_fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/account_details_and_actions_category.py b/src/merge/resources/hris/types/account_details_and_actions_category.py deleted file mode 100644 index 93b4188b..00000000 --- a/src/merge/resources/hris/types/account_details_and_actions_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsAndActionsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/hris/types/account_details_and_actions_integration.py b/src/merge/resources/hris/types/account_details_and_actions_integration.py deleted file mode 100644 index 73467bbb..00000000 --- a/src/merge/resources/hris/types/account_details_and_actions_integration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum -from .model_operation import ModelOperation - - -class AccountDetailsAndActionsIntegration(UncheckedBaseModel): - name: str - categories: typing.List[CategoriesEnum] - image: typing.Optional[str] = None - square_image: typing.Optional[str] = None - color: str - slug: str - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/account_details_and_actions_status.py b/src/merge/resources/hris/types/account_details_and_actions_status.py deleted file mode 100644 index 445922f8..00000000 --- a/src/merge/resources/hris/types/account_details_and_actions_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - -AccountDetailsAndActionsStatus = typing.Union[AccountDetailsAndActionsStatusEnum, str] diff --git a/src/merge/resources/hris/types/account_details_and_actions_status_enum.py b/src/merge/resources/hris/types/account_details_and_actions_status_enum.py deleted file mode 100644 index df37f582..00000000 --- a/src/merge/resources/hris/types/account_details_and_actions_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountDetailsAndActionsStatusEnum(str, enum.Enum): - """ - * `COMPLETE` - COMPLETE - * `INCOMPLETE` - INCOMPLETE - * `RELINK_NEEDED` - RELINK_NEEDED - * `IDLE` - IDLE - """ - - COMPLETE = "COMPLETE" - INCOMPLETE = "INCOMPLETE" - RELINK_NEEDED = "RELINK_NEEDED" - IDLE = "IDLE" - - def visit( - self, - complete: typing.Callable[[], T_Result], - incomplete: typing.Callable[[], T_Result], - relink_needed: typing.Callable[[], T_Result], - idle: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountDetailsAndActionsStatusEnum.COMPLETE: - return complete() - if self is AccountDetailsAndActionsStatusEnum.INCOMPLETE: - return incomplete() - if self is AccountDetailsAndActionsStatusEnum.RELINK_NEEDED: - return relink_needed() - if self is AccountDetailsAndActionsStatusEnum.IDLE: - return idle() diff --git a/src/merge/resources/hris/types/account_details_category.py b/src/merge/resources/hris/types/account_details_category.py deleted file mode 100644 index 8a0cc59c..00000000 --- a/src/merge/resources/hris/types/account_details_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/hris/types/account_integration.py b/src/merge/resources/hris/types/account_integration.py deleted file mode 100644 index ef8b260d..00000000 --- a/src/merge/resources/hris/types/account_integration.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum - - -class AccountIntegration(UncheckedBaseModel): - name: str = pydantic.Field() - """ - Company name. - """ - - abbreviated_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) - """ - - categories: typing.Optional[typing.List[CategoriesEnum]] = pydantic.Field(default=None) - """ - Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. - """ - - image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in rectangular shape. - """ - - square_image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in square shape. - """ - - color: typing.Optional[str] = pydantic.Field(default=None) - """ - The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. - """ - - slug: typing.Optional[str] = None - api_endpoints_to_documentation_urls: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = ( - pydantic.Field(default=None) - ) - """ - Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} - """ - - webhook_setup_guide_url: typing.Optional[str] = pydantic.Field(default=None) - """ - Setup guide URL for third party webhook creation. Exposed in Merge Docs. - """ - - category_beta_status: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Category or categories this integration is in beta status for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/account_token.py b/src/merge/resources/hris/types/account_token.py deleted file mode 100644 index 6e82c8ac..00000000 --- a/src/merge/resources/hris/types/account_token.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration - - -class AccountToken(UncheckedBaseModel): - account_token: str - integration: AccountIntegration - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/account_type_enum.py b/src/merge/resources/hris/types/account_type_enum.py deleted file mode 100644 index 2ec129e6..00000000 --- a/src/merge/resources/hris/types/account_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountTypeEnum(str, enum.Enum): - """ - * `SAVINGS` - SAVINGS - * `CHECKING` - CHECKING - """ - - SAVINGS = "SAVINGS" - CHECKING = "CHECKING" - - def visit(self, savings: typing.Callable[[], T_Result], checking: typing.Callable[[], T_Result]) -> T_Result: - if self is AccountTypeEnum.SAVINGS: - return savings() - if self is AccountTypeEnum.CHECKING: - return checking() diff --git a/src/merge/resources/hris/types/advanced_metadata.py b/src/merge/resources/hris/types/advanced_metadata.py deleted file mode 100644 index 60b5d072..00000000 --- a/src/merge/resources/hris/types/advanced_metadata.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AdvancedMetadata(UncheckedBaseModel): - id: str - display_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - is_custom: typing.Optional[bool] = None - field_choices: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/async_passthrough_reciept.py b/src/merge/resources/hris/types/async_passthrough_reciept.py deleted file mode 100644 index 21c95080..00000000 --- a/src/merge/resources/hris/types/async_passthrough_reciept.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPassthroughReciept(UncheckedBaseModel): - async_passthrough_receipt_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/audit_log_event.py b/src/merge/resources/hris/types/audit_log_event.py deleted file mode 100644 index ab69fd32..00000000 --- a/src/merge/resources/hris/types/audit_log_event.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event_event_type import AuditLogEventEventType -from .audit_log_event_role import AuditLogEventRole - - -class AuditLogEvent(UncheckedBaseModel): - id: typing.Optional[str] = None - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's full name at the time of this Event occurring. - """ - - user_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's email at the time of this Event occurring. - """ - - role: AuditLogEventRole = pydantic.Field() - """ - Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ip_address: str - event_type: AuditLogEventEventType = pydantic.Field() - """ - Designates the type of event that occurred. - - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - event_description: str - created_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/audit_log_event_event_type.py b/src/merge/resources/hris/types/audit_log_event_event_type.py deleted file mode 100644 index f9c9d2b3..00000000 --- a/src/merge/resources/hris/types/audit_log_event_event_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_type_enum import EventTypeEnum - -AuditLogEventEventType = typing.Union[EventTypeEnum, str] diff --git a/src/merge/resources/hris/types/audit_log_event_role.py b/src/merge/resources/hris/types/audit_log_event_role.py deleted file mode 100644 index fe91ed6f..00000000 --- a/src/merge/resources/hris/types/audit_log_event_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role_enum import RoleEnum - -AuditLogEventRole = typing.Union[RoleEnum, str] diff --git a/src/merge/resources/hris/types/available_actions.py b/src/merge/resources/hris/types/available_actions.py deleted file mode 100644 index 8b5019d7..00000000 --- a/src/merge/resources/hris/types/available_actions.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration -from .model_operation import ModelOperation - - -class AvailableActions(UncheckedBaseModel): - """ - # The AvailableActions Object - ### Description - The `Activity` object is used to see all available model/operation combinations for an integration. - - ### Usage Example - Fetch all the actions available for the `Zenefits` integration. - """ - - integration: AccountIntegration - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/bank_info.py b/src/merge/resources/hris/types/bank_info.py deleted file mode 100644 index 5cf08ec9..00000000 --- a/src/merge/resources/hris/types/bank_info.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_info_account_type import BankInfoAccountType -from .bank_info_employee import BankInfoEmployee -from .remote_data import RemoteData - - -class BankInfo(UncheckedBaseModel): - """ - # The BankInfo Object - ### Description - The `BankInfo` object is used to represent the Bank Account information for an Employee. - - ### Usage Example - Fetch from the `LIST BankInfo` endpoint and filter by `ID` to show all bank information. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee: typing.Optional[BankInfoEmployee] = pydantic.Field(default=None) - """ - The employee with this bank account. - """ - - account_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The account number. - """ - - routing_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The routing number. - """ - - bank_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The bank name. - """ - - account_type: typing.Optional[BankInfoAccountType] = pydantic.Field(default=None) - """ - The bank account type - - * `SAVINGS` - SAVINGS - * `CHECKING` - CHECKING - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the matching bank object was created in the third party system. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(BankInfo) diff --git a/src/merge/resources/hris/types/bank_info_account_type.py b/src/merge/resources/hris/types/bank_info_account_type.py deleted file mode 100644 index 9fe05384..00000000 --- a/src/merge/resources/hris/types/bank_info_account_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_type_enum import AccountTypeEnum - -BankInfoAccountType = typing.Union[AccountTypeEnum, str] diff --git a/src/merge/resources/hris/types/bank_info_employee.py b/src/merge/resources/hris/types/bank_info_employee.py deleted file mode 100644 index b81c6648..00000000 --- a/src/merge/resources/hris/types/bank_info_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -BankInfoEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/benefit.py b/src/merge/resources/hris/types/benefit.py deleted file mode 100644 index 3ceeb1bc..00000000 --- a/src/merge/resources/hris/types/benefit.py +++ /dev/null @@ -1,103 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .benefit_employee import BenefitEmployee -from .remote_data import RemoteData - - -class Benefit(UncheckedBaseModel): - """ - # The Benefit Object - ### Description - The `Benefit` object is used to represent a benefit that an employee has enrolled in. - - ### Usage Example - Fetch from the `LIST Benefits` endpoint and filter by `ID` to show all benefits. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee: typing.Optional[BenefitEmployee] = pydantic.Field(default=None) - """ - The employee on the plan. - """ - - provider_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the benefit provider. - """ - - benefit_plan_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The type of benefit plan - """ - - employee_contribution: typing.Optional[float] = pydantic.Field(default=None) - """ - The employee's contribution. - """ - - company_contribution: typing.Optional[float] = pydantic.Field(default=None) - """ - The company's contribution. - """ - - start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the benefit started. - """ - - end_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the benefit ended. - """ - - employer_benefit: typing.Optional[str] = pydantic.Field(default=None) - """ - The employer benefit plan the employee is enrolled in. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(Benefit) diff --git a/src/merge/resources/hris/types/benefit_employee.py b/src/merge/resources/hris/types/benefit_employee.py deleted file mode 100644 index 4ded9a94..00000000 --- a/src/merge/resources/hris/types/benefit_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -BenefitEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/benefit_plan_type_enum.py b/src/merge/resources/hris/types/benefit_plan_type_enum.py deleted file mode 100644 index 40b5fee1..00000000 --- a/src/merge/resources/hris/types/benefit_plan_type_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class BenefitPlanTypeEnum(str, enum.Enum): - """ - * `MEDICAL` - MEDICAL - * `HEALTH_SAVINGS` - HEALTH_SAVINGS - * `INSURANCE` - INSURANCE - * `RETIREMENT` - RETIREMENT - * `OTHER` - OTHER - """ - - MEDICAL = "MEDICAL" - HEALTH_SAVINGS = "HEALTH_SAVINGS" - INSURANCE = "INSURANCE" - RETIREMENT = "RETIREMENT" - OTHER = "OTHER" - - def visit( - self, - medical: typing.Callable[[], T_Result], - health_savings: typing.Callable[[], T_Result], - insurance: typing.Callable[[], T_Result], - retirement: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is BenefitPlanTypeEnum.MEDICAL: - return medical() - if self is BenefitPlanTypeEnum.HEALTH_SAVINGS: - return health_savings() - if self is BenefitPlanTypeEnum.INSURANCE: - return insurance() - if self is BenefitPlanTypeEnum.RETIREMENT: - return retirement() - if self is BenefitPlanTypeEnum.OTHER: - return other() diff --git a/src/merge/resources/hris/types/categories_enum.py b/src/merge/resources/hris/types/categories_enum.py deleted file mode 100644 index 3f2dc5a9..00000000 --- a/src/merge/resources/hris/types/categories_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoriesEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoriesEnum.HRIS: - return hris() - if self is CategoriesEnum.ATS: - return ats() - if self is CategoriesEnum.ACCOUNTING: - return accounting() - if self is CategoriesEnum.TICKETING: - return ticketing() - if self is CategoriesEnum.CRM: - return crm() - if self is CategoriesEnum.MKTG: - return mktg() - if self is CategoriesEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/hris/types/category_enum.py b/src/merge/resources/hris/types/category_enum.py deleted file mode 100644 index d37e48f5..00000000 --- a/src/merge/resources/hris/types/category_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoryEnum.HRIS: - return hris() - if self is CategoryEnum.ATS: - return ats() - if self is CategoryEnum.ACCOUNTING: - return accounting() - if self is CategoryEnum.TICKETING: - return ticketing() - if self is CategoryEnum.CRM: - return crm() - if self is CategoryEnum.MKTG: - return mktg() - if self is CategoryEnum.FILESTORAGE: - return filestorage() diff --git a/src/merge/resources/hris/types/common_model_scope_api.py b/src/merge/resources/hris/types/common_model_scope_api.py deleted file mode 100644 index 5484808d..00000000 --- a/src/merge/resources/hris/types/common_model_scope_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - - -class CommonModelScopeApi(UncheckedBaseModel): - common_models: typing.List[IndividualCommonModelScopeDeserializer] = pydantic.Field() - """ - The common models you want to update the scopes for - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/common_model_scopes_body_request.py b/src/merge/resources/hris/types/common_model_scopes_body_request.py deleted file mode 100644 index a9fed25b..00000000 --- a/src/merge/resources/hris/types/common_model_scopes_body_request.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .enabled_actions_enum import EnabledActionsEnum - - -class CommonModelScopesBodyRequest(UncheckedBaseModel): - model_id: str - enabled_actions: typing.List[EnabledActionsEnum] - disabled_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/company.py b/src/merge/resources/hris/types/company.py deleted file mode 100644 index 226660f0..00000000 --- a/src/merge/resources/hris/types/company.py +++ /dev/null @@ -1,68 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Company(UncheckedBaseModel): - """ - # The Company Object - ### Description - The `Company` object is used to represent a company within the HRIS / Payroll system. - - ### Usage Example - Fetch from the `LIST Companies` endpoint and filter by `ID` to show all companies. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - legal_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The company's legal name. - """ - - display_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The company's display name. - """ - - eins: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The company's Employer Identification Numbers. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/completed_account_initial_screen_enum.py b/src/merge/resources/hris/types/completed_account_initial_screen_enum.py deleted file mode 100644 index c112dfd1..00000000 --- a/src/merge/resources/hris/types/completed_account_initial_screen_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CompletedAccountInitialScreenEnum = typing.Literal["SELECTIVE_SYNC"] diff --git a/src/merge/resources/hris/types/country_enum.py b/src/merge/resources/hris/types/country_enum.py deleted file mode 100644 index a631e320..00000000 --- a/src/merge/resources/hris/types/country_enum.py +++ /dev/null @@ -1,1261 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CountryEnum(str, enum.Enum): - """ - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - AF = "AF" - AX = "AX" - AL = "AL" - DZ = "DZ" - AS = "AS" - AD = "AD" - AO = "AO" - AI = "AI" - AQ = "AQ" - AG = "AG" - AR = "AR" - AM = "AM" - AW = "AW" - AU = "AU" - AT = "AT" - AZ = "AZ" - BS = "BS" - BH = "BH" - BD = "BD" - BB = "BB" - BY = "BY" - BE = "BE" - BZ = "BZ" - BJ = "BJ" - BM = "BM" - BT = "BT" - BO = "BO" - BQ = "BQ" - BA = "BA" - BW = "BW" - BV = "BV" - BR = "BR" - IO = "IO" - BN = "BN" - BG = "BG" - BF = "BF" - BI = "BI" - CV = "CV" - KH = "KH" - CM = "CM" - CA = "CA" - KY = "KY" - CF = "CF" - TD = "TD" - CL = "CL" - CN = "CN" - CX = "CX" - CC = "CC" - CO = "CO" - KM = "KM" - CG = "CG" - CD = "CD" - CK = "CK" - CR = "CR" - CI = "CI" - HR = "HR" - CU = "CU" - CW = "CW" - CY = "CY" - CZ = "CZ" - DK = "DK" - DJ = "DJ" - DM = "DM" - DO = "DO" - EC = "EC" - EG = "EG" - SV = "SV" - GQ = "GQ" - ER = "ER" - EE = "EE" - SZ = "SZ" - ET = "ET" - FK = "FK" - FO = "FO" - FJ = "FJ" - FI = "FI" - FR = "FR" - GF = "GF" - PF = "PF" - TF = "TF" - GA = "GA" - GM = "GM" - GE = "GE" - DE = "DE" - GH = "GH" - GI = "GI" - GR = "GR" - GL = "GL" - GD = "GD" - GP = "GP" - GU = "GU" - GT = "GT" - GG = "GG" - GN = "GN" - GW = "GW" - GY = "GY" - HT = "HT" - HM = "HM" - VA = "VA" - HN = "HN" - HK = "HK" - HU = "HU" - IS = "IS" - IN = "IN" - ID = "ID" - IR = "IR" - IQ = "IQ" - IE = "IE" - IM = "IM" - IL = "IL" - IT = "IT" - JM = "JM" - JP = "JP" - JE = "JE" - JO = "JO" - KZ = "KZ" - KE = "KE" - KI = "KI" - KW = "KW" - KG = "KG" - LA = "LA" - LV = "LV" - LB = "LB" - LS = "LS" - LR = "LR" - LY = "LY" - LI = "LI" - LT = "LT" - LU = "LU" - MO = "MO" - MG = "MG" - MW = "MW" - MY = "MY" - MV = "MV" - ML = "ML" - MT = "MT" - MH = "MH" - MQ = "MQ" - MR = "MR" - MU = "MU" - YT = "YT" - MX = "MX" - FM = "FM" - MD = "MD" - MC = "MC" - MN = "MN" - ME = "ME" - MS = "MS" - MA = "MA" - MZ = "MZ" - MM = "MM" - NA = "NA" - NR = "NR" - NP = "NP" - NL = "NL" - NC = "NC" - NZ = "NZ" - NI = "NI" - NE = "NE" - NG = "NG" - NU = "NU" - NF = "NF" - KP = "KP" - MK = "MK" - MP = "MP" - NO = "NO" - OM = "OM" - PK = "PK" - PW = "PW" - PS = "PS" - PA = "PA" - PG = "PG" - PY = "PY" - PE = "PE" - PH = "PH" - PN = "PN" - PL = "PL" - PT = "PT" - PR = "PR" - QA = "QA" - RE = "RE" - RO = "RO" - RU = "RU" - RW = "RW" - BL = "BL" - SH = "SH" - KN = "KN" - LC = "LC" - MF = "MF" - PM = "PM" - VC = "VC" - WS = "WS" - SM = "SM" - ST = "ST" - SA = "SA" - SN = "SN" - RS = "RS" - SC = "SC" - SL = "SL" - SG = "SG" - SX = "SX" - SK = "SK" - SI = "SI" - SB = "SB" - SO = "SO" - ZA = "ZA" - GS = "GS" - KR = "KR" - SS = "SS" - ES = "ES" - LK = "LK" - SD = "SD" - SR = "SR" - SJ = "SJ" - SE = "SE" - CH = "CH" - SY = "SY" - TW = "TW" - TJ = "TJ" - TZ = "TZ" - TH = "TH" - TL = "TL" - TG = "TG" - TK = "TK" - TO = "TO" - TT = "TT" - TN = "TN" - TR = "TR" - TM = "TM" - TC = "TC" - TV = "TV" - UG = "UG" - UA = "UA" - AE = "AE" - GB = "GB" - UM = "UM" - US = "US" - UY = "UY" - UZ = "UZ" - VU = "VU" - VE = "VE" - VN = "VN" - VG = "VG" - VI = "VI" - WF = "WF" - EH = "EH" - YE = "YE" - ZM = "ZM" - ZW = "ZW" - - def visit( - self, - af: typing.Callable[[], T_Result], - ax: typing.Callable[[], T_Result], - al: typing.Callable[[], T_Result], - dz: typing.Callable[[], T_Result], - as_: typing.Callable[[], T_Result], - ad: typing.Callable[[], T_Result], - ao: typing.Callable[[], T_Result], - ai: typing.Callable[[], T_Result], - aq: typing.Callable[[], T_Result], - ag: typing.Callable[[], T_Result], - ar: typing.Callable[[], T_Result], - am: typing.Callable[[], T_Result], - aw: typing.Callable[[], T_Result], - au: typing.Callable[[], T_Result], - at: typing.Callable[[], T_Result], - az: typing.Callable[[], T_Result], - bs: typing.Callable[[], T_Result], - bh: typing.Callable[[], T_Result], - bd: typing.Callable[[], T_Result], - bb: typing.Callable[[], T_Result], - by: typing.Callable[[], T_Result], - be: typing.Callable[[], T_Result], - bz: typing.Callable[[], T_Result], - bj: typing.Callable[[], T_Result], - bm: typing.Callable[[], T_Result], - bt: typing.Callable[[], T_Result], - bo: typing.Callable[[], T_Result], - bq: typing.Callable[[], T_Result], - ba: typing.Callable[[], T_Result], - bw: typing.Callable[[], T_Result], - bv: typing.Callable[[], T_Result], - br: typing.Callable[[], T_Result], - io: typing.Callable[[], T_Result], - bn: typing.Callable[[], T_Result], - bg: typing.Callable[[], T_Result], - bf: typing.Callable[[], T_Result], - bi: typing.Callable[[], T_Result], - cv: typing.Callable[[], T_Result], - kh: typing.Callable[[], T_Result], - cm: typing.Callable[[], T_Result], - ca: typing.Callable[[], T_Result], - ky: typing.Callable[[], T_Result], - cf: typing.Callable[[], T_Result], - td: typing.Callable[[], T_Result], - cl: typing.Callable[[], T_Result], - cn: typing.Callable[[], T_Result], - cx: typing.Callable[[], T_Result], - cc: typing.Callable[[], T_Result], - co: typing.Callable[[], T_Result], - km: typing.Callable[[], T_Result], - cg: typing.Callable[[], T_Result], - cd: typing.Callable[[], T_Result], - ck: typing.Callable[[], T_Result], - cr: typing.Callable[[], T_Result], - ci: typing.Callable[[], T_Result], - hr: typing.Callable[[], T_Result], - cu: typing.Callable[[], T_Result], - cw: typing.Callable[[], T_Result], - cy: typing.Callable[[], T_Result], - cz: typing.Callable[[], T_Result], - dk: typing.Callable[[], T_Result], - dj: typing.Callable[[], T_Result], - dm: typing.Callable[[], T_Result], - do: typing.Callable[[], T_Result], - ec: typing.Callable[[], T_Result], - eg: typing.Callable[[], T_Result], - sv: typing.Callable[[], T_Result], - gq: typing.Callable[[], T_Result], - er: typing.Callable[[], T_Result], - ee: typing.Callable[[], T_Result], - sz: typing.Callable[[], T_Result], - et: typing.Callable[[], T_Result], - fk: typing.Callable[[], T_Result], - fo: typing.Callable[[], T_Result], - fj: typing.Callable[[], T_Result], - fi: typing.Callable[[], T_Result], - fr: typing.Callable[[], T_Result], - gf: typing.Callable[[], T_Result], - pf: typing.Callable[[], T_Result], - tf: typing.Callable[[], T_Result], - ga: typing.Callable[[], T_Result], - gm: typing.Callable[[], T_Result], - ge: typing.Callable[[], T_Result], - de: typing.Callable[[], T_Result], - gh: typing.Callable[[], T_Result], - gi: typing.Callable[[], T_Result], - gr: typing.Callable[[], T_Result], - gl: typing.Callable[[], T_Result], - gd: typing.Callable[[], T_Result], - gp: typing.Callable[[], T_Result], - gu: typing.Callable[[], T_Result], - gt: typing.Callable[[], T_Result], - gg: typing.Callable[[], T_Result], - gn: typing.Callable[[], T_Result], - gw: typing.Callable[[], T_Result], - gy: typing.Callable[[], T_Result], - ht: typing.Callable[[], T_Result], - hm: typing.Callable[[], T_Result], - va: typing.Callable[[], T_Result], - hn: typing.Callable[[], T_Result], - hk: typing.Callable[[], T_Result], - hu: typing.Callable[[], T_Result], - is_: typing.Callable[[], T_Result], - in_: typing.Callable[[], T_Result], - id: typing.Callable[[], T_Result], - ir: typing.Callable[[], T_Result], - iq: typing.Callable[[], T_Result], - ie: typing.Callable[[], T_Result], - im: typing.Callable[[], T_Result], - il: typing.Callable[[], T_Result], - it: typing.Callable[[], T_Result], - jm: typing.Callable[[], T_Result], - jp: typing.Callable[[], T_Result], - je: typing.Callable[[], T_Result], - jo: typing.Callable[[], T_Result], - kz: typing.Callable[[], T_Result], - ke: typing.Callable[[], T_Result], - ki: typing.Callable[[], T_Result], - kw: typing.Callable[[], T_Result], - kg: typing.Callable[[], T_Result], - la: typing.Callable[[], T_Result], - lv: typing.Callable[[], T_Result], - lb: typing.Callable[[], T_Result], - ls: typing.Callable[[], T_Result], - lr: typing.Callable[[], T_Result], - ly: typing.Callable[[], T_Result], - li: typing.Callable[[], T_Result], - lt: typing.Callable[[], T_Result], - lu: typing.Callable[[], T_Result], - mo: typing.Callable[[], T_Result], - mg: typing.Callable[[], T_Result], - mw: typing.Callable[[], T_Result], - my: typing.Callable[[], T_Result], - mv: typing.Callable[[], T_Result], - ml: typing.Callable[[], T_Result], - mt: typing.Callable[[], T_Result], - mh: typing.Callable[[], T_Result], - mq: typing.Callable[[], T_Result], - mr: typing.Callable[[], T_Result], - mu: typing.Callable[[], T_Result], - yt: typing.Callable[[], T_Result], - mx: typing.Callable[[], T_Result], - fm: typing.Callable[[], T_Result], - md: typing.Callable[[], T_Result], - mc: typing.Callable[[], T_Result], - mn: typing.Callable[[], T_Result], - me: typing.Callable[[], T_Result], - ms: typing.Callable[[], T_Result], - ma: typing.Callable[[], T_Result], - mz: typing.Callable[[], T_Result], - mm: typing.Callable[[], T_Result], - na: typing.Callable[[], T_Result], - nr: typing.Callable[[], T_Result], - np: typing.Callable[[], T_Result], - nl: typing.Callable[[], T_Result], - nc: typing.Callable[[], T_Result], - nz: typing.Callable[[], T_Result], - ni: typing.Callable[[], T_Result], - ne: typing.Callable[[], T_Result], - ng: typing.Callable[[], T_Result], - nu: typing.Callable[[], T_Result], - nf: typing.Callable[[], T_Result], - kp: typing.Callable[[], T_Result], - mk: typing.Callable[[], T_Result], - mp: typing.Callable[[], T_Result], - no: typing.Callable[[], T_Result], - om: typing.Callable[[], T_Result], - pk: typing.Callable[[], T_Result], - pw: typing.Callable[[], T_Result], - ps: typing.Callable[[], T_Result], - pa: typing.Callable[[], T_Result], - pg: typing.Callable[[], T_Result], - py: typing.Callable[[], T_Result], - pe: typing.Callable[[], T_Result], - ph: typing.Callable[[], T_Result], - pn: typing.Callable[[], T_Result], - pl: typing.Callable[[], T_Result], - pt: typing.Callable[[], T_Result], - pr: typing.Callable[[], T_Result], - qa: typing.Callable[[], T_Result], - re: typing.Callable[[], T_Result], - ro: typing.Callable[[], T_Result], - ru: typing.Callable[[], T_Result], - rw: typing.Callable[[], T_Result], - bl: typing.Callable[[], T_Result], - sh: typing.Callable[[], T_Result], - kn: typing.Callable[[], T_Result], - lc: typing.Callable[[], T_Result], - mf: typing.Callable[[], T_Result], - pm: typing.Callable[[], T_Result], - vc: typing.Callable[[], T_Result], - ws: typing.Callable[[], T_Result], - sm: typing.Callable[[], T_Result], - st: typing.Callable[[], T_Result], - sa: typing.Callable[[], T_Result], - sn: typing.Callable[[], T_Result], - rs: typing.Callable[[], T_Result], - sc: typing.Callable[[], T_Result], - sl: typing.Callable[[], T_Result], - sg: typing.Callable[[], T_Result], - sx: typing.Callable[[], T_Result], - sk: typing.Callable[[], T_Result], - si: typing.Callable[[], T_Result], - sb: typing.Callable[[], T_Result], - so: typing.Callable[[], T_Result], - za: typing.Callable[[], T_Result], - gs: typing.Callable[[], T_Result], - kr: typing.Callable[[], T_Result], - ss: typing.Callable[[], T_Result], - es: typing.Callable[[], T_Result], - lk: typing.Callable[[], T_Result], - sd: typing.Callable[[], T_Result], - sr: typing.Callable[[], T_Result], - sj: typing.Callable[[], T_Result], - se: typing.Callable[[], T_Result], - ch: typing.Callable[[], T_Result], - sy: typing.Callable[[], T_Result], - tw: typing.Callable[[], T_Result], - tj: typing.Callable[[], T_Result], - tz: typing.Callable[[], T_Result], - th: typing.Callable[[], T_Result], - tl: typing.Callable[[], T_Result], - tg: typing.Callable[[], T_Result], - tk: typing.Callable[[], T_Result], - to: typing.Callable[[], T_Result], - tt: typing.Callable[[], T_Result], - tn: typing.Callable[[], T_Result], - tr: typing.Callable[[], T_Result], - tm: typing.Callable[[], T_Result], - tc: typing.Callable[[], T_Result], - tv: typing.Callable[[], T_Result], - ug: typing.Callable[[], T_Result], - ua: typing.Callable[[], T_Result], - ae: typing.Callable[[], T_Result], - gb: typing.Callable[[], T_Result], - um: typing.Callable[[], T_Result], - us: typing.Callable[[], T_Result], - uy: typing.Callable[[], T_Result], - uz: typing.Callable[[], T_Result], - vu: typing.Callable[[], T_Result], - ve: typing.Callable[[], T_Result], - vn: typing.Callable[[], T_Result], - vg: typing.Callable[[], T_Result], - vi: typing.Callable[[], T_Result], - wf: typing.Callable[[], T_Result], - eh: typing.Callable[[], T_Result], - ye: typing.Callable[[], T_Result], - zm: typing.Callable[[], T_Result], - zw: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CountryEnum.AF: - return af() - if self is CountryEnum.AX: - return ax() - if self is CountryEnum.AL: - return al() - if self is CountryEnum.DZ: - return dz() - if self is CountryEnum.AS: - return as_() - if self is CountryEnum.AD: - return ad() - if self is CountryEnum.AO: - return ao() - if self is CountryEnum.AI: - return ai() - if self is CountryEnum.AQ: - return aq() - if self is CountryEnum.AG: - return ag() - if self is CountryEnum.AR: - return ar() - if self is CountryEnum.AM: - return am() - if self is CountryEnum.AW: - return aw() - if self is CountryEnum.AU: - return au() - if self is CountryEnum.AT: - return at() - if self is CountryEnum.AZ: - return az() - if self is CountryEnum.BS: - return bs() - if self is CountryEnum.BH: - return bh() - if self is CountryEnum.BD: - return bd() - if self is CountryEnum.BB: - return bb() - if self is CountryEnum.BY: - return by() - if self is CountryEnum.BE: - return be() - if self is CountryEnum.BZ: - return bz() - if self is CountryEnum.BJ: - return bj() - if self is CountryEnum.BM: - return bm() - if self is CountryEnum.BT: - return bt() - if self is CountryEnum.BO: - return bo() - if self is CountryEnum.BQ: - return bq() - if self is CountryEnum.BA: - return ba() - if self is CountryEnum.BW: - return bw() - if self is CountryEnum.BV: - return bv() - if self is CountryEnum.BR: - return br() - if self is CountryEnum.IO: - return io() - if self is CountryEnum.BN: - return bn() - if self is CountryEnum.BG: - return bg() - if self is CountryEnum.BF: - return bf() - if self is CountryEnum.BI: - return bi() - if self is CountryEnum.CV: - return cv() - if self is CountryEnum.KH: - return kh() - if self is CountryEnum.CM: - return cm() - if self is CountryEnum.CA: - return ca() - if self is CountryEnum.KY: - return ky() - if self is CountryEnum.CF: - return cf() - if self is CountryEnum.TD: - return td() - if self is CountryEnum.CL: - return cl() - if self is CountryEnum.CN: - return cn() - if self is CountryEnum.CX: - return cx() - if self is CountryEnum.CC: - return cc() - if self is CountryEnum.CO: - return co() - if self is CountryEnum.KM: - return km() - if self is CountryEnum.CG: - return cg() - if self is CountryEnum.CD: - return cd() - if self is CountryEnum.CK: - return ck() - if self is CountryEnum.CR: - return cr() - if self is CountryEnum.CI: - return ci() - if self is CountryEnum.HR: - return hr() - if self is CountryEnum.CU: - return cu() - if self is CountryEnum.CW: - return cw() - if self is CountryEnum.CY: - return cy() - if self is CountryEnum.CZ: - return cz() - if self is CountryEnum.DK: - return dk() - if self is CountryEnum.DJ: - return dj() - if self is CountryEnum.DM: - return dm() - if self is CountryEnum.DO: - return do() - if self is CountryEnum.EC: - return ec() - if self is CountryEnum.EG: - return eg() - if self is CountryEnum.SV: - return sv() - if self is CountryEnum.GQ: - return gq() - if self is CountryEnum.ER: - return er() - if self is CountryEnum.EE: - return ee() - if self is CountryEnum.SZ: - return sz() - if self is CountryEnum.ET: - return et() - if self is CountryEnum.FK: - return fk() - if self is CountryEnum.FO: - return fo() - if self is CountryEnum.FJ: - return fj() - if self is CountryEnum.FI: - return fi() - if self is CountryEnum.FR: - return fr() - if self is CountryEnum.GF: - return gf() - if self is CountryEnum.PF: - return pf() - if self is CountryEnum.TF: - return tf() - if self is CountryEnum.GA: - return ga() - if self is CountryEnum.GM: - return gm() - if self is CountryEnum.GE: - return ge() - if self is CountryEnum.DE: - return de() - if self is CountryEnum.GH: - return gh() - if self is CountryEnum.GI: - return gi() - if self is CountryEnum.GR: - return gr() - if self is CountryEnum.GL: - return gl() - if self is CountryEnum.GD: - return gd() - if self is CountryEnum.GP: - return gp() - if self is CountryEnum.GU: - return gu() - if self is CountryEnum.GT: - return gt() - if self is CountryEnum.GG: - return gg() - if self is CountryEnum.GN: - return gn() - if self is CountryEnum.GW: - return gw() - if self is CountryEnum.GY: - return gy() - if self is CountryEnum.HT: - return ht() - if self is CountryEnum.HM: - return hm() - if self is CountryEnum.VA: - return va() - if self is CountryEnum.HN: - return hn() - if self is CountryEnum.HK: - return hk() - if self is CountryEnum.HU: - return hu() - if self is CountryEnum.IS: - return is_() - if self is CountryEnum.IN: - return in_() - if self is CountryEnum.ID: - return id() - if self is CountryEnum.IR: - return ir() - if self is CountryEnum.IQ: - return iq() - if self is CountryEnum.IE: - return ie() - if self is CountryEnum.IM: - return im() - if self is CountryEnum.IL: - return il() - if self is CountryEnum.IT: - return it() - if self is CountryEnum.JM: - return jm() - if self is CountryEnum.JP: - return jp() - if self is CountryEnum.JE: - return je() - if self is CountryEnum.JO: - return jo() - if self is CountryEnum.KZ: - return kz() - if self is CountryEnum.KE: - return ke() - if self is CountryEnum.KI: - return ki() - if self is CountryEnum.KW: - return kw() - if self is CountryEnum.KG: - return kg() - if self is CountryEnum.LA: - return la() - if self is CountryEnum.LV: - return lv() - if self is CountryEnum.LB: - return lb() - if self is CountryEnum.LS: - return ls() - if self is CountryEnum.LR: - return lr() - if self is CountryEnum.LY: - return ly() - if self is CountryEnum.LI: - return li() - if self is CountryEnum.LT: - return lt() - if self is CountryEnum.LU: - return lu() - if self is CountryEnum.MO: - return mo() - if self is CountryEnum.MG: - return mg() - if self is CountryEnum.MW: - return mw() - if self is CountryEnum.MY: - return my() - if self is CountryEnum.MV: - return mv() - if self is CountryEnum.ML: - return ml() - if self is CountryEnum.MT: - return mt() - if self is CountryEnum.MH: - return mh() - if self is CountryEnum.MQ: - return mq() - if self is CountryEnum.MR: - return mr() - if self is CountryEnum.MU: - return mu() - if self is CountryEnum.YT: - return yt() - if self is CountryEnum.MX: - return mx() - if self is CountryEnum.FM: - return fm() - if self is CountryEnum.MD: - return md() - if self is CountryEnum.MC: - return mc() - if self is CountryEnum.MN: - return mn() - if self is CountryEnum.ME: - return me() - if self is CountryEnum.MS: - return ms() - if self is CountryEnum.MA: - return ma() - if self is CountryEnum.MZ: - return mz() - if self is CountryEnum.MM: - return mm() - if self is CountryEnum.NA: - return na() - if self is CountryEnum.NR: - return nr() - if self is CountryEnum.NP: - return np() - if self is CountryEnum.NL: - return nl() - if self is CountryEnum.NC: - return nc() - if self is CountryEnum.NZ: - return nz() - if self is CountryEnum.NI: - return ni() - if self is CountryEnum.NE: - return ne() - if self is CountryEnum.NG: - return ng() - if self is CountryEnum.NU: - return nu() - if self is CountryEnum.NF: - return nf() - if self is CountryEnum.KP: - return kp() - if self is CountryEnum.MK: - return mk() - if self is CountryEnum.MP: - return mp() - if self is CountryEnum.NO: - return no() - if self is CountryEnum.OM: - return om() - if self is CountryEnum.PK: - return pk() - if self is CountryEnum.PW: - return pw() - if self is CountryEnum.PS: - return ps() - if self is CountryEnum.PA: - return pa() - if self is CountryEnum.PG: - return pg() - if self is CountryEnum.PY: - return py() - if self is CountryEnum.PE: - return pe() - if self is CountryEnum.PH: - return ph() - if self is CountryEnum.PN: - return pn() - if self is CountryEnum.PL: - return pl() - if self is CountryEnum.PT: - return pt() - if self is CountryEnum.PR: - return pr() - if self is CountryEnum.QA: - return qa() - if self is CountryEnum.RE: - return re() - if self is CountryEnum.RO: - return ro() - if self is CountryEnum.RU: - return ru() - if self is CountryEnum.RW: - return rw() - if self is CountryEnum.BL: - return bl() - if self is CountryEnum.SH: - return sh() - if self is CountryEnum.KN: - return kn() - if self is CountryEnum.LC: - return lc() - if self is CountryEnum.MF: - return mf() - if self is CountryEnum.PM: - return pm() - if self is CountryEnum.VC: - return vc() - if self is CountryEnum.WS: - return ws() - if self is CountryEnum.SM: - return sm() - if self is CountryEnum.ST: - return st() - if self is CountryEnum.SA: - return sa() - if self is CountryEnum.SN: - return sn() - if self is CountryEnum.RS: - return rs() - if self is CountryEnum.SC: - return sc() - if self is CountryEnum.SL: - return sl() - if self is CountryEnum.SG: - return sg() - if self is CountryEnum.SX: - return sx() - if self is CountryEnum.SK: - return sk() - if self is CountryEnum.SI: - return si() - if self is CountryEnum.SB: - return sb() - if self is CountryEnum.SO: - return so() - if self is CountryEnum.ZA: - return za() - if self is CountryEnum.GS: - return gs() - if self is CountryEnum.KR: - return kr() - if self is CountryEnum.SS: - return ss() - if self is CountryEnum.ES: - return es() - if self is CountryEnum.LK: - return lk() - if self is CountryEnum.SD: - return sd() - if self is CountryEnum.SR: - return sr() - if self is CountryEnum.SJ: - return sj() - if self is CountryEnum.SE: - return se() - if self is CountryEnum.CH: - return ch() - if self is CountryEnum.SY: - return sy() - if self is CountryEnum.TW: - return tw() - if self is CountryEnum.TJ: - return tj() - if self is CountryEnum.TZ: - return tz() - if self is CountryEnum.TH: - return th() - if self is CountryEnum.TL: - return tl() - if self is CountryEnum.TG: - return tg() - if self is CountryEnum.TK: - return tk() - if self is CountryEnum.TO: - return to() - if self is CountryEnum.TT: - return tt() - if self is CountryEnum.TN: - return tn() - if self is CountryEnum.TR: - return tr() - if self is CountryEnum.TM: - return tm() - if self is CountryEnum.TC: - return tc() - if self is CountryEnum.TV: - return tv() - if self is CountryEnum.UG: - return ug() - if self is CountryEnum.UA: - return ua() - if self is CountryEnum.AE: - return ae() - if self is CountryEnum.GB: - return gb() - if self is CountryEnum.UM: - return um() - if self is CountryEnum.US: - return us() - if self is CountryEnum.UY: - return uy() - if self is CountryEnum.UZ: - return uz() - if self is CountryEnum.VU: - return vu() - if self is CountryEnum.VE: - return ve() - if self is CountryEnum.VN: - return vn() - if self is CountryEnum.VG: - return vg() - if self is CountryEnum.VI: - return vi() - if self is CountryEnum.WF: - return wf() - if self is CountryEnum.EH: - return eh() - if self is CountryEnum.YE: - return ye() - if self is CountryEnum.ZM: - return zm() - if self is CountryEnum.ZW: - return zw() diff --git a/src/merge/resources/hris/types/data_passthrough_request.py b/src/merge/resources/hris/types/data_passthrough_request.py deleted file mode 100644 index c9f0a799..00000000 --- a/src/merge/resources/hris/types/data_passthrough_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .method_enum import MethodEnum -from .multipart_form_field_request import MultipartFormFieldRequest -from .request_format_enum import RequestFormatEnum - - -class DataPassthroughRequest(UncheckedBaseModel): - """ - # The DataPassthrough Object - ### Description - The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - - ### Usage Example - Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - """ - - method: MethodEnum - path: str = pydantic.Field() - """ - The path of the request in the third party's platform. - """ - - base_url_override: typing.Optional[str] = pydantic.Field(default=None) - """ - An optional override of the third party's base url for the request. - """ - - data: typing.Optional[str] = pydantic.Field(default=None) - """ - The data with the request. You must include a `request_format` parameter matching the data's format - """ - - multipart_form_data: typing.Optional[typing.List[MultipartFormFieldRequest]] = pydantic.Field(default=None) - """ - Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. - """ - - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. - """ - - request_format: typing.Optional[RequestFormatEnum] = None - normalize_response: typing.Optional[bool] = pydantic.Field(default=None) - """ - Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/debug_mode_log.py b/src/merge/resources/hris/types/debug_mode_log.py deleted file mode 100644 index 9c7d2a3f..00000000 --- a/src/merge/resources/hris/types/debug_mode_log.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_model_log_summary import DebugModelLogSummary - - -class DebugModeLog(UncheckedBaseModel): - log_id: str - dashboard_view: str - log_summary: DebugModelLogSummary - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/debug_model_log_summary.py b/src/merge/resources/hris/types/debug_model_log_summary.py deleted file mode 100644 index d7e1d3e6..00000000 --- a/src/merge/resources/hris/types/debug_model_log_summary.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class DebugModelLogSummary(UncheckedBaseModel): - url: str - method: str - status_code: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/deduction.py b/src/merge/resources/hris/types/deduction.py deleted file mode 100644 index 22130e29..00000000 --- a/src/merge/resources/hris/types/deduction.py +++ /dev/null @@ -1,69 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Deduction(UncheckedBaseModel): - """ - # The Deduction Object - ### Description - The `Deduction` object is used to represent an array of the wages withheld from total earnings for the purpose of paying taxes. - - ### Usage Example - Fetch from the `LIST Deductions` endpoint and filter by `ID` to show all deductions. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee_payroll_run: typing.Optional[str] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The deduction's name. - """ - - employee_deduction: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of money that is withheld from an employee's gross pay by the employee. - """ - - company_deduction: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of money that is withheld on behalf of an employee by the company. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/dependent.py b/src/merge/resources/hris/types/dependent.py deleted file mode 100644 index 63957fcb..00000000 --- a/src/merge/resources/hris/types/dependent.py +++ /dev/null @@ -1,120 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .dependent_gender import DependentGender -from .dependent_relationship import DependentRelationship -from .remote_data import RemoteData - - -class Dependent(UncheckedBaseModel): - """ - # The Dependent Object - ### Description - The `Dependent` object is used to represent a dependent (e.g. child, spouse, domestic partner, etc) of an `Employee` - - ### Usage Example - Fetch from the `LIST Dependents` endpoint and filter by `ID` to show all dependents. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The dependents's first name. - """ - - middle_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The dependents's middle name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The dependents's last name. - """ - - relationship: typing.Optional[DependentRelationship] = pydantic.Field(default=None) - """ - The dependent's relationship to the employee. - - * `CHILD` - CHILD - * `SPOUSE` - SPOUSE - * `DOMESTIC_PARTNER` - DOMESTIC_PARTNER - """ - - employee: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee this person is a dependent of. - """ - - date_of_birth: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The dependent's date of birth. - """ - - gender: typing.Optional[DependentGender] = pydantic.Field(default=None) - """ - The dependent's gender. - - * `MALE` - MALE - * `FEMALE` - FEMALE - * `NON-BINARY` - NON-BINARY - * `OTHER` - OTHER - * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The dependent's phone number. - """ - - home_location: typing.Optional[str] = pydantic.Field(default=None) - """ - The dependents's home address. - """ - - is_student: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the dependent is a student - """ - - ssn: typing.Optional[str] = pydantic.Field(default=None) - """ - The dependents's social security number. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/dependent_gender.py b/src/merge/resources/hris/types/dependent_gender.py deleted file mode 100644 index 66eddd90..00000000 --- a/src/merge/resources/hris/types/dependent_gender.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .gender_enum import GenderEnum - -DependentGender = typing.Union[GenderEnum, str] diff --git a/src/merge/resources/hris/types/dependent_relationship.py b/src/merge/resources/hris/types/dependent_relationship.py deleted file mode 100644 index 7fcbcf3b..00000000 --- a/src/merge/resources/hris/types/dependent_relationship.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .relationship_enum import RelationshipEnum - -DependentRelationship = typing.Union[RelationshipEnum, str] diff --git a/src/merge/resources/hris/types/earning.py b/src/merge/resources/hris/types/earning.py deleted file mode 100644 index 6868fd57..00000000 --- a/src/merge/resources/hris/types/earning.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .earning_type import EarningType -from .remote_data import RemoteData - - -class Earning(UncheckedBaseModel): - """ - # The Earning Object - ### Description - The `Earning` object is used to represent an array of different compensations that an employee receives within specific wage categories. - - ### Usage Example - Fetch from the `LIST Earnings` endpoint and filter by `ID` to show all earnings. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee_payroll_run: typing.Optional[str] = None - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount earned. - """ - - type: typing.Optional[EarningType] = pydantic.Field(default=None) - """ - The type of earning. - - * `SALARY` - SALARY - * `REIMBURSEMENT` - REIMBURSEMENT - * `OVERTIME` - OVERTIME - * `BONUS` - BONUS - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/earning_type.py b/src/merge/resources/hris/types/earning_type.py deleted file mode 100644 index e6bdef05..00000000 --- a/src/merge/resources/hris/types/earning_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .earning_type_enum import EarningTypeEnum - -EarningType = typing.Union[EarningTypeEnum, str] diff --git a/src/merge/resources/hris/types/earning_type_enum.py b/src/merge/resources/hris/types/earning_type_enum.py deleted file mode 100644 index 2d5b6c10..00000000 --- a/src/merge/resources/hris/types/earning_type_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EarningTypeEnum(str, enum.Enum): - """ - * `SALARY` - SALARY - * `REIMBURSEMENT` - REIMBURSEMENT - * `OVERTIME` - OVERTIME - * `BONUS` - BONUS - """ - - SALARY = "SALARY" - REIMBURSEMENT = "REIMBURSEMENT" - OVERTIME = "OVERTIME" - BONUS = "BONUS" - - def visit( - self, - salary: typing.Callable[[], T_Result], - reimbursement: typing.Callable[[], T_Result], - overtime: typing.Callable[[], T_Result], - bonus: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EarningTypeEnum.SALARY: - return salary() - if self is EarningTypeEnum.REIMBURSEMENT: - return reimbursement() - if self is EarningTypeEnum.OVERTIME: - return overtime() - if self is EarningTypeEnum.BONUS: - return bonus() diff --git a/src/merge/resources/hris/types/employee.py b/src/merge/resources/hris/types/employee.py deleted file mode 100644 index 2c7d8d1c..00000000 --- a/src/merge/resources/hris/types/employee.py +++ /dev/null @@ -1,239 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .employee_company import EmployeeCompany -from .employee_employment_status import EmployeeEmploymentStatus -from .employee_ethnicity import EmployeeEthnicity -from .employee_gender import EmployeeGender -from .employee_groups_item import EmployeeGroupsItem -from .employee_home_location import EmployeeHomeLocation -from .employee_marital_status import EmployeeMaritalStatus -from .employee_pay_group import EmployeePayGroup -from .employee_team import EmployeeTeam -from .employee_work_location import EmployeeWorkLocation -from .remote_data import RemoteData - - -class Employee(UncheckedBaseModel): - """ - # The Employee Object - ### Description - The `Employee` object is used to represent any person who has been employed by a company. By default, it returns all employees. To filter for only active employees, set the `employment_status` query parameter to `ACTIVE`. - - ### Usage Example - Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's number that appears in the third-party integration's UI. - """ - - company: typing.Optional[EmployeeCompany] = pydantic.Field(default=None) - """ - The ID of the employee's company. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's last name. - """ - - preferred_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's preferred first name. - """ - - display_full_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's username that appears in the remote UI. - """ - - groups: typing.Optional[typing.List[typing.Optional[EmployeeGroupsItem]]] = None - work_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's work email. - """ - - personal_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's personal email. - """ - - mobile_phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's mobile phone number. - """ - - employments: typing.Optional[typing.List[typing.Optional["EmployeeEmploymentsItem"]]] = pydantic.Field(default=None) - """ - Array of `Employment` IDs for this Employee. - """ - - home_location: typing.Optional[EmployeeHomeLocation] = pydantic.Field(default=None) - """ - The employee's home address. - """ - - work_location: typing.Optional[EmployeeWorkLocation] = pydantic.Field(default=None) - """ - The employee's work address. - """ - - manager: typing.Optional["EmployeeManager"] = pydantic.Field(default=None) - """ - The employee ID of the employee's manager. - """ - - team: typing.Optional[EmployeeTeam] = pydantic.Field(default=None) - """ - The employee's team. - """ - - pay_group: typing.Optional[EmployeePayGroup] = pydantic.Field(default=None) - """ - The employee's pay group - """ - - ssn: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's social security number. - """ - - gender: typing.Optional[EmployeeGender] = pydantic.Field(default=None) - """ - The employee's gender. - - * `MALE` - MALE - * `FEMALE` - FEMALE - * `NON-BINARY` - NON-BINARY - * `OTHER` - OTHER - * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - """ - - ethnicity: typing.Optional[EmployeeEthnicity] = pydantic.Field(default=None) - """ - The employee's ethnicity. - - * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * `WHITE` - WHITE - * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - """ - - marital_status: typing.Optional[EmployeeMaritalStatus] = pydantic.Field(default=None) - """ - The employee's filing status as related to marital status. - - * `SINGLE` - SINGLE - * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - """ - - date_of_birth: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The employee's date of birth. - """ - - hire_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field. - """ - - start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date that the employee started working. If an employee was rehired, the most recent start date will be returned. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's employee was created. - """ - - employment_status: typing.Optional[EmployeeEmploymentStatus] = pydantic.Field(default=None) - """ - The employment status of the employee. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - """ - - termination_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The employee's termination date. - """ - - avatar: typing.Optional[str] = pydantic.Field(default=None) - """ - The URL of the employee's avatar image. - """ - - custom_fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Custom fields configured for a given model. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 -from .employee_employments_item import EmployeeEmploymentsItem # noqa: E402, F401, I001 -from .employee_manager import EmployeeManager # noqa: E402, F401, I001 - -update_forward_refs(Employee) diff --git a/src/merge/resources/hris/types/employee_company.py b/src/merge/resources/hris/types/employee_company.py deleted file mode 100644 index ff02a5e3..00000000 --- a/src/merge/resources/hris/types/employee_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company import Company - -EmployeeCompany = typing.Union[str, Company] diff --git a/src/merge/resources/hris/types/employee_employment_status.py b/src/merge/resources/hris/types/employee_employment_status.py deleted file mode 100644 index a501c497..00000000 --- a/src/merge/resources/hris/types/employee_employment_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employment_status_enum import EmploymentStatusEnum - -EmployeeEmploymentStatus = typing.Union[EmploymentStatusEnum, str] diff --git a/src/merge/resources/hris/types/employee_employments_item.py b/src/merge/resources/hris/types/employee_employments_item.py deleted file mode 100644 index eecfd7fa..00000000 --- a/src/merge/resources/hris/types/employee_employments_item.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .employment import Employment -EmployeeEmploymentsItem = typing.Union[str, "Employment"] diff --git a/src/merge/resources/hris/types/employee_ethnicity.py b/src/merge/resources/hris/types/employee_ethnicity.py deleted file mode 100644 index 1542c26b..00000000 --- a/src/merge/resources/hris/types/employee_ethnicity.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ethnicity_enum import EthnicityEnum - -EmployeeEthnicity = typing.Union[EthnicityEnum, str] diff --git a/src/merge/resources/hris/types/employee_gender.py b/src/merge/resources/hris/types/employee_gender.py deleted file mode 100644 index e952a266..00000000 --- a/src/merge/resources/hris/types/employee_gender.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .gender_enum import GenderEnum - -EmployeeGender = typing.Union[GenderEnum, str] diff --git a/src/merge/resources/hris/types/employee_groups_item.py b/src/merge/resources/hris/types/employee_groups_item.py deleted file mode 100644 index c593a390..00000000 --- a/src/merge/resources/hris/types/employee_groups_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .group import Group - -EmployeeGroupsItem = typing.Union[str, Group] diff --git a/src/merge/resources/hris/types/employee_home_location.py b/src/merge/resources/hris/types/employee_home_location.py deleted file mode 100644 index 47c456b9..00000000 --- a/src/merge/resources/hris/types/employee_home_location.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .location import Location - -EmployeeHomeLocation = typing.Union[str, Location] diff --git a/src/merge/resources/hris/types/employee_manager.py b/src/merge/resources/hris/types/employee_manager.py deleted file mode 100644 index d150513c..00000000 --- a/src/merge/resources/hris/types/employee_manager.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .employee import Employee -EmployeeManager = typing.Union[str, "Employee"] diff --git a/src/merge/resources/hris/types/employee_marital_status.py b/src/merge/resources/hris/types/employee_marital_status.py deleted file mode 100644 index 4224f2f8..00000000 --- a/src/merge/resources/hris/types/employee_marital_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .marital_status_enum import MaritalStatusEnum - -EmployeeMaritalStatus = typing.Union[MaritalStatusEnum, str] diff --git a/src/merge/resources/hris/types/employee_pay_group.py b/src/merge/resources/hris/types/employee_pay_group.py deleted file mode 100644 index bbd48716..00000000 --- a/src/merge/resources/hris/types/employee_pay_group.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .pay_group import PayGroup - -EmployeePayGroup = typing.Union[str, PayGroup] diff --git a/src/merge/resources/hris/types/employee_payroll_run.py b/src/merge/resources/hris/types/employee_payroll_run.py deleted file mode 100644 index b93496a5..00000000 --- a/src/merge/resources/hris/types/employee_payroll_run.py +++ /dev/null @@ -1,105 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .deduction import Deduction -from .earning import Earning -from .employee_payroll_run_employee import EmployeePayrollRunEmployee -from .employee_payroll_run_payroll_run import EmployeePayrollRunPayrollRun -from .remote_data import RemoteData -from .tax import Tax - - -class EmployeePayrollRun(UncheckedBaseModel): - """ - # The EmployeePayrollRun Object - ### Description - The `EmployeePayrollRun` object is used to represent an employee's pay statement for a specific payroll run. - - ### Usage Example - Fetch from the `LIST EmployeePayrollRun` endpoint and filter by `ID` to show all employee payroll runs. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee: typing.Optional[EmployeePayrollRunEmployee] = pydantic.Field(default=None) - """ - The employee whose payroll is being run. - """ - - payroll_run: typing.Optional[EmployeePayrollRunPayrollRun] = pydantic.Field(default=None) - """ - The payroll being run. - """ - - gross_pay: typing.Optional[float] = pydantic.Field(default=None) - """ - The total earnings throughout a given period for an employee before any deductions are made. - """ - - net_pay: typing.Optional[float] = pydantic.Field(default=None) - """ - The take-home pay throughout a given period for an employee after deductions are made. - """ - - start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the payroll run started. - """ - - end_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the payroll run ended. - """ - - check_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the payroll run was checked. - """ - - earnings: typing.Optional[typing.List[Earning]] = None - deductions: typing.Optional[typing.List[Deduction]] = None - taxes: typing.Optional[typing.List[Tax]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(EmployeePayrollRun) diff --git a/src/merge/resources/hris/types/employee_payroll_run_employee.py b/src/merge/resources/hris/types/employee_payroll_run_employee.py deleted file mode 100644 index 81b936f7..00000000 --- a/src/merge/resources/hris/types/employee_payroll_run_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -EmployeePayrollRunEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/employee_payroll_run_payroll_run.py b/src/merge/resources/hris/types/employee_payroll_run_payroll_run.py deleted file mode 100644 index df420988..00000000 --- a/src/merge/resources/hris/types/employee_payroll_run_payroll_run.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .payroll_run import PayrollRun - -EmployeePayrollRunPayrollRun = typing.Union[str, PayrollRun] diff --git a/src/merge/resources/hris/types/employee_request.py b/src/merge/resources/hris/types/employee_request.py deleted file mode 100644 index 47c055f1..00000000 --- a/src/merge/resources/hris/types/employee_request.py +++ /dev/null @@ -1,210 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .employee_request_company import EmployeeRequestCompany -from .employee_request_employment_status import EmployeeRequestEmploymentStatus -from .employee_request_employments_item import EmployeeRequestEmploymentsItem -from .employee_request_ethnicity import EmployeeRequestEthnicity -from .employee_request_gender import EmployeeRequestGender -from .employee_request_groups_item import EmployeeRequestGroupsItem -from .employee_request_home_location import EmployeeRequestHomeLocation -from .employee_request_manager import EmployeeRequestManager -from .employee_request_marital_status import EmployeeRequestMaritalStatus -from .employee_request_pay_group import EmployeeRequestPayGroup -from .employee_request_team import EmployeeRequestTeam -from .employee_request_work_location import EmployeeRequestWorkLocation - - -class EmployeeRequest(UncheckedBaseModel): - """ - # The Employee Object - ### Description - The `Employee` object is used to represent any person who has been employed by a company. By default, it returns all employees. To filter for only active employees, set the `employment_status` query parameter to `ACTIVE`. - - ### Usage Example - Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees. - """ - - employee_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's number that appears in the third-party integration's UI. - """ - - company: typing.Optional[EmployeeRequestCompany] = pydantic.Field(default=None) - """ - The ID of the employee's company. - """ - - first_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's first name. - """ - - last_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's last name. - """ - - preferred_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's preferred first name. - """ - - display_full_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. - """ - - username: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's username that appears in the remote UI. - """ - - groups: typing.Optional[typing.List[typing.Optional[EmployeeRequestGroupsItem]]] = None - work_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's work email. - """ - - personal_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's personal email. - """ - - mobile_phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's mobile phone number. - """ - - employments: typing.Optional[typing.List[typing.Optional[EmployeeRequestEmploymentsItem]]] = pydantic.Field( - default=None - ) - """ - Array of `Employment` IDs for this Employee. - """ - - home_location: typing.Optional[EmployeeRequestHomeLocation] = pydantic.Field(default=None) - """ - The employee's home address. - """ - - work_location: typing.Optional[EmployeeRequestWorkLocation] = pydantic.Field(default=None) - """ - The employee's work address. - """ - - manager: typing.Optional[EmployeeRequestManager] = pydantic.Field(default=None) - """ - The employee ID of the employee's manager. - """ - - team: typing.Optional[EmployeeRequestTeam] = pydantic.Field(default=None) - """ - The employee's team. - """ - - pay_group: typing.Optional[EmployeeRequestPayGroup] = pydantic.Field(default=None) - """ - The employee's pay group - """ - - ssn: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee's social security number. - """ - - gender: typing.Optional[EmployeeRequestGender] = pydantic.Field(default=None) - """ - The employee's gender. - - * `MALE` - MALE - * `FEMALE` - FEMALE - * `NON-BINARY` - NON-BINARY - * `OTHER` - OTHER - * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - """ - - ethnicity: typing.Optional[EmployeeRequestEthnicity] = pydantic.Field(default=None) - """ - The employee's ethnicity. - - * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * `WHITE` - WHITE - * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - """ - - marital_status: typing.Optional[EmployeeRequestMaritalStatus] = pydantic.Field(default=None) - """ - The employee's filing status as related to marital status. - - * `SINGLE` - SINGLE - * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - """ - - date_of_birth: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The employee's date of birth. - """ - - hire_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field. - """ - - start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date that the employee started working. If an employee was rehired, the most recent start date will be returned. - """ - - employment_status: typing.Optional[EmployeeRequestEmploymentStatus] = pydantic.Field(default=None) - """ - The employment status of the employee. - - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - """ - - termination_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The employee's termination date. - """ - - avatar: typing.Optional[str] = pydantic.Field(default=None) - """ - The URL of the employee's avatar image. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(EmployeeRequest) diff --git a/src/merge/resources/hris/types/employee_request_company.py b/src/merge/resources/hris/types/employee_request_company.py deleted file mode 100644 index e17c35a2..00000000 --- a/src/merge/resources/hris/types/employee_request_company.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .company import Company - -EmployeeRequestCompany = typing.Union[str, Company] diff --git a/src/merge/resources/hris/types/employee_request_employment_status.py b/src/merge/resources/hris/types/employee_request_employment_status.py deleted file mode 100644 index f4c180c5..00000000 --- a/src/merge/resources/hris/types/employee_request_employment_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employment_status_enum import EmploymentStatusEnum - -EmployeeRequestEmploymentStatus = typing.Union[EmploymentStatusEnum, str] diff --git a/src/merge/resources/hris/types/employee_request_employments_item.py b/src/merge/resources/hris/types/employee_request_employments_item.py deleted file mode 100644 index cc4eee8a..00000000 --- a/src/merge/resources/hris/types/employee_request_employments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employment import Employment - -EmployeeRequestEmploymentsItem = typing.Union[str, Employment] diff --git a/src/merge/resources/hris/types/employee_request_ethnicity.py b/src/merge/resources/hris/types/employee_request_ethnicity.py deleted file mode 100644 index 8816900a..00000000 --- a/src/merge/resources/hris/types/employee_request_ethnicity.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ethnicity_enum import EthnicityEnum - -EmployeeRequestEthnicity = typing.Union[EthnicityEnum, str] diff --git a/src/merge/resources/hris/types/employee_request_gender.py b/src/merge/resources/hris/types/employee_request_gender.py deleted file mode 100644 index b6199f45..00000000 --- a/src/merge/resources/hris/types/employee_request_gender.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .gender_enum import GenderEnum - -EmployeeRequestGender = typing.Union[GenderEnum, str] diff --git a/src/merge/resources/hris/types/employee_request_groups_item.py b/src/merge/resources/hris/types/employee_request_groups_item.py deleted file mode 100644 index 6507e912..00000000 --- a/src/merge/resources/hris/types/employee_request_groups_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .group import Group - -EmployeeRequestGroupsItem = typing.Union[str, Group] diff --git a/src/merge/resources/hris/types/employee_request_home_location.py b/src/merge/resources/hris/types/employee_request_home_location.py deleted file mode 100644 index ac679a4e..00000000 --- a/src/merge/resources/hris/types/employee_request_home_location.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .location import Location - -EmployeeRequestHomeLocation = typing.Union[str, Location] diff --git a/src/merge/resources/hris/types/employee_request_manager.py b/src/merge/resources/hris/types/employee_request_manager.py deleted file mode 100644 index 7951bebb..00000000 --- a/src/merge/resources/hris/types/employee_request_manager.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -EmployeeRequestManager = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/employee_request_marital_status.py b/src/merge/resources/hris/types/employee_request_marital_status.py deleted file mode 100644 index 726b8287..00000000 --- a/src/merge/resources/hris/types/employee_request_marital_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .marital_status_enum import MaritalStatusEnum - -EmployeeRequestMaritalStatus = typing.Union[MaritalStatusEnum, str] diff --git a/src/merge/resources/hris/types/employee_request_pay_group.py b/src/merge/resources/hris/types/employee_request_pay_group.py deleted file mode 100644 index 383335c7..00000000 --- a/src/merge/resources/hris/types/employee_request_pay_group.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .pay_group import PayGroup - -EmployeeRequestPayGroup = typing.Union[str, PayGroup] diff --git a/src/merge/resources/hris/types/employee_request_team.py b/src/merge/resources/hris/types/employee_request_team.py deleted file mode 100644 index a08d6d41..00000000 --- a/src/merge/resources/hris/types/employee_request_team.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .team import Team - -EmployeeRequestTeam = typing.Union[str, Team] diff --git a/src/merge/resources/hris/types/employee_request_work_location.py b/src/merge/resources/hris/types/employee_request_work_location.py deleted file mode 100644 index 118c99b5..00000000 --- a/src/merge/resources/hris/types/employee_request_work_location.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .location import Location - -EmployeeRequestWorkLocation = typing.Union[str, Location] diff --git a/src/merge/resources/hris/types/employee_response.py b/src/merge/resources/hris/types/employee_response.py deleted file mode 100644 index d703cc1c..00000000 --- a/src/merge/resources/hris/types/employee_response.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class EmployeeResponse(UncheckedBaseModel): - model: "Employee" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(EmployeeResponse) diff --git a/src/merge/resources/hris/types/employee_team.py b/src/merge/resources/hris/types/employee_team.py deleted file mode 100644 index 5e623a95..00000000 --- a/src/merge/resources/hris/types/employee_team.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .team import Team - -EmployeeTeam = typing.Union[str, Team] diff --git a/src/merge/resources/hris/types/employee_work_location.py b/src/merge/resources/hris/types/employee_work_location.py deleted file mode 100644 index 9a38a1d8..00000000 --- a/src/merge/resources/hris/types/employee_work_location.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .location import Location - -EmployeeWorkLocation = typing.Union[str, Location] diff --git a/src/merge/resources/hris/types/employer_benefit.py b/src/merge/resources/hris/types/employer_benefit.py deleted file mode 100644 index f0a56f45..00000000 --- a/src/merge/resources/hris/types/employer_benefit.py +++ /dev/null @@ -1,80 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .employer_benefit_benefit_plan_type import EmployerBenefitBenefitPlanType -from .remote_data import RemoteData - - -class EmployerBenefit(UncheckedBaseModel): - """ - # The EmployerBenefit Object - ### Description - The `Employer Benefit` object is used to represent a benefit plan offered by a company. - - ### Usage Example - Fetch from the `LIST EmployerBenefits` endpoint and filter by `ID` to show all EmployerBenefits. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - benefit_plan_type: typing.Optional[EmployerBenefitBenefitPlanType] = pydantic.Field(default=None) - """ - The type of benefit plan. - - * `MEDICAL` - MEDICAL - * `HEALTH_SAVINGS` - HEALTH_SAVINGS - * `INSURANCE` - INSURANCE - * `RETIREMENT` - RETIREMENT - * `OTHER` - OTHER - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The employer benefit's name - typically the carrier or network name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The employer benefit's description. - """ - - deduction_code: typing.Optional[str] = pydantic.Field(default=None) - """ - The employer benefit's deduction code. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/employer_benefit_benefit_plan_type.py b/src/merge/resources/hris/types/employer_benefit_benefit_plan_type.py deleted file mode 100644 index c2eae35a..00000000 --- a/src/merge/resources/hris/types/employer_benefit_benefit_plan_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .benefit_plan_type_enum import BenefitPlanTypeEnum - -EmployerBenefitBenefitPlanType = typing.Union[BenefitPlanTypeEnum, str] diff --git a/src/merge/resources/hris/types/employment.py b/src/merge/resources/hris/types/employment.py deleted file mode 100644 index cb2158ff..00000000 --- a/src/merge/resources/hris/types/employment.py +++ /dev/null @@ -1,458 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .employment_employment_type import EmploymentEmploymentType -from .employment_flsa_status import EmploymentFlsaStatus -from .employment_pay_currency import EmploymentPayCurrency -from .employment_pay_frequency import EmploymentPayFrequency -from .employment_pay_group import EmploymentPayGroup -from .employment_pay_period import EmploymentPayPeriod -from .remote_data import RemoteData - - -class Employment(UncheckedBaseModel): - """ - # The Employment Object - ### Description - The `Employment` object is used to represent a job position at a company. - - If an integration supports historical tracking of employments, it will be reflected in the data. If not, a new `Employment` object will be created whenever there is a change in job title or pay. The `effective_date` field should be used to order `Employment` objects, with the most recent date corresponding to the latest employment record for an employee. - - ### Usage Example - Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee: typing.Optional["EmploymentEmployee"] = pydantic.Field(default=None) - """ - The employee holding this position. - """ - - job_title: typing.Optional[str] = pydantic.Field(default=None) - """ - The position's title. - """ - - pay_rate: typing.Optional[float] = pydantic.Field(default=None) - """ - The position's pay rate. - """ - - pay_period: typing.Optional[EmploymentPayPeriod] = pydantic.Field(default=None) - """ - The time period this pay rate encompasses. - - * `HOUR` - HOUR - * `DAY` - DAY - * `WEEK` - WEEK - * `EVERY_TWO_WEEKS` - EVERY_TWO_WEEKS - * `SEMIMONTHLY` - SEMIMONTHLY - * `MONTH` - MONTH - * `QUARTER` - QUARTER - * `EVERY_SIX_MONTHS` - EVERY_SIX_MONTHS - * `YEAR` - YEAR - """ - - pay_frequency: typing.Optional[EmploymentPayFrequency] = pydantic.Field(default=None) - """ - The position's pay frequency. - - * `WEEKLY` - WEEKLY - * `BIWEEKLY` - BIWEEKLY - * `MONTHLY` - MONTHLY - * `QUARTERLY` - QUARTERLY - * `SEMIANNUALLY` - SEMIANNUALLY - * `ANNUALLY` - ANNUALLY - * `THIRTEEN-MONTHLY` - THIRTEEN-MONTHLY - * `PRO_RATA` - PRO_RATA - * `SEMIMONTHLY` - SEMIMONTHLY - """ - - pay_currency: typing.Optional[EmploymentPayCurrency] = pydantic.Field(default=None) - """ - The position's currency code. - - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - pay_group: typing.Optional[EmploymentPayGroup] = pydantic.Field(default=None) - """ - The employment's pay group - """ - - flsa_status: typing.Optional[EmploymentFlsaStatus] = pydantic.Field(default=None) - """ - The position's FLSA status. - - * `EXEMPT` - EXEMPT - * `SALARIED_NONEXEMPT` - SALARIED_NONEXEMPT - * `NONEXEMPT` - NONEXEMPT - * `OWNER` - OWNER - """ - - effective_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The position's effective date. - """ - - employment_type: typing.Optional[EmploymentEmploymentType] = pydantic.Field(default=None) - """ - The position's type of employment. - - * `FULL_TIME` - FULL_TIME - * `PART_TIME` - PART_TIME - * `INTERN` - INTERN - * `CONTRACTOR` - CONTRACTOR - * `FREELANCE` - FREELANCE - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 -from .employment_employee import EmploymentEmployee # noqa: E402, F401, I001 - -update_forward_refs(Employment) diff --git a/src/merge/resources/hris/types/employment_employee.py b/src/merge/resources/hris/types/employment_employee.py deleted file mode 100644 index 94306341..00000000 --- a/src/merge/resources/hris/types/employment_employee.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .employee import Employee -EmploymentEmployee = typing.Union[str, "Employee"] diff --git a/src/merge/resources/hris/types/employment_employment_type.py b/src/merge/resources/hris/types/employment_employment_type.py deleted file mode 100644 index da342b88..00000000 --- a/src/merge/resources/hris/types/employment_employment_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employment_type_enum import EmploymentTypeEnum - -EmploymentEmploymentType = typing.Union[EmploymentTypeEnum, str] diff --git a/src/merge/resources/hris/types/employment_flsa_status.py b/src/merge/resources/hris/types/employment_flsa_status.py deleted file mode 100644 index 8a06740b..00000000 --- a/src/merge/resources/hris/types/employment_flsa_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .flsa_status_enum import FlsaStatusEnum - -EmploymentFlsaStatus = typing.Union[FlsaStatusEnum, str] diff --git a/src/merge/resources/hris/types/employment_pay_currency.py b/src/merge/resources/hris/types/employment_pay_currency.py deleted file mode 100644 index 83fa04b0..00000000 --- a/src/merge/resources/hris/types/employment_pay_currency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .pay_currency_enum import PayCurrencyEnum - -EmploymentPayCurrency = typing.Union[PayCurrencyEnum, str] diff --git a/src/merge/resources/hris/types/employment_pay_frequency.py b/src/merge/resources/hris/types/employment_pay_frequency.py deleted file mode 100644 index 93d7d2a5..00000000 --- a/src/merge/resources/hris/types/employment_pay_frequency.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .pay_frequency_enum import PayFrequencyEnum - -EmploymentPayFrequency = typing.Union[PayFrequencyEnum, str] diff --git a/src/merge/resources/hris/types/employment_pay_group.py b/src/merge/resources/hris/types/employment_pay_group.py deleted file mode 100644 index d2259900..00000000 --- a/src/merge/resources/hris/types/employment_pay_group.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .pay_group import PayGroup - -EmploymentPayGroup = typing.Union[str, PayGroup] diff --git a/src/merge/resources/hris/types/employment_pay_period.py b/src/merge/resources/hris/types/employment_pay_period.py deleted file mode 100644 index 96945814..00000000 --- a/src/merge/resources/hris/types/employment_pay_period.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .pay_period_enum import PayPeriodEnum - -EmploymentPayPeriod = typing.Union[PayPeriodEnum, str] diff --git a/src/merge/resources/hris/types/employment_status_enum.py b/src/merge/resources/hris/types/employment_status_enum.py deleted file mode 100644 index 6708c445..00000000 --- a/src/merge/resources/hris/types/employment_status_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentStatusEnum(str, enum.Enum): - """ - * `ACTIVE` - ACTIVE - * `PENDING` - PENDING - * `INACTIVE` - INACTIVE - """ - - ACTIVE = "ACTIVE" - PENDING = "PENDING" - INACTIVE = "INACTIVE" - - def visit( - self, - active: typing.Callable[[], T_Result], - pending: typing.Callable[[], T_Result], - inactive: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentStatusEnum.ACTIVE: - return active() - if self is EmploymentStatusEnum.PENDING: - return pending() - if self is EmploymentStatusEnum.INACTIVE: - return inactive() diff --git a/src/merge/resources/hris/types/employment_type_enum.py b/src/merge/resources/hris/types/employment_type_enum.py deleted file mode 100644 index 06a3cb12..00000000 --- a/src/merge/resources/hris/types/employment_type_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EmploymentTypeEnum(str, enum.Enum): - """ - * `FULL_TIME` - FULL_TIME - * `PART_TIME` - PART_TIME - * `INTERN` - INTERN - * `CONTRACTOR` - CONTRACTOR - * `FREELANCE` - FREELANCE - """ - - FULL_TIME = "FULL_TIME" - PART_TIME = "PART_TIME" - INTERN = "INTERN" - CONTRACTOR = "CONTRACTOR" - FREELANCE = "FREELANCE" - - def visit( - self, - full_time: typing.Callable[[], T_Result], - part_time: typing.Callable[[], T_Result], - intern: typing.Callable[[], T_Result], - contractor: typing.Callable[[], T_Result], - freelance: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EmploymentTypeEnum.FULL_TIME: - return full_time() - if self is EmploymentTypeEnum.PART_TIME: - return part_time() - if self is EmploymentTypeEnum.INTERN: - return intern() - if self is EmploymentTypeEnum.CONTRACTOR: - return contractor() - if self is EmploymentTypeEnum.FREELANCE: - return freelance() diff --git a/src/merge/resources/hris/types/enabled_actions_enum.py b/src/merge/resources/hris/types/enabled_actions_enum.py deleted file mode 100644 index 29cf9839..00000000 --- a/src/merge/resources/hris/types/enabled_actions_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EnabledActionsEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - """ - - READ = "READ" - WRITE = "WRITE" - - def visit(self, read: typing.Callable[[], T_Result], write: typing.Callable[[], T_Result]) -> T_Result: - if self is EnabledActionsEnum.READ: - return read() - if self is EnabledActionsEnum.WRITE: - return write() diff --git a/src/merge/resources/hris/types/encoding_enum.py b/src/merge/resources/hris/types/encoding_enum.py deleted file mode 100644 index 7454647e..00000000 --- a/src/merge/resources/hris/types/encoding_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EncodingEnum(str, enum.Enum): - """ - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - RAW = "RAW" - BASE_64 = "BASE64" - GZIP_BASE_64 = "GZIP_BASE64" - - def visit( - self, - raw: typing.Callable[[], T_Result], - base_64: typing.Callable[[], T_Result], - gzip_base_64: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EncodingEnum.RAW: - return raw() - if self is EncodingEnum.BASE_64: - return base_64() - if self is EncodingEnum.GZIP_BASE_64: - return gzip_base_64() diff --git a/src/merge/resources/hris/types/error_validation_problem.py b/src/merge/resources/hris/types/error_validation_problem.py deleted file mode 100644 index 04f82d05..00000000 --- a/src/merge/resources/hris/types/error_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class ErrorValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/ethnicity_enum.py b/src/merge/resources/hris/types/ethnicity_enum.py deleted file mode 100644 index 243861ce..00000000 --- a/src/merge/resources/hris/types/ethnicity_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EthnicityEnum(str, enum.Enum): - """ - * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * `WHITE` - WHITE - * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - """ - - AMERICAN_INDIAN_OR_ALASKA_NATIVE = "AMERICAN_INDIAN_OR_ALASKA_NATIVE" - ASIAN_OR_INDIAN_SUBCONTINENT = "ASIAN_OR_INDIAN_SUBCONTINENT" - BLACK_OR_AFRICAN_AMERICAN = "BLACK_OR_AFRICAN_AMERICAN" - HISPANIC_OR_LATINO = "HISPANIC_OR_LATINO" - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER = "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER" - TWO_OR_MORE_RACES = "TWO_OR_MORE_RACES" - WHITE = "WHITE" - PREFER_NOT_TO_DISCLOSE = "PREFER_NOT_TO_DISCLOSE" - - def visit( - self, - american_indian_or_alaska_native: typing.Callable[[], T_Result], - asian_or_indian_subcontinent: typing.Callable[[], T_Result], - black_or_african_american: typing.Callable[[], T_Result], - hispanic_or_latino: typing.Callable[[], T_Result], - native_hawaiian_or_other_pacific_islander: typing.Callable[[], T_Result], - two_or_more_races: typing.Callable[[], T_Result], - white: typing.Callable[[], T_Result], - prefer_not_to_disclose: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EthnicityEnum.AMERICAN_INDIAN_OR_ALASKA_NATIVE: - return american_indian_or_alaska_native() - if self is EthnicityEnum.ASIAN_OR_INDIAN_SUBCONTINENT: - return asian_or_indian_subcontinent() - if self is EthnicityEnum.BLACK_OR_AFRICAN_AMERICAN: - return black_or_african_american() - if self is EthnicityEnum.HISPANIC_OR_LATINO: - return hispanic_or_latino() - if self is EthnicityEnum.NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER: - return native_hawaiian_or_other_pacific_islander() - if self is EthnicityEnum.TWO_OR_MORE_RACES: - return two_or_more_races() - if self is EthnicityEnum.WHITE: - return white() - if self is EthnicityEnum.PREFER_NOT_TO_DISCLOSE: - return prefer_not_to_disclose() diff --git a/src/merge/resources/hris/types/event_type_enum.py b/src/merge/resources/hris/types/event_type_enum.py deleted file mode 100644 index 537cea3f..00000000 --- a/src/merge/resources/hris/types/event_type_enum.py +++ /dev/null @@ -1,231 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EventTypeEnum(str, enum.Enum): - """ - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY" - DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY" - CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" - DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" - REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" - REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" - INVITED_USER = "INVITED_USER" - TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" - TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" - DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT" - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT" - CREATED_DESTINATION = "CREATED_DESTINATION" - DELETED_DESTINATION = "DELETED_DESTINATION" - CHANGED_DESTINATION = "CHANGED_DESTINATION" - CHANGED_SCOPES = "CHANGED_SCOPES" - CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION" - CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS" - ENABLED_INTEGRATION = "ENABLED_INTEGRATION" - DISABLED_INTEGRATION = "DISABLED_INTEGRATION" - ENABLED_CATEGORY = "ENABLED_CATEGORY" - DISABLED_CATEGORY = "DISABLED_CATEGORY" - CHANGED_PASSWORD = "CHANGED_PASSWORD" - RESET_PASSWORD = "RESET_PASSWORD" - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING" - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING" - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING" - DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING" - DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC" - MUTED_ISSUE = "MUTED_ISSUE" - GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK" - ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK" - DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK" - MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED" - END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED" - - def visit( - self, - created_remote_production_api_key: typing.Callable[[], T_Result], - deleted_remote_production_api_key: typing.Callable[[], T_Result], - created_test_api_key: typing.Callable[[], T_Result], - deleted_test_api_key: typing.Callable[[], T_Result], - regenerated_production_api_key: typing.Callable[[], T_Result], - regenerated_webhook_signature: typing.Callable[[], T_Result], - invited_user: typing.Callable[[], T_Result], - two_factor_auth_enabled: typing.Callable[[], T_Result], - two_factor_auth_disabled: typing.Callable[[], T_Result], - deleted_linked_account: typing.Callable[[], T_Result], - deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result], - created_destination: typing.Callable[[], T_Result], - deleted_destination: typing.Callable[[], T_Result], - changed_destination: typing.Callable[[], T_Result], - changed_scopes: typing.Callable[[], T_Result], - changed_personal_information: typing.Callable[[], T_Result], - changed_organization_settings: typing.Callable[[], T_Result], - enabled_integration: typing.Callable[[], T_Result], - disabled_integration: typing.Callable[[], T_Result], - enabled_category: typing.Callable[[], T_Result], - disabled_category: typing.Callable[[], T_Result], - changed_password: typing.Callable[[], T_Result], - reset_password: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - created_integration_wide_field_mapping: typing.Callable[[], T_Result], - created_linked_account_field_mapping: typing.Callable[[], T_Result], - changed_integration_wide_field_mapping: typing.Callable[[], T_Result], - changed_linked_account_field_mapping: typing.Callable[[], T_Result], - deleted_integration_wide_field_mapping: typing.Callable[[], T_Result], - deleted_linked_account_field_mapping: typing.Callable[[], T_Result], - created_linked_account_common_model_override: typing.Callable[[], T_Result], - changed_linked_account_common_model_override: typing.Callable[[], T_Result], - deleted_linked_account_common_model_override: typing.Callable[[], T_Result], - forced_linked_account_resync: typing.Callable[[], T_Result], - muted_issue: typing.Callable[[], T_Result], - generated_magic_link: typing.Callable[[], T_Result], - enabled_merge_webhook: typing.Callable[[], T_Result], - disabled_merge_webhook: typing.Callable[[], T_Result], - merge_webhook_target_changed: typing.Callable[[], T_Result], - end_user_credentials_accessed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY: - return created_remote_production_api_key() - if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY: - return deleted_remote_production_api_key() - if self is EventTypeEnum.CREATED_TEST_API_KEY: - return created_test_api_key() - if self is EventTypeEnum.DELETED_TEST_API_KEY: - return deleted_test_api_key() - if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY: - return regenerated_production_api_key() - if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE: - return regenerated_webhook_signature() - if self is EventTypeEnum.INVITED_USER: - return invited_user() - if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED: - return two_factor_auth_enabled() - if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED: - return two_factor_auth_disabled() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT: - return deleted_linked_account() - if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT: - return deleted_all_common_models_for_linked_account() - if self is EventTypeEnum.CREATED_DESTINATION: - return created_destination() - if self is EventTypeEnum.DELETED_DESTINATION: - return deleted_destination() - if self is EventTypeEnum.CHANGED_DESTINATION: - return changed_destination() - if self is EventTypeEnum.CHANGED_SCOPES: - return changed_scopes() - if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION: - return changed_personal_information() - if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS: - return changed_organization_settings() - if self is EventTypeEnum.ENABLED_INTEGRATION: - return enabled_integration() - if self is EventTypeEnum.DISABLED_INTEGRATION: - return disabled_integration() - if self is EventTypeEnum.ENABLED_CATEGORY: - return enabled_category() - if self is EventTypeEnum.DISABLED_CATEGORY: - return disabled_category() - if self is EventTypeEnum.CHANGED_PASSWORD: - return changed_password() - if self is EventTypeEnum.RESET_PASSWORD: - return reset_password() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return enabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return enabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return disabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return disabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING: - return created_integration_wide_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING: - return created_linked_account_field_mapping() - if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING: - return changed_integration_wide_field_mapping() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING: - return changed_linked_account_field_mapping() - if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING: - return deleted_integration_wide_field_mapping() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING: - return deleted_linked_account_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return created_linked_account_common_model_override() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return changed_linked_account_common_model_override() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return deleted_linked_account_common_model_override() - if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC: - return forced_linked_account_resync() - if self is EventTypeEnum.MUTED_ISSUE: - return muted_issue() - if self is EventTypeEnum.GENERATED_MAGIC_LINK: - return generated_magic_link() - if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK: - return enabled_merge_webhook() - if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK: - return disabled_merge_webhook() - if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED: - return merge_webhook_target_changed() - if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED: - return end_user_credentials_accessed() diff --git a/src/merge/resources/hris/types/external_target_field_api.py b/src/merge/resources/hris/types/external_target_field_api.py deleted file mode 100644 index c0fea1eb..00000000 --- a/src/merge/resources/hris/types/external_target_field_api.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ExternalTargetFieldApi(UncheckedBaseModel): - name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_mapped: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/external_target_field_api_response.py b/src/merge/resources/hris/types/external_target_field_api_response.py deleted file mode 100644 index 33c62878..00000000 --- a/src/merge/resources/hris/types/external_target_field_api_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .external_target_field_api import ExternalTargetFieldApi - - -class ExternalTargetFieldApiResponse(UncheckedBaseModel): - benefit: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Benefit", default=None) - employer_benefit: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="EmployerBenefit", default=None - ) - company: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Company", default=None) - employee_payroll_run: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="EmployeePayrollRun", default=None - ) - employee: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Employee", default=None) - employment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Employment", default=None) - location: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Location", default=None) - payroll_run: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="PayrollRun", default=None) - team: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Team", default=None) - time_off: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="TimeOff", default=None) - time_off_balance: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="TimeOffBalance", default=None - ) - bank_info: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="BankInfo", default=None) - pay_group: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="PayGroup", default=None) - group: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Group", default=None) - dependent: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Dependent", default=None) - timesheet_entry: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field( - alias="TimesheetEntry", default=None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_mapping_api_instance.py b/src/merge/resources/hris/types/field_mapping_api_instance.py deleted file mode 100644 index 0d257dcb..00000000 --- a/src/merge/resources/hris/types/field_mapping_api_instance.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField -from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - - -class FieldMappingApiInstance(UncheckedBaseModel): - id: typing.Optional[str] = None - is_integration_wide: typing.Optional[bool] = None - target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None - remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None - jmes_path: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_mapping_api_instance_remote_field.py b/src/merge/resources/hris/types/field_mapping_api_instance_remote_field.py deleted file mode 100644 index 578a2b10..00000000 --- a/src/merge/resources/hris/types/field_mapping_api_instance_remote_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, -) - - -class FieldMappingApiInstanceRemoteField(UncheckedBaseModel): - remote_key_name: typing.Optional[str] = None - schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field( - alias="schema", default=None - ) - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py b/src/merge/resources/hris/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py deleted file mode 100644 index 4171f08b..00000000 --- a/src/merge/resources/hris/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel): - method: typing.Optional[str] = None - url_path: typing.Optional[str] = None - field_traversal_path: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_mapping_api_instance_response.py b/src/merge/resources/hris/types/field_mapping_api_instance_response.py deleted file mode 100644 index 3b6fc77f..00000000 --- a/src/merge/resources/hris/types/field_mapping_api_instance_response.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance import FieldMappingApiInstance - - -class FieldMappingApiInstanceResponse(UncheckedBaseModel): - benefit: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Benefit", default=None) - employer_benefit: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="EmployerBenefit", default=None - ) - company: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Company", default=None) - employee_payroll_run: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="EmployeePayrollRun", default=None - ) - employee: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Employee", default=None) - employment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Employment", default=None) - location: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Location", default=None) - payroll_run: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="PayrollRun", default=None - ) - team: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Team", default=None) - time_off: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="TimeOff", default=None) - time_off_balance: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="TimeOffBalance", default=None - ) - bank_info: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="BankInfo", default=None) - pay_group: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="PayGroup", default=None) - group: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Group", default=None) - dependent: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Dependent", default=None) - timesheet_entry: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field( - alias="TimesheetEntry", default=None - ) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_mapping_api_instance_target_field.py b/src/merge/resources/hris/types/field_mapping_api_instance_target_field.py deleted file mode 100644 index e6474cba..00000000 --- a/src/merge/resources/hris/types/field_mapping_api_instance_target_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceTargetField(UncheckedBaseModel): - name: str - description: str - is_organization_wide: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_mapping_instance_response.py b/src/merge/resources/hris/types/field_mapping_instance_response.py deleted file mode 100644 index f921e641..00000000 --- a/src/merge/resources/hris/types/field_mapping_instance_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .field_mapping_api_instance import FieldMappingApiInstance -from .warning_validation_problem import WarningValidationProblem - - -class FieldMappingInstanceResponse(UncheckedBaseModel): - model: FieldMappingApiInstance - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_permission_deserializer.py b/src/merge/resources/hris/types/field_permission_deserializer.py deleted file mode 100644 index 1d71ae04..00000000 --- a/src/merge/resources/hris/types/field_permission_deserializer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializer(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/field_permission_deserializer_request.py b/src/merge/resources/hris/types/field_permission_deserializer_request.py deleted file mode 100644 index a4113b46..00000000 --- a/src/merge/resources/hris/types/field_permission_deserializer_request.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializerRequest(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/flsa_status_enum.py b/src/merge/resources/hris/types/flsa_status_enum.py deleted file mode 100644 index e30b494f..00000000 --- a/src/merge/resources/hris/types/flsa_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FlsaStatusEnum(str, enum.Enum): - """ - * `EXEMPT` - EXEMPT - * `SALARIED_NONEXEMPT` - SALARIED_NONEXEMPT - * `NONEXEMPT` - NONEXEMPT - * `OWNER` - OWNER - """ - - EXEMPT = "EXEMPT" - SALARIED_NONEXEMPT = "SALARIED_NONEXEMPT" - NONEXEMPT = "NONEXEMPT" - OWNER = "OWNER" - - def visit( - self, - exempt: typing.Callable[[], T_Result], - salaried_nonexempt: typing.Callable[[], T_Result], - nonexempt: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FlsaStatusEnum.EXEMPT: - return exempt() - if self is FlsaStatusEnum.SALARIED_NONEXEMPT: - return salaried_nonexempt() - if self is FlsaStatusEnum.NONEXEMPT: - return nonexempt() - if self is FlsaStatusEnum.OWNER: - return owner() diff --git a/src/merge/resources/hris/types/gender_enum.py b/src/merge/resources/hris/types/gender_enum.py deleted file mode 100644 index 541f19cf..00000000 --- a/src/merge/resources/hris/types/gender_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class GenderEnum(str, enum.Enum): - """ - * `MALE` - MALE - * `FEMALE` - FEMALE - * `NON-BINARY` - NON-BINARY - * `OTHER` - OTHER - * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - """ - - MALE = "MALE" - FEMALE = "FEMALE" - NON_BINARY = "NON-BINARY" - OTHER = "OTHER" - PREFER_NOT_TO_DISCLOSE = "PREFER_NOT_TO_DISCLOSE" - - def visit( - self, - male: typing.Callable[[], T_Result], - female: typing.Callable[[], T_Result], - non_binary: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - prefer_not_to_disclose: typing.Callable[[], T_Result], - ) -> T_Result: - if self is GenderEnum.MALE: - return male() - if self is GenderEnum.FEMALE: - return female() - if self is GenderEnum.NON_BINARY: - return non_binary() - if self is GenderEnum.OTHER: - return other() - if self is GenderEnum.PREFER_NOT_TO_DISCLOSE: - return prefer_not_to_disclose() diff --git a/src/merge/resources/hris/types/group.py b/src/merge/resources/hris/types/group.py deleted file mode 100644 index d52c68d4..00000000 --- a/src/merge/resources/hris/types/group.py +++ /dev/null @@ -1,80 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .group_type import GroupType -from .remote_data import RemoteData - - -class Group(UncheckedBaseModel): - """ - # The Group Object - ### Description - The `Group` object is used to represent any subset of employees across, for example, `DEPARTMENT` or `TEAM`. Employees can be in multiple Groups. - - ### Usage Example - Fetch from the `LIST Employee` endpoint and expand groups to view an employee's groups. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - parent_group: typing.Optional[str] = pydantic.Field(default=None) - """ - The parent group for this group. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The group name. - """ - - type: typing.Optional[GroupType] = pydantic.Field(default=None) - """ - The Group type returned directly from the third-party. - - * `TEAM` - TEAM - * `DEPARTMENT` - DEPARTMENT - * `COST_CENTER` - COST_CENTER - * `BUSINESS_UNIT` - BUSINESS_UNIT - * `GROUP` - GROUP - """ - - is_commonly_used_as_team: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the Group refers to a team in the third party platform. Note that this is an opinionated view based on how Merge observes most organizations representing teams in each third party platform. If your customer uses a platform different from most, there is a chance this will not be correct. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/group_type.py b/src/merge/resources/hris/types/group_type.py deleted file mode 100644 index e0172fc6..00000000 --- a/src/merge/resources/hris/types/group_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .group_type_enum import GroupTypeEnum - -GroupType = typing.Union[GroupTypeEnum, str] diff --git a/src/merge/resources/hris/types/group_type_enum.py b/src/merge/resources/hris/types/group_type_enum.py deleted file mode 100644 index 4ce603d6..00000000 --- a/src/merge/resources/hris/types/group_type_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class GroupTypeEnum(str, enum.Enum): - """ - * `TEAM` - TEAM - * `DEPARTMENT` - DEPARTMENT - * `COST_CENTER` - COST_CENTER - * `BUSINESS_UNIT` - BUSINESS_UNIT - * `GROUP` - GROUP - """ - - TEAM = "TEAM" - DEPARTMENT = "DEPARTMENT" - COST_CENTER = "COST_CENTER" - BUSINESS_UNIT = "BUSINESS_UNIT" - GROUP = "GROUP" - - def visit( - self, - team: typing.Callable[[], T_Result], - department: typing.Callable[[], T_Result], - cost_center: typing.Callable[[], T_Result], - business_unit: typing.Callable[[], T_Result], - group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is GroupTypeEnum.TEAM: - return team() - if self is GroupTypeEnum.DEPARTMENT: - return department() - if self is GroupTypeEnum.COST_CENTER: - return cost_center() - if self is GroupTypeEnum.BUSINESS_UNIT: - return business_unit() - if self is GroupTypeEnum.GROUP: - return group() diff --git a/src/merge/resources/hris/types/individual_common_model_scope_deserializer.py b/src/merge/resources/hris/types/individual_common_model_scope_deserializer.py deleted file mode 100644 index 4b1ef6a4..00000000 --- a/src/merge/resources/hris/types/individual_common_model_scope_deserializer.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer import FieldPermissionDeserializer -from .model_permission_deserializer import ModelPermissionDeserializer - - -class IndividualCommonModelScopeDeserializer(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None - field_permissions: typing.Optional[FieldPermissionDeserializer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/individual_common_model_scope_deserializer_request.py b/src/merge/resources/hris/types/individual_common_model_scope_deserializer_request.py deleted file mode 100644 index 1dcda203..00000000 --- a/src/merge/resources/hris/types/individual_common_model_scope_deserializer_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer_request import FieldPermissionDeserializerRequest -from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - - -class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None - field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/issue.py b/src/merge/resources/hris/types/issue.py deleted file mode 100644 index df31be95..00000000 --- a/src/merge/resources/hris/types/issue.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue_status import IssueStatus - - -class Issue(UncheckedBaseModel): - id: typing.Optional[str] = None - status: typing.Optional[IssueStatus] = pydantic.Field(default=None) - """ - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - error_description: str - end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - first_incident_time: typing.Optional[dt.datetime] = None - last_incident_time: typing.Optional[dt.datetime] = None - is_muted: typing.Optional[bool] = None - error_details: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/issue_status.py b/src/merge/resources/hris/types/issue_status.py deleted file mode 100644 index 8e4d6516..00000000 --- a/src/merge/resources/hris/types/issue_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .issue_status_enum import IssueStatusEnum - -IssueStatus = typing.Union[IssueStatusEnum, str] diff --git a/src/merge/resources/hris/types/issue_status_enum.py b/src/merge/resources/hris/types/issue_status_enum.py deleted file mode 100644 index 57eb9618..00000000 --- a/src/merge/resources/hris/types/issue_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssueStatusEnum(str, enum.Enum): - """ - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssueStatusEnum.ONGOING: - return ongoing() - if self is IssueStatusEnum.RESOLVED: - return resolved() diff --git a/src/merge/resources/hris/types/language_enum.py b/src/merge/resources/hris/types/language_enum.py deleted file mode 100644 index 44b693f2..00000000 --- a/src/merge/resources/hris/types/language_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LanguageEnum(str, enum.Enum): - """ - * `en` - en - * `de` - de - """ - - EN = "en" - DE = "de" - - def visit(self, en: typing.Callable[[], T_Result], de: typing.Callable[[], T_Result]) -> T_Result: - if self is LanguageEnum.EN: - return en() - if self is LanguageEnum.DE: - return de() diff --git a/src/merge/resources/hris/types/last_sync_result_enum.py b/src/merge/resources/hris/types/last_sync_result_enum.py deleted file mode 100644 index ec777ee6..00000000 --- a/src/merge/resources/hris/types/last_sync_result_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LastSyncResultEnum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LastSyncResultEnum.SYNCING: - return syncing() - if self is LastSyncResultEnum.DONE: - return done() - if self is LastSyncResultEnum.FAILED: - return failed() - if self is LastSyncResultEnum.DISABLED: - return disabled() - if self is LastSyncResultEnum.PAUSED: - return paused() - if self is LastSyncResultEnum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/hris/types/link_token.py b/src/merge/resources/hris/types/link_token.py deleted file mode 100644 index f78dedeb..00000000 --- a/src/merge/resources/hris/types/link_token.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkToken(UncheckedBaseModel): - link_token: str - integration_name: typing.Optional[str] = None - magic_link_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/linked_account_status.py b/src/merge/resources/hris/types/linked_account_status.py deleted file mode 100644 index ab2e0f09..00000000 --- a/src/merge/resources/hris/types/linked_account_status.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkedAccountStatus(UncheckedBaseModel): - linked_account_status: str - can_make_request: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/location.py b/src/merge/resources/hris/types/location.py deleted file mode 100644 index db6d7b66..00000000 --- a/src/merge/resources/hris/types/location.py +++ /dev/null @@ -1,353 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .location_country import LocationCountry -from .location_location_type import LocationLocationType -from .remote_data import RemoteData - - -class Location(UncheckedBaseModel): - """ - # The Location Object - ### Description - The `Location` object is used to represent an address that can be associated with an employee. - - ### Usage Example - Fetch from the `LIST Locations` endpoint and filter by `ID` to show all office locations. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The location's name. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The location's phone number. - """ - - street_1: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 1 of the location's street address. - """ - - street_2: typing.Optional[str] = pydantic.Field(default=None) - """ - Line 2 of the location's street address. - """ - - city: typing.Optional[str] = pydantic.Field(default=None) - """ - The location's city. - """ - - state: typing.Optional[str] = pydantic.Field(default=None) - """ - The location's state. Represents a region if outside of the US. - """ - - zip_code: typing.Optional[str] = pydantic.Field(default=None) - """ - The location's zip code or postal code. - """ - - country: typing.Optional[LocationCountry] = pydantic.Field(default=None) - """ - The location's country. - - * `AF` - Afghanistan - * `AX` - Γ…land Islands - * `AL` - Albania - * `DZ` - Algeria - * `AS` - American Samoa - * `AD` - Andorra - * `AO` - Angola - * `AI` - Anguilla - * `AQ` - Antarctica - * `AG` - Antigua and Barbuda - * `AR` - Argentina - * `AM` - Armenia - * `AW` - Aruba - * `AU` - Australia - * `AT` - Austria - * `AZ` - Azerbaijan - * `BS` - Bahamas - * `BH` - Bahrain - * `BD` - Bangladesh - * `BB` - Barbados - * `BY` - Belarus - * `BE` - Belgium - * `BZ` - Belize - * `BJ` - Benin - * `BM` - Bermuda - * `BT` - Bhutan - * `BO` - Bolivia - * `BQ` - Bonaire, Sint Eustatius and Saba - * `BA` - Bosnia and Herzegovina - * `BW` - Botswana - * `BV` - Bouvet Island - * `BR` - Brazil - * `IO` - British Indian Ocean Territory - * `BN` - Brunei - * `BG` - Bulgaria - * `BF` - Burkina Faso - * `BI` - Burundi - * `CV` - Cabo Verde - * `KH` - Cambodia - * `CM` - Cameroon - * `CA` - Canada - * `KY` - Cayman Islands - * `CF` - Central African Republic - * `TD` - Chad - * `CL` - Chile - * `CN` - China - * `CX` - Christmas Island - * `CC` - Cocos (Keeling) Islands - * `CO` - Colombia - * `KM` - Comoros - * `CG` - Congo - * `CD` - Congo (the Democratic Republic of the) - * `CK` - Cook Islands - * `CR` - Costa Rica - * `CI` - CΓ΄te d'Ivoire - * `HR` - Croatia - * `CU` - Cuba - * `CW` - CuraΓ§ao - * `CY` - Cyprus - * `CZ` - Czechia - * `DK` - Denmark - * `DJ` - Djibouti - * `DM` - Dominica - * `DO` - Dominican Republic - * `EC` - Ecuador - * `EG` - Egypt - * `SV` - El Salvador - * `GQ` - Equatorial Guinea - * `ER` - Eritrea - * `EE` - Estonia - * `SZ` - Eswatini - * `ET` - Ethiopia - * `FK` - Falkland Islands (Malvinas) - * `FO` - Faroe Islands - * `FJ` - Fiji - * `FI` - Finland - * `FR` - France - * `GF` - French Guiana - * `PF` - French Polynesia - * `TF` - French Southern Territories - * `GA` - Gabon - * `GM` - Gambia - * `GE` - Georgia - * `DE` - Germany - * `GH` - Ghana - * `GI` - Gibraltar - * `GR` - Greece - * `GL` - Greenland - * `GD` - Grenada - * `GP` - Guadeloupe - * `GU` - Guam - * `GT` - Guatemala - * `GG` - Guernsey - * `GN` - Guinea - * `GW` - Guinea-Bissau - * `GY` - Guyana - * `HT` - Haiti - * `HM` - Heard Island and McDonald Islands - * `VA` - Holy See - * `HN` - Honduras - * `HK` - Hong Kong - * `HU` - Hungary - * `IS` - Iceland - * `IN` - India - * `ID` - Indonesia - * `IR` - Iran - * `IQ` - Iraq - * `IE` - Ireland - * `IM` - Isle of Man - * `IL` - Israel - * `IT` - Italy - * `JM` - Jamaica - * `JP` - Japan - * `JE` - Jersey - * `JO` - Jordan - * `KZ` - Kazakhstan - * `KE` - Kenya - * `KI` - Kiribati - * `KW` - Kuwait - * `KG` - Kyrgyzstan - * `LA` - Laos - * `LV` - Latvia - * `LB` - Lebanon - * `LS` - Lesotho - * `LR` - Liberia - * `LY` - Libya - * `LI` - Liechtenstein - * `LT` - Lithuania - * `LU` - Luxembourg - * `MO` - Macao - * `MG` - Madagascar - * `MW` - Malawi - * `MY` - Malaysia - * `MV` - Maldives - * `ML` - Mali - * `MT` - Malta - * `MH` - Marshall Islands - * `MQ` - Martinique - * `MR` - Mauritania - * `MU` - Mauritius - * `YT` - Mayotte - * `MX` - Mexico - * `FM` - Micronesia (Federated States of) - * `MD` - Moldova - * `MC` - Monaco - * `MN` - Mongolia - * `ME` - Montenegro - * `MS` - Montserrat - * `MA` - Morocco - * `MZ` - Mozambique - * `MM` - Myanmar - * `NA` - Namibia - * `NR` - Nauru - * `NP` - Nepal - * `NL` - Netherlands - * `NC` - New Caledonia - * `NZ` - New Zealand - * `NI` - Nicaragua - * `NE` - Niger - * `NG` - Nigeria - * `NU` - Niue - * `NF` - Norfolk Island - * `KP` - North Korea - * `MK` - North Macedonia - * `MP` - Northern Mariana Islands - * `NO` - Norway - * `OM` - Oman - * `PK` - Pakistan - * `PW` - Palau - * `PS` - Palestine, State of - * `PA` - Panama - * `PG` - Papua New Guinea - * `PY` - Paraguay - * `PE` - Peru - * `PH` - Philippines - * `PN` - Pitcairn - * `PL` - Poland - * `PT` - Portugal - * `PR` - Puerto Rico - * `QA` - Qatar - * `RE` - RΓ©union - * `RO` - Romania - * `RU` - Russia - * `RW` - Rwanda - * `BL` - Saint BarthΓ©lemy - * `SH` - Saint Helena, Ascension and Tristan da Cunha - * `KN` - Saint Kitts and Nevis - * `LC` - Saint Lucia - * `MF` - Saint Martin (French part) - * `PM` - Saint Pierre and Miquelon - * `VC` - Saint Vincent and the Grenadines - * `WS` - Samoa - * `SM` - San Marino - * `ST` - Sao Tome and Principe - * `SA` - Saudi Arabia - * `SN` - Senegal - * `RS` - Serbia - * `SC` - Seychelles - * `SL` - Sierra Leone - * `SG` - Singapore - * `SX` - Sint Maarten (Dutch part) - * `SK` - Slovakia - * `SI` - Slovenia - * `SB` - Solomon Islands - * `SO` - Somalia - * `ZA` - South Africa - * `GS` - South Georgia and the South Sandwich Islands - * `KR` - South Korea - * `SS` - South Sudan - * `ES` - Spain - * `LK` - Sri Lanka - * `SD` - Sudan - * `SR` - Suriname - * `SJ` - Svalbard and Jan Mayen - * `SE` - Sweden - * `CH` - Switzerland - * `SY` - Syria - * `TW` - Taiwan - * `TJ` - Tajikistan - * `TZ` - Tanzania - * `TH` - Thailand - * `TL` - Timor-Leste - * `TG` - Togo - * `TK` - Tokelau - * `TO` - Tonga - * `TT` - Trinidad and Tobago - * `TN` - Tunisia - * `TR` - Turkey - * `TM` - Turkmenistan - * `TC` - Turks and Caicos Islands - * `TV` - Tuvalu - * `UG` - Uganda - * `UA` - Ukraine - * `AE` - United Arab Emirates - * `GB` - United Kingdom - * `UM` - United States Minor Outlying Islands - * `US` - United States of America - * `UY` - Uruguay - * `UZ` - Uzbekistan - * `VU` - Vanuatu - * `VE` - Venezuela - * `VN` - Vietnam - * `VG` - Virgin Islands (British) - * `VI` - Virgin Islands (U.S.) - * `WF` - Wallis and Futuna - * `EH` - Western Sahara - * `YE` - Yemen - * `ZM` - Zambia - * `ZW` - Zimbabwe - """ - - location_type: typing.Optional[LocationLocationType] = pydantic.Field(default=None) - """ - The location's type. Can be either WORK or HOME - - * `HOME` - HOME - * `WORK` - WORK - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/location_country.py b/src/merge/resources/hris/types/location_country.py deleted file mode 100644 index 5fd5a9c1..00000000 --- a/src/merge/resources/hris/types/location_country.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .country_enum import CountryEnum - -LocationCountry = typing.Union[CountryEnum, str] diff --git a/src/merge/resources/hris/types/location_location_type.py b/src/merge/resources/hris/types/location_location_type.py deleted file mode 100644 index 5b3e7213..00000000 --- a/src/merge/resources/hris/types/location_location_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .location_type_enum import LocationTypeEnum - -LocationLocationType = typing.Union[LocationTypeEnum, str] diff --git a/src/merge/resources/hris/types/location_type_enum.py b/src/merge/resources/hris/types/location_type_enum.py deleted file mode 100644 index 34ace087..00000000 --- a/src/merge/resources/hris/types/location_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LocationTypeEnum(str, enum.Enum): - """ - * `HOME` - HOME - * `WORK` - WORK - """ - - HOME = "HOME" - WORK = "WORK" - - def visit(self, home: typing.Callable[[], T_Result], work: typing.Callable[[], T_Result]) -> T_Result: - if self is LocationTypeEnum.HOME: - return home() - if self is LocationTypeEnum.WORK: - return work() diff --git a/src/merge/resources/hris/types/marital_status_enum.py b/src/merge/resources/hris/types/marital_status_enum.py deleted file mode 100644 index 6902866b..00000000 --- a/src/merge/resources/hris/types/marital_status_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MaritalStatusEnum(str, enum.Enum): - """ - * `SINGLE` - SINGLE - * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - """ - - SINGLE = "SINGLE" - MARRIED_FILING_JOINTLY = "MARRIED_FILING_JOINTLY" - MARRIED_FILING_SEPARATELY = "MARRIED_FILING_SEPARATELY" - HEAD_OF_HOUSEHOLD = "HEAD_OF_HOUSEHOLD" - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD = "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD" - - def visit( - self, - single: typing.Callable[[], T_Result], - married_filing_jointly: typing.Callable[[], T_Result], - married_filing_separately: typing.Callable[[], T_Result], - head_of_household: typing.Callable[[], T_Result], - qualifying_widow_or_widower_with_dependent_child: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MaritalStatusEnum.SINGLE: - return single() - if self is MaritalStatusEnum.MARRIED_FILING_JOINTLY: - return married_filing_jointly() - if self is MaritalStatusEnum.MARRIED_FILING_SEPARATELY: - return married_filing_separately() - if self is MaritalStatusEnum.HEAD_OF_HOUSEHOLD: - return head_of_household() - if self is MaritalStatusEnum.QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD: - return qualifying_widow_or_widower_with_dependent_child() diff --git a/src/merge/resources/hris/types/meta_response.py b/src/merge/resources/hris/types/meta_response.py deleted file mode 100644 index caa2c831..00000000 --- a/src/merge/resources/hris/types/meta_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .linked_account_status import LinkedAccountStatus - - -class MetaResponse(UncheckedBaseModel): - request_schema: typing.Dict[str, typing.Optional[typing.Any]] - remote_field_classes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - status: typing.Optional[LinkedAccountStatus] = None - has_conditional_params: bool - has_required_linked_account_params: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/method_enum.py b/src/merge/resources/hris/types/method_enum.py deleted file mode 100644 index 57bcde10..00000000 --- a/src/merge/resources/hris/types/method_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodEnum(str, enum.Enum): - """ - * `GET` - GET - * `OPTIONS` - OPTIONS - * `HEAD` - HEAD - * `POST` - POST - * `PUT` - PUT - * `PATCH` - PATCH - * `DELETE` - DELETE - """ - - GET = "GET" - OPTIONS = "OPTIONS" - HEAD = "HEAD" - POST = "POST" - PUT = "PUT" - PATCH = "PATCH" - DELETE = "DELETE" - - def visit( - self, - get: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - head: typing.Callable[[], T_Result], - post: typing.Callable[[], T_Result], - put: typing.Callable[[], T_Result], - patch: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodEnum.GET: - return get() - if self is MethodEnum.OPTIONS: - return options() - if self is MethodEnum.HEAD: - return head() - if self is MethodEnum.POST: - return post() - if self is MethodEnum.PUT: - return put() - if self is MethodEnum.PATCH: - return patch() - if self is MethodEnum.DELETE: - return delete() diff --git a/src/merge/resources/hris/types/model_operation.py b/src/merge/resources/hris/types/model_operation.py deleted file mode 100644 index c367572d..00000000 --- a/src/merge/resources/hris/types/model_operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelOperation(UncheckedBaseModel): - """ - # The ModelOperation Object - ### Description - The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - - ### Usage Example - View what operations are supported for the `Candidate` endpoint. - """ - - model_name: str - available_operations: typing.List[str] - required_post_parameters: typing.List[str] - supported_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/model_permission_deserializer.py b/src/merge/resources/hris/types/model_permission_deserializer.py deleted file mode 100644 index 6381814c..00000000 --- a/src/merge/resources/hris/types/model_permission_deserializer.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializer(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/model_permission_deserializer_request.py b/src/merge/resources/hris/types/model_permission_deserializer_request.py deleted file mode 100644 index cdc2ff4c..00000000 --- a/src/merge/resources/hris/types/model_permission_deserializer_request.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializerRequest(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/multipart_form_field_request.py b/src/merge/resources/hris/types/multipart_form_field_request.py deleted file mode 100644 index abc37692..00000000 --- a/src/merge/resources/hris/types/multipart_form_field_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - - -class MultipartFormFieldRequest(UncheckedBaseModel): - """ - # The MultipartFormField Object - ### Description - The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - - ### Usage Example - Create a `MultipartFormField` to define a multipart form entry. - """ - - name: str = pydantic.Field() - """ - The name of the form field - """ - - data: str = pydantic.Field() - """ - The data for the form field. - """ - - encoding: typing.Optional[MultipartFormFieldRequestEncoding] = pydantic.Field(default=None) - """ - The encoding of the value of `data`. Defaults to `RAW` if not defined. - - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The file name of the form field, if the field is for a file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The MIME type of the file, if the field is for a file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/multipart_form_field_request_encoding.py b/src/merge/resources/hris/types/multipart_form_field_request_encoding.py deleted file mode 100644 index c6513b6b..00000000 --- a/src/merge/resources/hris/types/multipart_form_field_request_encoding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .encoding_enum import EncodingEnum - -MultipartFormFieldRequestEncoding = typing.Union[EncodingEnum, str] diff --git a/src/merge/resources/hris/types/paginated_account_details_and_actions_list.py b/src/merge/resources/hris/types/paginated_account_details_and_actions_list.py deleted file mode 100644 index d2d16116..00000000 --- a/src/merge/resources/hris/types/paginated_account_details_and_actions_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions import AccountDetailsAndActions - - -class PaginatedAccountDetailsAndActionsList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountDetailsAndActions]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_audit_log_event_list.py b/src/merge/resources/hris/types/paginated_audit_log_event_list.py deleted file mode 100644 index 24139397..00000000 --- a/src/merge/resources/hris/types/paginated_audit_log_event_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event import AuditLogEvent - - -class PaginatedAuditLogEventList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AuditLogEvent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_bank_info_list.py b/src/merge/resources/hris/types/paginated_bank_info_list.py deleted file mode 100644 index 688ba4f5..00000000 --- a/src/merge/resources/hris/types/paginated_bank_info_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .bank_info import BankInfo - - -class PaginatedBankInfoList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[BankInfo]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedBankInfoList) diff --git a/src/merge/resources/hris/types/paginated_benefit_list.py b/src/merge/resources/hris/types/paginated_benefit_list.py deleted file mode 100644 index d290d5fd..00000000 --- a/src/merge/resources/hris/types/paginated_benefit_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .benefit import Benefit - - -class PaginatedBenefitList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Benefit]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedBenefitList) diff --git a/src/merge/resources/hris/types/paginated_company_list.py b/src/merge/resources/hris/types/paginated_company_list.py deleted file mode 100644 index 8f87ea41..00000000 --- a/src/merge/resources/hris/types/paginated_company_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .company import Company - - -class PaginatedCompanyList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Company]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_dependent_list.py b/src/merge/resources/hris/types/paginated_dependent_list.py deleted file mode 100644 index d5411dc3..00000000 --- a/src/merge/resources/hris/types/paginated_dependent_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .dependent import Dependent - - -class PaginatedDependentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Dependent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_employee_list.py b/src/merge/resources/hris/types/paginated_employee_list.py deleted file mode 100644 index 8b7b1dc8..00000000 --- a/src/merge/resources/hris/types/paginated_employee_list.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedEmployeeList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Employee"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedEmployeeList) diff --git a/src/merge/resources/hris/types/paginated_employee_payroll_run_list.py b/src/merge/resources/hris/types/paginated_employee_payroll_run_list.py deleted file mode 100644 index 4f66790b..00000000 --- a/src/merge/resources/hris/types/paginated_employee_payroll_run_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .employee_payroll_run import EmployeePayrollRun - - -class PaginatedEmployeePayrollRunList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[EmployeePayrollRun]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedEmployeePayrollRunList) diff --git a/src/merge/resources/hris/types/paginated_employer_benefit_list.py b/src/merge/resources/hris/types/paginated_employer_benefit_list.py deleted file mode 100644 index ced345b0..00000000 --- a/src/merge/resources/hris/types/paginated_employer_benefit_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .employer_benefit import EmployerBenefit - - -class PaginatedEmployerBenefitList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[EmployerBenefit]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_employment_list.py b/src/merge/resources/hris/types/paginated_employment_list.py deleted file mode 100644 index 9670bf4c..00000000 --- a/src/merge/resources/hris/types/paginated_employment_list.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedEmploymentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Employment"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedEmploymentList) diff --git a/src/merge/resources/hris/types/paginated_group_list.py b/src/merge/resources/hris/types/paginated_group_list.py deleted file mode 100644 index 90702e1f..00000000 --- a/src/merge/resources/hris/types/paginated_group_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .group import Group - - -class PaginatedGroupList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Group]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_issue_list.py b/src/merge/resources/hris/types/paginated_issue_list.py deleted file mode 100644 index 686173e5..00000000 --- a/src/merge/resources/hris/types/paginated_issue_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue import Issue - - -class PaginatedIssueList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Issue]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_location_list.py b/src/merge/resources/hris/types/paginated_location_list.py deleted file mode 100644 index 924a5042..00000000 --- a/src/merge/resources/hris/types/paginated_location_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .location import Location - - -class PaginatedLocationList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Location]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_pay_group_list.py b/src/merge/resources/hris/types/paginated_pay_group_list.py deleted file mode 100644 index 395ff51c..00000000 --- a/src/merge/resources/hris/types/paginated_pay_group_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .pay_group import PayGroup - - -class PaginatedPayGroupList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[PayGroup]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_payroll_run_list.py b/src/merge/resources/hris/types/paginated_payroll_run_list.py deleted file mode 100644 index e20c064b..00000000 --- a/src/merge/resources/hris/types/paginated_payroll_run_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payroll_run import PayrollRun - - -class PaginatedPayrollRunList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[PayrollRun]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_sync_status_list.py b/src/merge/resources/hris/types/paginated_sync_status_list.py deleted file mode 100644 index cc4bd7a8..00000000 --- a/src/merge/resources/hris/types/paginated_sync_status_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .sync_status import SyncStatus - - -class PaginatedSyncStatusList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[SyncStatus]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/paginated_team_list.py b/src/merge/resources/hris/types/paginated_team_list.py deleted file mode 100644 index 29a7bdb7..00000000 --- a/src/merge/resources/hris/types/paginated_team_list.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedTeamList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Team"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedTeamList) diff --git a/src/merge/resources/hris/types/paginated_time_off_balance_list.py b/src/merge/resources/hris/types/paginated_time_off_balance_list.py deleted file mode 100644 index 3ba1324e..00000000 --- a/src/merge/resources/hris/types/paginated_time_off_balance_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .time_off_balance import TimeOffBalance - - -class PaginatedTimeOffBalanceList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[TimeOffBalance]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedTimeOffBalanceList) diff --git a/src/merge/resources/hris/types/paginated_time_off_list.py b/src/merge/resources/hris/types/paginated_time_off_list.py deleted file mode 100644 index f5b941b7..00000000 --- a/src/merge/resources/hris/types/paginated_time_off_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .time_off import TimeOff - - -class PaginatedTimeOffList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[TimeOff]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedTimeOffList) diff --git a/src/merge/resources/hris/types/paginated_timesheet_entry_list.py b/src/merge/resources/hris/types/paginated_timesheet_entry_list.py deleted file mode 100644 index 612a1b25..00000000 --- a/src/merge/resources/hris/types/paginated_timesheet_entry_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .timesheet_entry import TimesheetEntry - - -class PaginatedTimesheetEntryList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[TimesheetEntry]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(PaginatedTimesheetEntryList) diff --git a/src/merge/resources/hris/types/pay_currency_enum.py b/src/merge/resources/hris/types/pay_currency_enum.py deleted file mode 100644 index f0773521..00000000 --- a/src/merge/resources/hris/types/pay_currency_enum.py +++ /dev/null @@ -1,1546 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayCurrencyEnum(str, enum.Enum): - """ - * `XUA` - ADB Unit of Account - * `AFN` - Afghan Afghani - * `AFA` - Afghan Afghani (1927–2002) - * `ALL` - Albanian Lek - * `ALK` - Albanian Lek (1946–1965) - * `DZD` - Algerian Dinar - * `ADP` - Andorran Peseta - * `AOA` - Angolan Kwanza - * `AOK` - Angolan Kwanza (1977–1991) - * `AON` - Angolan New Kwanza (1990–2000) - * `AOR` - Angolan Readjusted Kwanza (1995–1999) - * `ARA` - Argentine Austral - * `ARS` - Argentine Peso - * `ARM` - Argentine Peso (1881–1970) - * `ARP` - Argentine Peso (1983–1985) - * `ARL` - Argentine Peso Ley (1970–1983) - * `AMD` - Armenian Dram - * `AWG` - Aruban Florin - * `AUD` - Australian Dollar - * `ATS` - Austrian Schilling - * `AZN` - Azerbaijani Manat - * `AZM` - Azerbaijani Manat (1993–2006) - * `BSD` - Bahamian Dollar - * `BHD` - Bahraini Dinar - * `BDT` - Bangladeshi Taka - * `BBD` - Barbadian Dollar - * `BYN` - Belarusian Ruble - * `BYB` - Belarusian Ruble (1994–1999) - * `BYR` - Belarusian Ruble (2000–2016) - * `BEF` - Belgian Franc - * `BEC` - Belgian Franc (convertible) - * `BEL` - Belgian Franc (financial) - * `BZD` - Belize Dollar - * `BMD` - Bermudan Dollar - * `BTN` - Bhutanese Ngultrum - * `BOB` - Bolivian Boliviano - * `BOL` - Bolivian Boliviano (1863–1963) - * `BOV` - Bolivian Mvdol - * `BOP` - Bolivian Peso - * `BAM` - Bosnia-Herzegovina Convertible Mark - * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) - * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) - * `BWP` - Botswanan Pula - * `BRC` - Brazilian Cruzado (1986–1989) - * `BRZ` - Brazilian Cruzeiro (1942–1967) - * `BRE` - Brazilian Cruzeiro (1990–1993) - * `BRR` - Brazilian Cruzeiro (1993–1994) - * `BRN` - Brazilian New Cruzado (1989–1990) - * `BRB` - Brazilian New Cruzeiro (1967–1986) - * `BRL` - Brazilian Real - * `GBP` - British Pound - * `BND` - Brunei Dollar - * `BGL` - Bulgarian Hard Lev - * `BGN` - Bulgarian Lev - * `BGO` - Bulgarian Lev (1879–1952) - * `BGM` - Bulgarian Socialist Lev - * `BUK` - Burmese Kyat - * `BIF` - Burundian Franc - * `XPF` - CFP Franc - * `KHR` - Cambodian Riel - * `CAD` - Canadian Dollar - * `CVE` - Cape Verdean Escudo - * `KYD` - Cayman Islands Dollar - * `XAF` - Central African CFA Franc - * `CLE` - Chilean Escudo - * `CLP` - Chilean Peso - * `CLF` - Chilean Unit of Account (UF) - * `CNX` - Chinese People’s Bank Dollar - * `CNY` - Chinese Yuan - * `CNH` - Chinese Yuan (offshore) - * `COP` - Colombian Peso - * `COU` - Colombian Real Value Unit - * `KMF` - Comorian Franc - * `CDF` - Congolese Franc - * `CRC` - Costa Rican ColΓ³n - * `HRD` - Croatian Dinar - * `HRK` - Croatian Kuna - * `CUC` - Cuban Convertible Peso - * `CUP` - Cuban Peso - * `CYP` - Cypriot Pound - * `CZK` - Czech Koruna - * `CSK` - Czechoslovak Hard Koruna - * `DKK` - Danish Krone - * `DJF` - Djiboutian Franc - * `DOP` - Dominican Peso - * `NLG` - Dutch Guilder - * `XCD` - East Caribbean Dollar - * `DDM` - East German Mark - * `ECS` - Ecuadorian Sucre - * `ECV` - Ecuadorian Unit of Constant Value - * `EGP` - Egyptian Pound - * `GQE` - Equatorial Guinean Ekwele - * `ERN` - Eritrean Nakfa - * `EEK` - Estonian Kroon - * `ETB` - Ethiopian Birr - * `EUR` - Euro - * `XBA` - European Composite Unit - * `XEU` - European Currency Unit - * `XBB` - European Monetary Unit - * `XBC` - European Unit of Account (XBC) - * `XBD` - European Unit of Account (XBD) - * `FKP` - Falkland Islands Pound - * `FJD` - Fijian Dollar - * `FIM` - Finnish Markka - * `FRF` - French Franc - * `XFO` - French Gold Franc - * `XFU` - French UIC-Franc - * `GMD` - Gambian Dalasi - * `GEK` - Georgian Kupon Larit - * `GEL` - Georgian Lari - * `DEM` - German Mark - * `GHS` - Ghanaian Cedi - * `GHC` - Ghanaian Cedi (1979–2007) - * `GIP` - Gibraltar Pound - * `XAU` - Gold - * `GRD` - Greek Drachma - * `GTQ` - Guatemalan Quetzal - * `GWP` - Guinea-Bissau Peso - * `GNF` - Guinean Franc - * `GNS` - Guinean Syli - * `GYD` - Guyanaese Dollar - * `HTG` - Haitian Gourde - * `HNL` - Honduran Lempira - * `HKD` - Hong Kong Dollar - * `HUF` - Hungarian Forint - * `IMP` - IMP - * `ISK` - Icelandic KrΓ³na - * `ISJ` - Icelandic KrΓ³na (1918–1981) - * `INR` - Indian Rupee - * `IDR` - Indonesian Rupiah - * `IRR` - Iranian Rial - * `IQD` - Iraqi Dinar - * `IEP` - Irish Pound - * `ILS` - Israeli New Shekel - * `ILP` - Israeli Pound - * `ILR` - Israeli Shekel (1980–1985) - * `ITL` - Italian Lira - * `JMD` - Jamaican Dollar - * `JPY` - Japanese Yen - * `JOD` - Jordanian Dinar - * `KZT` - Kazakhstani Tenge - * `KES` - Kenyan Shilling - * `KWD` - Kuwaiti Dinar - * `KGS` - Kyrgystani Som - * `LAK` - Laotian Kip - * `LVL` - Latvian Lats - * `LVR` - Latvian Ruble - * `LBP` - Lebanese Pound - * `LSL` - Lesotho Loti - * `LRD` - Liberian Dollar - * `LYD` - Libyan Dinar - * `LTL` - Lithuanian Litas - * `LTT` - Lithuanian Talonas - * `LUL` - Luxembourg Financial Franc - * `LUC` - Luxembourgian Convertible Franc - * `LUF` - Luxembourgian Franc - * `MOP` - Macanese Pataca - * `MKD` - Macedonian Denar - * `MKN` - Macedonian Denar (1992–1993) - * `MGA` - Malagasy Ariary - * `MGF` - Malagasy Franc - * `MWK` - Malawian Kwacha - * `MYR` - Malaysian Ringgit - * `MVR` - Maldivian Rufiyaa - * `MVP` - Maldivian Rupee (1947–1981) - * `MLF` - Malian Franc - * `MTL` - Maltese Lira - * `MTP` - Maltese Pound - * `MRU` - Mauritanian Ouguiya - * `MRO` - Mauritanian Ouguiya (1973–2017) - * `MUR` - Mauritian Rupee - * `MXV` - Mexican Investment Unit - * `MXN` - Mexican Peso - * `MXP` - Mexican Silver Peso (1861–1992) - * `MDC` - Moldovan Cupon - * `MDL` - Moldovan Leu - * `MCF` - Monegasque Franc - * `MNT` - Mongolian Tugrik - * `MAD` - Moroccan Dirham - * `MAF` - Moroccan Franc - * `MZE` - Mozambican Escudo - * `MZN` - Mozambican Metical - * `MZM` - Mozambican Metical (1980–2006) - * `MMK` - Myanmar Kyat - * `NAD` - Namibian Dollar - * `NPR` - Nepalese Rupee - * `ANG` - Netherlands Antillean Guilder - * `TWD` - New Taiwan Dollar - * `NZD` - New Zealand Dollar - * `NIO` - Nicaraguan CΓ³rdoba - * `NIC` - Nicaraguan CΓ³rdoba (1988–1991) - * `NGN` - Nigerian Naira - * `KPW` - North Korean Won - * `NOK` - Norwegian Krone - * `OMR` - Omani Rial - * `PKR` - Pakistani Rupee - * `XPD` - Palladium - * `PAB` - Panamanian Balboa - * `PGK` - Papua New Guinean Kina - * `PYG` - Paraguayan Guarani - * `PEI` - Peruvian Inti - * `PEN` - Peruvian Sol - * `PES` - Peruvian Sol (1863–1965) - * `PHP` - Philippine Peso - * `XPT` - Platinum - * `PLN` - Polish Zloty - * `PLZ` - Polish Zloty (1950–1995) - * `PTE` - Portuguese Escudo - * `GWE` - Portuguese Guinea Escudo - * `QAR` - Qatari Rial - * `XRE` - RINET Funds - * `RHD` - Rhodesian Dollar - * `RON` - Romanian Leu - * `ROL` - Romanian Leu (1952–2006) - * `RUB` - Russian Ruble - * `RUR` - Russian Ruble (1991–1998) - * `RWF` - Rwandan Franc - * `SVC` - Salvadoran ColΓ³n - * `WST` - Samoan Tala - * `SAR` - Saudi Riyal - * `RSD` - Serbian Dinar - * `CSD` - Serbian Dinar (2002–2006) - * `SCR` - Seychellois Rupee - * `SLL` - Sierra Leonean Leone - * `XAG` - Silver - * `SGD` - Singapore Dollar - * `SKK` - Slovak Koruna - * `SIT` - Slovenian Tolar - * `SBD` - Solomon Islands Dollar - * `SOS` - Somali Shilling - * `ZAR` - South African Rand - * `ZAL` - South African Rand (financial) - * `KRH` - South Korean Hwan (1953–1962) - * `KRW` - South Korean Won - * `KRO` - South Korean Won (1945–1953) - * `SSP` - South Sudanese Pound - * `SUR` - Soviet Rouble - * `ESP` - Spanish Peseta - * `ESA` - Spanish Peseta (A account) - * `ESB` - Spanish Peseta (convertible account) - * `XDR` - Special Drawing Rights - * `LKR` - Sri Lankan Rupee - * `SHP` - St. Helena Pound - * `XSU` - Sucre - * `SDD` - Sudanese Dinar (1992–2007) - * `SDG` - Sudanese Pound - * `SDP` - Sudanese Pound (1957–1998) - * `SRD` - Surinamese Dollar - * `SRG` - Surinamese Guilder - * `SZL` - Swazi Lilangeni - * `SEK` - Swedish Krona - * `CHF` - Swiss Franc - * `SYP` - Syrian Pound - * `STN` - SΓ£o TomΓ© & PrΓ­ncipe Dobra - * `STD` - SΓ£o TomΓ© & PrΓ­ncipe Dobra (1977–2017) - * `TVD` - TVD - * `TJR` - Tajikistani Ruble - * `TJS` - Tajikistani Somoni - * `TZS` - Tanzanian Shilling - * `XTS` - Testing Currency Code - * `THB` - Thai Baht - * `XXX` - The codes assigned for transactions where no currency is involved - * `TPE` - Timorese Escudo - * `TOP` - Tongan PaΚ»anga - * `TTD` - Trinidad & Tobago Dollar - * `TND` - Tunisian Dinar - * `TRY` - Turkish Lira - * `TRL` - Turkish Lira (1922–2005) - * `TMT` - Turkmenistani Manat - * `TMM` - Turkmenistani Manat (1993–2009) - * `USD` - US Dollar - * `USN` - US Dollar (Next day) - * `USS` - US Dollar (Same day) - * `UGX` - Ugandan Shilling - * `UGS` - Ugandan Shilling (1966–1987) - * `UAH` - Ukrainian Hryvnia - * `UAK` - Ukrainian Karbovanets - * `AED` - United Arab Emirates Dirham - * `UYW` - Uruguayan Nominal Wage Index Unit - * `UYU` - Uruguayan Peso - * `UYP` - Uruguayan Peso (1975–1993) - * `UYI` - Uruguayan Peso (Indexed Units) - * `UZS` - Uzbekistani Som - * `VUV` - Vanuatu Vatu - * `VES` - Venezuelan BolΓ­var - * `VEB` - Venezuelan BolΓ­var (1871–2008) - * `VEF` - Venezuelan BolΓ­var (2008–2018) - * `VND` - Vietnamese Dong - * `VNN` - Vietnamese Dong (1978–1985) - * `CHE` - WIR Euro - * `CHW` - WIR Franc - * `XOF` - West African CFA Franc - * `YDD` - Yemeni Dinar - * `YER` - Yemeni Rial - * `YUN` - Yugoslavian Convertible Dinar (1990–1992) - * `YUD` - Yugoslavian Hard Dinar (1966–1990) - * `YUM` - Yugoslavian New Dinar (1994–2002) - * `YUR` - Yugoslavian Reformed Dinar (1992–1993) - * `ZWN` - ZWN - * `ZRN` - Zairean New Zaire (1993–1998) - * `ZRZ` - Zairean Zaire (1971–1993) - * `ZMW` - Zambian Kwacha - * `ZMK` - Zambian Kwacha (1968–2012) - * `ZWD` - Zimbabwean Dollar (1980–2008) - * `ZWR` - Zimbabwean Dollar (2008) - * `ZWL` - Zimbabwean Dollar (2009) - """ - - XUA = "XUA" - AFN = "AFN" - AFA = "AFA" - ALL = "ALL" - ALK = "ALK" - DZD = "DZD" - ADP = "ADP" - AOA = "AOA" - AOK = "AOK" - AON = "AON" - AOR = "AOR" - ARA = "ARA" - ARS = "ARS" - ARM = "ARM" - ARP = "ARP" - ARL = "ARL" - AMD = "AMD" - AWG = "AWG" - AUD = "AUD" - ATS = "ATS" - AZN = "AZN" - AZM = "AZM" - BSD = "BSD" - BHD = "BHD" - BDT = "BDT" - BBD = "BBD" - BYN = "BYN" - BYB = "BYB" - BYR = "BYR" - BEF = "BEF" - BEC = "BEC" - BEL = "BEL" - BZD = "BZD" - BMD = "BMD" - BTN = "BTN" - BOB = "BOB" - BOL = "BOL" - BOV = "BOV" - BOP = "BOP" - BAM = "BAM" - BAD = "BAD" - BAN = "BAN" - BWP = "BWP" - BRC = "BRC" - BRZ = "BRZ" - BRE = "BRE" - BRR = "BRR" - BRN = "BRN" - BRB = "BRB" - BRL = "BRL" - GBP = "GBP" - BND = "BND" - BGL = "BGL" - BGN = "BGN" - BGO = "BGO" - BGM = "BGM" - BUK = "BUK" - BIF = "BIF" - XPF = "XPF" - KHR = "KHR" - CAD = "CAD" - CVE = "CVE" - KYD = "KYD" - XAF = "XAF" - CLE = "CLE" - CLP = "CLP" - CLF = "CLF" - CNX = "CNX" - CNY = "CNY" - CNH = "CNH" - COP = "COP" - COU = "COU" - KMF = "KMF" - CDF = "CDF" - CRC = "CRC" - HRD = "HRD" - HRK = "HRK" - CUC = "CUC" - CUP = "CUP" - CYP = "CYP" - CZK = "CZK" - CSK = "CSK" - DKK = "DKK" - DJF = "DJF" - DOP = "DOP" - NLG = "NLG" - XCD = "XCD" - DDM = "DDM" - ECS = "ECS" - ECV = "ECV" - EGP = "EGP" - GQE = "GQE" - ERN = "ERN" - EEK = "EEK" - ETB = "ETB" - EUR = "EUR" - XBA = "XBA" - XEU = "XEU" - XBB = "XBB" - XBC = "XBC" - XBD = "XBD" - FKP = "FKP" - FJD = "FJD" - FIM = "FIM" - FRF = "FRF" - XFO = "XFO" - XFU = "XFU" - GMD = "GMD" - GEK = "GEK" - GEL = "GEL" - DEM = "DEM" - GHS = "GHS" - GHC = "GHC" - GIP = "GIP" - XAU = "XAU" - GRD = "GRD" - GTQ = "GTQ" - GWP = "GWP" - GNF = "GNF" - GNS = "GNS" - GYD = "GYD" - HTG = "HTG" - HNL = "HNL" - HKD = "HKD" - HUF = "HUF" - IMP = "IMP" - ISK = "ISK" - ISJ = "ISJ" - INR = "INR" - IDR = "IDR" - IRR = "IRR" - IQD = "IQD" - IEP = "IEP" - ILS = "ILS" - ILP = "ILP" - ILR = "ILR" - ITL = "ITL" - JMD = "JMD" - JPY = "JPY" - JOD = "JOD" - KZT = "KZT" - KES = "KES" - KWD = "KWD" - KGS = "KGS" - LAK = "LAK" - LVL = "LVL" - LVR = "LVR" - LBP = "LBP" - LSL = "LSL" - LRD = "LRD" - LYD = "LYD" - LTL = "LTL" - LTT = "LTT" - LUL = "LUL" - LUC = "LUC" - LUF = "LUF" - MOP = "MOP" - MKD = "MKD" - MKN = "MKN" - MGA = "MGA" - MGF = "MGF" - MWK = "MWK" - MYR = "MYR" - MVR = "MVR" - MVP = "MVP" - MLF = "MLF" - MTL = "MTL" - MTP = "MTP" - MRU = "MRU" - MRO = "MRO" - MUR = "MUR" - MXV = "MXV" - MXN = "MXN" - MXP = "MXP" - MDC = "MDC" - MDL = "MDL" - MCF = "MCF" - MNT = "MNT" - MAD = "MAD" - MAF = "MAF" - MZE = "MZE" - MZN = "MZN" - MZM = "MZM" - MMK = "MMK" - NAD = "NAD" - NPR = "NPR" - ANG = "ANG" - TWD = "TWD" - NZD = "NZD" - NIO = "NIO" - NIC = "NIC" - NGN = "NGN" - KPW = "KPW" - NOK = "NOK" - OMR = "OMR" - PKR = "PKR" - XPD = "XPD" - PAB = "PAB" - PGK = "PGK" - PYG = "PYG" - PEI = "PEI" - PEN = "PEN" - PES = "PES" - PHP = "PHP" - XPT = "XPT" - PLN = "PLN" - PLZ = "PLZ" - PTE = "PTE" - GWE = "GWE" - QAR = "QAR" - XRE = "XRE" - RHD = "RHD" - RON = "RON" - ROL = "ROL" - RUB = "RUB" - RUR = "RUR" - RWF = "RWF" - SVC = "SVC" - WST = "WST" - SAR = "SAR" - RSD = "RSD" - CSD = "CSD" - SCR = "SCR" - SLL = "SLL" - XAG = "XAG" - SGD = "SGD" - SKK = "SKK" - SIT = "SIT" - SBD = "SBD" - SOS = "SOS" - ZAR = "ZAR" - ZAL = "ZAL" - KRH = "KRH" - KRW = "KRW" - KRO = "KRO" - SSP = "SSP" - SUR = "SUR" - ESP = "ESP" - ESA = "ESA" - ESB = "ESB" - XDR = "XDR" - LKR = "LKR" - SHP = "SHP" - XSU = "XSU" - SDD = "SDD" - SDG = "SDG" - SDP = "SDP" - SRD = "SRD" - SRG = "SRG" - SZL = "SZL" - SEK = "SEK" - CHF = "CHF" - SYP = "SYP" - STN = "STN" - STD = "STD" - TVD = "TVD" - TJR = "TJR" - TJS = "TJS" - TZS = "TZS" - XTS = "XTS" - THB = "THB" - XXX = "XXX" - TPE = "TPE" - TOP = "TOP" - TTD = "TTD" - TND = "TND" - TRY = "TRY" - TRL = "TRL" - TMT = "TMT" - TMM = "TMM" - USD = "USD" - USN = "USN" - USS = "USS" - UGX = "UGX" - UGS = "UGS" - UAH = "UAH" - UAK = "UAK" - AED = "AED" - UYW = "UYW" - UYU = "UYU" - UYP = "UYP" - UYI = "UYI" - UZS = "UZS" - VUV = "VUV" - VES = "VES" - VEB = "VEB" - VEF = "VEF" - VND = "VND" - VNN = "VNN" - CHE = "CHE" - CHW = "CHW" - XOF = "XOF" - YDD = "YDD" - YER = "YER" - YUN = "YUN" - YUD = "YUD" - YUM = "YUM" - YUR = "YUR" - ZWN = "ZWN" - ZRN = "ZRN" - ZRZ = "ZRZ" - ZMW = "ZMW" - ZMK = "ZMK" - ZWD = "ZWD" - ZWR = "ZWR" - ZWL = "ZWL" - - def visit( - self, - xua: typing.Callable[[], T_Result], - afn: typing.Callable[[], T_Result], - afa: typing.Callable[[], T_Result], - all_: typing.Callable[[], T_Result], - alk: typing.Callable[[], T_Result], - dzd: typing.Callable[[], T_Result], - adp: typing.Callable[[], T_Result], - aoa: typing.Callable[[], T_Result], - aok: typing.Callable[[], T_Result], - aon: typing.Callable[[], T_Result], - aor: typing.Callable[[], T_Result], - ara: typing.Callable[[], T_Result], - ars: typing.Callable[[], T_Result], - arm: typing.Callable[[], T_Result], - arp: typing.Callable[[], T_Result], - arl: typing.Callable[[], T_Result], - amd: typing.Callable[[], T_Result], - awg: typing.Callable[[], T_Result], - aud: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - azn: typing.Callable[[], T_Result], - azm: typing.Callable[[], T_Result], - bsd: typing.Callable[[], T_Result], - bhd: typing.Callable[[], T_Result], - bdt: typing.Callable[[], T_Result], - bbd: typing.Callable[[], T_Result], - byn: typing.Callable[[], T_Result], - byb: typing.Callable[[], T_Result], - byr: typing.Callable[[], T_Result], - bef: typing.Callable[[], T_Result], - bec: typing.Callable[[], T_Result], - bel: typing.Callable[[], T_Result], - bzd: typing.Callable[[], T_Result], - bmd: typing.Callable[[], T_Result], - btn: typing.Callable[[], T_Result], - bob: typing.Callable[[], T_Result], - bol: typing.Callable[[], T_Result], - bov: typing.Callable[[], T_Result], - bop: typing.Callable[[], T_Result], - bam: typing.Callable[[], T_Result], - bad: typing.Callable[[], T_Result], - ban: typing.Callable[[], T_Result], - bwp: typing.Callable[[], T_Result], - brc: typing.Callable[[], T_Result], - brz: typing.Callable[[], T_Result], - bre: typing.Callable[[], T_Result], - brr: typing.Callable[[], T_Result], - brn: typing.Callable[[], T_Result], - brb: typing.Callable[[], T_Result], - brl: typing.Callable[[], T_Result], - gbp: typing.Callable[[], T_Result], - bnd: typing.Callable[[], T_Result], - bgl: typing.Callable[[], T_Result], - bgn: typing.Callable[[], T_Result], - bgo: typing.Callable[[], T_Result], - bgm: typing.Callable[[], T_Result], - buk: typing.Callable[[], T_Result], - bif: typing.Callable[[], T_Result], - xpf: typing.Callable[[], T_Result], - khr: typing.Callable[[], T_Result], - cad: typing.Callable[[], T_Result], - cve: typing.Callable[[], T_Result], - kyd: typing.Callable[[], T_Result], - xaf: typing.Callable[[], T_Result], - cle: typing.Callable[[], T_Result], - clp: typing.Callable[[], T_Result], - clf: typing.Callable[[], T_Result], - cnx: typing.Callable[[], T_Result], - cny: typing.Callable[[], T_Result], - cnh: typing.Callable[[], T_Result], - cop: typing.Callable[[], T_Result], - cou: typing.Callable[[], T_Result], - kmf: typing.Callable[[], T_Result], - cdf: typing.Callable[[], T_Result], - crc: typing.Callable[[], T_Result], - hrd: typing.Callable[[], T_Result], - hrk: typing.Callable[[], T_Result], - cuc: typing.Callable[[], T_Result], - cup: typing.Callable[[], T_Result], - cyp: typing.Callable[[], T_Result], - czk: typing.Callable[[], T_Result], - csk: typing.Callable[[], T_Result], - dkk: typing.Callable[[], T_Result], - djf: typing.Callable[[], T_Result], - dop: typing.Callable[[], T_Result], - nlg: typing.Callable[[], T_Result], - xcd: typing.Callable[[], T_Result], - ddm: typing.Callable[[], T_Result], - ecs: typing.Callable[[], T_Result], - ecv: typing.Callable[[], T_Result], - egp: typing.Callable[[], T_Result], - gqe: typing.Callable[[], T_Result], - ern: typing.Callable[[], T_Result], - eek: typing.Callable[[], T_Result], - etb: typing.Callable[[], T_Result], - eur: typing.Callable[[], T_Result], - xba: typing.Callable[[], T_Result], - xeu: typing.Callable[[], T_Result], - xbb: typing.Callable[[], T_Result], - xbc: typing.Callable[[], T_Result], - xbd: typing.Callable[[], T_Result], - fkp: typing.Callable[[], T_Result], - fjd: typing.Callable[[], T_Result], - fim: typing.Callable[[], T_Result], - frf: typing.Callable[[], T_Result], - xfo: typing.Callable[[], T_Result], - xfu: typing.Callable[[], T_Result], - gmd: typing.Callable[[], T_Result], - gek: typing.Callable[[], T_Result], - gel: typing.Callable[[], T_Result], - dem: typing.Callable[[], T_Result], - ghs: typing.Callable[[], T_Result], - ghc: typing.Callable[[], T_Result], - gip: typing.Callable[[], T_Result], - xau: typing.Callable[[], T_Result], - grd: typing.Callable[[], T_Result], - gtq: typing.Callable[[], T_Result], - gwp: typing.Callable[[], T_Result], - gnf: typing.Callable[[], T_Result], - gns: typing.Callable[[], T_Result], - gyd: typing.Callable[[], T_Result], - htg: typing.Callable[[], T_Result], - hnl: typing.Callable[[], T_Result], - hkd: typing.Callable[[], T_Result], - huf: typing.Callable[[], T_Result], - imp: typing.Callable[[], T_Result], - isk: typing.Callable[[], T_Result], - isj: typing.Callable[[], T_Result], - inr: typing.Callable[[], T_Result], - idr: typing.Callable[[], T_Result], - irr: typing.Callable[[], T_Result], - iqd: typing.Callable[[], T_Result], - iep: typing.Callable[[], T_Result], - ils: typing.Callable[[], T_Result], - ilp: typing.Callable[[], T_Result], - ilr: typing.Callable[[], T_Result], - itl: typing.Callable[[], T_Result], - jmd: typing.Callable[[], T_Result], - jpy: typing.Callable[[], T_Result], - jod: typing.Callable[[], T_Result], - kzt: typing.Callable[[], T_Result], - kes: typing.Callable[[], T_Result], - kwd: typing.Callable[[], T_Result], - kgs: typing.Callable[[], T_Result], - lak: typing.Callable[[], T_Result], - lvl: typing.Callable[[], T_Result], - lvr: typing.Callable[[], T_Result], - lbp: typing.Callable[[], T_Result], - lsl: typing.Callable[[], T_Result], - lrd: typing.Callable[[], T_Result], - lyd: typing.Callable[[], T_Result], - ltl: typing.Callable[[], T_Result], - ltt: typing.Callable[[], T_Result], - lul: typing.Callable[[], T_Result], - luc: typing.Callable[[], T_Result], - luf: typing.Callable[[], T_Result], - mop: typing.Callable[[], T_Result], - mkd: typing.Callable[[], T_Result], - mkn: typing.Callable[[], T_Result], - mga: typing.Callable[[], T_Result], - mgf: typing.Callable[[], T_Result], - mwk: typing.Callable[[], T_Result], - myr: typing.Callable[[], T_Result], - mvr: typing.Callable[[], T_Result], - mvp: typing.Callable[[], T_Result], - mlf: typing.Callable[[], T_Result], - mtl: typing.Callable[[], T_Result], - mtp: typing.Callable[[], T_Result], - mru: typing.Callable[[], T_Result], - mro: typing.Callable[[], T_Result], - mur: typing.Callable[[], T_Result], - mxv: typing.Callable[[], T_Result], - mxn: typing.Callable[[], T_Result], - mxp: typing.Callable[[], T_Result], - mdc: typing.Callable[[], T_Result], - mdl: typing.Callable[[], T_Result], - mcf: typing.Callable[[], T_Result], - mnt: typing.Callable[[], T_Result], - mad: typing.Callable[[], T_Result], - maf: typing.Callable[[], T_Result], - mze: typing.Callable[[], T_Result], - mzn: typing.Callable[[], T_Result], - mzm: typing.Callable[[], T_Result], - mmk: typing.Callable[[], T_Result], - nad: typing.Callable[[], T_Result], - npr: typing.Callable[[], T_Result], - ang: typing.Callable[[], T_Result], - twd: typing.Callable[[], T_Result], - nzd: typing.Callable[[], T_Result], - nio: typing.Callable[[], T_Result], - nic: typing.Callable[[], T_Result], - ngn: typing.Callable[[], T_Result], - kpw: typing.Callable[[], T_Result], - nok: typing.Callable[[], T_Result], - omr: typing.Callable[[], T_Result], - pkr: typing.Callable[[], T_Result], - xpd: typing.Callable[[], T_Result], - pab: typing.Callable[[], T_Result], - pgk: typing.Callable[[], T_Result], - pyg: typing.Callable[[], T_Result], - pei: typing.Callable[[], T_Result], - pen: typing.Callable[[], T_Result], - pes: typing.Callable[[], T_Result], - php: typing.Callable[[], T_Result], - xpt: typing.Callable[[], T_Result], - pln: typing.Callable[[], T_Result], - plz: typing.Callable[[], T_Result], - pte: typing.Callable[[], T_Result], - gwe: typing.Callable[[], T_Result], - qar: typing.Callable[[], T_Result], - xre: typing.Callable[[], T_Result], - rhd: typing.Callable[[], T_Result], - ron: typing.Callable[[], T_Result], - rol: typing.Callable[[], T_Result], - rub: typing.Callable[[], T_Result], - rur: typing.Callable[[], T_Result], - rwf: typing.Callable[[], T_Result], - svc: typing.Callable[[], T_Result], - wst: typing.Callable[[], T_Result], - sar: typing.Callable[[], T_Result], - rsd: typing.Callable[[], T_Result], - csd: typing.Callable[[], T_Result], - scr: typing.Callable[[], T_Result], - sll: typing.Callable[[], T_Result], - xag: typing.Callable[[], T_Result], - sgd: typing.Callable[[], T_Result], - skk: typing.Callable[[], T_Result], - sit: typing.Callable[[], T_Result], - sbd: typing.Callable[[], T_Result], - sos: typing.Callable[[], T_Result], - zar: typing.Callable[[], T_Result], - zal: typing.Callable[[], T_Result], - krh: typing.Callable[[], T_Result], - krw: typing.Callable[[], T_Result], - kro: typing.Callable[[], T_Result], - ssp: typing.Callable[[], T_Result], - sur: typing.Callable[[], T_Result], - esp: typing.Callable[[], T_Result], - esa: typing.Callable[[], T_Result], - esb: typing.Callable[[], T_Result], - xdr: typing.Callable[[], T_Result], - lkr: typing.Callable[[], T_Result], - shp: typing.Callable[[], T_Result], - xsu: typing.Callable[[], T_Result], - sdd: typing.Callable[[], T_Result], - sdg: typing.Callable[[], T_Result], - sdp: typing.Callable[[], T_Result], - srd: typing.Callable[[], T_Result], - srg: typing.Callable[[], T_Result], - szl: typing.Callable[[], T_Result], - sek: typing.Callable[[], T_Result], - chf: typing.Callable[[], T_Result], - syp: typing.Callable[[], T_Result], - stn: typing.Callable[[], T_Result], - std: typing.Callable[[], T_Result], - tvd: typing.Callable[[], T_Result], - tjr: typing.Callable[[], T_Result], - tjs: typing.Callable[[], T_Result], - tzs: typing.Callable[[], T_Result], - xts: typing.Callable[[], T_Result], - thb: typing.Callable[[], T_Result], - xxx: typing.Callable[[], T_Result], - tpe: typing.Callable[[], T_Result], - top: typing.Callable[[], T_Result], - ttd: typing.Callable[[], T_Result], - tnd: typing.Callable[[], T_Result], - try_: typing.Callable[[], T_Result], - trl: typing.Callable[[], T_Result], - tmt: typing.Callable[[], T_Result], - tmm: typing.Callable[[], T_Result], - usd: typing.Callable[[], T_Result], - usn: typing.Callable[[], T_Result], - uss: typing.Callable[[], T_Result], - ugx: typing.Callable[[], T_Result], - ugs: typing.Callable[[], T_Result], - uah: typing.Callable[[], T_Result], - uak: typing.Callable[[], T_Result], - aed: typing.Callable[[], T_Result], - uyw: typing.Callable[[], T_Result], - uyu: typing.Callable[[], T_Result], - uyp: typing.Callable[[], T_Result], - uyi: typing.Callable[[], T_Result], - uzs: typing.Callable[[], T_Result], - vuv: typing.Callable[[], T_Result], - ves: typing.Callable[[], T_Result], - veb: typing.Callable[[], T_Result], - vef: typing.Callable[[], T_Result], - vnd: typing.Callable[[], T_Result], - vnn: typing.Callable[[], T_Result], - che: typing.Callable[[], T_Result], - chw: typing.Callable[[], T_Result], - xof: typing.Callable[[], T_Result], - ydd: typing.Callable[[], T_Result], - yer: typing.Callable[[], T_Result], - yun: typing.Callable[[], T_Result], - yud: typing.Callable[[], T_Result], - yum: typing.Callable[[], T_Result], - yur: typing.Callable[[], T_Result], - zwn: typing.Callable[[], T_Result], - zrn: typing.Callable[[], T_Result], - zrz: typing.Callable[[], T_Result], - zmw: typing.Callable[[], T_Result], - zmk: typing.Callable[[], T_Result], - zwd: typing.Callable[[], T_Result], - zwr: typing.Callable[[], T_Result], - zwl: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayCurrencyEnum.XUA: - return xua() - if self is PayCurrencyEnum.AFN: - return afn() - if self is PayCurrencyEnum.AFA: - return afa() - if self is PayCurrencyEnum.ALL: - return all_() - if self is PayCurrencyEnum.ALK: - return alk() - if self is PayCurrencyEnum.DZD: - return dzd() - if self is PayCurrencyEnum.ADP: - return adp() - if self is PayCurrencyEnum.AOA: - return aoa() - if self is PayCurrencyEnum.AOK: - return aok() - if self is PayCurrencyEnum.AON: - return aon() - if self is PayCurrencyEnum.AOR: - return aor() - if self is PayCurrencyEnum.ARA: - return ara() - if self is PayCurrencyEnum.ARS: - return ars() - if self is PayCurrencyEnum.ARM: - return arm() - if self is PayCurrencyEnum.ARP: - return arp() - if self is PayCurrencyEnum.ARL: - return arl() - if self is PayCurrencyEnum.AMD: - return amd() - if self is PayCurrencyEnum.AWG: - return awg() - if self is PayCurrencyEnum.AUD: - return aud() - if self is PayCurrencyEnum.ATS: - return ats() - if self is PayCurrencyEnum.AZN: - return azn() - if self is PayCurrencyEnum.AZM: - return azm() - if self is PayCurrencyEnum.BSD: - return bsd() - if self is PayCurrencyEnum.BHD: - return bhd() - if self is PayCurrencyEnum.BDT: - return bdt() - if self is PayCurrencyEnum.BBD: - return bbd() - if self is PayCurrencyEnum.BYN: - return byn() - if self is PayCurrencyEnum.BYB: - return byb() - if self is PayCurrencyEnum.BYR: - return byr() - if self is PayCurrencyEnum.BEF: - return bef() - if self is PayCurrencyEnum.BEC: - return bec() - if self is PayCurrencyEnum.BEL: - return bel() - if self is PayCurrencyEnum.BZD: - return bzd() - if self is PayCurrencyEnum.BMD: - return bmd() - if self is PayCurrencyEnum.BTN: - return btn() - if self is PayCurrencyEnum.BOB: - return bob() - if self is PayCurrencyEnum.BOL: - return bol() - if self is PayCurrencyEnum.BOV: - return bov() - if self is PayCurrencyEnum.BOP: - return bop() - if self is PayCurrencyEnum.BAM: - return bam() - if self is PayCurrencyEnum.BAD: - return bad() - if self is PayCurrencyEnum.BAN: - return ban() - if self is PayCurrencyEnum.BWP: - return bwp() - if self is PayCurrencyEnum.BRC: - return brc() - if self is PayCurrencyEnum.BRZ: - return brz() - if self is PayCurrencyEnum.BRE: - return bre() - if self is PayCurrencyEnum.BRR: - return brr() - if self is PayCurrencyEnum.BRN: - return brn() - if self is PayCurrencyEnum.BRB: - return brb() - if self is PayCurrencyEnum.BRL: - return brl() - if self is PayCurrencyEnum.GBP: - return gbp() - if self is PayCurrencyEnum.BND: - return bnd() - if self is PayCurrencyEnum.BGL: - return bgl() - if self is PayCurrencyEnum.BGN: - return bgn() - if self is PayCurrencyEnum.BGO: - return bgo() - if self is PayCurrencyEnum.BGM: - return bgm() - if self is PayCurrencyEnum.BUK: - return buk() - if self is PayCurrencyEnum.BIF: - return bif() - if self is PayCurrencyEnum.XPF: - return xpf() - if self is PayCurrencyEnum.KHR: - return khr() - if self is PayCurrencyEnum.CAD: - return cad() - if self is PayCurrencyEnum.CVE: - return cve() - if self is PayCurrencyEnum.KYD: - return kyd() - if self is PayCurrencyEnum.XAF: - return xaf() - if self is PayCurrencyEnum.CLE: - return cle() - if self is PayCurrencyEnum.CLP: - return clp() - if self is PayCurrencyEnum.CLF: - return clf() - if self is PayCurrencyEnum.CNX: - return cnx() - if self is PayCurrencyEnum.CNY: - return cny() - if self is PayCurrencyEnum.CNH: - return cnh() - if self is PayCurrencyEnum.COP: - return cop() - if self is PayCurrencyEnum.COU: - return cou() - if self is PayCurrencyEnum.KMF: - return kmf() - if self is PayCurrencyEnum.CDF: - return cdf() - if self is PayCurrencyEnum.CRC: - return crc() - if self is PayCurrencyEnum.HRD: - return hrd() - if self is PayCurrencyEnum.HRK: - return hrk() - if self is PayCurrencyEnum.CUC: - return cuc() - if self is PayCurrencyEnum.CUP: - return cup() - if self is PayCurrencyEnum.CYP: - return cyp() - if self is PayCurrencyEnum.CZK: - return czk() - if self is PayCurrencyEnum.CSK: - return csk() - if self is PayCurrencyEnum.DKK: - return dkk() - if self is PayCurrencyEnum.DJF: - return djf() - if self is PayCurrencyEnum.DOP: - return dop() - if self is PayCurrencyEnum.NLG: - return nlg() - if self is PayCurrencyEnum.XCD: - return xcd() - if self is PayCurrencyEnum.DDM: - return ddm() - if self is PayCurrencyEnum.ECS: - return ecs() - if self is PayCurrencyEnum.ECV: - return ecv() - if self is PayCurrencyEnum.EGP: - return egp() - if self is PayCurrencyEnum.GQE: - return gqe() - if self is PayCurrencyEnum.ERN: - return ern() - if self is PayCurrencyEnum.EEK: - return eek() - if self is PayCurrencyEnum.ETB: - return etb() - if self is PayCurrencyEnum.EUR: - return eur() - if self is PayCurrencyEnum.XBA: - return xba() - if self is PayCurrencyEnum.XEU: - return xeu() - if self is PayCurrencyEnum.XBB: - return xbb() - if self is PayCurrencyEnum.XBC: - return xbc() - if self is PayCurrencyEnum.XBD: - return xbd() - if self is PayCurrencyEnum.FKP: - return fkp() - if self is PayCurrencyEnum.FJD: - return fjd() - if self is PayCurrencyEnum.FIM: - return fim() - if self is PayCurrencyEnum.FRF: - return frf() - if self is PayCurrencyEnum.XFO: - return xfo() - if self is PayCurrencyEnum.XFU: - return xfu() - if self is PayCurrencyEnum.GMD: - return gmd() - if self is PayCurrencyEnum.GEK: - return gek() - if self is PayCurrencyEnum.GEL: - return gel() - if self is PayCurrencyEnum.DEM: - return dem() - if self is PayCurrencyEnum.GHS: - return ghs() - if self is PayCurrencyEnum.GHC: - return ghc() - if self is PayCurrencyEnum.GIP: - return gip() - if self is PayCurrencyEnum.XAU: - return xau() - if self is PayCurrencyEnum.GRD: - return grd() - if self is PayCurrencyEnum.GTQ: - return gtq() - if self is PayCurrencyEnum.GWP: - return gwp() - if self is PayCurrencyEnum.GNF: - return gnf() - if self is PayCurrencyEnum.GNS: - return gns() - if self is PayCurrencyEnum.GYD: - return gyd() - if self is PayCurrencyEnum.HTG: - return htg() - if self is PayCurrencyEnum.HNL: - return hnl() - if self is PayCurrencyEnum.HKD: - return hkd() - if self is PayCurrencyEnum.HUF: - return huf() - if self is PayCurrencyEnum.IMP: - return imp() - if self is PayCurrencyEnum.ISK: - return isk() - if self is PayCurrencyEnum.ISJ: - return isj() - if self is PayCurrencyEnum.INR: - return inr() - if self is PayCurrencyEnum.IDR: - return idr() - if self is PayCurrencyEnum.IRR: - return irr() - if self is PayCurrencyEnum.IQD: - return iqd() - if self is PayCurrencyEnum.IEP: - return iep() - if self is PayCurrencyEnum.ILS: - return ils() - if self is PayCurrencyEnum.ILP: - return ilp() - if self is PayCurrencyEnum.ILR: - return ilr() - if self is PayCurrencyEnum.ITL: - return itl() - if self is PayCurrencyEnum.JMD: - return jmd() - if self is PayCurrencyEnum.JPY: - return jpy() - if self is PayCurrencyEnum.JOD: - return jod() - if self is PayCurrencyEnum.KZT: - return kzt() - if self is PayCurrencyEnum.KES: - return kes() - if self is PayCurrencyEnum.KWD: - return kwd() - if self is PayCurrencyEnum.KGS: - return kgs() - if self is PayCurrencyEnum.LAK: - return lak() - if self is PayCurrencyEnum.LVL: - return lvl() - if self is PayCurrencyEnum.LVR: - return lvr() - if self is PayCurrencyEnum.LBP: - return lbp() - if self is PayCurrencyEnum.LSL: - return lsl() - if self is PayCurrencyEnum.LRD: - return lrd() - if self is PayCurrencyEnum.LYD: - return lyd() - if self is PayCurrencyEnum.LTL: - return ltl() - if self is PayCurrencyEnum.LTT: - return ltt() - if self is PayCurrencyEnum.LUL: - return lul() - if self is PayCurrencyEnum.LUC: - return luc() - if self is PayCurrencyEnum.LUF: - return luf() - if self is PayCurrencyEnum.MOP: - return mop() - if self is PayCurrencyEnum.MKD: - return mkd() - if self is PayCurrencyEnum.MKN: - return mkn() - if self is PayCurrencyEnum.MGA: - return mga() - if self is PayCurrencyEnum.MGF: - return mgf() - if self is PayCurrencyEnum.MWK: - return mwk() - if self is PayCurrencyEnum.MYR: - return myr() - if self is PayCurrencyEnum.MVR: - return mvr() - if self is PayCurrencyEnum.MVP: - return mvp() - if self is PayCurrencyEnum.MLF: - return mlf() - if self is PayCurrencyEnum.MTL: - return mtl() - if self is PayCurrencyEnum.MTP: - return mtp() - if self is PayCurrencyEnum.MRU: - return mru() - if self is PayCurrencyEnum.MRO: - return mro() - if self is PayCurrencyEnum.MUR: - return mur() - if self is PayCurrencyEnum.MXV: - return mxv() - if self is PayCurrencyEnum.MXN: - return mxn() - if self is PayCurrencyEnum.MXP: - return mxp() - if self is PayCurrencyEnum.MDC: - return mdc() - if self is PayCurrencyEnum.MDL: - return mdl() - if self is PayCurrencyEnum.MCF: - return mcf() - if self is PayCurrencyEnum.MNT: - return mnt() - if self is PayCurrencyEnum.MAD: - return mad() - if self is PayCurrencyEnum.MAF: - return maf() - if self is PayCurrencyEnum.MZE: - return mze() - if self is PayCurrencyEnum.MZN: - return mzn() - if self is PayCurrencyEnum.MZM: - return mzm() - if self is PayCurrencyEnum.MMK: - return mmk() - if self is PayCurrencyEnum.NAD: - return nad() - if self is PayCurrencyEnum.NPR: - return npr() - if self is PayCurrencyEnum.ANG: - return ang() - if self is PayCurrencyEnum.TWD: - return twd() - if self is PayCurrencyEnum.NZD: - return nzd() - if self is PayCurrencyEnum.NIO: - return nio() - if self is PayCurrencyEnum.NIC: - return nic() - if self is PayCurrencyEnum.NGN: - return ngn() - if self is PayCurrencyEnum.KPW: - return kpw() - if self is PayCurrencyEnum.NOK: - return nok() - if self is PayCurrencyEnum.OMR: - return omr() - if self is PayCurrencyEnum.PKR: - return pkr() - if self is PayCurrencyEnum.XPD: - return xpd() - if self is PayCurrencyEnum.PAB: - return pab() - if self is PayCurrencyEnum.PGK: - return pgk() - if self is PayCurrencyEnum.PYG: - return pyg() - if self is PayCurrencyEnum.PEI: - return pei() - if self is PayCurrencyEnum.PEN: - return pen() - if self is PayCurrencyEnum.PES: - return pes() - if self is PayCurrencyEnum.PHP: - return php() - if self is PayCurrencyEnum.XPT: - return xpt() - if self is PayCurrencyEnum.PLN: - return pln() - if self is PayCurrencyEnum.PLZ: - return plz() - if self is PayCurrencyEnum.PTE: - return pte() - if self is PayCurrencyEnum.GWE: - return gwe() - if self is PayCurrencyEnum.QAR: - return qar() - if self is PayCurrencyEnum.XRE: - return xre() - if self is PayCurrencyEnum.RHD: - return rhd() - if self is PayCurrencyEnum.RON: - return ron() - if self is PayCurrencyEnum.ROL: - return rol() - if self is PayCurrencyEnum.RUB: - return rub() - if self is PayCurrencyEnum.RUR: - return rur() - if self is PayCurrencyEnum.RWF: - return rwf() - if self is PayCurrencyEnum.SVC: - return svc() - if self is PayCurrencyEnum.WST: - return wst() - if self is PayCurrencyEnum.SAR: - return sar() - if self is PayCurrencyEnum.RSD: - return rsd() - if self is PayCurrencyEnum.CSD: - return csd() - if self is PayCurrencyEnum.SCR: - return scr() - if self is PayCurrencyEnum.SLL: - return sll() - if self is PayCurrencyEnum.XAG: - return xag() - if self is PayCurrencyEnum.SGD: - return sgd() - if self is PayCurrencyEnum.SKK: - return skk() - if self is PayCurrencyEnum.SIT: - return sit() - if self is PayCurrencyEnum.SBD: - return sbd() - if self is PayCurrencyEnum.SOS: - return sos() - if self is PayCurrencyEnum.ZAR: - return zar() - if self is PayCurrencyEnum.ZAL: - return zal() - if self is PayCurrencyEnum.KRH: - return krh() - if self is PayCurrencyEnum.KRW: - return krw() - if self is PayCurrencyEnum.KRO: - return kro() - if self is PayCurrencyEnum.SSP: - return ssp() - if self is PayCurrencyEnum.SUR: - return sur() - if self is PayCurrencyEnum.ESP: - return esp() - if self is PayCurrencyEnum.ESA: - return esa() - if self is PayCurrencyEnum.ESB: - return esb() - if self is PayCurrencyEnum.XDR: - return xdr() - if self is PayCurrencyEnum.LKR: - return lkr() - if self is PayCurrencyEnum.SHP: - return shp() - if self is PayCurrencyEnum.XSU: - return xsu() - if self is PayCurrencyEnum.SDD: - return sdd() - if self is PayCurrencyEnum.SDG: - return sdg() - if self is PayCurrencyEnum.SDP: - return sdp() - if self is PayCurrencyEnum.SRD: - return srd() - if self is PayCurrencyEnum.SRG: - return srg() - if self is PayCurrencyEnum.SZL: - return szl() - if self is PayCurrencyEnum.SEK: - return sek() - if self is PayCurrencyEnum.CHF: - return chf() - if self is PayCurrencyEnum.SYP: - return syp() - if self is PayCurrencyEnum.STN: - return stn() - if self is PayCurrencyEnum.STD: - return std() - if self is PayCurrencyEnum.TVD: - return tvd() - if self is PayCurrencyEnum.TJR: - return tjr() - if self is PayCurrencyEnum.TJS: - return tjs() - if self is PayCurrencyEnum.TZS: - return tzs() - if self is PayCurrencyEnum.XTS: - return xts() - if self is PayCurrencyEnum.THB: - return thb() - if self is PayCurrencyEnum.XXX: - return xxx() - if self is PayCurrencyEnum.TPE: - return tpe() - if self is PayCurrencyEnum.TOP: - return top() - if self is PayCurrencyEnum.TTD: - return ttd() - if self is PayCurrencyEnum.TND: - return tnd() - if self is PayCurrencyEnum.TRY: - return try_() - if self is PayCurrencyEnum.TRL: - return trl() - if self is PayCurrencyEnum.TMT: - return tmt() - if self is PayCurrencyEnum.TMM: - return tmm() - if self is PayCurrencyEnum.USD: - return usd() - if self is PayCurrencyEnum.USN: - return usn() - if self is PayCurrencyEnum.USS: - return uss() - if self is PayCurrencyEnum.UGX: - return ugx() - if self is PayCurrencyEnum.UGS: - return ugs() - if self is PayCurrencyEnum.UAH: - return uah() - if self is PayCurrencyEnum.UAK: - return uak() - if self is PayCurrencyEnum.AED: - return aed() - if self is PayCurrencyEnum.UYW: - return uyw() - if self is PayCurrencyEnum.UYU: - return uyu() - if self is PayCurrencyEnum.UYP: - return uyp() - if self is PayCurrencyEnum.UYI: - return uyi() - if self is PayCurrencyEnum.UZS: - return uzs() - if self is PayCurrencyEnum.VUV: - return vuv() - if self is PayCurrencyEnum.VES: - return ves() - if self is PayCurrencyEnum.VEB: - return veb() - if self is PayCurrencyEnum.VEF: - return vef() - if self is PayCurrencyEnum.VND: - return vnd() - if self is PayCurrencyEnum.VNN: - return vnn() - if self is PayCurrencyEnum.CHE: - return che() - if self is PayCurrencyEnum.CHW: - return chw() - if self is PayCurrencyEnum.XOF: - return xof() - if self is PayCurrencyEnum.YDD: - return ydd() - if self is PayCurrencyEnum.YER: - return yer() - if self is PayCurrencyEnum.YUN: - return yun() - if self is PayCurrencyEnum.YUD: - return yud() - if self is PayCurrencyEnum.YUM: - return yum() - if self is PayCurrencyEnum.YUR: - return yur() - if self is PayCurrencyEnum.ZWN: - return zwn() - if self is PayCurrencyEnum.ZRN: - return zrn() - if self is PayCurrencyEnum.ZRZ: - return zrz() - if self is PayCurrencyEnum.ZMW: - return zmw() - if self is PayCurrencyEnum.ZMK: - return zmk() - if self is PayCurrencyEnum.ZWD: - return zwd() - if self is PayCurrencyEnum.ZWR: - return zwr() - if self is PayCurrencyEnum.ZWL: - return zwl() diff --git a/src/merge/resources/hris/types/pay_frequency_enum.py b/src/merge/resources/hris/types/pay_frequency_enum.py deleted file mode 100644 index a9c635a9..00000000 --- a/src/merge/resources/hris/types/pay_frequency_enum.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayFrequencyEnum(str, enum.Enum): - """ - * `WEEKLY` - WEEKLY - * `BIWEEKLY` - BIWEEKLY - * `MONTHLY` - MONTHLY - * `QUARTERLY` - QUARTERLY - * `SEMIANNUALLY` - SEMIANNUALLY - * `ANNUALLY` - ANNUALLY - * `THIRTEEN-MONTHLY` - THIRTEEN-MONTHLY - * `PRO_RATA` - PRO_RATA - * `SEMIMONTHLY` - SEMIMONTHLY - """ - - WEEKLY = "WEEKLY" - BIWEEKLY = "BIWEEKLY" - MONTHLY = "MONTHLY" - QUARTERLY = "QUARTERLY" - SEMIANNUALLY = "SEMIANNUALLY" - ANNUALLY = "ANNUALLY" - THIRTEEN_MONTHLY = "THIRTEEN-MONTHLY" - PRO_RATA = "PRO_RATA" - SEMIMONTHLY = "SEMIMONTHLY" - - def visit( - self, - weekly: typing.Callable[[], T_Result], - biweekly: typing.Callable[[], T_Result], - monthly: typing.Callable[[], T_Result], - quarterly: typing.Callable[[], T_Result], - semiannually: typing.Callable[[], T_Result], - annually: typing.Callable[[], T_Result], - thirteen_monthly: typing.Callable[[], T_Result], - pro_rata: typing.Callable[[], T_Result], - semimonthly: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayFrequencyEnum.WEEKLY: - return weekly() - if self is PayFrequencyEnum.BIWEEKLY: - return biweekly() - if self is PayFrequencyEnum.MONTHLY: - return monthly() - if self is PayFrequencyEnum.QUARTERLY: - return quarterly() - if self is PayFrequencyEnum.SEMIANNUALLY: - return semiannually() - if self is PayFrequencyEnum.ANNUALLY: - return annually() - if self is PayFrequencyEnum.THIRTEEN_MONTHLY: - return thirteen_monthly() - if self is PayFrequencyEnum.PRO_RATA: - return pro_rata() - if self is PayFrequencyEnum.SEMIMONTHLY: - return semimonthly() diff --git a/src/merge/resources/hris/types/pay_group.py b/src/merge/resources/hris/types/pay_group.py deleted file mode 100644 index 5ade80dd..00000000 --- a/src/merge/resources/hris/types/pay_group.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class PayGroup(UncheckedBaseModel): - """ - # The PayGroup Object - ### Description - The `PayGroup` object is used to represent a subset of employees that are put together for payroll processing purposes. - - ### Usage Example - Fetch from the `LIST PayGroup` endpoint and filter by `ID` to show all pay group information. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - pay_group_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The pay group name. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/pay_period_enum.py b/src/merge/resources/hris/types/pay_period_enum.py deleted file mode 100644 index b3b48bda..00000000 --- a/src/merge/resources/hris/types/pay_period_enum.py +++ /dev/null @@ -1,61 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PayPeriodEnum(str, enum.Enum): - """ - * `HOUR` - HOUR - * `DAY` - DAY - * `WEEK` - WEEK - * `EVERY_TWO_WEEKS` - EVERY_TWO_WEEKS - * `SEMIMONTHLY` - SEMIMONTHLY - * `MONTH` - MONTH - * `QUARTER` - QUARTER - * `EVERY_SIX_MONTHS` - EVERY_SIX_MONTHS - * `YEAR` - YEAR - """ - - HOUR = "HOUR" - DAY = "DAY" - WEEK = "WEEK" - EVERY_TWO_WEEKS = "EVERY_TWO_WEEKS" - SEMIMONTHLY = "SEMIMONTHLY" - MONTH = "MONTH" - QUARTER = "QUARTER" - EVERY_SIX_MONTHS = "EVERY_SIX_MONTHS" - YEAR = "YEAR" - - def visit( - self, - hour: typing.Callable[[], T_Result], - day: typing.Callable[[], T_Result], - week: typing.Callable[[], T_Result], - every_two_weeks: typing.Callable[[], T_Result], - semimonthly: typing.Callable[[], T_Result], - month: typing.Callable[[], T_Result], - quarter: typing.Callable[[], T_Result], - every_six_months: typing.Callable[[], T_Result], - year: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PayPeriodEnum.HOUR: - return hour() - if self is PayPeriodEnum.DAY: - return day() - if self is PayPeriodEnum.WEEK: - return week() - if self is PayPeriodEnum.EVERY_TWO_WEEKS: - return every_two_weeks() - if self is PayPeriodEnum.SEMIMONTHLY: - return semimonthly() - if self is PayPeriodEnum.MONTH: - return month() - if self is PayPeriodEnum.QUARTER: - return quarter() - if self is PayPeriodEnum.EVERY_SIX_MONTHS: - return every_six_months() - if self is PayPeriodEnum.YEAR: - return year() diff --git a/src/merge/resources/hris/types/payroll_run.py b/src/merge/resources/hris/types/payroll_run.py deleted file mode 100644 index 21f8380c..00000000 --- a/src/merge/resources/hris/types/payroll_run.py +++ /dev/null @@ -1,92 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .payroll_run_run_state import PayrollRunRunState -from .payroll_run_run_type import PayrollRunRunType -from .remote_data import RemoteData - - -class PayrollRun(UncheckedBaseModel): - """ - # The PayrollRun Object - ### Description - The `PayrollRun` object is used to represent a group of pay statements for a specific pay schedule. - - ### Usage Example - Fetch from the `LIST PayrollRuns` endpoint and filter by `ID` to show all payroll runs. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - run_state: typing.Optional[PayrollRunRunState] = pydantic.Field(default=None) - """ - The state of the payroll run - - * `PAID` - PAID - * `DRAFT` - DRAFT - * `APPROVED` - APPROVED - * `FAILED` - FAILED - * `CLOSED` - CLOSED - """ - - run_type: typing.Optional[PayrollRunRunType] = pydantic.Field(default=None) - """ - The type of the payroll run - - * `REGULAR` - REGULAR - * `OFF_CYCLE` - OFF_CYCLE - * `CORRECTION` - CORRECTION - * `TERMINATION` - TERMINATION - * `SIGN_ON_BONUS` - SIGN_ON_BONUS - """ - - start_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the payroll run started. - """ - - end_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the payroll run ended. - """ - - check_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time the payroll run was checked. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/payroll_run_run_state.py b/src/merge/resources/hris/types/payroll_run_run_state.py deleted file mode 100644 index a58c8f04..00000000 --- a/src/merge/resources/hris/types/payroll_run_run_state.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .run_state_enum import RunStateEnum - -PayrollRunRunState = typing.Union[RunStateEnum, str] diff --git a/src/merge/resources/hris/types/payroll_run_run_type.py b/src/merge/resources/hris/types/payroll_run_run_type.py deleted file mode 100644 index ca957e8e..00000000 --- a/src/merge/resources/hris/types/payroll_run_run_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .run_type_enum import RunTypeEnum - -PayrollRunRunType = typing.Union[RunTypeEnum, str] diff --git a/src/merge/resources/hris/types/policy_type_enum.py b/src/merge/resources/hris/types/policy_type_enum.py deleted file mode 100644 index 2bb2834b..00000000 --- a/src/merge/resources/hris/types/policy_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PolicyTypeEnum(str, enum.Enum): - """ - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - """ - - VACATION = "VACATION" - SICK = "SICK" - PERSONAL = "PERSONAL" - JURY_DUTY = "JURY_DUTY" - VOLUNTEER = "VOLUNTEER" - BEREAVEMENT = "BEREAVEMENT" - - def visit( - self, - vacation: typing.Callable[[], T_Result], - sick: typing.Callable[[], T_Result], - personal: typing.Callable[[], T_Result], - jury_duty: typing.Callable[[], T_Result], - volunteer: typing.Callable[[], T_Result], - bereavement: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PolicyTypeEnum.VACATION: - return vacation() - if self is PolicyTypeEnum.SICK: - return sick() - if self is PolicyTypeEnum.PERSONAL: - return personal() - if self is PolicyTypeEnum.JURY_DUTY: - return jury_duty() - if self is PolicyTypeEnum.VOLUNTEER: - return volunteer() - if self is PolicyTypeEnum.BEREAVEMENT: - return bereavement() diff --git a/src/merge/resources/hris/types/reason_enum.py b/src/merge/resources/hris/types/reason_enum.py deleted file mode 100644 index ea6ba5b6..00000000 --- a/src/merge/resources/hris/types/reason_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ReasonEnum(str, enum.Enum): - """ - * `GENERAL_CUSTOMER_REQUEST` - GENERAL_CUSTOMER_REQUEST - * `GDPR` - GDPR - * `OTHER` - OTHER - """ - - GENERAL_CUSTOMER_REQUEST = "GENERAL_CUSTOMER_REQUEST" - GDPR = "GDPR" - OTHER = "OTHER" - - def visit( - self, - general_customer_request: typing.Callable[[], T_Result], - gdpr: typing.Callable[[], T_Result], - other: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ReasonEnum.GENERAL_CUSTOMER_REQUEST: - return general_customer_request() - if self is ReasonEnum.GDPR: - return gdpr() - if self is ReasonEnum.OTHER: - return other() diff --git a/src/merge/resources/hris/types/relationship_enum.py b/src/merge/resources/hris/types/relationship_enum.py deleted file mode 100644 index 49e03d68..00000000 --- a/src/merge/resources/hris/types/relationship_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RelationshipEnum(str, enum.Enum): - """ - * `CHILD` - CHILD - * `SPOUSE` - SPOUSE - * `DOMESTIC_PARTNER` - DOMESTIC_PARTNER - """ - - CHILD = "CHILD" - SPOUSE = "SPOUSE" - DOMESTIC_PARTNER = "DOMESTIC_PARTNER" - - def visit( - self, - child: typing.Callable[[], T_Result], - spouse: typing.Callable[[], T_Result], - domestic_partner: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RelationshipEnum.CHILD: - return child() - if self is RelationshipEnum.SPOUSE: - return spouse() - if self is RelationshipEnum.DOMESTIC_PARTNER: - return domestic_partner() diff --git a/src/merge/resources/hris/types/remote_data.py b/src/merge/resources/hris/types/remote_data.py deleted file mode 100644 index f34bec80..00000000 --- a/src/merge/resources/hris/types/remote_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteData(UncheckedBaseModel): - """ - # The RemoteData Object - ### Description - The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - - ### Usage Example - TODO - """ - - path: str = pydantic.Field() - """ - The third-party API path that is being called. - """ - - data: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The data returned from the third-party for this object in its original, unnormalized format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/remote_endpoint_info.py b/src/merge/resources/hris/types/remote_endpoint_info.py deleted file mode 100644 index 07ceff6a..00000000 --- a/src/merge/resources/hris/types/remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteEndpointInfo(UncheckedBaseModel): - method: str - url_path: str - field_traversal_path: typing.List[typing.Optional[typing.Any]] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/remote_field_api.py b/src/merge/resources/hris/types/remote_field_api.py deleted file mode 100644 index 4c66a23b..00000000 --- a/src/merge/resources/hris/types/remote_field_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .advanced_metadata import AdvancedMetadata -from .remote_endpoint_info import RemoteEndpointInfo -from .remote_field_api_coverage import RemoteFieldApiCoverage - - -class RemoteFieldApi(UncheckedBaseModel): - schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema") - remote_key_name: str - remote_endpoint_info: RemoteEndpointInfo - example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - advanced_metadata: typing.Optional[AdvancedMetadata] = None - coverage: typing.Optional[RemoteFieldApiCoverage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/remote_field_api_coverage.py b/src/merge/resources/hris/types/remote_field_api_coverage.py deleted file mode 100644 index adcd9be9..00000000 --- a/src/merge/resources/hris/types/remote_field_api_coverage.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RemoteFieldApiCoverage = typing.Union[int, float] diff --git a/src/merge/resources/hris/types/remote_field_api_response.py b/src/merge/resources/hris/types/remote_field_api_response.py deleted file mode 100644 index 1aeaaa57..00000000 --- a/src/merge/resources/hris/types/remote_field_api_response.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_api import RemoteFieldApi - - -class RemoteFieldApiResponse(UncheckedBaseModel): - benefit: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Benefit", default=None) - employer_benefit: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="EmployerBenefit", default=None - ) - company: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Company", default=None) - employee_payroll_run: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="EmployeePayrollRun", default=None - ) - employee: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Employee", default=None) - employment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Employment", default=None) - location: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Location", default=None) - payroll_run: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="PayrollRun", default=None) - team: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Team", default=None) - time_off: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="TimeOff", default=None) - time_off_balance: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field( - alias="TimeOffBalance", default=None - ) - bank_info: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="BankInfo", default=None) - pay_group: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="PayGroup", default=None) - group: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Group", default=None) - dependent: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Dependent", default=None) - timesheet_entry: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="TimesheetEntry", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/remote_key.py b/src/merge/resources/hris/types/remote_key.py deleted file mode 100644 index e5d9758c..00000000 --- a/src/merge/resources/hris/types/remote_key.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteKey(UncheckedBaseModel): - """ - # The RemoteKey Object - ### Description - The `RemoteKey` object is used to represent a request for a new remote key. - - ### Usage Example - Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - """ - - name: str - key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/remote_response.py b/src/merge/resources/hris/types/remote_response.py deleted file mode 100644 index db01131f..00000000 --- a/src/merge/resources/hris/types/remote_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_response_response_type import RemoteResponseResponseType - - -class RemoteResponse(UncheckedBaseModel): - """ - # The RemoteResponse Object - ### Description - The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - - ### Usage Example - View the `RemoteResponse` returned from your `DataPassthrough`. - """ - - method: str - path: str - status: int - response: typing.Optional[typing.Any] = None - response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[RemoteResponseResponseType] = None - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/remote_response_response_type.py b/src/merge/resources/hris/types/remote_response_response_type.py deleted file mode 100644 index 2556417a..00000000 --- a/src/merge/resources/hris/types/remote_response_response_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .response_type_enum import ResponseTypeEnum - -RemoteResponseResponseType = typing.Union[ResponseTypeEnum, str] diff --git a/src/merge/resources/hris/types/request_format_enum.py b/src/merge/resources/hris/types/request_format_enum.py deleted file mode 100644 index 21c272f2..00000000 --- a/src/merge/resources/hris/types/request_format_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestFormatEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `XML` - XML - * `MULTIPART` - MULTIPART - """ - - JSON = "JSON" - XML = "XML" - MULTIPART = "MULTIPART" - - def visit( - self, - json: typing.Callable[[], T_Result], - xml: typing.Callable[[], T_Result], - multipart: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestFormatEnum.JSON: - return json() - if self is RequestFormatEnum.XML: - return xml() - if self is RequestFormatEnum.MULTIPART: - return multipart() diff --git a/src/merge/resources/hris/types/request_type_enum.py b/src/merge/resources/hris/types/request_type_enum.py deleted file mode 100644 index 8bdcdd08..00000000 --- a/src/merge/resources/hris/types/request_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestTypeEnum(str, enum.Enum): - """ - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - """ - - VACATION = "VACATION" - SICK = "SICK" - PERSONAL = "PERSONAL" - JURY_DUTY = "JURY_DUTY" - VOLUNTEER = "VOLUNTEER" - BEREAVEMENT = "BEREAVEMENT" - - def visit( - self, - vacation: typing.Callable[[], T_Result], - sick: typing.Callable[[], T_Result], - personal: typing.Callable[[], T_Result], - jury_duty: typing.Callable[[], T_Result], - volunteer: typing.Callable[[], T_Result], - bereavement: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestTypeEnum.VACATION: - return vacation() - if self is RequestTypeEnum.SICK: - return sick() - if self is RequestTypeEnum.PERSONAL: - return personal() - if self is RequestTypeEnum.JURY_DUTY: - return jury_duty() - if self is RequestTypeEnum.VOLUNTEER: - return volunteer() - if self is RequestTypeEnum.BEREAVEMENT: - return bereavement() diff --git a/src/merge/resources/hris/types/response_type_enum.py b/src/merge/resources/hris/types/response_type_enum.py deleted file mode 100644 index ef241302..00000000 --- a/src/merge/resources/hris/types/response_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ResponseTypeEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `BASE64_GZIP` - BASE64_GZIP - """ - - JSON = "JSON" - BASE_64_GZIP = "BASE64_GZIP" - - def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result: - if self is ResponseTypeEnum.JSON: - return json() - if self is ResponseTypeEnum.BASE_64_GZIP: - return base_64_gzip() diff --git a/src/merge/resources/hris/types/role_enum.py b/src/merge/resources/hris/types/role_enum.py deleted file mode 100644 index a6cfcc6f..00000000 --- a/src/merge/resources/hris/types/role_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RoleEnum(str, enum.Enum): - """ - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ADMIN = "ADMIN" - DEVELOPER = "DEVELOPER" - MEMBER = "MEMBER" - API = "API" - SYSTEM = "SYSTEM" - MERGE_TEAM = "MERGE_TEAM" - - def visit( - self, - admin: typing.Callable[[], T_Result], - developer: typing.Callable[[], T_Result], - member: typing.Callable[[], T_Result], - api: typing.Callable[[], T_Result], - system: typing.Callable[[], T_Result], - merge_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RoleEnum.ADMIN: - return admin() - if self is RoleEnum.DEVELOPER: - return developer() - if self is RoleEnum.MEMBER: - return member() - if self is RoleEnum.API: - return api() - if self is RoleEnum.SYSTEM: - return system() - if self is RoleEnum.MERGE_TEAM: - return merge_team() diff --git a/src/merge/resources/hris/types/run_state_enum.py b/src/merge/resources/hris/types/run_state_enum.py deleted file mode 100644 index 18546609..00000000 --- a/src/merge/resources/hris/types/run_state_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RunStateEnum(str, enum.Enum): - """ - * `PAID` - PAID - * `DRAFT` - DRAFT - * `APPROVED` - APPROVED - * `FAILED` - FAILED - * `CLOSED` - CLOSED - """ - - PAID = "PAID" - DRAFT = "DRAFT" - APPROVED = "APPROVED" - FAILED = "FAILED" - CLOSED = "CLOSED" - - def visit( - self, - paid: typing.Callable[[], T_Result], - draft: typing.Callable[[], T_Result], - approved: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - closed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RunStateEnum.PAID: - return paid() - if self is RunStateEnum.DRAFT: - return draft() - if self is RunStateEnum.APPROVED: - return approved() - if self is RunStateEnum.FAILED: - return failed() - if self is RunStateEnum.CLOSED: - return closed() diff --git a/src/merge/resources/hris/types/run_type_enum.py b/src/merge/resources/hris/types/run_type_enum.py deleted file mode 100644 index 6bc5beaf..00000000 --- a/src/merge/resources/hris/types/run_type_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RunTypeEnum(str, enum.Enum): - """ - * `REGULAR` - REGULAR - * `OFF_CYCLE` - OFF_CYCLE - * `CORRECTION` - CORRECTION - * `TERMINATION` - TERMINATION - * `SIGN_ON_BONUS` - SIGN_ON_BONUS - """ - - REGULAR = "REGULAR" - OFF_CYCLE = "OFF_CYCLE" - CORRECTION = "CORRECTION" - TERMINATION = "TERMINATION" - SIGN_ON_BONUS = "SIGN_ON_BONUS" - - def visit( - self, - regular: typing.Callable[[], T_Result], - off_cycle: typing.Callable[[], T_Result], - correction: typing.Callable[[], T_Result], - termination: typing.Callable[[], T_Result], - sign_on_bonus: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RunTypeEnum.REGULAR: - return regular() - if self is RunTypeEnum.OFF_CYCLE: - return off_cycle() - if self is RunTypeEnum.CORRECTION: - return correction() - if self is RunTypeEnum.TERMINATION: - return termination() - if self is RunTypeEnum.SIGN_ON_BONUS: - return sign_on_bonus() diff --git a/src/merge/resources/hris/types/selective_sync_configurations_usage_enum.py b/src/merge/resources/hris/types/selective_sync_configurations_usage_enum.py deleted file mode 100644 index 9ff43813..00000000 --- a/src/merge/resources/hris/types/selective_sync_configurations_usage_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum): - """ - * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * `IN_LAST_SYNC` - IN_LAST_SYNC - """ - - IN_NEXT_SYNC = "IN_NEXT_SYNC" - IN_LAST_SYNC = "IN_LAST_SYNC" - - def visit( - self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result] - ) -> T_Result: - if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC: - return in_next_sync() - if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC: - return in_last_sync() diff --git a/src/merge/resources/hris/types/status_fd_5_enum.py b/src/merge/resources/hris/types/status_fd_5_enum.py deleted file mode 100644 index d753f77c..00000000 --- a/src/merge/resources/hris/types/status_fd_5_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class StatusFd5Enum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is StatusFd5Enum.SYNCING: - return syncing() - if self is StatusFd5Enum.DONE: - return done() - if self is StatusFd5Enum.FAILED: - return failed() - if self is StatusFd5Enum.DISABLED: - return disabled() - if self is StatusFd5Enum.PAUSED: - return paused() - if self is StatusFd5Enum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/hris/types/sync_status.py b/src/merge/resources/hris/types/sync_status.py deleted file mode 100644 index 4a628c4f..00000000 --- a/src/merge/resources/hris/types/sync_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .status_fd_5_enum import StatusFd5Enum -from .sync_status_last_sync_result import SyncStatusLastSyncResult - - -class SyncStatus(UncheckedBaseModel): - """ - # The SyncStatus Object - ### Description - The `SyncStatus` object is used to represent the syncing state of an account - - ### Usage Example - View the `SyncStatus` for an account to see how recently its models were synced. - """ - - model_name: str - model_id: str - last_sync_start: typing.Optional[dt.datetime] = None - next_sync_start: typing.Optional[dt.datetime] = None - last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None - last_sync_finished: typing.Optional[dt.datetime] = None - status: StatusFd5Enum - is_initial_sync: bool - selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/sync_status_last_sync_result.py b/src/merge/resources/hris/types/sync_status_last_sync_result.py deleted file mode 100644 index 980e7d94..00000000 --- a/src/merge/resources/hris/types/sync_status_last_sync_result.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .last_sync_result_enum import LastSyncResultEnum - -SyncStatusLastSyncResult = typing.Union[LastSyncResultEnum, str] diff --git a/src/merge/resources/hris/types/tax.py b/src/merge/resources/hris/types/tax.py deleted file mode 100644 index 97441cbf..00000000 --- a/src/merge/resources/hris/types/tax.py +++ /dev/null @@ -1,69 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Tax(UncheckedBaseModel): - """ - # The Tax Object - ### Description - The `Tax` object is used to represent an array of the tax deductions for a given employee's payroll run. - - ### Usage Example - Fetch from the `LIST Taxes` endpoint and filter by `ID` to show all taxes. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee_payroll_run: typing.Optional[str] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The tax's name. - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The tax amount. - """ - - employer_tax: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the employer is responsible for paying the tax. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/team.py b/src/merge/resources/hris/types/team.py deleted file mode 100644 index 264b75eb..00000000 --- a/src/merge/resources/hris/types/team.py +++ /dev/null @@ -1,70 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Team(UncheckedBaseModel): - """ - # The Team Object - ### Description - The `Team` object is used to represent a subdivision of the company, usually a department. Each employee will be grouped into one specific Team. - - ### Usage Example - If you're building a way to filter by `Team`, you'd hit the `GET Teams` endpoint to fetch the `Teams`, and then use the `ID` of the team your user selects to filter the `GET Employees` endpoint. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The team's name. - """ - - parent_team: typing.Optional["TeamParentTeam"] = pydantic.Field(default=None) - """ - The team's parent team. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .team_parent_team import TeamParentTeam # noqa: E402, F401, I001 - -update_forward_refs(Team) diff --git a/src/merge/resources/hris/types/team_parent_team.py b/src/merge/resources/hris/types/team_parent_team.py deleted file mode 100644 index 34b5ec89..00000000 --- a/src/merge/resources/hris/types/team_parent_team.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .team import Team -TeamParentTeam = typing.Union[str, "Team"] diff --git a/src/merge/resources/hris/types/time_off.py b/src/merge/resources/hris/types/time_off.py deleted file mode 100644 index 10860921..00000000 --- a/src/merge/resources/hris/types/time_off.py +++ /dev/null @@ -1,128 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .time_off_approver import TimeOffApprover -from .time_off_employee import TimeOffEmployee -from .time_off_request_type import TimeOffRequestType -from .time_off_status import TimeOffStatus -from .time_off_units import TimeOffUnits - - -class TimeOff(UncheckedBaseModel): - """ - # The TimeOff Object - ### Description - The `TimeOff` object is used to represent all employees' Time Off entries. - - ### Usage Example - Fetch from the `LIST TimeOffs` endpoint and filter by `ID` to show all time off requests. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee: typing.Optional[TimeOffEmployee] = pydantic.Field(default=None) - """ - The employee requesting time off. - """ - - approver: typing.Optional[TimeOffApprover] = pydantic.Field(default=None) - """ - The Merge ID of the employee with the ability to approve the time off request. - """ - - status: typing.Optional[TimeOffStatus] = pydantic.Field(default=None) - """ - The status of this time off request. - - * `REQUESTED` - REQUESTED - * `APPROVED` - APPROVED - * `DECLINED` - DECLINED - * `CANCELLED` - CANCELLED - * `DELETED` - DELETED - """ - - employee_note: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee note for this time off request. - """ - - units: typing.Optional[TimeOffUnits] = pydantic.Field(default=None) - """ - The measurement that the third-party integration uses to count time requested. - - * `HOURS` - HOURS - * `DAYS` - DAYS - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The time off quantity measured by the prescribed β€œunits”. - """ - - request_type: typing.Optional[TimeOffRequestType] = pydantic.Field(default=None) - """ - The type of time off request. - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - """ - - start_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time of the start of the time requested off. - """ - - end_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time of the end of the time requested off. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(TimeOff) diff --git a/src/merge/resources/hris/types/time_off_approver.py b/src/merge/resources/hris/types/time_off_approver.py deleted file mode 100644 index 93a01925..00000000 --- a/src/merge/resources/hris/types/time_off_approver.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -TimeOffApprover = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/time_off_balance.py b/src/merge/resources/hris/types/time_off_balance.py deleted file mode 100644 index aacbc0bd..00000000 --- a/src/merge/resources/hris/types/time_off_balance.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .time_off_balance_employee import TimeOffBalanceEmployee -from .time_off_balance_policy_type import TimeOffBalancePolicyType - - -class TimeOffBalance(UncheckedBaseModel): - """ - # The TimeOffBalance Object - ### Description - The `TimeOffBalance` object is used to represent current balances for an employee's Time Off plan. - - ### Usage Example - Fetch from the `LIST TimeOffBalances` endpoint and filter by `ID` to show all time off balances. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee: typing.Optional[TimeOffBalanceEmployee] = pydantic.Field(default=None) - """ - The employee the balance belongs to. - """ - - balance: typing.Optional[float] = pydantic.Field(default=None) - """ - The current remaining PTO balance, measured in hours. For integrations that return this value in days, Merge multiplies by 8 to calculate hours. - """ - - used: typing.Optional[float] = pydantic.Field(default=None) - """ - The amount of PTO used in terms of hours. For integrations that return this value in days, Merge multiplies by 8 to calculate hours. - """ - - policy_type: typing.Optional[TimeOffBalancePolicyType] = pydantic.Field(default=None) - """ - The policy type of this time off balance. - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(TimeOffBalance) diff --git a/src/merge/resources/hris/types/time_off_balance_employee.py b/src/merge/resources/hris/types/time_off_balance_employee.py deleted file mode 100644 index b13c18f9..00000000 --- a/src/merge/resources/hris/types/time_off_balance_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -TimeOffBalanceEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/time_off_balance_policy_type.py b/src/merge/resources/hris/types/time_off_balance_policy_type.py deleted file mode 100644 index cd18ebf0..00000000 --- a/src/merge/resources/hris/types/time_off_balance_policy_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .policy_type_enum import PolicyTypeEnum - -TimeOffBalancePolicyType = typing.Union[PolicyTypeEnum, str] diff --git a/src/merge/resources/hris/types/time_off_employee.py b/src/merge/resources/hris/types/time_off_employee.py deleted file mode 100644 index 4ca2205f..00000000 --- a/src/merge/resources/hris/types/time_off_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -TimeOffEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/time_off_request.py b/src/merge/resources/hris/types/time_off_request.py deleted file mode 100644 index c9b49089..00000000 --- a/src/merge/resources/hris/types/time_off_request.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .time_off_request_approver import TimeOffRequestApprover -from .time_off_request_employee import TimeOffRequestEmployee -from .time_off_request_request_type import TimeOffRequestRequestType -from .time_off_request_status import TimeOffRequestStatus -from .time_off_request_units import TimeOffRequestUnits - - -class TimeOffRequest(UncheckedBaseModel): - """ - # The TimeOff Object - ### Description - The `TimeOff` object is used to represent all employees' Time Off entries. - - ### Usage Example - Fetch from the `LIST TimeOffs` endpoint and filter by `ID` to show all time off requests. - """ - - employee: typing.Optional[TimeOffRequestEmployee] = pydantic.Field(default=None) - """ - The employee requesting time off. - """ - - approver: typing.Optional[TimeOffRequestApprover] = pydantic.Field(default=None) - """ - The Merge ID of the employee with the ability to approve the time off request. - """ - - status: typing.Optional[TimeOffRequestStatus] = pydantic.Field(default=None) - """ - The status of this time off request. - - * `REQUESTED` - REQUESTED - * `APPROVED` - APPROVED - * `DECLINED` - DECLINED - * `CANCELLED` - CANCELLED - * `DELETED` - DELETED - """ - - employee_note: typing.Optional[str] = pydantic.Field(default=None) - """ - The employee note for this time off request. - """ - - units: typing.Optional[TimeOffRequestUnits] = pydantic.Field(default=None) - """ - The measurement that the third-party integration uses to count time requested. - - * `HOURS` - HOURS - * `DAYS` - DAYS - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - The time off quantity measured by the prescribed β€œunits”. - """ - - request_type: typing.Optional[TimeOffRequestRequestType] = pydantic.Field(default=None) - """ - The type of time off request. - - * `VACATION` - VACATION - * `SICK` - SICK - * `PERSONAL` - PERSONAL - * `JURY_DUTY` - JURY_DUTY - * `VOLUNTEER` - VOLUNTEER - * `BEREAVEMENT` - BEREAVEMENT - """ - - start_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time of the start of the time requested off. - """ - - end_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The day and time of the end of the time requested off. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(TimeOffRequest) diff --git a/src/merge/resources/hris/types/time_off_request_approver.py b/src/merge/resources/hris/types/time_off_request_approver.py deleted file mode 100644 index 726968a9..00000000 --- a/src/merge/resources/hris/types/time_off_request_approver.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -TimeOffRequestApprover = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/time_off_request_employee.py b/src/merge/resources/hris/types/time_off_request_employee.py deleted file mode 100644 index 5f74d51e..00000000 --- a/src/merge/resources/hris/types/time_off_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -TimeOffRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/time_off_request_request_type.py b/src/merge/resources/hris/types/time_off_request_request_type.py deleted file mode 100644 index bc81a1fe..00000000 --- a/src/merge/resources/hris/types/time_off_request_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .request_type_enum import RequestTypeEnum - -TimeOffRequestRequestType = typing.Union[RequestTypeEnum, str] diff --git a/src/merge/resources/hris/types/time_off_request_status.py b/src/merge/resources/hris/types/time_off_request_status.py deleted file mode 100644 index e1170b22..00000000 --- a/src/merge/resources/hris/types/time_off_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .time_off_status_enum import TimeOffStatusEnum - -TimeOffRequestStatus = typing.Union[TimeOffStatusEnum, str] diff --git a/src/merge/resources/hris/types/time_off_request_type.py b/src/merge/resources/hris/types/time_off_request_type.py deleted file mode 100644 index 28310e73..00000000 --- a/src/merge/resources/hris/types/time_off_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .request_type_enum import RequestTypeEnum - -TimeOffRequestType = typing.Union[RequestTypeEnum, str] diff --git a/src/merge/resources/hris/types/time_off_request_units.py b/src/merge/resources/hris/types/time_off_request_units.py deleted file mode 100644 index 447ac34c..00000000 --- a/src/merge/resources/hris/types/time_off_request_units.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .units_enum import UnitsEnum - -TimeOffRequestUnits = typing.Union[UnitsEnum, str] diff --git a/src/merge/resources/hris/types/time_off_response.py b/src/merge/resources/hris/types/time_off_response.py deleted file mode 100644 index 416a5def..00000000 --- a/src/merge/resources/hris/types/time_off_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .time_off import TimeOff -from .warning_validation_problem import WarningValidationProblem - - -class TimeOffResponse(UncheckedBaseModel): - model: TimeOff - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(TimeOffResponse) diff --git a/src/merge/resources/hris/types/time_off_status.py b/src/merge/resources/hris/types/time_off_status.py deleted file mode 100644 index 83ff0ebf..00000000 --- a/src/merge/resources/hris/types/time_off_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .time_off_status_enum import TimeOffStatusEnum - -TimeOffStatus = typing.Union[TimeOffStatusEnum, str] diff --git a/src/merge/resources/hris/types/time_off_status_enum.py b/src/merge/resources/hris/types/time_off_status_enum.py deleted file mode 100644 index 771cf345..00000000 --- a/src/merge/resources/hris/types/time_off_status_enum.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TimeOffStatusEnum(str, enum.Enum): - """ - * `REQUESTED` - REQUESTED - * `APPROVED` - APPROVED - * `DECLINED` - DECLINED - * `CANCELLED` - CANCELLED - * `DELETED` - DELETED - """ - - REQUESTED = "REQUESTED" - APPROVED = "APPROVED" - DECLINED = "DECLINED" - CANCELLED = "CANCELLED" - DELETED = "DELETED" - - def visit( - self, - requested: typing.Callable[[], T_Result], - approved: typing.Callable[[], T_Result], - declined: typing.Callable[[], T_Result], - cancelled: typing.Callable[[], T_Result], - deleted: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TimeOffStatusEnum.REQUESTED: - return requested() - if self is TimeOffStatusEnum.APPROVED: - return approved() - if self is TimeOffStatusEnum.DECLINED: - return declined() - if self is TimeOffStatusEnum.CANCELLED: - return cancelled() - if self is TimeOffStatusEnum.DELETED: - return deleted() diff --git a/src/merge/resources/hris/types/time_off_units.py b/src/merge/resources/hris/types/time_off_units.py deleted file mode 100644 index 913db7ba..00000000 --- a/src/merge/resources/hris/types/time_off_units.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .units_enum import UnitsEnum - -TimeOffUnits = typing.Union[UnitsEnum, str] diff --git a/src/merge/resources/hris/types/timesheet_entry.py b/src/merge/resources/hris/types/timesheet_entry.py deleted file mode 100644 index a5966977..00000000 --- a/src/merge/resources/hris/types/timesheet_entry.py +++ /dev/null @@ -1,84 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .timesheet_entry_employee import TimesheetEntryEmployee - - -class TimesheetEntry(UncheckedBaseModel): - """ - # The Timesheet Entry Object - ### Description - The `Timesheet Entry` object is used to track coverage for hours worked by an 'Employee'. - - - ### Usage Example - GET and POST Timesheet Entries - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - employee: typing.Optional[TimesheetEntryEmployee] = pydantic.Field(default=None) - """ - The employee the timesheet entry is for. - """ - - hours_worked: typing.Optional[float] = pydantic.Field(default=None) - """ - The number of hours logged by the employee. - """ - - start_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the employee started work. - """ - - end_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the employee ended work. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(TimesheetEntry) diff --git a/src/merge/resources/hris/types/timesheet_entry_employee.py b/src/merge/resources/hris/types/timesheet_entry_employee.py deleted file mode 100644 index 7339c3b9..00000000 --- a/src/merge/resources/hris/types/timesheet_entry_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -TimesheetEntryEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/timesheet_entry_request.py b/src/merge/resources/hris/types/timesheet_entry_request.py deleted file mode 100644 index df004147..00000000 --- a/src/merge/resources/hris/types/timesheet_entry_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .timesheet_entry_request_employee import TimesheetEntryRequestEmployee - - -class TimesheetEntryRequest(UncheckedBaseModel): - """ - # The Timesheet Entry Object - ### Description - The `Timesheet Entry` object is used to track coverage for hours worked by an 'Employee'. - - - ### Usage Example - GET and POST Timesheet Entries - """ - - employee: typing.Optional[TimesheetEntryRequestEmployee] = pydantic.Field(default=None) - """ - The employee the timesheet entry is for. - """ - - hours_worked: typing.Optional[float] = pydantic.Field(default=None) - """ - The number of hours logged by the employee. - """ - - start_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the employee started work. - """ - - end_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which the employee ended work. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(TimesheetEntryRequest) diff --git a/src/merge/resources/hris/types/timesheet_entry_request_employee.py b/src/merge/resources/hris/types/timesheet_entry_request_employee.py deleted file mode 100644 index 5e61dd30..00000000 --- a/src/merge/resources/hris/types/timesheet_entry_request_employee.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .employee import Employee - -TimesheetEntryRequestEmployee = typing.Union[str, Employee] diff --git a/src/merge/resources/hris/types/timesheet_entry_response.py b/src/merge/resources/hris/types/timesheet_entry_response.py deleted file mode 100644 index 1c6bb197..00000000 --- a/src/merge/resources/hris/types/timesheet_entry_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .timesheet_entry import TimesheetEntry -from .warning_validation_problem import WarningValidationProblem - - -class TimesheetEntryResponse(UncheckedBaseModel): - model: TimesheetEntry - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .employee import Employee # noqa: E402, F401, I001 -from .employment import Employment # noqa: E402, F401, I001 -from .team import Team # noqa: E402, F401, I001 - -update_forward_refs(TimesheetEntryResponse) diff --git a/src/merge/resources/hris/types/units_enum.py b/src/merge/resources/hris/types/units_enum.py deleted file mode 100644 index e1d3f0d2..00000000 --- a/src/merge/resources/hris/types/units_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class UnitsEnum(str, enum.Enum): - """ - * `HOURS` - HOURS - * `DAYS` - DAYS - """ - - HOURS = "HOURS" - DAYS = "DAYS" - - def visit(self, hours: typing.Callable[[], T_Result], days: typing.Callable[[], T_Result]) -> T_Result: - if self is UnitsEnum.HOURS: - return hours() - if self is UnitsEnum.DAYS: - return days() diff --git a/src/merge/resources/hris/types/validation_problem_source.py b/src/merge/resources/hris/types/validation_problem_source.py deleted file mode 100644 index fbebe626..00000000 --- a/src/merge/resources/hris/types/validation_problem_source.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ValidationProblemSource(UncheckedBaseModel): - pointer: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/warning_validation_problem.py b/src/merge/resources/hris/types/warning_validation_problem.py deleted file mode 100644 index 4785e836..00000000 --- a/src/merge/resources/hris/types/warning_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class WarningValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/hris/types/webhook_receiver.py b/src/merge/resources/hris/types/webhook_receiver.py deleted file mode 100644 index fb49c044..00000000 --- a/src/merge/resources/hris/types/webhook_receiver.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class WebhookReceiver(UncheckedBaseModel): - event: str - is_active: bool - key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/__init__.py b/src/merge/resources/knowledgebase/__init__.py deleted file mode 100644 index 877949ae..00000000 --- a/src/merge/resources/knowledgebase/__init__.py +++ /dev/null @@ -1,481 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - AccountDetails, - AccountDetailsAndActions, - AccountDetailsAndActionsCategory, - AccountDetailsAndActionsIntegration, - AccountDetailsAndActionsStatus, - AccountDetailsAndActionsStatusEnum, - AccountDetailsCategory, - AccountIntegration, - AccountToken, - AdvancedMetadata, - Article, - ArticleAttachmentsItem, - ArticleAuthor, - ArticleLastEditedBy, - ArticleParentArticle, - ArticleParentContainer, - ArticlePermissionsItem, - ArticleRootContainer, - ArticleStatus, - ArticleType, - ArticleTypeEnum, - ArticleVisibility, - AsyncPassthroughReciept, - Attachment, - AuditLogEvent, - AuditLogEventEventType, - AuditLogEventRole, - AvailableActions, - CategoriesEnum, - CategoryEnum, - CommonModelScopeApi, - CommonModelScopesBodyRequest, - CompletedAccountInitialScreenEnum, - Container, - ContainerPermissionsItem, - ContainerStatus, - ContainerType, - ContainerTypeEnum, - ContainerVisibility, - DataPassthroughRequest, - DataPassthroughRequestMethod, - DataPassthroughRequestRequestFormat, - DebugModeLog, - DebugModelLogSummary, - EnabledActionsEnum, - EncodingEnum, - ErrorValidationProblem, - EventTypeEnum, - ExternalTargetFieldApi, - ExternalTargetFieldApiResponse, - FieldMappingApiInstance, - FieldMappingApiInstanceRemoteField, - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - FieldMappingApiInstanceResponse, - FieldMappingApiInstanceTargetField, - FieldMappingInstanceResponse, - FieldPermissionDeserializer, - FieldPermissionDeserializerRequest, - Group, - GroupParentGroup, - GroupUsersItem, - IndividualCommonModelScopeDeserializer, - IndividualCommonModelScopeDeserializerRequest, - Issue, - IssueStatus, - IssueStatusEnum, - LanguageEnum, - LastSyncResultEnum, - LinkToken, - MethodEnum, - ModelOperation, - ModelPermissionDeserializer, - ModelPermissionDeserializerRequest, - MultipartFormFieldRequest, - MultipartFormFieldRequestEncoding, - PaginatedAccountDetailsAndActionsList, - PaginatedArticleList, - PaginatedAttachmentList, - PaginatedAuditLogEventList, - PaginatedContainerList, - PaginatedGroupList, - PaginatedIssueList, - PaginatedSyncStatusList, - PaginatedUserList, - Permission, - PermissionGroup, - PermissionType, - PermissionTypeEnum, - PermissionUser, - RemoteData, - RemoteEndpointInfo, - RemoteFieldApi, - RemoteFieldApiAdvancedMetadata, - RemoteFieldApiCoverage, - RemoteFieldApiResponse, - RemoteKey, - RemoteResponse, - RemoteResponseResponseType, - RequestFormatEnum, - ResponseTypeEnum, - RoleEnum, - RolesEnum, - SelectiveSyncConfigurationsUsageEnum, - Status3C6Enum, - StatusFd5Enum, - SyncStatus, - SyncStatusLastSyncResult, - SyncStatusStatus, - User, - ValidationProblemSource, - VisibilityEnum, - WarningValidationProblem, - WebhookReceiver, - ) - from .resources import ( - ArticlesListRequestExpand, - ArticlesListRequestType, - ArticlesRetrieveRequestExpand, - AsyncPassthroughRetrieveResponse, - ContainersListRequestExpand, - ContainersListRequestType, - ContainersRetrieveRequestExpand, - EndUserDetailsRequestCompletedAccountInitialScreen, - EndUserDetailsRequestLanguage, - GroupsListRequestExpand, - GroupsRetrieveRequestExpand, - IssuesListRequestStatus, - LinkedAccountsListRequestCategory, - account_details, - account_token, - articles, - async_passthrough, - attachments, - audit_trail, - available_actions, - containers, - delete_account, - field_mapping, - force_resync, - generate_key, - groups, - issues, - link_token, - linked_accounts, - passthrough, - regenerate_key, - scopes, - sync_status, - users, - webhook_receivers, - ) -_dynamic_imports: typing.Dict[str, str] = { - "AccountDetails": ".types", - "AccountDetailsAndActions": ".types", - "AccountDetailsAndActionsCategory": ".types", - "AccountDetailsAndActionsIntegration": ".types", - "AccountDetailsAndActionsStatus": ".types", - "AccountDetailsAndActionsStatusEnum": ".types", - "AccountDetailsCategory": ".types", - "AccountIntegration": ".types", - "AccountToken": ".types", - "AdvancedMetadata": ".types", - "Article": ".types", - "ArticleAttachmentsItem": ".types", - "ArticleAuthor": ".types", - "ArticleLastEditedBy": ".types", - "ArticleParentArticle": ".types", - "ArticleParentContainer": ".types", - "ArticlePermissionsItem": ".types", - "ArticleRootContainer": ".types", - "ArticleStatus": ".types", - "ArticleType": ".types", - "ArticleTypeEnum": ".types", - "ArticleVisibility": ".types", - "ArticlesListRequestExpand": ".resources", - "ArticlesListRequestType": ".resources", - "ArticlesRetrieveRequestExpand": ".resources", - "AsyncPassthroughReciept": ".types", - "AsyncPassthroughRetrieveResponse": ".resources", - "Attachment": ".types", - "AuditLogEvent": ".types", - "AuditLogEventEventType": ".types", - "AuditLogEventRole": ".types", - "AvailableActions": ".types", - "CategoriesEnum": ".types", - "CategoryEnum": ".types", - "CommonModelScopeApi": ".types", - "CommonModelScopesBodyRequest": ".types", - "CompletedAccountInitialScreenEnum": ".types", - "Container": ".types", - "ContainerPermissionsItem": ".types", - "ContainerStatus": ".types", - "ContainerType": ".types", - "ContainerTypeEnum": ".types", - "ContainerVisibility": ".types", - "ContainersListRequestExpand": ".resources", - "ContainersListRequestType": ".resources", - "ContainersRetrieveRequestExpand": ".resources", - "DataPassthroughRequest": ".types", - "DataPassthroughRequestMethod": ".types", - "DataPassthroughRequestRequestFormat": ".types", - "DebugModeLog": ".types", - "DebugModelLogSummary": ".types", - "EnabledActionsEnum": ".types", - "EncodingEnum": ".types", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".resources", - "EndUserDetailsRequestLanguage": ".resources", - "ErrorValidationProblem": ".types", - "EventTypeEnum": ".types", - "ExternalTargetFieldApi": ".types", - "ExternalTargetFieldApiResponse": ".types", - "FieldMappingApiInstance": ".types", - "FieldMappingApiInstanceRemoteField": ".types", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".types", - "FieldMappingApiInstanceResponse": ".types", - "FieldMappingApiInstanceTargetField": ".types", - "FieldMappingInstanceResponse": ".types", - "FieldPermissionDeserializer": ".types", - "FieldPermissionDeserializerRequest": ".types", - "Group": ".types", - "GroupParentGroup": ".types", - "GroupUsersItem": ".types", - "GroupsListRequestExpand": ".resources", - "GroupsRetrieveRequestExpand": ".resources", - "IndividualCommonModelScopeDeserializer": ".types", - "IndividualCommonModelScopeDeserializerRequest": ".types", - "Issue": ".types", - "IssueStatus": ".types", - "IssueStatusEnum": ".types", - "IssuesListRequestStatus": ".resources", - "LanguageEnum": ".types", - "LastSyncResultEnum": ".types", - "LinkToken": ".types", - "LinkedAccountsListRequestCategory": ".resources", - "MethodEnum": ".types", - "ModelOperation": ".types", - "ModelPermissionDeserializer": ".types", - "ModelPermissionDeserializerRequest": ".types", - "MultipartFormFieldRequest": ".types", - "MultipartFormFieldRequestEncoding": ".types", - "PaginatedAccountDetailsAndActionsList": ".types", - "PaginatedArticleList": ".types", - "PaginatedAttachmentList": ".types", - "PaginatedAuditLogEventList": ".types", - "PaginatedContainerList": ".types", - "PaginatedGroupList": ".types", - "PaginatedIssueList": ".types", - "PaginatedSyncStatusList": ".types", - "PaginatedUserList": ".types", - "Permission": ".types", - "PermissionGroup": ".types", - "PermissionType": ".types", - "PermissionTypeEnum": ".types", - "PermissionUser": ".types", - "RemoteData": ".types", - "RemoteEndpointInfo": ".types", - "RemoteFieldApi": ".types", - "RemoteFieldApiAdvancedMetadata": ".types", - "RemoteFieldApiCoverage": ".types", - "RemoteFieldApiResponse": ".types", - "RemoteKey": ".types", - "RemoteResponse": ".types", - "RemoteResponseResponseType": ".types", - "RequestFormatEnum": ".types", - "ResponseTypeEnum": ".types", - "RoleEnum": ".types", - "RolesEnum": ".types", - "SelectiveSyncConfigurationsUsageEnum": ".types", - "Status3C6Enum": ".types", - "StatusFd5Enum": ".types", - "SyncStatus": ".types", - "SyncStatusLastSyncResult": ".types", - "SyncStatusStatus": ".types", - "User": ".types", - "ValidationProblemSource": ".types", - "VisibilityEnum": ".types", - "WarningValidationProblem": ".types", - "WebhookReceiver": ".types", - "account_details": ".resources", - "account_token": ".resources", - "articles": ".resources", - "async_passthrough": ".resources", - "attachments": ".resources", - "audit_trail": ".resources", - "available_actions": ".resources", - "containers": ".resources", - "delete_account": ".resources", - "field_mapping": ".resources", - "force_resync": ".resources", - "generate_key": ".resources", - "groups": ".resources", - "issues": ".resources", - "link_token": ".resources", - "linked_accounts": ".resources", - "passthrough": ".resources", - "regenerate_key": ".resources", - "scopes": ".resources", - "sync_status": ".resources", - "users": ".resources", - "webhook_receivers": ".resources", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AdvancedMetadata", - "Article", - "ArticleAttachmentsItem", - "ArticleAuthor", - "ArticleLastEditedBy", - "ArticleParentArticle", - "ArticleParentContainer", - "ArticlePermissionsItem", - "ArticleRootContainer", - "ArticleStatus", - "ArticleType", - "ArticleTypeEnum", - "ArticleVisibility", - "ArticlesListRequestExpand", - "ArticlesListRequestType", - "ArticlesRetrieveRequestExpand", - "AsyncPassthroughReciept", - "AsyncPassthroughRetrieveResponse", - "Attachment", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompletedAccountInitialScreenEnum", - "Container", - "ContainerPermissionsItem", - "ContainerStatus", - "ContainerType", - "ContainerTypeEnum", - "ContainerVisibility", - "ContainersListRequestExpand", - "ContainersListRequestType", - "ContainersRetrieveRequestExpand", - "DataPassthroughRequest", - "DataPassthroughRequestMethod", - "DataPassthroughRequestRequestFormat", - "DebugModeLog", - "DebugModelLogSummary", - "EnabledActionsEnum", - "EncodingEnum", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "Group", - "GroupParentGroup", - "GroupUsersItem", - "GroupsListRequestExpand", - "GroupsRetrieveRequestExpand", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "IssuesListRequestStatus", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountsListRequestCategory", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedArticleList", - "PaginatedAttachmentList", - "PaginatedAuditLogEventList", - "PaginatedContainerList", - "PaginatedGroupList", - "PaginatedIssueList", - "PaginatedSyncStatusList", - "PaginatedUserList", - "Permission", - "PermissionGroup", - "PermissionType", - "PermissionTypeEnum", - "PermissionUser", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiAdvancedMetadata", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "RolesEnum", - "SelectiveSyncConfigurationsUsageEnum", - "Status3C6Enum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "User", - "ValidationProblemSource", - "VisibilityEnum", - "WarningValidationProblem", - "WebhookReceiver", - "account_details", - "account_token", - "articles", - "async_passthrough", - "attachments", - "audit_trail", - "available_actions", - "containers", - "delete_account", - "field_mapping", - "force_resync", - "generate_key", - "groups", - "issues", - "link_token", - "linked_accounts", - "passthrough", - "regenerate_key", - "scopes", - "sync_status", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/knowledgebase/client.py b/src/merge/resources/knowledgebase/client.py deleted file mode 100644 index 7b2ce565..00000000 --- a/src/merge/resources/knowledgebase/client.py +++ /dev/null @@ -1,480 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawKnowledgebaseClient, RawKnowledgebaseClient - -if typing.TYPE_CHECKING: - from .resources.account_details.client import AccountDetailsClient, AsyncAccountDetailsClient - from .resources.account_token.client import AccountTokenClient, AsyncAccountTokenClient - from .resources.articles.client import ArticlesClient, AsyncArticlesClient - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_knowledgebase_resources_async_passthrough_client_AsyncPassthroughClient, - ) - from .resources.attachments.client import AsyncAttachmentsClient, AttachmentsClient - from .resources.audit_trail.client import AsyncAuditTrailClient, AuditTrailClient - from .resources.available_actions.client import AsyncAvailableActionsClient, AvailableActionsClient - from .resources.containers.client import AsyncContainersClient, ContainersClient - from .resources.delete_account.client import AsyncDeleteAccountClient, DeleteAccountClient - from .resources.field_mapping.client import AsyncFieldMappingClient, FieldMappingClient - from .resources.force_resync.client import AsyncForceResyncClient, ForceResyncClient - from .resources.generate_key.client import AsyncGenerateKeyClient, GenerateKeyClient - from .resources.groups.client import AsyncGroupsClient, GroupsClient - from .resources.issues.client import AsyncIssuesClient, IssuesClient - from .resources.link_token.client import AsyncLinkTokenClient, LinkTokenClient - from .resources.linked_accounts.client import AsyncLinkedAccountsClient, LinkedAccountsClient - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_knowledgebase_resources_passthrough_client_AsyncPassthroughClient, - ) - from .resources.passthrough.client import PassthroughClient - from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient - from .resources.scopes.client import AsyncScopesClient, ScopesClient - from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient - from .resources.users.client import AsyncUsersClient, UsersClient - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient - - -class KnowledgebaseClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawKnowledgebaseClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AccountDetailsClient] = None - self._account_token: typing.Optional[AccountTokenClient] = None - self._articles: typing.Optional[ArticlesClient] = None - self._async_passthrough: typing.Optional[ - resources_knowledgebase_resources_async_passthrough_client_AsyncPassthroughClient - ] = None - self._attachments: typing.Optional[AttachmentsClient] = None - self._audit_trail: typing.Optional[AuditTrailClient] = None - self._available_actions: typing.Optional[AvailableActionsClient] = None - self._containers: typing.Optional[ContainersClient] = None - self._scopes: typing.Optional[ScopesClient] = None - self._delete_account: typing.Optional[DeleteAccountClient] = None - self._field_mapping: typing.Optional[FieldMappingClient] = None - self._generate_key: typing.Optional[GenerateKeyClient] = None - self._groups: typing.Optional[GroupsClient] = None - self._issues: typing.Optional[IssuesClient] = None - self._link_token: typing.Optional[LinkTokenClient] = None - self._linked_accounts: typing.Optional[LinkedAccountsClient] = None - self._passthrough: typing.Optional[PassthroughClient] = None - self._regenerate_key: typing.Optional[RegenerateKeyClient] = None - self._sync_status: typing.Optional[SyncStatusClient] = None - self._force_resync: typing.Optional[ForceResyncClient] = None - self._users: typing.Optional[UsersClient] = None - self._webhook_receivers: typing.Optional[WebhookReceiversClient] = None - - @property - def with_raw_response(self) -> RawKnowledgebaseClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawKnowledgebaseClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AccountDetailsClient # noqa: E402 - - self._account_details = AccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AccountTokenClient # noqa: E402 - - self._account_token = AccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def articles(self): - if self._articles is None: - from .resources.articles.client import ArticlesClient # noqa: E402 - - self._articles = ArticlesClient(client_wrapper=self._client_wrapper) - return self._articles - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_knowledgebase_resources_async_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._async_passthrough = resources_knowledgebase_resources_async_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._async_passthrough - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AttachmentsClient # noqa: E402 - - self._attachments = AttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AuditTrailClient # noqa: E402 - - self._audit_trail = AuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AvailableActionsClient # noqa: E402 - - self._available_actions = AvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def containers(self): - if self._containers is None: - from .resources.containers.client import ContainersClient # noqa: E402 - - self._containers = ContainersClient(client_wrapper=self._client_wrapper) - return self._containers - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import ScopesClient # noqa: E402 - - self._scopes = ScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import DeleteAccountClient # noqa: E402 - - self._delete_account = DeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import FieldMappingClient # noqa: E402 - - self._field_mapping = FieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import GenerateKeyClient # noqa: E402 - - self._generate_key = GenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def groups(self): - if self._groups is None: - from .resources.groups.client import GroupsClient # noqa: E402 - - self._groups = GroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import IssuesClient # noqa: E402 - - self._issues = IssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import LinkTokenClient # noqa: E402 - - self._link_token = LinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import LinkedAccountsClient # noqa: E402 - - self._linked_accounts = LinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import PassthroughClient # noqa: E402 - - self._passthrough = PassthroughClient(client_wrapper=self._client_wrapper) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import RegenerateKeyClient # noqa: E402 - - self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import SyncStatusClient # noqa: E402 - - self._sync_status = SyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import ForceResyncClient # noqa: E402 - - self._force_resync = ForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def users(self): - if self._users is None: - from .resources.users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import WebhookReceiversClient # noqa: E402 - - self._webhook_receivers = WebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers - - -class AsyncKnowledgebaseClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawKnowledgebaseClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AsyncAccountDetailsClient] = None - self._account_token: typing.Optional[AsyncAccountTokenClient] = None - self._articles: typing.Optional[AsyncArticlesClient] = None - self._async_passthrough: typing.Optional[AsyncAsyncPassthroughClient] = None - self._attachments: typing.Optional[AsyncAttachmentsClient] = None - self._audit_trail: typing.Optional[AsyncAuditTrailClient] = None - self._available_actions: typing.Optional[AsyncAvailableActionsClient] = None - self._containers: typing.Optional[AsyncContainersClient] = None - self._scopes: typing.Optional[AsyncScopesClient] = None - self._delete_account: typing.Optional[AsyncDeleteAccountClient] = None - self._field_mapping: typing.Optional[AsyncFieldMappingClient] = None - self._generate_key: typing.Optional[AsyncGenerateKeyClient] = None - self._groups: typing.Optional[AsyncGroupsClient] = None - self._issues: typing.Optional[AsyncIssuesClient] = None - self._link_token: typing.Optional[AsyncLinkTokenClient] = None - self._linked_accounts: typing.Optional[AsyncLinkedAccountsClient] = None - self._passthrough: typing.Optional[ - resources_knowledgebase_resources_passthrough_client_AsyncPassthroughClient - ] = None - self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None - self._sync_status: typing.Optional[AsyncSyncStatusClient] = None - self._force_resync: typing.Optional[AsyncForceResyncClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - self._webhook_receivers: typing.Optional[AsyncWebhookReceiversClient] = None - - @property - def with_raw_response(self) -> AsyncRawKnowledgebaseClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawKnowledgebaseClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AsyncAccountDetailsClient # noqa: E402 - - self._account_details = AsyncAccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AsyncAccountTokenClient # noqa: E402 - - self._account_token = AsyncAccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def articles(self): - if self._articles is None: - from .resources.articles.client import AsyncArticlesClient # noqa: E402 - - self._articles = AsyncArticlesClient(client_wrapper=self._client_wrapper) - return self._articles - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient # noqa: E402 - - self._async_passthrough = AsyncAsyncPassthroughClient(client_wrapper=self._client_wrapper) - return self._async_passthrough - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AsyncAttachmentsClient # noqa: E402 - - self._attachments = AsyncAttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AsyncAuditTrailClient # noqa: E402 - - self._audit_trail = AsyncAuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AsyncAvailableActionsClient # noqa: E402 - - self._available_actions = AsyncAvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def containers(self): - if self._containers is None: - from .resources.containers.client import AsyncContainersClient # noqa: E402 - - self._containers = AsyncContainersClient(client_wrapper=self._client_wrapper) - return self._containers - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import AsyncScopesClient # noqa: E402 - - self._scopes = AsyncScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import AsyncDeleteAccountClient # noqa: E402 - - self._delete_account = AsyncDeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import AsyncFieldMappingClient # noqa: E402 - - self._field_mapping = AsyncFieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import AsyncGenerateKeyClient # noqa: E402 - - self._generate_key = AsyncGenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def groups(self): - if self._groups is None: - from .resources.groups.client import AsyncGroupsClient # noqa: E402 - - self._groups = AsyncGroupsClient(client_wrapper=self._client_wrapper) - return self._groups - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import AsyncIssuesClient # noqa: E402 - - self._issues = AsyncIssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import AsyncLinkTokenClient # noqa: E402 - - self._link_token = AsyncLinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import AsyncLinkedAccountsClient # noqa: E402 - - self._linked_accounts = AsyncLinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_knowledgebase_resources_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._passthrough = resources_knowledgebase_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._passthrough - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import AsyncRegenerateKeyClient # noqa: E402 - - self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import AsyncSyncStatusClient # noqa: E402 - - self._sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import AsyncForceResyncClient # noqa: E402 - - self._force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def users(self): - if self._users is None: - from .resources.users.client import AsyncUsersClient # noqa: E402 - - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient # noqa: E402 - - self._webhook_receivers = AsyncWebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers diff --git a/src/merge/resources/knowledgebase/raw_client.py b/src/merge/resources/knowledgebase/raw_client.py deleted file mode 100644 index 482f5fd8..00000000 --- a/src/merge/resources/knowledgebase/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawKnowledgebaseClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawKnowledgebaseClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/merge/resources/knowledgebase/resources/__init__.py b/src/merge/resources/knowledgebase/resources/__init__.py deleted file mode 100644 index ba4fd94a..00000000 --- a/src/merge/resources/knowledgebase/resources/__init__.py +++ /dev/null @@ -1,134 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - account_details, - account_token, - articles, - async_passthrough, - attachments, - audit_trail, - available_actions, - containers, - delete_account, - field_mapping, - force_resync, - generate_key, - groups, - issues, - link_token, - linked_accounts, - passthrough, - regenerate_key, - scopes, - sync_status, - users, - webhook_receivers, - ) - from .articles import ArticlesListRequestExpand, ArticlesListRequestType, ArticlesRetrieveRequestExpand - from .async_passthrough import AsyncPassthroughRetrieveResponse - from .containers import ContainersListRequestExpand, ContainersListRequestType, ContainersRetrieveRequestExpand - from .groups import GroupsListRequestExpand, GroupsRetrieveRequestExpand - from .issues import IssuesListRequestStatus - from .link_token import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage - from .linked_accounts import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "ArticlesListRequestExpand": ".articles", - "ArticlesListRequestType": ".articles", - "ArticlesRetrieveRequestExpand": ".articles", - "AsyncPassthroughRetrieveResponse": ".async_passthrough", - "ContainersListRequestExpand": ".containers", - "ContainersListRequestType": ".containers", - "ContainersRetrieveRequestExpand": ".containers", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".link_token", - "EndUserDetailsRequestLanguage": ".link_token", - "GroupsListRequestExpand": ".groups", - "GroupsRetrieveRequestExpand": ".groups", - "IssuesListRequestStatus": ".issues", - "LinkedAccountsListRequestCategory": ".linked_accounts", - "account_details": ".", - "account_token": ".", - "articles": ".", - "async_passthrough": ".", - "attachments": ".", - "audit_trail": ".", - "available_actions": ".", - "containers": ".", - "delete_account": ".", - "field_mapping": ".", - "force_resync": ".", - "generate_key": ".", - "groups": ".", - "issues": ".", - "link_token": ".", - "linked_accounts": ".", - "passthrough": ".", - "regenerate_key": ".", - "scopes": ".", - "sync_status": ".", - "users": ".", - "webhook_receivers": ".", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "ArticlesListRequestExpand", - "ArticlesListRequestType", - "ArticlesRetrieveRequestExpand", - "AsyncPassthroughRetrieveResponse", - "ContainersListRequestExpand", - "ContainersListRequestType", - "ContainersRetrieveRequestExpand", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "GroupsListRequestExpand", - "GroupsRetrieveRequestExpand", - "IssuesListRequestStatus", - "LinkedAccountsListRequestCategory", - "account_details", - "account_token", - "articles", - "async_passthrough", - "attachments", - "audit_trail", - "available_actions", - "containers", - "delete_account", - "field_mapping", - "force_resync", - "generate_key", - "groups", - "issues", - "link_token", - "linked_accounts", - "passthrough", - "regenerate_key", - "scopes", - "sync_status", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/knowledgebase/resources/account_details/__init__.py b/src/merge/resources/knowledgebase/resources/account_details/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/account_details/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/account_details/client.py b/src/merge/resources/knowledgebase/resources/account_details/client.py deleted file mode 100644 index 94d11855..00000000 --- a/src/merge/resources/knowledgebase/resources/account_details/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_details import AccountDetails -from .raw_client import AsyncRawAccountDetailsClient, RawAccountDetailsClient - - -class AccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountDetailsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.account_details.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountDetailsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.account_details.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/account_details/raw_client.py b/src/merge/resources/knowledgebase/resources/account_details/raw_client.py deleted file mode 100644 index 836e029d..00000000 --- a/src/merge/resources/knowledgebase/resources/account_details/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_details import AccountDetails - - -class RawAccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountDetails] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountDetails] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/account_token/__init__.py b/src/merge/resources/knowledgebase/resources/account_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/account_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/account_token/client.py b/src/merge/resources/knowledgebase/resources/account_token/client.py deleted file mode 100644 index 60aa41d9..00000000 --- a/src/merge/resources/knowledgebase/resources/account_token/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_token import AccountToken -from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient - - -class AccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountTokenClient - """ - return self._raw_client - - def retrieve(self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.account_token.retrieve( - public_token="public_token", - ) - """ - _response = self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data - - -class AsyncAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountTokenClient - """ - return self._raw_client - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.account_token.retrieve( - public_token="public_token", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/account_token/raw_client.py b/src/merge/resources/knowledgebase/resources/account_token/raw_client.py deleted file mode 100644 index 7ae9b614..00000000 --- a/src/merge/resources/knowledgebase/resources/account_token/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_token import AccountToken - - -class RawAccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountToken] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/articles/__init__.py b/src/merge/resources/knowledgebase/resources/articles/__init__.py deleted file mode 100644 index 007aef5a..00000000 --- a/src/merge/resources/knowledgebase/resources/articles/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ArticlesListRequestExpand, ArticlesListRequestType, ArticlesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ArticlesListRequestExpand": ".types", - "ArticlesListRequestType": ".types", - "ArticlesRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ArticlesListRequestExpand", "ArticlesListRequestType", "ArticlesRetrieveRequestExpand"] diff --git a/src/merge/resources/knowledgebase/resources/articles/client.py b/src/merge/resources/knowledgebase/resources/articles/client.py deleted file mode 100644 index e507768b..00000000 --- a/src/merge/resources/knowledgebase/resources/articles/client.py +++ /dev/null @@ -1,468 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.article import Article -from ...types.paginated_article_list import PaginatedArticleList -from .raw_client import AsyncRawArticlesClient, RawArticlesClient -from .types.articles_list_request_expand import ArticlesListRequestExpand -from .types.articles_list_request_type import ArticlesListRequestType -from .types.articles_retrieve_request_expand import ArticlesRetrieveRequestExpand - - -class ArticlesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawArticlesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawArticlesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawArticlesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ArticlesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - root_container_id: typing.Optional[str] = None, - status: typing.Optional[str] = None, - type: typing.Optional[ArticlesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedArticleList: - """ - Returns a list of `Article` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ArticlesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub articles of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub articles of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_container_id : typing.Optional[str] - If provided, will only return sub articles of the root_container_id. - - status : typing.Optional[str] - If provided, will only return articles of the given status; multiple statuses can be separated by commas. - - type : typing.Optional[ArticlesListRequestType] - If provided, will only return articles of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedArticleList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.knowledgebase.resources.articles import ( - ArticlesListRequestExpand, - ArticlesListRequestType, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.articles.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ArticlesListRequestExpand.ATTACHMENTS, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_article_id="parent_article_id", - parent_container_id="parent_container_id", - remote_id="remote_id", - root_container_id="root_container_id", - status="status", - type=ArticlesListRequestType.EMPTY, - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - parent_article_id=parent_article_id, - parent_container_id=parent_container_id, - remote_id=remote_id, - root_container_id=root_container_id, - status=status, - type=type, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ArticlesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Article: - """ - Returns an `Article` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ArticlesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Article - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase.resources.articles import ( - ArticlesRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.articles.retrieve( - id="id", - expand=ArticlesRetrieveRequestExpand.ATTACHMENTS, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncArticlesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawArticlesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawArticlesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawArticlesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ArticlesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - root_container_id: typing.Optional[str] = None, - status: typing.Optional[str] = None, - type: typing.Optional[ArticlesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedArticleList: - """ - Returns a list of `Article` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ArticlesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub articles of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub articles of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_container_id : typing.Optional[str] - If provided, will only return sub articles of the root_container_id. - - status : typing.Optional[str] - If provided, will only return articles of the given status; multiple statuses can be separated by commas. - - type : typing.Optional[ArticlesListRequestType] - If provided, will only return articles of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedArticleList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.articles import ( - ArticlesListRequestExpand, - ArticlesListRequestType, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.articles.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ArticlesListRequestExpand.ATTACHMENTS, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_article_id="parent_article_id", - parent_container_id="parent_container_id", - remote_id="remote_id", - root_container_id="root_container_id", - status="status", - type=ArticlesListRequestType.EMPTY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - parent_article_id=parent_article_id, - parent_container_id=parent_container_id, - remote_id=remote_id, - root_container_id=root_container_id, - status=status, - type=type, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ArticlesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Article: - """ - Returns an `Article` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ArticlesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Article - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.articles import ( - ArticlesRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.articles.retrieve( - id="id", - expand=ArticlesRetrieveRequestExpand.ATTACHMENTS, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/articles/raw_client.py b/src/merge/resources/knowledgebase/resources/articles/raw_client.py deleted file mode 100644 index 0c3b85c8..00000000 --- a/src/merge/resources/knowledgebase/resources/articles/raw_client.py +++ /dev/null @@ -1,384 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.article import Article -from ...types.paginated_article_list import PaginatedArticleList -from .types.articles_list_request_expand import ArticlesListRequestExpand -from .types.articles_list_request_type import ArticlesListRequestType -from .types.articles_retrieve_request_expand import ArticlesRetrieveRequestExpand - - -class RawArticlesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ArticlesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - root_container_id: typing.Optional[str] = None, - status: typing.Optional[str] = None, - type: typing.Optional[ArticlesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedArticleList]: - """ - Returns a list of `Article` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ArticlesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub articles of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub articles of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_container_id : typing.Optional[str] - If provided, will only return sub articles of the root_container_id. - - status : typing.Optional[str] - If provided, will only return articles of the given status; multiple statuses can be separated by commas. - - type : typing.Optional[ArticlesListRequestType] - If provided, will only return articles of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedArticleList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/articles", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "parent_article_id": parent_article_id, - "parent_container_id": parent_container_id, - "remote_id": remote_id, - "root_container_id": root_container_id, - "status": status, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedArticleList, - construct_type( - type_=PaginatedArticleList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ArticlesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Article]: - """ - Returns an `Article` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ArticlesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Article] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/articles/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Article, - construct_type( - type_=Article, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawArticlesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ArticlesListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - root_container_id: typing.Optional[str] = None, - status: typing.Optional[str] = None, - type: typing.Optional[ArticlesListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedArticleList]: - """ - Returns a list of `Article` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ArticlesListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub articles of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub articles of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - root_container_id : typing.Optional[str] - If provided, will only return sub articles of the root_container_id. - - status : typing.Optional[str] - If provided, will only return articles of the given status; multiple statuses can be separated by commas. - - type : typing.Optional[ArticlesListRequestType] - If provided, will only return articles of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedArticleList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/articles", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "parent_article_id": parent_article_id, - "parent_container_id": parent_container_id, - "remote_id": remote_id, - "root_container_id": root_container_id, - "status": status, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedArticleList, - construct_type( - type_=PaginatedArticleList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ArticlesRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Article]: - """ - Returns an `Article` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ArticlesRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Article] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/articles/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Article, - construct_type( - type_=Article, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/articles/types/__init__.py b/src/merge/resources/knowledgebase/resources/articles/types/__init__.py deleted file mode 100644 index d9e6daf4..00000000 --- a/src/merge/resources/knowledgebase/resources/articles/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .articles_list_request_expand import ArticlesListRequestExpand - from .articles_list_request_type import ArticlesListRequestType - from .articles_retrieve_request_expand import ArticlesRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ArticlesListRequestExpand": ".articles_list_request_expand", - "ArticlesListRequestType": ".articles_list_request_type", - "ArticlesRetrieveRequestExpand": ".articles_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ArticlesListRequestExpand", "ArticlesListRequestType", "ArticlesRetrieveRequestExpand"] diff --git a/src/merge/resources/knowledgebase/resources/articles/types/articles_list_request_expand.py b/src/merge/resources/knowledgebase/resources/articles/types/articles_list_request_expand.py deleted file mode 100644 index e8ab09ea..00000000 --- a/src/merge/resources/knowledgebase/resources/articles/types/articles_list_request_expand.py +++ /dev/null @@ -1,625 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ArticlesListRequestExpand(str, enum.Enum): - ATTACHMENTS = "attachments" - ATTACHMENTS_AUTHOR = "attachments,author" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY = "attachments,author,last_edited_by" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = "attachments,author,last_edited_by,parent_article" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "attachments,author,last_edited_by,parent_article,parent_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,author,last_edited_by,parent_article,parent_container,root_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "attachments,author,last_edited_by,parent_article,root_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = "attachments,author,last_edited_by,parent_container" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,author,last_edited_by,parent_container,root_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = "attachments,author,last_edited_by,root_container" - ATTACHMENTS_AUTHOR_PARENT_ARTICLE = "attachments,author,parent_article" - ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = "attachments,author,parent_article,parent_container" - ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,author,parent_article,parent_container,root_container" - ) - ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = "attachments,author,parent_article,root_container" - ATTACHMENTS_AUTHOR_PARENT_CONTAINER = "attachments,author,parent_container" - ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = "attachments,author,parent_container,root_container" - ATTACHMENTS_AUTHOR_ROOT_CONTAINER = "attachments,author,root_container" - ATTACHMENTS_LAST_EDITED_BY = "attachments,last_edited_by" - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE = "attachments,last_edited_by,parent_article" - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "attachments,last_edited_by,parent_article,parent_container" - ) - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,last_edited_by,parent_article,parent_container,root_container" - ) - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "attachments,last_edited_by,parent_article,root_container" - ) - ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER = "attachments,last_edited_by,parent_container" - ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,last_edited_by,parent_container,root_container" - ) - ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER = "attachments,last_edited_by,root_container" - ATTACHMENTS_PARENT_ARTICLE = "attachments,parent_article" - ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER = "attachments,parent_article,parent_container" - ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,parent_article,parent_container,root_container" - ) - ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER = "attachments,parent_article,root_container" - ATTACHMENTS_PARENT_CONTAINER = "attachments,parent_container" - ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER = "attachments,parent_container,root_container" - ATTACHMENTS_ROOT_CONTAINER = "attachments,root_container" - AUTHOR = "author" - AUTHOR_LAST_EDITED_BY = "author,last_edited_by" - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = "author,last_edited_by,parent_article" - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = "author,last_edited_by,parent_article,parent_container" - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "author,last_edited_by,parent_article,parent_container,root_container" - ) - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = "author,last_edited_by,parent_article,root_container" - AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = "author,last_edited_by,parent_container" - AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = "author,last_edited_by,parent_container,root_container" - AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = "author,last_edited_by,root_container" - AUTHOR_PARENT_ARTICLE = "author,parent_article" - AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = "author,parent_article,parent_container" - AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = "author,parent_article,parent_container,root_container" - AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = "author,parent_article,root_container" - AUTHOR_PARENT_CONTAINER = "author,parent_container" - AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = "author,parent_container,root_container" - AUTHOR_ROOT_CONTAINER = "author,root_container" - LAST_EDITED_BY = "last_edited_by" - LAST_EDITED_BY_PARENT_ARTICLE = "last_edited_by,parent_article" - LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = "last_edited_by,parent_article,parent_container" - LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "last_edited_by,parent_article,parent_container,root_container" - ) - LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = "last_edited_by,parent_article,root_container" - LAST_EDITED_BY_PARENT_CONTAINER = "last_edited_by,parent_container" - LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = "last_edited_by,parent_container,root_container" - LAST_EDITED_BY_ROOT_CONTAINER = "last_edited_by,root_container" - PARENT_ARTICLE = "parent_article" - PARENT_ARTICLE_PARENT_CONTAINER = "parent_article,parent_container" - PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = "parent_article,parent_container,root_container" - PARENT_ARTICLE_ROOT_CONTAINER = "parent_article,root_container" - PARENT_CONTAINER = "parent_container" - PARENT_CONTAINER_ROOT_CONTAINER = "parent_container,root_container" - PERMISSIONS = "permissions" - PERMISSIONS_ATTACHMENTS = "permissions,attachments" - PERMISSIONS_ATTACHMENTS_AUTHOR = "permissions,attachments,author" - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY = "permissions,attachments,author,last_edited_by" - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = ( - "permissions,attachments,author,last_edited_by,parent_article" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE = "permissions,attachments,author,parent_article" - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,attachments,author,parent_article,parent_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,attachments,author,parent_article,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER = "permissions,attachments,author,parent_container" - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_ROOT_CONTAINER = "permissions,attachments,author,root_container" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY = "permissions,attachments,last_edited_by" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE = "permissions,attachments,last_edited_by,parent_article" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER = "permissions,attachments,last_edited_by,parent_container" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER = "permissions,attachments,last_edited_by,root_container" - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE = "permissions,attachments,parent_article" - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,attachments,parent_article,parent_container" - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER = "permissions,attachments,parent_article,root_container" - PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER = "permissions,attachments,parent_container" - PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER = "permissions,attachments,parent_container,root_container" - PERMISSIONS_ATTACHMENTS_ROOT_CONTAINER = "permissions,attachments,root_container" - PERMISSIONS_AUTHOR = "permissions,author" - PERMISSIONS_AUTHOR_LAST_EDITED_BY = "permissions,author,last_edited_by" - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = "permissions,author,last_edited_by,parent_article" - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,author,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,author,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,author,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = "permissions,author,last_edited_by,parent_container" - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,author,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = "permissions,author,last_edited_by,root_container" - PERMISSIONS_AUTHOR_PARENT_ARTICLE = "permissions,author,parent_article" - PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,author,parent_article,parent_container" - PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,author,parent_article,parent_container,root_container" - ) - PERMISSIONS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = "permissions,author,parent_article,root_container" - PERMISSIONS_AUTHOR_PARENT_CONTAINER = "permissions,author,parent_container" - PERMISSIONS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = "permissions,author,parent_container,root_container" - PERMISSIONS_AUTHOR_ROOT_CONTAINER = "permissions,author,root_container" - PERMISSIONS_LAST_EDITED_BY = "permissions,last_edited_by" - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE = "permissions,last_edited_by,parent_article" - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER = "permissions,last_edited_by,parent_container" - PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_LAST_EDITED_BY_ROOT_CONTAINER = "permissions,last_edited_by,root_container" - PERMISSIONS_PARENT_ARTICLE = "permissions,parent_article" - PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,parent_article,parent_container" - PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,parent_article,parent_container,root_container" - ) - PERMISSIONS_PARENT_ARTICLE_ROOT_CONTAINER = "permissions,parent_article,root_container" - PERMISSIONS_PARENT_CONTAINER = "permissions,parent_container" - PERMISSIONS_PARENT_CONTAINER_ROOT_CONTAINER = "permissions,parent_container,root_container" - PERMISSIONS_ROOT_CONTAINER = "permissions,root_container" - ROOT_CONTAINER = "root_container" - - def visit( - self, - attachments: typing.Callable[[], T_Result], - attachments_author: typing.Callable[[], T_Result], - attachments_author_last_edited_by: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_root_container: typing.Callable[[], T_Result], - attachments_author_parent_article: typing.Callable[[], T_Result], - attachments_author_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_parent_article_root_container: typing.Callable[[], T_Result], - attachments_author_parent_container: typing.Callable[[], T_Result], - attachments_author_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by_root_container: typing.Callable[[], T_Result], - attachments_parent_article: typing.Callable[[], T_Result], - attachments_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_parent_article_root_container: typing.Callable[[], T_Result], - attachments_parent_container: typing.Callable[[], T_Result], - attachments_parent_container_root_container: typing.Callable[[], T_Result], - attachments_root_container: typing.Callable[[], T_Result], - author: typing.Callable[[], T_Result], - author_last_edited_by: typing.Callable[[], T_Result], - author_last_edited_by_parent_article: typing.Callable[[], T_Result], - author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - author_last_edited_by_root_container: typing.Callable[[], T_Result], - author_parent_article: typing.Callable[[], T_Result], - author_parent_article_parent_container: typing.Callable[[], T_Result], - author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - author_parent_article_root_container: typing.Callable[[], T_Result], - author_parent_container: typing.Callable[[], T_Result], - author_parent_container_root_container: typing.Callable[[], T_Result], - author_root_container: typing.Callable[[], T_Result], - last_edited_by: typing.Callable[[], T_Result], - last_edited_by_parent_article: typing.Callable[[], T_Result], - last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - last_edited_by_parent_container: typing.Callable[[], T_Result], - last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - last_edited_by_root_container: typing.Callable[[], T_Result], - parent_article: typing.Callable[[], T_Result], - parent_article_parent_container: typing.Callable[[], T_Result], - parent_article_parent_container_root_container: typing.Callable[[], T_Result], - parent_article_root_container: typing.Callable[[], T_Result], - parent_container: typing.Callable[[], T_Result], - parent_container_root_container: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_attachments: typing.Callable[[], T_Result], - permissions_attachments_author: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[ - [], T_Result - ], - permissions_attachments_author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_root_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_article_parent_container_root_container: typing.Callable[ - [], T_Result - ], - permissions_attachments_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_attachments_parent_article: typing.Callable[[], T_Result], - permissions_attachments_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_parent_container: typing.Callable[[], T_Result], - permissions_attachments_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_root_container: typing.Callable[[], T_Result], - permissions_author: typing.Callable[[], T_Result], - permissions_author_last_edited_by: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_author_parent_article: typing.Callable[[], T_Result], - permissions_author_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_parent_article_root_container: typing.Callable[[], T_Result], - permissions_author_parent_container: typing.Callable[[], T_Result], - permissions_author_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_parent_article: typing.Callable[[], T_Result], - permissions_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_parent_article_root_container: typing.Callable[[], T_Result], - permissions_parent_container: typing.Callable[[], T_Result], - permissions_parent_container_root_container: typing.Callable[[], T_Result], - permissions_root_container: typing.Callable[[], T_Result], - root_container: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ArticlesListRequestExpand.ATTACHMENTS: - return attachments() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR: - return attachments_author() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY: - return attachments_author_last_edited_by() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return attachments_author_last_edited_by_parent_article() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_author_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return attachments_author_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_author_last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return attachments_author_last_edited_by_parent_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_author_last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return attachments_author_last_edited_by_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE: - return attachments_author_parent_article() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_author_parent_article_parent_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_author_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_author_parent_article_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_PARENT_CONTAINER: - return attachments_author_parent_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_author_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_AUTHOR_ROOT_CONTAINER: - return attachments_author_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY: - return attachments_last_edited_by() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE: - return attachments_last_edited_by_parent_article() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_last_edited_by_parent_article_parent_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER: - return attachments_last_edited_by_parent_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER: - return attachments_last_edited_by_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_PARENT_ARTICLE: - return attachments_parent_article() - if self is ArticlesListRequestExpand.ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_parent_article_parent_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_parent_article_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_PARENT_CONTAINER: - return attachments_parent_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_parent_container_root_container() - if self is ArticlesListRequestExpand.ATTACHMENTS_ROOT_CONTAINER: - return attachments_root_container() - if self is ArticlesListRequestExpand.AUTHOR: - return author() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY: - return author_last_edited_by() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return author_last_edited_by_parent_article() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return author_last_edited_by_parent_article_parent_container() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return author_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return author_last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return author_last_edited_by_parent_container() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return author_last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return author_last_edited_by_root_container() - if self is ArticlesListRequestExpand.AUTHOR_PARENT_ARTICLE: - return author_parent_article() - if self is ArticlesListRequestExpand.AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return author_parent_article_parent_container() - if self is ArticlesListRequestExpand.AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return author_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return author_parent_article_root_container() - if self is ArticlesListRequestExpand.AUTHOR_PARENT_CONTAINER: - return author_parent_container() - if self is ArticlesListRequestExpand.AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return author_parent_container_root_container() - if self is ArticlesListRequestExpand.AUTHOR_ROOT_CONTAINER: - return author_root_container() - if self is ArticlesListRequestExpand.LAST_EDITED_BY: - return last_edited_by() - if self is ArticlesListRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE: - return last_edited_by_parent_article() - if self is ArticlesListRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return last_edited_by_parent_article_parent_container() - if self is ArticlesListRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.LAST_EDITED_BY_PARENT_CONTAINER: - return last_edited_by_parent_container() - if self is ArticlesListRequestExpand.LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.LAST_EDITED_BY_ROOT_CONTAINER: - return last_edited_by_root_container() - if self is ArticlesListRequestExpand.PARENT_ARTICLE: - return parent_article() - if self is ArticlesListRequestExpand.PARENT_ARTICLE_PARENT_CONTAINER: - return parent_article_parent_container() - if self is ArticlesListRequestExpand.PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PARENT_ARTICLE_ROOT_CONTAINER: - return parent_article_root_container() - if self is ArticlesListRequestExpand.PARENT_CONTAINER: - return parent_container() - if self is ArticlesListRequestExpand.PARENT_CONTAINER_ROOT_CONTAINER: - return parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS: - return permissions() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS: - return permissions_attachments() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR: - return permissions_attachments_author() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY: - return permissions_attachments_author_last_edited_by() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_attachments_author_last_edited_by_parent_article() - if ( - self - is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_article_parent_container_root_container() - if ( - self - is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_attachments_author_last_edited_by_parent_container() - if ( - self - is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_attachments_author_last_edited_by_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE: - return permissions_attachments_author_parent_article() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_attachments_author_parent_article_parent_container() - if ( - self - is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_author_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_attachments_author_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER: - return permissions_attachments_author_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_author_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_ROOT_CONTAINER: - return permissions_attachments_author_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY: - return permissions_attachments_last_edited_by() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_attachments_last_edited_by_parent_article() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_attachments_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_attachments_last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_attachments_last_edited_by_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_attachments_last_edited_by_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE: - return permissions_attachments_parent_article() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_attachments_parent_article_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_attachments_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER: - return permissions_attachments_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ATTACHMENTS_ROOT_CONTAINER: - return permissions_attachments_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR: - return permissions_author() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY: - return permissions_author_last_edited_by() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_author_last_edited_by_parent_article() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_author_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_author_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_author_last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_author_last_edited_by_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_author_last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_author_last_edited_by_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE: - return permissions_author_parent_article() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_author_parent_article_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_author_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_author_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_PARENT_CONTAINER: - return permissions_author_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_author_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_AUTHOR_ROOT_CONTAINER: - return permissions_author_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY: - return permissions_last_edited_by() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_last_edited_by_parent_article() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_last_edited_by_parent_article_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_last_edited_by_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_last_edited_by_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_last_edited_by_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_last_edited_by_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_PARENT_ARTICLE: - return permissions_parent_article() - if self is ArticlesListRequestExpand.PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_parent_article_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_parent_article_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_parent_article_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_PARENT_CONTAINER: - return permissions_parent_container() - if self is ArticlesListRequestExpand.PERMISSIONS_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_parent_container_root_container() - if self is ArticlesListRequestExpand.PERMISSIONS_ROOT_CONTAINER: - return permissions_root_container() - if self is ArticlesListRequestExpand.ROOT_CONTAINER: - return root_container() diff --git a/src/merge/resources/knowledgebase/resources/articles/types/articles_list_request_type.py b/src/merge/resources/knowledgebase/resources/articles/types/articles_list_request_type.py deleted file mode 100644 index c09a8782..00000000 --- a/src/merge/resources/knowledgebase/resources/articles/types/articles_list_request_type.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ArticlesListRequestType(str, enum.Enum): - EMPTY = "" - BLOG_POST = "BLOG_POST" - PAGE = "PAGE" - SMART_LINK = "SMART_LINK" - - def visit( - self, - empty: typing.Callable[[], T_Result], - blog_post: typing.Callable[[], T_Result], - page: typing.Callable[[], T_Result], - smart_link: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ArticlesListRequestType.EMPTY: - return empty() - if self is ArticlesListRequestType.BLOG_POST: - return blog_post() - if self is ArticlesListRequestType.PAGE: - return page() - if self is ArticlesListRequestType.SMART_LINK: - return smart_link() diff --git a/src/merge/resources/knowledgebase/resources/articles/types/articles_retrieve_request_expand.py b/src/merge/resources/knowledgebase/resources/articles/types/articles_retrieve_request_expand.py deleted file mode 100644 index e64863e6..00000000 --- a/src/merge/resources/knowledgebase/resources/articles/types/articles_retrieve_request_expand.py +++ /dev/null @@ -1,631 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ArticlesRetrieveRequestExpand(str, enum.Enum): - ATTACHMENTS = "attachments" - ATTACHMENTS_AUTHOR = "attachments,author" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY = "attachments,author,last_edited_by" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = "attachments,author,last_edited_by,parent_article" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "attachments,author,last_edited_by,parent_article,parent_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,author,last_edited_by,parent_article,parent_container,root_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "attachments,author,last_edited_by,parent_article,root_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = "attachments,author,last_edited_by,parent_container" - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,author,last_edited_by,parent_container,root_container" - ) - ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = "attachments,author,last_edited_by,root_container" - ATTACHMENTS_AUTHOR_PARENT_ARTICLE = "attachments,author,parent_article" - ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = "attachments,author,parent_article,parent_container" - ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,author,parent_article,parent_container,root_container" - ) - ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = "attachments,author,parent_article,root_container" - ATTACHMENTS_AUTHOR_PARENT_CONTAINER = "attachments,author,parent_container" - ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = "attachments,author,parent_container,root_container" - ATTACHMENTS_AUTHOR_ROOT_CONTAINER = "attachments,author,root_container" - ATTACHMENTS_LAST_EDITED_BY = "attachments,last_edited_by" - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE = "attachments,last_edited_by,parent_article" - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "attachments,last_edited_by,parent_article,parent_container" - ) - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,last_edited_by,parent_article,parent_container,root_container" - ) - ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "attachments,last_edited_by,parent_article,root_container" - ) - ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER = "attachments,last_edited_by,parent_container" - ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,last_edited_by,parent_container,root_container" - ) - ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER = "attachments,last_edited_by,root_container" - ATTACHMENTS_PARENT_ARTICLE = "attachments,parent_article" - ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER = "attachments,parent_article,parent_container" - ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "attachments,parent_article,parent_container,root_container" - ) - ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER = "attachments,parent_article,root_container" - ATTACHMENTS_PARENT_CONTAINER = "attachments,parent_container" - ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER = "attachments,parent_container,root_container" - ATTACHMENTS_ROOT_CONTAINER = "attachments,root_container" - AUTHOR = "author" - AUTHOR_LAST_EDITED_BY = "author,last_edited_by" - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = "author,last_edited_by,parent_article" - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = "author,last_edited_by,parent_article,parent_container" - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "author,last_edited_by,parent_article,parent_container,root_container" - ) - AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = "author,last_edited_by,parent_article,root_container" - AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = "author,last_edited_by,parent_container" - AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = "author,last_edited_by,parent_container,root_container" - AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = "author,last_edited_by,root_container" - AUTHOR_PARENT_ARTICLE = "author,parent_article" - AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = "author,parent_article,parent_container" - AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = "author,parent_article,parent_container,root_container" - AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = "author,parent_article,root_container" - AUTHOR_PARENT_CONTAINER = "author,parent_container" - AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = "author,parent_container,root_container" - AUTHOR_ROOT_CONTAINER = "author,root_container" - LAST_EDITED_BY = "last_edited_by" - LAST_EDITED_BY_PARENT_ARTICLE = "last_edited_by,parent_article" - LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = "last_edited_by,parent_article,parent_container" - LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "last_edited_by,parent_article,parent_container,root_container" - ) - LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = "last_edited_by,parent_article,root_container" - LAST_EDITED_BY_PARENT_CONTAINER = "last_edited_by,parent_container" - LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = "last_edited_by,parent_container,root_container" - LAST_EDITED_BY_ROOT_CONTAINER = "last_edited_by,root_container" - PARENT_ARTICLE = "parent_article" - PARENT_ARTICLE_PARENT_CONTAINER = "parent_article,parent_container" - PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = "parent_article,parent_container,root_container" - PARENT_ARTICLE_ROOT_CONTAINER = "parent_article,root_container" - PARENT_CONTAINER = "parent_container" - PARENT_CONTAINER_ROOT_CONTAINER = "parent_container,root_container" - PERMISSIONS = "permissions" - PERMISSIONS_ATTACHMENTS = "permissions,attachments" - PERMISSIONS_ATTACHMENTS_AUTHOR = "permissions,attachments,author" - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY = "permissions,attachments,author,last_edited_by" - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = ( - "permissions,attachments,author,last_edited_by,parent_article" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = ( - "permissions,attachments,author,last_edited_by,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE = "permissions,attachments,author,parent_article" - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,attachments,author,parent_article,parent_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,attachments,author,parent_article,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER = "permissions,attachments,author,parent_container" - PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,author,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_AUTHOR_ROOT_CONTAINER = "permissions,attachments,author,root_container" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY = "permissions,attachments,last_edited_by" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE = "permissions,attachments,last_edited_by,parent_article" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER = "permissions,attachments,last_edited_by,parent_container" - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER = "permissions,attachments,last_edited_by,root_container" - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE = "permissions,attachments,parent_article" - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,attachments,parent_article,parent_container" - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,attachments,parent_article,parent_container,root_container" - ) - PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER = "permissions,attachments,parent_article,root_container" - PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER = "permissions,attachments,parent_container" - PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER = "permissions,attachments,parent_container,root_container" - PERMISSIONS_ATTACHMENTS_ROOT_CONTAINER = "permissions,attachments,root_container" - PERMISSIONS_AUTHOR = "permissions,author" - PERMISSIONS_AUTHOR_LAST_EDITED_BY = "permissions,author,last_edited_by" - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE = "permissions,author,last_edited_by,parent_article" - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,author,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,author,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,author,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER = "permissions,author,last_edited_by,parent_container" - PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,author,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER = "permissions,author,last_edited_by,root_container" - PERMISSIONS_AUTHOR_PARENT_ARTICLE = "permissions,author,parent_article" - PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,author,parent_article,parent_container" - PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,author,parent_article,parent_container,root_container" - ) - PERMISSIONS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER = "permissions,author,parent_article,root_container" - PERMISSIONS_AUTHOR_PARENT_CONTAINER = "permissions,author,parent_container" - PERMISSIONS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER = "permissions,author,parent_container,root_container" - PERMISSIONS_AUTHOR_ROOT_CONTAINER = "permissions,author,root_container" - PERMISSIONS_LAST_EDITED_BY = "permissions,last_edited_by" - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE = "permissions,last_edited_by,parent_article" - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER = ( - "permissions,last_edited_by,parent_article,parent_container" - ) - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,last_edited_by,parent_article,parent_container,root_container" - ) - PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER = ( - "permissions,last_edited_by,parent_article,root_container" - ) - PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER = "permissions,last_edited_by,parent_container" - PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,last_edited_by,parent_container,root_container" - ) - PERMISSIONS_LAST_EDITED_BY_ROOT_CONTAINER = "permissions,last_edited_by,root_container" - PERMISSIONS_PARENT_ARTICLE = "permissions,parent_article" - PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,parent_article,parent_container" - PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER = ( - "permissions,parent_article,parent_container,root_container" - ) - PERMISSIONS_PARENT_ARTICLE_ROOT_CONTAINER = "permissions,parent_article,root_container" - PERMISSIONS_PARENT_CONTAINER = "permissions,parent_container" - PERMISSIONS_PARENT_CONTAINER_ROOT_CONTAINER = "permissions,parent_container,root_container" - PERMISSIONS_ROOT_CONTAINER = "permissions,root_container" - ROOT_CONTAINER = "root_container" - - def visit( - self, - attachments: typing.Callable[[], T_Result], - attachments_author: typing.Callable[[], T_Result], - attachments_author_last_edited_by: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_last_edited_by_root_container: typing.Callable[[], T_Result], - attachments_author_parent_article: typing.Callable[[], T_Result], - attachments_author_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_parent_article_root_container: typing.Callable[[], T_Result], - attachments_author_parent_container: typing.Callable[[], T_Result], - attachments_author_parent_container_root_container: typing.Callable[[], T_Result], - attachments_author_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_container: typing.Callable[[], T_Result], - attachments_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - attachments_last_edited_by_root_container: typing.Callable[[], T_Result], - attachments_parent_article: typing.Callable[[], T_Result], - attachments_parent_article_parent_container: typing.Callable[[], T_Result], - attachments_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - attachments_parent_article_root_container: typing.Callable[[], T_Result], - attachments_parent_container: typing.Callable[[], T_Result], - attachments_parent_container_root_container: typing.Callable[[], T_Result], - attachments_root_container: typing.Callable[[], T_Result], - author: typing.Callable[[], T_Result], - author_last_edited_by: typing.Callable[[], T_Result], - author_last_edited_by_parent_article: typing.Callable[[], T_Result], - author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_container: typing.Callable[[], T_Result], - author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - author_last_edited_by_root_container: typing.Callable[[], T_Result], - author_parent_article: typing.Callable[[], T_Result], - author_parent_article_parent_container: typing.Callable[[], T_Result], - author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - author_parent_article_root_container: typing.Callable[[], T_Result], - author_parent_container: typing.Callable[[], T_Result], - author_parent_container_root_container: typing.Callable[[], T_Result], - author_root_container: typing.Callable[[], T_Result], - last_edited_by: typing.Callable[[], T_Result], - last_edited_by_parent_article: typing.Callable[[], T_Result], - last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - last_edited_by_parent_container: typing.Callable[[], T_Result], - last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - last_edited_by_root_container: typing.Callable[[], T_Result], - parent_article: typing.Callable[[], T_Result], - parent_article_parent_container: typing.Callable[[], T_Result], - parent_article_parent_container_root_container: typing.Callable[[], T_Result], - parent_article_root_container: typing.Callable[[], T_Result], - parent_container: typing.Callable[[], T_Result], - parent_container_root_container: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_attachments: typing.Callable[[], T_Result], - permissions_attachments_author: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[ - [], T_Result - ], - permissions_attachments_author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_container: typing.Callable[[], T_Result], - permissions_attachments_author_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_author_root_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_article_parent_container_root_container: typing.Callable[ - [], T_Result - ], - permissions_attachments_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_attachments_parent_article: typing.Callable[[], T_Result], - permissions_attachments_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_attachments_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_parent_article_root_container: typing.Callable[[], T_Result], - permissions_attachments_parent_container: typing.Callable[[], T_Result], - permissions_attachments_parent_container_root_container: typing.Callable[[], T_Result], - permissions_attachments_root_container: typing.Callable[[], T_Result], - permissions_author: typing.Callable[[], T_Result], - permissions_author_last_edited_by: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_author_parent_article: typing.Callable[[], T_Result], - permissions_author_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_author_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_parent_article_root_container: typing.Callable[[], T_Result], - permissions_author_parent_container: typing.Callable[[], T_Result], - permissions_author_parent_container_root_container: typing.Callable[[], T_Result], - permissions_author_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_article_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_container: typing.Callable[[], T_Result], - permissions_last_edited_by_parent_container_root_container: typing.Callable[[], T_Result], - permissions_last_edited_by_root_container: typing.Callable[[], T_Result], - permissions_parent_article: typing.Callable[[], T_Result], - permissions_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_parent_article_parent_container_root_container: typing.Callable[[], T_Result], - permissions_parent_article_root_container: typing.Callable[[], T_Result], - permissions_parent_container: typing.Callable[[], T_Result], - permissions_parent_container_root_container: typing.Callable[[], T_Result], - permissions_root_container: typing.Callable[[], T_Result], - root_container: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS: - return attachments() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR: - return attachments_author() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY: - return attachments_author_last_edited_by() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return attachments_author_last_edited_by_parent_article() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_author_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return attachments_author_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_author_last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return attachments_author_last_edited_by_parent_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_author_last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return attachments_author_last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE: - return attachments_author_parent_article() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_author_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_author_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_author_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_PARENT_CONTAINER: - return attachments_author_parent_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_author_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_AUTHOR_ROOT_CONTAINER: - return attachments_author_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY: - return attachments_last_edited_by() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE: - return attachments_last_edited_by_parent_article() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return attachments_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER: - return attachments_last_edited_by_parent_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER: - return attachments_last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_PARENT_ARTICLE: - return attachments_parent_article() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER: - return attachments_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER: - return attachments_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_PARENT_CONTAINER: - return attachments_parent_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER: - return attachments_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.ATTACHMENTS_ROOT_CONTAINER: - return attachments_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR: - return author() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY: - return author_last_edited_by() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return author_last_edited_by_parent_article() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return author_last_edited_by_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return author_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return author_last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return author_last_edited_by_parent_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return author_last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return author_last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_PARENT_ARTICLE: - return author_parent_article() - if self is ArticlesRetrieveRequestExpand.AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return author_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return author_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return author_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_PARENT_CONTAINER: - return author_parent_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return author_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.AUTHOR_ROOT_CONTAINER: - return author_root_container() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY: - return last_edited_by() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE: - return last_edited_by_parent_article() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return last_edited_by_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY_PARENT_CONTAINER: - return last_edited_by_parent_container() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.LAST_EDITED_BY_ROOT_CONTAINER: - return last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.PARENT_ARTICLE: - return parent_article() - if self is ArticlesRetrieveRequestExpand.PARENT_ARTICLE_PARENT_CONTAINER: - return parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PARENT_ARTICLE_ROOT_CONTAINER: - return parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PARENT_CONTAINER: - return parent_container() - if self is ArticlesRetrieveRequestExpand.PARENT_CONTAINER_ROOT_CONTAINER: - return parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS: - return permissions() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS: - return permissions_attachments() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR: - return permissions_attachments_author() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY: - return permissions_attachments_author_last_edited_by() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_attachments_author_last_edited_by_parent_article() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_article_parent_container_root_container() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_attachments_author_last_edited_by_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_author_last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_attachments_author_last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE: - return permissions_attachments_author_parent_article() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_attachments_author_parent_article_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_author_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_attachments_author_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER: - return permissions_attachments_author_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_author_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_AUTHOR_ROOT_CONTAINER: - return permissions_attachments_author_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY: - return permissions_attachments_last_edited_by() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_attachments_last_edited_by_parent_article() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_attachments_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_attachments_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_attachments_last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_attachments_last_edited_by_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_attachments_last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE: - return permissions_attachments_parent_article() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_attachments_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_attachments_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER: - return permissions_attachments_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_attachments_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ATTACHMENTS_ROOT_CONTAINER: - return permissions_attachments_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR: - return permissions_author() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY: - return permissions_author_last_edited_by() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_author_last_edited_by_parent_article() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_author_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_author_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_author_last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_author_last_edited_by_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_author_last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_author_last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE: - return permissions_author_parent_article() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_author_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_author_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_author_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_PARENT_CONTAINER: - return permissions_author_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_author_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_AUTHOR_ROOT_CONTAINER: - return permissions_author_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY: - return permissions_last_edited_by() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE: - return permissions_last_edited_by_parent_article() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_last_edited_by_parent_article_parent_container() - if ( - self - is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER - ): - return permissions_last_edited_by_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_last_edited_by_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER: - return permissions_last_edited_by_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_last_edited_by_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_LAST_EDITED_BY_ROOT_CONTAINER: - return permissions_last_edited_by_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_PARENT_ARTICLE: - return permissions_parent_article() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_parent_article_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_parent_article_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_PARENT_ARTICLE_ROOT_CONTAINER: - return permissions_parent_article_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_PARENT_CONTAINER: - return permissions_parent_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_PARENT_CONTAINER_ROOT_CONTAINER: - return permissions_parent_container_root_container() - if self is ArticlesRetrieveRequestExpand.PERMISSIONS_ROOT_CONTAINER: - return permissions_root_container() - if self is ArticlesRetrieveRequestExpand.ROOT_CONTAINER: - return root_container() diff --git a/src/merge/resources/knowledgebase/resources/async_passthrough/__init__.py b/src/merge/resources/knowledgebase/resources/async_passthrough/__init__.py deleted file mode 100644 index 375c7953..00000000 --- a/src/merge/resources/knowledgebase/resources/async_passthrough/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/knowledgebase/resources/async_passthrough/client.py b/src/merge/resources/knowledgebase/resources/async_passthrough/client.py deleted file mode 100644 index 72373917..00000000 --- a/src/merge/resources/knowledgebase/resources/async_passthrough/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .raw_client import AsyncRawAsyncPassthroughClient, RawAsyncPassthroughClient -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - """ - _response = self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data - - -class AsyncAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/async_passthrough/raw_client.py b/src/merge/resources/knowledgebase/resources/async_passthrough/raw_client.py deleted file mode 100644 index 1edf795f..00000000 --- a/src/merge/resources/knowledgebase/resources/async_passthrough/raw_client.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughReciept] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughReciept] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/async_passthrough/types/__init__.py b/src/merge/resources/knowledgebase/resources/async_passthrough/types/__init__.py deleted file mode 100644 index f6e9bec9..00000000 --- a/src/merge/resources/knowledgebase/resources/async_passthrough/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".async_passthrough_retrieve_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/knowledgebase/resources/async_passthrough/types/async_passthrough_retrieve_response.py b/src/merge/resources/knowledgebase/resources/async_passthrough/types/async_passthrough_retrieve_response.py deleted file mode 100644 index f8f87c18..00000000 --- a/src/merge/resources/knowledgebase/resources/async_passthrough/types/async_passthrough_retrieve_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.remote_response import RemoteResponse - -AsyncPassthroughRetrieveResponse = typing.Union[RemoteResponse, str] diff --git a/src/merge/resources/knowledgebase/resources/attachments/__init__.py b/src/merge/resources/knowledgebase/resources/attachments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/attachments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/attachments/client.py b/src/merge/resources/knowledgebase/resources/attachments/client.py deleted file mode 100644 index 8998590d..00000000 --- a/src/merge/resources/knowledgebase/resources/attachments/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.attachment import Attachment -from ...types.paginated_attachment_list import PaginatedAttachmentList -from .raw_client import AsyncRawAttachmentsClient, RawAttachmentsClient - - -class AttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAttachmentsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAttachmentList: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAttachmentList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.attachments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Attachment: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Attachment - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAttachmentsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAttachmentList: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAttachmentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.attachments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Attachment: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Attachment - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/attachments/raw_client.py b/src/merge/resources/knowledgebase/resources/attachments/raw_client.py deleted file mode 100644 index 1da00a24..00000000 --- a/src/merge/resources/knowledgebase/resources/attachments/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.attachment import Attachment -from ...types.paginated_attachment_list import PaginatedAttachmentList - - -class RawAttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAttachmentList]: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAttachmentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/attachments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAttachmentList, - construct_type( - type_=PaginatedAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Attachment]: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Attachment] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Attachment, - construct_type( - type_=Attachment, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAttachmentList]: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAttachmentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/attachments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAttachmentList, - construct_type( - type_=PaginatedAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Attachment]: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Attachment] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Attachment, - construct_type( - type_=Attachment, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/audit_trail/__init__.py b/src/merge/resources/knowledgebase/resources/audit_trail/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/audit_trail/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/audit_trail/client.py b/src/merge/resources/knowledgebase/resources/audit_trail/client.py deleted file mode 100644 index 3f0ab341..00000000 --- a/src/merge/resources/knowledgebase/resources/audit_trail/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList -from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient - - -class AuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuditTrailClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - """ - _response = self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data - - -class AsyncAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuditTrailClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/audit_trail/raw_client.py b/src/merge/resources/knowledgebase/resources/audit_trail/raw_client.py deleted file mode 100644 index d130a2a1..00000000 --- a/src/merge/resources/knowledgebase/resources/audit_trail/raw_client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList - - -class RawAuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAuditLogEventList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAuditLogEventList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/available_actions/__init__.py b/src/merge/resources/knowledgebase/resources/available_actions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/available_actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/available_actions/client.py b/src/merge/resources/knowledgebase/resources/available_actions/client.py deleted file mode 100644 index 3f5a7a95..00000000 --- a/src/merge/resources/knowledgebase/resources/available_actions/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.available_actions import AvailableActions -from .raw_client import AsyncRawAvailableActionsClient, RawAvailableActionsClient - - -class AvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAvailableActionsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.available_actions.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAvailableActionsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.available_actions.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/available_actions/raw_client.py b/src/merge/resources/knowledgebase/resources/available_actions/raw_client.py deleted file mode 100644 index 9ea7770d..00000000 --- a/src/merge/resources/knowledgebase/resources/available_actions/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.available_actions import AvailableActions - - -class RawAvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AvailableActions] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AvailableActions] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/containers/__init__.py b/src/merge/resources/knowledgebase/resources/containers/__init__.py deleted file mode 100644 index 6ccf6d9d..00000000 --- a/src/merge/resources/knowledgebase/resources/containers/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ContainersListRequestExpand, ContainersListRequestType, ContainersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ContainersListRequestExpand": ".types", - "ContainersListRequestType": ".types", - "ContainersRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ContainersListRequestExpand", "ContainersListRequestType", "ContainersRetrieveRequestExpand"] diff --git a/src/merge/resources/knowledgebase/resources/containers/client.py b/src/merge/resources/knowledgebase/resources/containers/client.py deleted file mode 100644 index 74e798c0..00000000 --- a/src/merge/resources/knowledgebase/resources/containers/client.py +++ /dev/null @@ -1,444 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.container import Container -from ...types.paginated_container_list import PaginatedContainerList -from .raw_client import AsyncRawContainersClient, RawContainersClient -from .types.containers_list_request_expand import ContainersListRequestExpand -from .types.containers_list_request_type import ContainersListRequestType -from .types.containers_retrieve_request_expand import ContainersRetrieveRequestExpand - - -class ContainersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawContainersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawContainersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawContainersClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ContainersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - type: typing.Optional[ContainersListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContainerList: - """ - Returns a list of `Container` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ContainersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub containers of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub containers of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - type : typing.Optional[ContainersListRequestType] - If provided, will only return containers of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContainerList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.knowledgebase.resources.containers import ( - ContainersListRequestExpand, - ContainersListRequestType, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.containers.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ContainersListRequestExpand.PARENT_ARTICLE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_article_id="parent_article_id", - parent_container_id="parent_container_id", - remote_id="remote_id", - type=ContainersListRequestType.EMPTY, - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - parent_article_id=parent_article_id, - parent_container_id=parent_container_id, - remote_id=remote_id, - type=type, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContainersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Container: - """ - Returns a `Container` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContainersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Container - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase.resources.containers import ( - ContainersRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.containers.retrieve( - id="id", - expand=ContainersRetrieveRequestExpand.PARENT_ARTICLE, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncContainersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawContainersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawContainersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawContainersClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ContainersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - type: typing.Optional[ContainersListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContainerList: - """ - Returns a list of `Container` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ContainersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub containers of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub containers of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - type : typing.Optional[ContainersListRequestType] - If provided, will only return containers of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContainerList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.containers import ( - ContainersListRequestExpand, - ContainersListRequestType, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.containers.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ContainersListRequestExpand.PARENT_ARTICLE, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - parent_article_id="parent_article_id", - parent_container_id="parent_container_id", - remote_id="remote_id", - type=ContainersListRequestType.EMPTY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - parent_article_id=parent_article_id, - parent_container_id=parent_container_id, - remote_id=remote_id, - type=type, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContainersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Container: - """ - Returns a `Container` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContainersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Container - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.containers import ( - ContainersRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.containers.retrieve( - id="id", - expand=ContainersRetrieveRequestExpand.PARENT_ARTICLE, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/containers/raw_client.py b/src/merge/resources/knowledgebase/resources/containers/raw_client.py deleted file mode 100644 index 76b1a68b..00000000 --- a/src/merge/resources/knowledgebase/resources/containers/raw_client.py +++ /dev/null @@ -1,364 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.container import Container -from ...types.paginated_container_list import PaginatedContainerList -from .types.containers_list_request_expand import ContainersListRequestExpand -from .types.containers_list_request_type import ContainersListRequestType -from .types.containers_retrieve_request_expand import ContainersRetrieveRequestExpand - - -class RawContainersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ContainersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - type: typing.Optional[ContainersListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedContainerList]: - """ - Returns a list of `Container` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ContainersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub containers of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub containers of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - type : typing.Optional[ContainersListRequestType] - If provided, will only return containers of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedContainerList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/containers", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "parent_article_id": parent_article_id, - "parent_container_id": parent_container_id, - "remote_id": remote_id, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContainerList, - construct_type( - type_=PaginatedContainerList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContainersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Container]: - """ - Returns a `Container` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContainersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Container] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/containers/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Container, - construct_type( - type_=Container, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawContainersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ContainersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - parent_article_id: typing.Optional[str] = None, - parent_container_id: typing.Optional[str] = None, - remote_id: typing.Optional[str] = None, - type: typing.Optional[ContainersListRequestType] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedContainerList]: - """ - Returns a list of `Container` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ContainersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_article_id : typing.Optional[str] - If provided, will only return sub containers of the parent_article_id. - - parent_container_id : typing.Optional[str] - If provided, will only return sub containers of the parent_container_id. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - type : typing.Optional[ContainersListRequestType] - If provided, will only return containers of the given type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedContainerList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/containers", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "parent_article_id": parent_article_id, - "parent_container_id": parent_container_id, - "remote_id": remote_id, - "type": type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContainerList, - construct_type( - type_=PaginatedContainerList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[ContainersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Container]: - """ - Returns a `Container` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[ContainersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Container] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/containers/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Container, - construct_type( - type_=Container, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/containers/types/__init__.py b/src/merge/resources/knowledgebase/resources/containers/types/__init__.py deleted file mode 100644 index 5bbf7132..00000000 --- a/src/merge/resources/knowledgebase/resources/containers/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .containers_list_request_expand import ContainersListRequestExpand - from .containers_list_request_type import ContainersListRequestType - from .containers_retrieve_request_expand import ContainersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "ContainersListRequestExpand": ".containers_list_request_expand", - "ContainersListRequestType": ".containers_list_request_type", - "ContainersRetrieveRequestExpand": ".containers_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ContainersListRequestExpand", "ContainersListRequestType", "ContainersRetrieveRequestExpand"] diff --git a/src/merge/resources/knowledgebase/resources/containers/types/containers_list_request_expand.py b/src/merge/resources/knowledgebase/resources/containers/types/containers_list_request_expand.py deleted file mode 100644 index 49c7be3a..00000000 --- a/src/merge/resources/knowledgebase/resources/containers/types/containers_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContainersListRequestExpand(str, enum.Enum): - PARENT_ARTICLE = "parent_article" - PARENT_ARTICLE_PARENT_CONTAINER = "parent_article,parent_container" - PARENT_CONTAINER = "parent_container" - PERMISSIONS = "permissions" - PERMISSIONS_PARENT_ARTICLE = "permissions,parent_article" - PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,parent_article,parent_container" - PERMISSIONS_PARENT_CONTAINER = "permissions,parent_container" - - def visit( - self, - parent_article: typing.Callable[[], T_Result], - parent_article_parent_container: typing.Callable[[], T_Result], - parent_container: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_parent_article: typing.Callable[[], T_Result], - permissions_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_parent_container: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContainersListRequestExpand.PARENT_ARTICLE: - return parent_article() - if self is ContainersListRequestExpand.PARENT_ARTICLE_PARENT_CONTAINER: - return parent_article_parent_container() - if self is ContainersListRequestExpand.PARENT_CONTAINER: - return parent_container() - if self is ContainersListRequestExpand.PERMISSIONS: - return permissions() - if self is ContainersListRequestExpand.PERMISSIONS_PARENT_ARTICLE: - return permissions_parent_article() - if self is ContainersListRequestExpand.PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_parent_article_parent_container() - if self is ContainersListRequestExpand.PERMISSIONS_PARENT_CONTAINER: - return permissions_parent_container() diff --git a/src/merge/resources/knowledgebase/resources/containers/types/containers_list_request_type.py b/src/merge/resources/knowledgebase/resources/containers/types/containers_list_request_type.py deleted file mode 100644 index c40414d7..00000000 --- a/src/merge/resources/knowledgebase/resources/containers/types/containers_list_request_type.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContainersListRequestType(str, enum.Enum): - EMPTY = "" - CATEGORY = "CATEGORY" - COLLECTION = "COLLECTION" - DATABASE = "DATABASE" - FOLDER = "FOLDER" - SECTION = "SECTION" - SPACE = "SPACE" - - def visit( - self, - empty: typing.Callable[[], T_Result], - category: typing.Callable[[], T_Result], - collection: typing.Callable[[], T_Result], - database: typing.Callable[[], T_Result], - folder: typing.Callable[[], T_Result], - section: typing.Callable[[], T_Result], - space: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContainersListRequestType.EMPTY: - return empty() - if self is ContainersListRequestType.CATEGORY: - return category() - if self is ContainersListRequestType.COLLECTION: - return collection() - if self is ContainersListRequestType.DATABASE: - return database() - if self is ContainersListRequestType.FOLDER: - return folder() - if self is ContainersListRequestType.SECTION: - return section() - if self is ContainersListRequestType.SPACE: - return space() diff --git a/src/merge/resources/knowledgebase/resources/containers/types/containers_retrieve_request_expand.py b/src/merge/resources/knowledgebase/resources/containers/types/containers_retrieve_request_expand.py deleted file mode 100644 index 7b10f318..00000000 --- a/src/merge/resources/knowledgebase/resources/containers/types/containers_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContainersRetrieveRequestExpand(str, enum.Enum): - PARENT_ARTICLE = "parent_article" - PARENT_ARTICLE_PARENT_CONTAINER = "parent_article,parent_container" - PARENT_CONTAINER = "parent_container" - PERMISSIONS = "permissions" - PERMISSIONS_PARENT_ARTICLE = "permissions,parent_article" - PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER = "permissions,parent_article,parent_container" - PERMISSIONS_PARENT_CONTAINER = "permissions,parent_container" - - def visit( - self, - parent_article: typing.Callable[[], T_Result], - parent_article_parent_container: typing.Callable[[], T_Result], - parent_container: typing.Callable[[], T_Result], - permissions: typing.Callable[[], T_Result], - permissions_parent_article: typing.Callable[[], T_Result], - permissions_parent_article_parent_container: typing.Callable[[], T_Result], - permissions_parent_container: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContainersRetrieveRequestExpand.PARENT_ARTICLE: - return parent_article() - if self is ContainersRetrieveRequestExpand.PARENT_ARTICLE_PARENT_CONTAINER: - return parent_article_parent_container() - if self is ContainersRetrieveRequestExpand.PARENT_CONTAINER: - return parent_container() - if self is ContainersRetrieveRequestExpand.PERMISSIONS: - return permissions() - if self is ContainersRetrieveRequestExpand.PERMISSIONS_PARENT_ARTICLE: - return permissions_parent_article() - if self is ContainersRetrieveRequestExpand.PERMISSIONS_PARENT_ARTICLE_PARENT_CONTAINER: - return permissions_parent_article_parent_container() - if self is ContainersRetrieveRequestExpand.PERMISSIONS_PARENT_CONTAINER: - return permissions_parent_container() diff --git a/src/merge/resources/knowledgebase/resources/delete_account/__init__.py b/src/merge/resources/knowledgebase/resources/delete_account/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/delete_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/delete_account/client.py b/src/merge/resources/knowledgebase/resources/delete_account/client.py deleted file mode 100644 index 71794eed..00000000 --- a/src/merge/resources/knowledgebase/resources/delete_account/client.py +++ /dev/null @@ -1,99 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .raw_client import AsyncRawDeleteAccountClient, RawDeleteAccountClient - - -class DeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeleteAccountClient - """ - return self._raw_client - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.delete_account.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeleteAccountClient - """ - return self._raw_client - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.delete_account.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/delete_account/raw_client.py b/src/merge/resources/knowledgebase/resources/delete_account/raw_client.py deleted file mode 100644 index 69762675..00000000 --- a/src/merge/resources/knowledgebase/resources/delete_account/raw_client.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions - - -class RawDeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/field_mapping/__init__.py b/src/merge/resources/knowledgebase/resources/field_mapping/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/field_mapping/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/field_mapping/client.py b/src/merge/resources/knowledgebase/resources/field_mapping/client.py deleted file mode 100644 index f28fd73d..00000000 --- a/src/merge/resources/knowledgebase/resources/field_mapping/client.py +++ /dev/null @@ -1,664 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse -from .raw_client import AsyncRawFieldMappingClient, RawFieldMappingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFieldMappingClient - """ - return self._raw_client - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - """ - _response = self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - """ - _response = self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - """ - _response = self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.field_mapping.target_fields_retrieve() - """ - _response = self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data - - -class AsyncFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFieldMappingClient - """ - return self._raw_client - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.field_mapping.target_fields_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/field_mapping/raw_client.py b/src/merge/resources/knowledgebase/resources/field_mapping/raw_client.py deleted file mode 100644 index 0767247f..00000000 --- a/src/merge/resources/knowledgebase/resources/field_mapping/raw_client.py +++ /dev/null @@ -1,672 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/force_resync/__init__.py b/src/merge/resources/knowledgebase/resources/force_resync/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/force_resync/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/force_resync/client.py b/src/merge/resources/knowledgebase/resources/force_resync/client.py deleted file mode 100644 index af416400..00000000 --- a/src/merge/resources/knowledgebase/resources/force_resync/client.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.sync_status import SyncStatus -from .raw_client import AsyncRawForceResyncClient, RawForceResyncClient - - -class ForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawForceResyncClient - """ - return self._raw_client - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.force_resync.sync_status_resync_create() - """ - _response = self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data - - -class AsyncForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawForceResyncClient - """ - return self._raw_client - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.force_resync.sync_status_resync_create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/force_resync/raw_client.py b/src/merge/resources/knowledgebase/resources/force_resync/raw_client.py deleted file mode 100644 index afda654c..00000000 --- a/src/merge/resources/knowledgebase/resources/force_resync/raw_client.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.sync_status import SyncStatus - - -class RawForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SyncStatus]] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SyncStatus]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/generate_key/__init__.py b/src/merge/resources/knowledgebase/resources/generate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/generate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/generate_key/client.py b/src/merge/resources/knowledgebase/resources/generate_key/client.py deleted file mode 100644 index 4a21b90c..00000000 --- a/src/merge/resources/knowledgebase/resources/generate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawGenerateKeyClient, RawGenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.generate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.generate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/generate_key/raw_client.py b/src/merge/resources/knowledgebase/resources/generate_key/raw_client.py deleted file mode 100644 index a528f2c7..00000000 --- a/src/merge/resources/knowledgebase/resources/generate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/groups/__init__.py b/src/merge/resources/knowledgebase/resources/groups/__init__.py deleted file mode 100644 index d4647a1c..00000000 --- a/src/merge/resources/knowledgebase/resources/groups/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import GroupsListRequestExpand, GroupsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"GroupsListRequestExpand": ".types", "GroupsRetrieveRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["GroupsListRequestExpand", "GroupsRetrieveRequestExpand"] diff --git a/src/merge/resources/knowledgebase/resources/groups/client.py b/src/merge/resources/knowledgebase/resources/groups/client.py deleted file mode 100644 index b2e89602..00000000 --- a/src/merge/resources/knowledgebase/resources/groups/client.py +++ /dev/null @@ -1,405 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.group import Group -from ...types.paginated_group_list import PaginatedGroupList -from .raw_client import AsyncRawGroupsClient, RawGroupsClient -from .types.groups_list_request_expand import GroupsListRequestExpand -from .types.groups_retrieve_request_expand import GroupsRetrieveRequestExpand - - -class GroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGroupsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GroupsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GroupsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGroupList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.knowledgebase.resources.groups import ( - GroupsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=GroupsListRequestExpand.PARENT_GROUP, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[GroupsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Group: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GroupsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Group - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase.resources.groups import ( - GroupsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.groups.retrieve( - id="id", - expand=GroupsRetrieveRequestExpand.PARENT_GROUP, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGroupsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGroupsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGroupsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GroupsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedGroupList: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GroupsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedGroupList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.groups import ( - GroupsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.groups.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=GroupsListRequestExpand.PARENT_GROUP, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[GroupsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Group: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GroupsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Group - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.groups import ( - GroupsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.groups.retrieve( - id="id", - expand=GroupsRetrieveRequestExpand.PARENT_GROUP, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/groups/raw_client.py b/src/merge/resources/knowledgebase/resources/groups/raw_client.py deleted file mode 100644 index 231ff57c..00000000 --- a/src/merge/resources/knowledgebase/resources/groups/raw_client.py +++ /dev/null @@ -1,333 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.group import Group -from ...types.paginated_group_list import PaginatedGroupList -from .types.groups_list_request_expand import GroupsListRequestExpand -from .types.groups_retrieve_request_expand import GroupsRetrieveRequestExpand - - -class RawGroupsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GroupsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedGroupList]: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GroupsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedGroupList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGroupList, - construct_type( - type_=PaginatedGroupList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[GroupsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Group]: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GroupsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Group] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/groups/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Group, - construct_type( - type_=Group, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGroupsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[GroupsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedGroupList]: - """ - Returns a list of `Group` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[GroupsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedGroupList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/groups", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedGroupList, - construct_type( - type_=PaginatedGroupList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[GroupsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Group]: - """ - Returns a `Group` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[GroupsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Group] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/groups/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Group, - construct_type( - type_=Group, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/groups/types/__init__.py b/src/merge/resources/knowledgebase/resources/groups/types/__init__.py deleted file mode 100644 index 9e82f18a..00000000 --- a/src/merge/resources/knowledgebase/resources/groups/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .groups_list_request_expand import GroupsListRequestExpand - from .groups_retrieve_request_expand import GroupsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "GroupsListRequestExpand": ".groups_list_request_expand", - "GroupsRetrieveRequestExpand": ".groups_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["GroupsListRequestExpand", "GroupsRetrieveRequestExpand"] diff --git a/src/merge/resources/knowledgebase/resources/groups/types/groups_list_request_expand.py b/src/merge/resources/knowledgebase/resources/groups/types/groups_list_request_expand.py deleted file mode 100644 index 24df30ac..00000000 --- a/src/merge/resources/knowledgebase/resources/groups/types/groups_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class GroupsListRequestExpand(str, enum.Enum): - PARENT_GROUP = "parent_group" - USERS = "users" - USERS_PARENT_GROUP = "users,parent_group" - - def visit( - self, - parent_group: typing.Callable[[], T_Result], - users: typing.Callable[[], T_Result], - users_parent_group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is GroupsListRequestExpand.PARENT_GROUP: - return parent_group() - if self is GroupsListRequestExpand.USERS: - return users() - if self is GroupsListRequestExpand.USERS_PARENT_GROUP: - return users_parent_group() diff --git a/src/merge/resources/knowledgebase/resources/groups/types/groups_retrieve_request_expand.py b/src/merge/resources/knowledgebase/resources/groups/types/groups_retrieve_request_expand.py deleted file mode 100644 index 02f76ff0..00000000 --- a/src/merge/resources/knowledgebase/resources/groups/types/groups_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class GroupsRetrieveRequestExpand(str, enum.Enum): - PARENT_GROUP = "parent_group" - USERS = "users" - USERS_PARENT_GROUP = "users,parent_group" - - def visit( - self, - parent_group: typing.Callable[[], T_Result], - users: typing.Callable[[], T_Result], - users_parent_group: typing.Callable[[], T_Result], - ) -> T_Result: - if self is GroupsRetrieveRequestExpand.PARENT_GROUP: - return parent_group() - if self is GroupsRetrieveRequestExpand.USERS: - return users() - if self is GroupsRetrieveRequestExpand.USERS_PARENT_GROUP: - return users_parent_group() diff --git a/src/merge/resources/knowledgebase/resources/issues/__init__.py b/src/merge/resources/knowledgebase/resources/issues/__init__.py deleted file mode 100644 index 3ca1094b..00000000 --- a/src/merge/resources/knowledgebase/resources/issues/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/knowledgebase/resources/issues/client.py b/src/merge/resources/knowledgebase/resources/issues/client.py deleted file mode 100644 index b74d6cbc..00000000 --- a/src/merge/resources/knowledgebase/resources/issues/client.py +++ /dev/null @@ -1,382 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .raw_client import AsyncRawIssuesClient, RawIssuesClient -from .types.issues_list_request_status import IssuesListRequestStatus - - -class IssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIssuesClient - """ - return self._raw_client - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.knowledgebase.resources.issues import ( - IssuesListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - """ - _response = self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.issues.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIssuesClient - """ - return self._raw_client - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.issues import ( - IssuesListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.issues.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/issues/raw_client.py b/src/merge/resources/knowledgebase/resources/issues/raw_client.py deleted file mode 100644 index 14652d5d..00000000 --- a/src/merge/resources/knowledgebase/resources/issues/raw_client.py +++ /dev/null @@ -1,336 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .types.issues_list_request_status import IssuesListRequestStatus - - -class RawIssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIssueList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Issue] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIssueList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Issue] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/issues/types/__init__.py b/src/merge/resources/knowledgebase/resources/issues/types/__init__.py deleted file mode 100644 index 88fbf977..00000000 --- a/src/merge/resources/knowledgebase/resources/issues/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .issues_list_request_status import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/knowledgebase/resources/issues/types/issues_list_request_status.py b/src/merge/resources/knowledgebase/resources/issues/types/issues_list_request_status.py deleted file mode 100644 index 2bd3521e..00000000 --- a/src/merge/resources/knowledgebase/resources/issues/types/issues_list_request_status.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssuesListRequestStatus(str, enum.Enum): - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssuesListRequestStatus.ONGOING: - return ongoing() - if self is IssuesListRequestStatus.RESOLVED: - return resolved() diff --git a/src/merge/resources/knowledgebase/resources/link_token/__init__.py b/src/merge/resources/knowledgebase/resources/link_token/__init__.py deleted file mode 100644 index be8c3839..00000000 --- a/src/merge/resources/knowledgebase/resources/link_token/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".types", - "EndUserDetailsRequestLanguage": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/knowledgebase/resources/link_token/client.py b/src/merge/resources/knowledgebase/resources/link_token/client.py deleted file mode 100644 index 3eb69c7c..00000000 --- a/src/merge/resources/knowledgebase/resources/link_token/client.py +++ /dev/null @@ -1,290 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkTokenClient - """ - return self._raw_client - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase import CategoriesEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - """ - _response = self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkTokenClient - """ - return self._raw_client - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase import CategoriesEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/link_token/raw_client.py b/src/merge/resources/knowledgebase/resources/link_token/raw_client.py deleted file mode 100644 index fad77f74..00000000 --- a/src/merge/resources/knowledgebase/resources/link_token/raw_client.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LinkToken] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LinkToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/link_token/types/__init__.py b/src/merge/resources/knowledgebase/resources/link_token/types/__init__.py deleted file mode 100644 index 55cc1d4e..00000000 --- a/src/merge/resources/knowledgebase/resources/link_token/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, - ) - from .end_user_details_request_language import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".end_user_details_request_completed_account_initial_screen", - "EndUserDetailsRequestLanguage": ".end_user_details_request_language", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/knowledgebase/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py b/src/merge/resources/knowledgebase/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py deleted file mode 100644 index 0c5d586d..00000000 --- a/src/merge/resources/knowledgebase/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - -EndUserDetailsRequestCompletedAccountInitialScreen = typing.Union[CompletedAccountInitialScreenEnum, str] diff --git a/src/merge/resources/knowledgebase/resources/link_token/types/end_user_details_request_language.py b/src/merge/resources/knowledgebase/resources/link_token/types/end_user_details_request_language.py deleted file mode 100644 index 65c4b44a..00000000 --- a/src/merge/resources/knowledgebase/resources/link_token/types/end_user_details_request_language.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.language_enum import LanguageEnum - -EndUserDetailsRequestLanguage = typing.Union[LanguageEnum, str] diff --git a/src/merge/resources/knowledgebase/resources/linked_accounts/__init__.py b/src/merge/resources/knowledgebase/resources/linked_accounts/__init__.py deleted file mode 100644 index 0b9e42b4..00000000 --- a/src/merge/resources/knowledgebase/resources/linked_accounts/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/knowledgebase/resources/linked_accounts/client.py b/src/merge/resources/knowledgebase/resources/linked_accounts/client.py deleted file mode 100644 index 58aff4bc..00000000 --- a/src/merge/resources/knowledgebase/resources/linked_accounts/client.py +++ /dev/null @@ -1,295 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class LinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - """ - _response = self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/linked_accounts/raw_client.py b/src/merge/resources/knowledgebase/resources/linked_accounts/raw_client.py deleted file mode 100644 index 8f51faac..00000000 --- a/src/merge/resources/knowledgebase/resources/linked_accounts/raw_client.py +++ /dev/null @@ -1,248 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class RawLinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/linked_accounts/types/__init__.py b/src/merge/resources/knowledgebase/resources/linked_accounts/types/__init__.py deleted file mode 100644 index a28f38cc..00000000 --- a/src/merge/resources/knowledgebase/resources/linked_accounts/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/knowledgebase/resources/linked_accounts/types/linked_accounts_list_request_category.py b/src/merge/resources/knowledgebase/resources/linked_accounts/types/linked_accounts_list_request_category.py deleted file mode 100644 index 681fe8ce..00000000 --- a/src/merge/resources/knowledgebase/resources/linked_accounts/types/linked_accounts_list_request_category.py +++ /dev/null @@ -1,45 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LinkedAccountsListRequestCategory(str, enum.Enum): - ACCOUNTING = "accounting" - ATS = "ats" - CRM = "crm" - FILESTORAGE = "filestorage" - HRIS = "hris" - KNOWLEDGEBASE = "knowledgebase" - MKTG = "mktg" - TICKETING = "ticketing" - - def visit( - self, - accounting: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - hris: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LinkedAccountsListRequestCategory.ACCOUNTING: - return accounting() - if self is LinkedAccountsListRequestCategory.ATS: - return ats() - if self is LinkedAccountsListRequestCategory.CRM: - return crm() - if self is LinkedAccountsListRequestCategory.FILESTORAGE: - return filestorage() - if self is LinkedAccountsListRequestCategory.HRIS: - return hris() - if self is LinkedAccountsListRequestCategory.KNOWLEDGEBASE: - return knowledgebase() - if self is LinkedAccountsListRequestCategory.MKTG: - return mktg() - if self is LinkedAccountsListRequestCategory.TICKETING: - return ticketing() diff --git a/src/merge/resources/knowledgebase/resources/passthrough/__init__.py b/src/merge/resources/knowledgebase/resources/passthrough/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/passthrough/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/passthrough/client.py b/src/merge/resources/knowledgebase/resources/passthrough/client.py deleted file mode 100644 index 05d560f1..00000000 --- a/src/merge/resources/knowledgebase/resources/passthrough/client.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse -from .raw_client import AsyncRawPassthroughClient, RawPassthroughClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/passthrough/raw_client.py b/src/merge/resources/knowledgebase/resources/passthrough/raw_client.py deleted file mode 100644 index 84c8bfdf..00000000 --- a/src/merge/resources/knowledgebase/resources/passthrough/raw_client.py +++ /dev/null @@ -1,111 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/regenerate_key/__init__.py b/src/merge/resources/knowledgebase/resources/regenerate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/regenerate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/regenerate_key/client.py b/src/merge/resources/knowledgebase/resources/regenerate_key/client.py deleted file mode 100644 index a9417d74..00000000 --- a/src/merge/resources/knowledgebase/resources/regenerate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawRegenerateKeyClient, RawRegenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRegenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.regenerate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRegenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.regenerate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/regenerate_key/raw_client.py b/src/merge/resources/knowledgebase/resources/regenerate_key/raw_client.py deleted file mode 100644 index 40114afa..00000000 --- a/src/merge/resources/knowledgebase/resources/regenerate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/scopes/__init__.py b/src/merge/resources/knowledgebase/resources/scopes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/scopes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/scopes/client.py b/src/merge/resources/knowledgebase/resources/scopes/client.py deleted file mode 100644 index 9cc148ee..00000000 --- a/src/merge/resources/knowledgebase/resources/scopes/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from .raw_client import AsyncRawScopesClient, RawScopesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScopesClient - """ - return self._raw_client - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.scopes.default_scopes_retrieve() - """ - _response = self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.scopes.linked_account_scopes_retrieve() - """ - _response = self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - from merge.resources.knowledgebase import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - """ - _response = self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data - - -class AsyncScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScopesClient - """ - return self._raw_client - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.scopes.default_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.scopes.linked_account_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.knowledgebase import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/scopes/raw_client.py b/src/merge/resources/knowledgebase/resources/scopes/raw_client.py deleted file mode 100644 index c9ae8287..00000000 --- a/src/merge/resources/knowledgebase/resources/scopes/raw_client.py +++ /dev/null @@ -1,267 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/sync_status/__init__.py b/src/merge/resources/knowledgebase/resources/sync_status/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/sync_status/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/sync_status/client.py b/src/merge/resources/knowledgebase/resources/sync_status/client.py deleted file mode 100644 index 5dc61338..00000000 --- a/src/merge/resources/knowledgebase/resources/sync_status/client.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList -from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient - - -class SyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSyncStatusClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data - - -class AsyncSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSyncStatusClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/sync_status/raw_client.py b/src/merge/resources/knowledgebase/resources/sync_status/raw_client.py deleted file mode 100644 index 9a9760cd..00000000 --- a/src/merge/resources/knowledgebase/resources/sync_status/raw_client.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_sync_status_list import PaginatedSyncStatusList - - -class RawSyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedSyncStatusList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedSyncStatusList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/users/__init__.py b/src/merge/resources/knowledgebase/resources/users/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/users/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/users/client.py b/src/merge/resources/knowledgebase/resources/users/client.py deleted file mode 100644 index 88089fd5..00000000 --- a/src/merge/resources/knowledgebase/resources/users/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User -from .raw_client import AsyncRawUsersClient, RawUsersClient - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.users.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/users/raw_client.py b/src/merge/resources/knowledgebase/resources/users/raw_client.py deleted file mode 100644 index 0cf2bc46..00000000 --- a/src/merge/resources/knowledgebase/resources/users/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedUserList] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[User] - - """ - _response = self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedUserList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[User] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"knowledgebase/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/resources/webhook_receivers/__init__.py b/src/merge/resources/knowledgebase/resources/webhook_receivers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/knowledgebase/resources/webhook_receivers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/knowledgebase/resources/webhook_receivers/client.py b/src/merge/resources/knowledgebase/resources/webhook_receivers/client.py deleted file mode 100644 index f7626d94..00000000 --- a/src/merge/resources/knowledgebase/resources/webhook_receivers/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.webhook_receiver import WebhookReceiver -from .raw_client import AsyncRawWebhookReceiversClient, RawWebhookReceiversClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class WebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawWebhookReceiversClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.webhook_receivers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.knowledgebase.webhook_receivers.create( - event="event", - is_active=True, - ) - """ - _response = self._raw_client.create(event=event, is_active=is_active, key=key, request_options=request_options) - return _response.data - - -class AsyncWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawWebhookReceiversClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.webhook_receivers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.knowledgebase.webhook_receivers.create( - event="event", - is_active=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - event=event, is_active=is_active, key=key, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/knowledgebase/resources/webhook_receivers/raw_client.py b/src/merge/resources/knowledgebase/resources/webhook_receivers/raw_client.py deleted file mode 100644 index cc0f8589..00000000 --- a/src/merge/resources/knowledgebase/resources/webhook_receivers/raw_client.py +++ /dev/null @@ -1,208 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.webhook_receiver import WebhookReceiver - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawWebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[WebhookReceiver]] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[WebhookReceiver] - - """ - _response = self._client_wrapper.httpx_client.request( - "knowledgebase/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[WebhookReceiver]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[WebhookReceiver] - - """ - _response = await self._client_wrapper.httpx_client.request( - "knowledgebase/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/knowledgebase/types/__init__.py b/src/merge/resources/knowledgebase/types/__init__.py deleted file mode 100644 index fb238bfc..00000000 --- a/src/merge/resources/knowledgebase/types/__init__.py +++ /dev/null @@ -1,374 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .account_details import AccountDetails - from .account_details_and_actions import AccountDetailsAndActions - from .account_details_and_actions_category import AccountDetailsAndActionsCategory - from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration - from .account_details_and_actions_status import AccountDetailsAndActionsStatus - from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - from .account_details_category import AccountDetailsCategory - from .account_integration import AccountIntegration - from .account_token import AccountToken - from .advanced_metadata import AdvancedMetadata - from .article import Article - from .article_attachments_item import ArticleAttachmentsItem - from .article_author import ArticleAuthor - from .article_last_edited_by import ArticleLastEditedBy - from .article_parent_article import ArticleParentArticle - from .article_parent_container import ArticleParentContainer - from .article_permissions_item import ArticlePermissionsItem - from .article_root_container import ArticleRootContainer - from .article_status import ArticleStatus - from .article_type import ArticleType - from .article_type_enum import ArticleTypeEnum - from .article_visibility import ArticleVisibility - from .async_passthrough_reciept import AsyncPassthroughReciept - from .attachment import Attachment - from .audit_log_event import AuditLogEvent - from .audit_log_event_event_type import AuditLogEventEventType - from .audit_log_event_role import AuditLogEventRole - from .available_actions import AvailableActions - from .categories_enum import CategoriesEnum - from .category_enum import CategoryEnum - from .common_model_scope_api import CommonModelScopeApi - from .common_model_scopes_body_request import CommonModelScopesBodyRequest - from .completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - from .container import Container - from .container_permissions_item import ContainerPermissionsItem - from .container_status import ContainerStatus - from .container_type import ContainerType - from .container_type_enum import ContainerTypeEnum - from .container_visibility import ContainerVisibility - from .data_passthrough_request import DataPassthroughRequest - from .data_passthrough_request_method import DataPassthroughRequestMethod - from .data_passthrough_request_request_format import DataPassthroughRequestRequestFormat - from .debug_mode_log import DebugModeLog - from .debug_model_log_summary import DebugModelLogSummary - from .enabled_actions_enum import EnabledActionsEnum - from .encoding_enum import EncodingEnum - from .error_validation_problem import ErrorValidationProblem - from .event_type_enum import EventTypeEnum - from .external_target_field_api import ExternalTargetFieldApi - from .external_target_field_api_response import ExternalTargetFieldApiResponse - from .field_mapping_api_instance import FieldMappingApiInstance - from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField - from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ) - from .field_mapping_api_instance_response import FieldMappingApiInstanceResponse - from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - from .field_mapping_instance_response import FieldMappingInstanceResponse - from .field_permission_deserializer import FieldPermissionDeserializer - from .field_permission_deserializer_request import FieldPermissionDeserializerRequest - from .group import Group - from .group_parent_group import GroupParentGroup - from .group_users_item import GroupUsersItem - from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - from .individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - from .issue import Issue - from .issue_status import IssueStatus - from .issue_status_enum import IssueStatusEnum - from .language_enum import LanguageEnum - from .last_sync_result_enum import LastSyncResultEnum - from .link_token import LinkToken - from .method_enum import MethodEnum - from .model_operation import ModelOperation - from .model_permission_deserializer import ModelPermissionDeserializer - from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - from .multipart_form_field_request import MultipartFormFieldRequest - from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList - from .paginated_article_list import PaginatedArticleList - from .paginated_attachment_list import PaginatedAttachmentList - from .paginated_audit_log_event_list import PaginatedAuditLogEventList - from .paginated_container_list import PaginatedContainerList - from .paginated_group_list import PaginatedGroupList - from .paginated_issue_list import PaginatedIssueList - from .paginated_sync_status_list import PaginatedSyncStatusList - from .paginated_user_list import PaginatedUserList - from .permission import Permission - from .permission_group import PermissionGroup - from .permission_type import PermissionType - from .permission_type_enum import PermissionTypeEnum - from .permission_user import PermissionUser - from .remote_data import RemoteData - from .remote_endpoint_info import RemoteEndpointInfo - from .remote_field_api import RemoteFieldApi - from .remote_field_api_advanced_metadata import RemoteFieldApiAdvancedMetadata - from .remote_field_api_coverage import RemoteFieldApiCoverage - from .remote_field_api_response import RemoteFieldApiResponse - from .remote_key import RemoteKey - from .remote_response import RemoteResponse - from .remote_response_response_type import RemoteResponseResponseType - from .request_format_enum import RequestFormatEnum - from .response_type_enum import ResponseTypeEnum - from .role_enum import RoleEnum - from .roles_enum import RolesEnum - from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum - from .status_3_c_6_enum import Status3C6Enum - from .status_fd_5_enum import StatusFd5Enum - from .sync_status import SyncStatus - from .sync_status_last_sync_result import SyncStatusLastSyncResult - from .sync_status_status import SyncStatusStatus - from .user import User - from .validation_problem_source import ValidationProblemSource - from .visibility_enum import VisibilityEnum - from .warning_validation_problem import WarningValidationProblem - from .webhook_receiver import WebhookReceiver -_dynamic_imports: typing.Dict[str, str] = { - "AccountDetails": ".account_details", - "AccountDetailsAndActions": ".account_details_and_actions", - "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", - "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", - "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", - "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", - "AccountDetailsCategory": ".account_details_category", - "AccountIntegration": ".account_integration", - "AccountToken": ".account_token", - "AdvancedMetadata": ".advanced_metadata", - "Article": ".article", - "ArticleAttachmentsItem": ".article_attachments_item", - "ArticleAuthor": ".article_author", - "ArticleLastEditedBy": ".article_last_edited_by", - "ArticleParentArticle": ".article_parent_article", - "ArticleParentContainer": ".article_parent_container", - "ArticlePermissionsItem": ".article_permissions_item", - "ArticleRootContainer": ".article_root_container", - "ArticleStatus": ".article_status", - "ArticleType": ".article_type", - "ArticleTypeEnum": ".article_type_enum", - "ArticleVisibility": ".article_visibility", - "AsyncPassthroughReciept": ".async_passthrough_reciept", - "Attachment": ".attachment", - "AuditLogEvent": ".audit_log_event", - "AuditLogEventEventType": ".audit_log_event_event_type", - "AuditLogEventRole": ".audit_log_event_role", - "AvailableActions": ".available_actions", - "CategoriesEnum": ".categories_enum", - "CategoryEnum": ".category_enum", - "CommonModelScopeApi": ".common_model_scope_api", - "CommonModelScopesBodyRequest": ".common_model_scopes_body_request", - "CompletedAccountInitialScreenEnum": ".completed_account_initial_screen_enum", - "Container": ".container", - "ContainerPermissionsItem": ".container_permissions_item", - "ContainerStatus": ".container_status", - "ContainerType": ".container_type", - "ContainerTypeEnum": ".container_type_enum", - "ContainerVisibility": ".container_visibility", - "DataPassthroughRequest": ".data_passthrough_request", - "DataPassthroughRequestMethod": ".data_passthrough_request_method", - "DataPassthroughRequestRequestFormat": ".data_passthrough_request_request_format", - "DebugModeLog": ".debug_mode_log", - "DebugModelLogSummary": ".debug_model_log_summary", - "EnabledActionsEnum": ".enabled_actions_enum", - "EncodingEnum": ".encoding_enum", - "ErrorValidationProblem": ".error_validation_problem", - "EventTypeEnum": ".event_type_enum", - "ExternalTargetFieldApi": ".external_target_field_api", - "ExternalTargetFieldApiResponse": ".external_target_field_api_response", - "FieldMappingApiInstance": ".field_mapping_api_instance", - "FieldMappingApiInstanceRemoteField": ".field_mapping_api_instance_remote_field", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".field_mapping_api_instance_remote_field_remote_endpoint_info", - "FieldMappingApiInstanceResponse": ".field_mapping_api_instance_response", - "FieldMappingApiInstanceTargetField": ".field_mapping_api_instance_target_field", - "FieldMappingInstanceResponse": ".field_mapping_instance_response", - "FieldPermissionDeserializer": ".field_permission_deserializer", - "FieldPermissionDeserializerRequest": ".field_permission_deserializer_request", - "Group": ".group", - "GroupParentGroup": ".group_parent_group", - "GroupUsersItem": ".group_users_item", - "IndividualCommonModelScopeDeserializer": ".individual_common_model_scope_deserializer", - "IndividualCommonModelScopeDeserializerRequest": ".individual_common_model_scope_deserializer_request", - "Issue": ".issue", - "IssueStatus": ".issue_status", - "IssueStatusEnum": ".issue_status_enum", - "LanguageEnum": ".language_enum", - "LastSyncResultEnum": ".last_sync_result_enum", - "LinkToken": ".link_token", - "MethodEnum": ".method_enum", - "ModelOperation": ".model_operation", - "ModelPermissionDeserializer": ".model_permission_deserializer", - "ModelPermissionDeserializerRequest": ".model_permission_deserializer_request", - "MultipartFormFieldRequest": ".multipart_form_field_request", - "MultipartFormFieldRequestEncoding": ".multipart_form_field_request_encoding", - "PaginatedAccountDetailsAndActionsList": ".paginated_account_details_and_actions_list", - "PaginatedArticleList": ".paginated_article_list", - "PaginatedAttachmentList": ".paginated_attachment_list", - "PaginatedAuditLogEventList": ".paginated_audit_log_event_list", - "PaginatedContainerList": ".paginated_container_list", - "PaginatedGroupList": ".paginated_group_list", - "PaginatedIssueList": ".paginated_issue_list", - "PaginatedSyncStatusList": ".paginated_sync_status_list", - "PaginatedUserList": ".paginated_user_list", - "Permission": ".permission", - "PermissionGroup": ".permission_group", - "PermissionType": ".permission_type", - "PermissionTypeEnum": ".permission_type_enum", - "PermissionUser": ".permission_user", - "RemoteData": ".remote_data", - "RemoteEndpointInfo": ".remote_endpoint_info", - "RemoteFieldApi": ".remote_field_api", - "RemoteFieldApiAdvancedMetadata": ".remote_field_api_advanced_metadata", - "RemoteFieldApiCoverage": ".remote_field_api_coverage", - "RemoteFieldApiResponse": ".remote_field_api_response", - "RemoteKey": ".remote_key", - "RemoteResponse": ".remote_response", - "RemoteResponseResponseType": ".remote_response_response_type", - "RequestFormatEnum": ".request_format_enum", - "ResponseTypeEnum": ".response_type_enum", - "RoleEnum": ".role_enum", - "RolesEnum": ".roles_enum", - "SelectiveSyncConfigurationsUsageEnum": ".selective_sync_configurations_usage_enum", - "Status3C6Enum": ".status_3_c_6_enum", - "StatusFd5Enum": ".status_fd_5_enum", - "SyncStatus": ".sync_status", - "SyncStatusLastSyncResult": ".sync_status_last_sync_result", - "SyncStatusStatus": ".sync_status_status", - "User": ".user", - "ValidationProblemSource": ".validation_problem_source", - "VisibilityEnum": ".visibility_enum", - "WarningValidationProblem": ".warning_validation_problem", - "WebhookReceiver": ".webhook_receiver", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AdvancedMetadata", - "Article", - "ArticleAttachmentsItem", - "ArticleAuthor", - "ArticleLastEditedBy", - "ArticleParentArticle", - "ArticleParentContainer", - "ArticlePermissionsItem", - "ArticleRootContainer", - "ArticleStatus", - "ArticleType", - "ArticleTypeEnum", - "ArticleVisibility", - "AsyncPassthroughReciept", - "Attachment", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CategoriesEnum", - "CategoryEnum", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompletedAccountInitialScreenEnum", - "Container", - "ContainerPermissionsItem", - "ContainerStatus", - "ContainerType", - "ContainerTypeEnum", - "ContainerVisibility", - "DataPassthroughRequest", - "DataPassthroughRequestMethod", - "DataPassthroughRequestRequestFormat", - "DebugModeLog", - "DebugModelLogSummary", - "EnabledActionsEnum", - "EncodingEnum", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "Group", - "GroupParentGroup", - "GroupUsersItem", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedArticleList", - "PaginatedAttachmentList", - "PaginatedAuditLogEventList", - "PaginatedContainerList", - "PaginatedGroupList", - "PaginatedIssueList", - "PaginatedSyncStatusList", - "PaginatedUserList", - "Permission", - "PermissionGroup", - "PermissionType", - "PermissionTypeEnum", - "PermissionUser", - "RemoteData", - "RemoteEndpointInfo", - "RemoteFieldApi", - "RemoteFieldApiAdvancedMetadata", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteKey", - "RemoteResponse", - "RemoteResponseResponseType", - "RequestFormatEnum", - "ResponseTypeEnum", - "RoleEnum", - "RolesEnum", - "SelectiveSyncConfigurationsUsageEnum", - "Status3C6Enum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "SyncStatusStatus", - "User", - "ValidationProblemSource", - "VisibilityEnum", - "WarningValidationProblem", - "WebhookReceiver", -] diff --git a/src/merge/resources/knowledgebase/types/account_details.py b/src/merge/resources/knowledgebase/types/account_details.py deleted file mode 100644 index 98923cd8..00000000 --- a/src/merge/resources/knowledgebase/types/account_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_category import AccountDetailsCategory - - -class AccountDetails(UncheckedBaseModel): - id: typing.Optional[str] = None - integration: typing.Optional[str] = None - integration_slug: typing.Optional[str] = None - category: typing.Optional[AccountDetailsCategory] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: typing.Optional[str] = None - end_user_email_address: typing.Optional[str] = None - status: typing.Optional[str] = None - webhook_listener_url: typing.Optional[str] = None - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - account_type: typing.Optional[str] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which account completes the linking flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/account_details_and_actions.py b/src/merge/resources/knowledgebase/types/account_details_and_actions.py deleted file mode 100644 index 93c874ed..00000000 --- a/src/merge/resources/knowledgebase/types/account_details_and_actions.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions_category import AccountDetailsAndActionsCategory -from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status import AccountDetailsAndActionsStatus - - -class AccountDetailsAndActions(UncheckedBaseModel): - """ - # The LinkedAccount Object - ### Description - The `LinkedAccount` object is used to represent an end user's link with a specific integration. - - ### Usage Example - View a list of your organization's `LinkedAccount` objects. - """ - - id: str - category: typing.Optional[AccountDetailsAndActionsCategory] = None - status: AccountDetailsAndActionsStatus - status_detail: typing.Optional[str] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: str - end_user_email_address: str - subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The tenant or domain the customer has provided access to. - """ - - webhook_listener_url: str - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - integration: typing.Optional[AccountDetailsAndActionsIntegration] = None - account_type: str - completed_at: dt.datetime - integration_specific_fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/account_details_and_actions_category.py b/src/merge/resources/knowledgebase/types/account_details_and_actions_category.py deleted file mode 100644 index 93b4188b..00000000 --- a/src/merge/resources/knowledgebase/types/account_details_and_actions_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsAndActionsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/knowledgebase/types/account_details_and_actions_integration.py b/src/merge/resources/knowledgebase/types/account_details_and_actions_integration.py deleted file mode 100644 index 73467bbb..00000000 --- a/src/merge/resources/knowledgebase/types/account_details_and_actions_integration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum -from .model_operation import ModelOperation - - -class AccountDetailsAndActionsIntegration(UncheckedBaseModel): - name: str - categories: typing.List[CategoriesEnum] - image: typing.Optional[str] = None - square_image: typing.Optional[str] = None - color: str - slug: str - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/account_details_and_actions_status.py b/src/merge/resources/knowledgebase/types/account_details_and_actions_status.py deleted file mode 100644 index 445922f8..00000000 --- a/src/merge/resources/knowledgebase/types/account_details_and_actions_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - -AccountDetailsAndActionsStatus = typing.Union[AccountDetailsAndActionsStatusEnum, str] diff --git a/src/merge/resources/knowledgebase/types/account_details_and_actions_status_enum.py b/src/merge/resources/knowledgebase/types/account_details_and_actions_status_enum.py deleted file mode 100644 index df37f582..00000000 --- a/src/merge/resources/knowledgebase/types/account_details_and_actions_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountDetailsAndActionsStatusEnum(str, enum.Enum): - """ - * `COMPLETE` - COMPLETE - * `INCOMPLETE` - INCOMPLETE - * `RELINK_NEEDED` - RELINK_NEEDED - * `IDLE` - IDLE - """ - - COMPLETE = "COMPLETE" - INCOMPLETE = "INCOMPLETE" - RELINK_NEEDED = "RELINK_NEEDED" - IDLE = "IDLE" - - def visit( - self, - complete: typing.Callable[[], T_Result], - incomplete: typing.Callable[[], T_Result], - relink_needed: typing.Callable[[], T_Result], - idle: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountDetailsAndActionsStatusEnum.COMPLETE: - return complete() - if self is AccountDetailsAndActionsStatusEnum.INCOMPLETE: - return incomplete() - if self is AccountDetailsAndActionsStatusEnum.RELINK_NEEDED: - return relink_needed() - if self is AccountDetailsAndActionsStatusEnum.IDLE: - return idle() diff --git a/src/merge/resources/knowledgebase/types/account_details_category.py b/src/merge/resources/knowledgebase/types/account_details_category.py deleted file mode 100644 index 8a0cc59c..00000000 --- a/src/merge/resources/knowledgebase/types/account_details_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/knowledgebase/types/account_integration.py b/src/merge/resources/knowledgebase/types/account_integration.py deleted file mode 100644 index ef8b260d..00000000 --- a/src/merge/resources/knowledgebase/types/account_integration.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum - - -class AccountIntegration(UncheckedBaseModel): - name: str = pydantic.Field() - """ - Company name. - """ - - abbreviated_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) - """ - - categories: typing.Optional[typing.List[CategoriesEnum]] = pydantic.Field(default=None) - """ - Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. - """ - - image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in rectangular shape. - """ - - square_image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in square shape. - """ - - color: typing.Optional[str] = pydantic.Field(default=None) - """ - The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. - """ - - slug: typing.Optional[str] = None - api_endpoints_to_documentation_urls: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = ( - pydantic.Field(default=None) - ) - """ - Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} - """ - - webhook_setup_guide_url: typing.Optional[str] = pydantic.Field(default=None) - """ - Setup guide URL for third party webhook creation. Exposed in Merge Docs. - """ - - category_beta_status: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Category or categories this integration is in beta status for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/account_token.py b/src/merge/resources/knowledgebase/types/account_token.py deleted file mode 100644 index 6e82c8ac..00000000 --- a/src/merge/resources/knowledgebase/types/account_token.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration - - -class AccountToken(UncheckedBaseModel): - account_token: str - integration: AccountIntegration - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/advanced_metadata.py b/src/merge/resources/knowledgebase/types/advanced_metadata.py deleted file mode 100644 index 60b5d072..00000000 --- a/src/merge/resources/knowledgebase/types/advanced_metadata.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AdvancedMetadata(UncheckedBaseModel): - id: str - display_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - is_custom: typing.Optional[bool] = None - field_choices: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/article.py b/src/merge/resources/knowledgebase/types/article.py deleted file mode 100644 index 32620c78..00000000 --- a/src/merge/resources/knowledgebase/types/article.py +++ /dev/null @@ -1,159 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .article_attachments_item import ArticleAttachmentsItem -from .article_author import ArticleAuthor -from .article_last_edited_by import ArticleLastEditedBy -from .article_parent_container import ArticleParentContainer -from .article_permissions_item import ArticlePermissionsItem -from .article_root_container import ArticleRootContainer -from .article_status import ArticleStatus -from .article_type import ArticleType -from .article_visibility import ArticleVisibility -from .remote_data import RemoteData - - -class Article(UncheckedBaseModel): - """ - # The Article Object - ### Description - The `Article` object is used to represent a form of content in the knowledge base, such as an article or page. - ### Usage Example - Fetch from the `GET /api/knowledgebase/v1/articles` endpoint and view their articles. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - title: typing.Optional[str] = pydantic.Field(default=None) - """ - The title of the article. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of the article. - """ - - author: typing.Optional[ArticleAuthor] = pydantic.Field(default=None) - """ - The user who created the article. - """ - - last_edited_by: typing.Optional[ArticleLastEditedBy] = pydantic.Field(default=None) - """ - The user to last update the article. - """ - - visibility: typing.Optional[ArticleVisibility] = pydantic.Field(default=None) - """ - The visibility of the article. - - * `PUBLIC` - PUBLIC - * `INTERNAL` - INTERNAL - * `RESTRICTED` - RESTRICTED - """ - - article_content_download_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The presigned S3 URL to fetch article content. - """ - - checksum: typing.Optional[str] = pydantic.Field(default=None) - """ - The SHA256 checksum of the article content. - """ - - article_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The URL to the webpage of the article. - """ - - status: typing.Optional[ArticleStatus] = pydantic.Field(default=None) - """ - The status of the article. - - * `DRAFT` - DRAFT - * `PUBLISHED` - PUBLISHED - * `ARCHIVED` - ARCHIVED - * `TRASH` - TRASH - """ - - type: typing.Optional[ArticleType] = pydantic.Field(default=None) - """ - The type of the article. - - * `PAGE` - PAGE - * `BLOG_POST` - BLOG_POST - * `SMART_LINK` - SMART_LINK - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's article was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's article was updated. - """ - - parent_article: typing.Optional["ArticleParentArticle"] = pydantic.Field(default=None) - """ - The parent article an article is nested within. - """ - - parent_container: typing.Optional[ArticleParentContainer] = pydantic.Field(default=None) - """ - The parent container an article is nested within. - """ - - root_container: typing.Optional[ArticleRootContainer] = pydantic.Field(default=None) - """ - The top-level container in the hierarchy that holds this article. This will reference a container object that will typically be a SPACE or WORKSPACE type. - """ - - permissions: typing.Optional[typing.List[ArticlePermissionsItem]] = None - attachments: typing.Optional[typing.List[typing.Optional[ArticleAttachmentsItem]]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .group import Group # noqa: E402, F401, I001 -from .article_parent_article import ArticleParentArticle # noqa: E402, F401, I001 - -update_forward_refs(Article) diff --git a/src/merge/resources/knowledgebase/types/article_attachments_item.py b/src/merge/resources/knowledgebase/types/article_attachments_item.py deleted file mode 100644 index 7a22e05f..00000000 --- a/src/merge/resources/knowledgebase/types/article_attachments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .attachment import Attachment - -ArticleAttachmentsItem = typing.Union[str, Attachment] diff --git a/src/merge/resources/knowledgebase/types/article_author.py b/src/merge/resources/knowledgebase/types/article_author.py deleted file mode 100644 index db8603d8..00000000 --- a/src/merge/resources/knowledgebase/types/article_author.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -ArticleAuthor = typing.Union[str, User] diff --git a/src/merge/resources/knowledgebase/types/article_last_edited_by.py b/src/merge/resources/knowledgebase/types/article_last_edited_by.py deleted file mode 100644 index 9d158df5..00000000 --- a/src/merge/resources/knowledgebase/types/article_last_edited_by.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -ArticleLastEditedBy = typing.Union[str, User] diff --git a/src/merge/resources/knowledgebase/types/article_parent_article.py b/src/merge/resources/knowledgebase/types/article_parent_article.py deleted file mode 100644 index e630834c..00000000 --- a/src/merge/resources/knowledgebase/types/article_parent_article.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .article import Article -ArticleParentArticle = typing.Union[str, "Article"] diff --git a/src/merge/resources/knowledgebase/types/article_parent_container.py b/src/merge/resources/knowledgebase/types/article_parent_container.py deleted file mode 100644 index 1aeeae03..00000000 --- a/src/merge/resources/knowledgebase/types/article_parent_container.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .container import Container - -ArticleParentContainer = typing.Union[str, Container] diff --git a/src/merge/resources/knowledgebase/types/article_permissions_item.py b/src/merge/resources/knowledgebase/types/article_permissions_item.py deleted file mode 100644 index 1474bf4d..00000000 --- a/src/merge/resources/knowledgebase/types/article_permissions_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .permission import Permission - -ArticlePermissionsItem = typing.Union[str, Permission] diff --git a/src/merge/resources/knowledgebase/types/article_root_container.py b/src/merge/resources/knowledgebase/types/article_root_container.py deleted file mode 100644 index a145d7a3..00000000 --- a/src/merge/resources/knowledgebase/types/article_root_container.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .container import Container - -ArticleRootContainer = typing.Union[str, Container] diff --git a/src/merge/resources/knowledgebase/types/article_status.py b/src/merge/resources/knowledgebase/types/article_status.py deleted file mode 100644 index ed0aef3e..00000000 --- a/src/merge/resources/knowledgebase/types/article_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_3_c_6_enum import Status3C6Enum - -ArticleStatus = typing.Union[Status3C6Enum, str] diff --git a/src/merge/resources/knowledgebase/types/article_type.py b/src/merge/resources/knowledgebase/types/article_type.py deleted file mode 100644 index e8ebdcb1..00000000 --- a/src/merge/resources/knowledgebase/types/article_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .article_type_enum import ArticleTypeEnum - -ArticleType = typing.Union[ArticleTypeEnum, str] diff --git a/src/merge/resources/knowledgebase/types/article_type_enum.py b/src/merge/resources/knowledgebase/types/article_type_enum.py deleted file mode 100644 index 388245dc..00000000 --- a/src/merge/resources/knowledgebase/types/article_type_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ArticleTypeEnum(str, enum.Enum): - """ - * `PAGE` - PAGE - * `BLOG_POST` - BLOG_POST - * `SMART_LINK` - SMART_LINK - """ - - PAGE = "PAGE" - BLOG_POST = "BLOG_POST" - SMART_LINK = "SMART_LINK" - - def visit( - self, - page: typing.Callable[[], T_Result], - blog_post: typing.Callable[[], T_Result], - smart_link: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ArticleTypeEnum.PAGE: - return page() - if self is ArticleTypeEnum.BLOG_POST: - return blog_post() - if self is ArticleTypeEnum.SMART_LINK: - return smart_link() diff --git a/src/merge/resources/knowledgebase/types/article_visibility.py b/src/merge/resources/knowledgebase/types/article_visibility.py deleted file mode 100644 index 7a152463..00000000 --- a/src/merge/resources/knowledgebase/types/article_visibility.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .visibility_enum import VisibilityEnum - -ArticleVisibility = typing.Union[VisibilityEnum, str] diff --git a/src/merge/resources/knowledgebase/types/async_passthrough_reciept.py b/src/merge/resources/knowledgebase/types/async_passthrough_reciept.py deleted file mode 100644 index 21c95080..00000000 --- a/src/merge/resources/knowledgebase/types/async_passthrough_reciept.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPassthroughReciept(UncheckedBaseModel): - async_passthrough_receipt_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/attachment.py b/src/merge/resources/knowledgebase/types/attachment.py deleted file mode 100644 index ba1cc4ea..00000000 --- a/src/merge/resources/knowledgebase/types/attachment.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Attachment(UncheckedBaseModel): - """ - # The Attachment Object - ### Description - The `Attachment` object is used to represent an attachment to an article or container. - ### Usage Example - Fetch from the `GET /api/knowledgebase/v1/attachments` endpoint and view their attachments. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's description. - """ - - attachment_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's url. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/audit_log_event.py b/src/merge/resources/knowledgebase/types/audit_log_event.py deleted file mode 100644 index ab69fd32..00000000 --- a/src/merge/resources/knowledgebase/types/audit_log_event.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event_event_type import AuditLogEventEventType -from .audit_log_event_role import AuditLogEventRole - - -class AuditLogEvent(UncheckedBaseModel): - id: typing.Optional[str] = None - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's full name at the time of this Event occurring. - """ - - user_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's email at the time of this Event occurring. - """ - - role: AuditLogEventRole = pydantic.Field() - """ - Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ip_address: str - event_type: AuditLogEventEventType = pydantic.Field() - """ - Designates the type of event that occurred. - - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - event_description: str - created_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/audit_log_event_event_type.py b/src/merge/resources/knowledgebase/types/audit_log_event_event_type.py deleted file mode 100644 index f9c9d2b3..00000000 --- a/src/merge/resources/knowledgebase/types/audit_log_event_event_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_type_enum import EventTypeEnum - -AuditLogEventEventType = typing.Union[EventTypeEnum, str] diff --git a/src/merge/resources/knowledgebase/types/audit_log_event_role.py b/src/merge/resources/knowledgebase/types/audit_log_event_role.py deleted file mode 100644 index fe91ed6f..00000000 --- a/src/merge/resources/knowledgebase/types/audit_log_event_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role_enum import RoleEnum - -AuditLogEventRole = typing.Union[RoleEnum, str] diff --git a/src/merge/resources/knowledgebase/types/available_actions.py b/src/merge/resources/knowledgebase/types/available_actions.py deleted file mode 100644 index 8b5019d7..00000000 --- a/src/merge/resources/knowledgebase/types/available_actions.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration -from .model_operation import ModelOperation - - -class AvailableActions(UncheckedBaseModel): - """ - # The AvailableActions Object - ### Description - The `Activity` object is used to see all available model/operation combinations for an integration. - - ### Usage Example - Fetch all the actions available for the `Zenefits` integration. - """ - - integration: AccountIntegration - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/categories_enum.py b/src/merge/resources/knowledgebase/types/categories_enum.py deleted file mode 100644 index da1e0dc0..00000000 --- a/src/merge/resources/knowledgebase/types/categories_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoriesEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - KNOWLEDGEBASE = "knowledgebase" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoriesEnum.HRIS: - return hris() - if self is CategoriesEnum.ATS: - return ats() - if self is CategoriesEnum.ACCOUNTING: - return accounting() - if self is CategoriesEnum.TICKETING: - return ticketing() - if self is CategoriesEnum.CRM: - return crm() - if self is CategoriesEnum.MKTG: - return mktg() - if self is CategoriesEnum.FILESTORAGE: - return filestorage() - if self is CategoriesEnum.KNOWLEDGEBASE: - return knowledgebase() diff --git a/src/merge/resources/knowledgebase/types/category_enum.py b/src/merge/resources/knowledgebase/types/category_enum.py deleted file mode 100644 index 1d7cd2c0..00000000 --- a/src/merge/resources/knowledgebase/types/category_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - KNOWLEDGEBASE = "knowledgebase" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoryEnum.HRIS: - return hris() - if self is CategoryEnum.ATS: - return ats() - if self is CategoryEnum.ACCOUNTING: - return accounting() - if self is CategoryEnum.TICKETING: - return ticketing() - if self is CategoryEnum.CRM: - return crm() - if self is CategoryEnum.MKTG: - return mktg() - if self is CategoryEnum.FILESTORAGE: - return filestorage() - if self is CategoryEnum.KNOWLEDGEBASE: - return knowledgebase() diff --git a/src/merge/resources/knowledgebase/types/common_model_scope_api.py b/src/merge/resources/knowledgebase/types/common_model_scope_api.py deleted file mode 100644 index 5484808d..00000000 --- a/src/merge/resources/knowledgebase/types/common_model_scope_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - - -class CommonModelScopeApi(UncheckedBaseModel): - common_models: typing.List[IndividualCommonModelScopeDeserializer] = pydantic.Field() - """ - The common models you want to update the scopes for - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/common_model_scopes_body_request.py b/src/merge/resources/knowledgebase/types/common_model_scopes_body_request.py deleted file mode 100644 index a9fed25b..00000000 --- a/src/merge/resources/knowledgebase/types/common_model_scopes_body_request.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .enabled_actions_enum import EnabledActionsEnum - - -class CommonModelScopesBodyRequest(UncheckedBaseModel): - model_id: str - enabled_actions: typing.List[EnabledActionsEnum] - disabled_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/completed_account_initial_screen_enum.py b/src/merge/resources/knowledgebase/types/completed_account_initial_screen_enum.py deleted file mode 100644 index c112dfd1..00000000 --- a/src/merge/resources/knowledgebase/types/completed_account_initial_screen_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CompletedAccountInitialScreenEnum = typing.Literal["SELECTIVE_SYNC"] diff --git a/src/merge/resources/knowledgebase/types/container.py b/src/merge/resources/knowledgebase/types/container.py deleted file mode 100644 index 2822c45d..00000000 --- a/src/merge/resources/knowledgebase/types/container.py +++ /dev/null @@ -1,130 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .container_permissions_item import ContainerPermissionsItem -from .container_status import ContainerStatus -from .container_type import ContainerType -from .container_visibility import ContainerVisibility -from .remote_data import RemoteData - - -class Container(UncheckedBaseModel): - """ - # The Container Object - ### Description - The Container object is used to represent a grouping of articles in the knowledge base. This can include Spaces, Folders, Databases, etc. - ### Usage Example - Fetch from the `GET /api/knowledgebase/v1/containers` endpoint and view their containers. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the container. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - Description of the container. - """ - - status: typing.Optional[ContainerStatus] = pydantic.Field(default=None) - """ - The container's status. - - * `DRAFT` - DRAFT - * `PUBLISHED` - PUBLISHED - * `ARCHIVED` - ARCHIVED - * `TRASH` - TRASH - """ - - container_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The URL to the webpage of the container. - """ - - type: typing.Optional[ContainerType] = pydantic.Field(default=None) - """ - The container's type. - - * `FOLDER` - FOLDER - * `SPACE` - SPACE - * `COLLECTION` - COLLECTION - * `SECTION` - SECTION - * `CATEGORY` - CATEGORY - * `DATABASE` - DATABASE - """ - - visibility: typing.Optional[ContainerVisibility] = pydantic.Field(default=None) - """ - The container's visibility. - - * `PUBLIC` - PUBLIC - * `INTERNAL` - INTERNAL - * `RESTRICTED` - RESTRICTED - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's container was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's container was updated. - """ - - parent_article: typing.Optional[str] = pydantic.Field(default=None) - """ - The parent article a container is nested within. - """ - - parent_container: typing.Optional[str] = pydantic.Field(default=None) - """ - The parent container a container is nested within. - """ - - permissions: typing.Optional[typing.List[ContainerPermissionsItem]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .group import Group # noqa: E402, F401, I001 - -update_forward_refs(Container) diff --git a/src/merge/resources/knowledgebase/types/container_permissions_item.py b/src/merge/resources/knowledgebase/types/container_permissions_item.py deleted file mode 100644 index 6780c597..00000000 --- a/src/merge/resources/knowledgebase/types/container_permissions_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .permission import Permission - -ContainerPermissionsItem = typing.Union[str, Permission] diff --git a/src/merge/resources/knowledgebase/types/container_status.py b/src/merge/resources/knowledgebase/types/container_status.py deleted file mode 100644 index d50b897c..00000000 --- a/src/merge/resources/knowledgebase/types/container_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_3_c_6_enum import Status3C6Enum - -ContainerStatus = typing.Union[Status3C6Enum, str] diff --git a/src/merge/resources/knowledgebase/types/container_type.py b/src/merge/resources/knowledgebase/types/container_type.py deleted file mode 100644 index fb8f0173..00000000 --- a/src/merge/resources/knowledgebase/types/container_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .container_type_enum import ContainerTypeEnum - -ContainerType = typing.Union[ContainerTypeEnum, str] diff --git a/src/merge/resources/knowledgebase/types/container_type_enum.py b/src/merge/resources/knowledgebase/types/container_type_enum.py deleted file mode 100644 index c38291b0..00000000 --- a/src/merge/resources/knowledgebase/types/container_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ContainerTypeEnum(str, enum.Enum): - """ - * `FOLDER` - FOLDER - * `SPACE` - SPACE - * `COLLECTION` - COLLECTION - * `SECTION` - SECTION - * `CATEGORY` - CATEGORY - * `DATABASE` - DATABASE - """ - - FOLDER = "FOLDER" - SPACE = "SPACE" - COLLECTION = "COLLECTION" - SECTION = "SECTION" - CATEGORY = "CATEGORY" - DATABASE = "DATABASE" - - def visit( - self, - folder: typing.Callable[[], T_Result], - space: typing.Callable[[], T_Result], - collection: typing.Callable[[], T_Result], - section: typing.Callable[[], T_Result], - category: typing.Callable[[], T_Result], - database: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ContainerTypeEnum.FOLDER: - return folder() - if self is ContainerTypeEnum.SPACE: - return space() - if self is ContainerTypeEnum.COLLECTION: - return collection() - if self is ContainerTypeEnum.SECTION: - return section() - if self is ContainerTypeEnum.CATEGORY: - return category() - if self is ContainerTypeEnum.DATABASE: - return database() diff --git a/src/merge/resources/knowledgebase/types/container_visibility.py b/src/merge/resources/knowledgebase/types/container_visibility.py deleted file mode 100644 index 860c8adb..00000000 --- a/src/merge/resources/knowledgebase/types/container_visibility.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .visibility_enum import VisibilityEnum - -ContainerVisibility = typing.Union[VisibilityEnum, str] diff --git a/src/merge/resources/knowledgebase/types/data_passthrough_request.py b/src/merge/resources/knowledgebase/types/data_passthrough_request.py deleted file mode 100644 index 5a60bfb6..00000000 --- a/src/merge/resources/knowledgebase/types/data_passthrough_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .data_passthrough_request_method import DataPassthroughRequestMethod -from .data_passthrough_request_request_format import DataPassthroughRequestRequestFormat -from .multipart_form_field_request import MultipartFormFieldRequest - - -class DataPassthroughRequest(UncheckedBaseModel): - """ - # The DataPassthrough Object - ### Description - The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - - ### Usage Example - Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - """ - - method: DataPassthroughRequestMethod - path: str = pydantic.Field() - """ - The path of the request in the third party's platform. - """ - - base_url_override: typing.Optional[str] = pydantic.Field(default=None) - """ - An optional override of the third party's base url for the request. - """ - - data: typing.Optional[str] = pydantic.Field(default=None) - """ - The data with the request. You must include a `request_format` parameter matching the data's format - """ - - multipart_form_data: typing.Optional[typing.List[MultipartFormFieldRequest]] = pydantic.Field(default=None) - """ - Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. - """ - - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. - """ - - request_format: typing.Optional[DataPassthroughRequestRequestFormat] = None - normalize_response: typing.Optional[bool] = pydantic.Field(default=None) - """ - Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/data_passthrough_request_method.py b/src/merge/resources/knowledgebase/types/data_passthrough_request_method.py deleted file mode 100644 index 58874cbf..00000000 --- a/src/merge/resources/knowledgebase/types/data_passthrough_request_method.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .method_enum import MethodEnum - -DataPassthroughRequestMethod = typing.Union[MethodEnum, str] diff --git a/src/merge/resources/knowledgebase/types/data_passthrough_request_request_format.py b/src/merge/resources/knowledgebase/types/data_passthrough_request_request_format.py deleted file mode 100644 index 13dc95f0..00000000 --- a/src/merge/resources/knowledgebase/types/data_passthrough_request_request_format.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .request_format_enum import RequestFormatEnum - -DataPassthroughRequestRequestFormat = typing.Union[RequestFormatEnum, str] diff --git a/src/merge/resources/knowledgebase/types/debug_mode_log.py b/src/merge/resources/knowledgebase/types/debug_mode_log.py deleted file mode 100644 index 9c7d2a3f..00000000 --- a/src/merge/resources/knowledgebase/types/debug_mode_log.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_model_log_summary import DebugModelLogSummary - - -class DebugModeLog(UncheckedBaseModel): - log_id: str - dashboard_view: str - log_summary: DebugModelLogSummary - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/debug_model_log_summary.py b/src/merge/resources/knowledgebase/types/debug_model_log_summary.py deleted file mode 100644 index d7e1d3e6..00000000 --- a/src/merge/resources/knowledgebase/types/debug_model_log_summary.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class DebugModelLogSummary(UncheckedBaseModel): - url: str - method: str - status_code: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/enabled_actions_enum.py b/src/merge/resources/knowledgebase/types/enabled_actions_enum.py deleted file mode 100644 index 29cf9839..00000000 --- a/src/merge/resources/knowledgebase/types/enabled_actions_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EnabledActionsEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - """ - - READ = "READ" - WRITE = "WRITE" - - def visit(self, read: typing.Callable[[], T_Result], write: typing.Callable[[], T_Result]) -> T_Result: - if self is EnabledActionsEnum.READ: - return read() - if self is EnabledActionsEnum.WRITE: - return write() diff --git a/src/merge/resources/knowledgebase/types/encoding_enum.py b/src/merge/resources/knowledgebase/types/encoding_enum.py deleted file mode 100644 index 7454647e..00000000 --- a/src/merge/resources/knowledgebase/types/encoding_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EncodingEnum(str, enum.Enum): - """ - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - RAW = "RAW" - BASE_64 = "BASE64" - GZIP_BASE_64 = "GZIP_BASE64" - - def visit( - self, - raw: typing.Callable[[], T_Result], - base_64: typing.Callable[[], T_Result], - gzip_base_64: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EncodingEnum.RAW: - return raw() - if self is EncodingEnum.BASE_64: - return base_64() - if self is EncodingEnum.GZIP_BASE_64: - return gzip_base_64() diff --git a/src/merge/resources/knowledgebase/types/error_validation_problem.py b/src/merge/resources/knowledgebase/types/error_validation_problem.py deleted file mode 100644 index 04f82d05..00000000 --- a/src/merge/resources/knowledgebase/types/error_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class ErrorValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/event_type_enum.py b/src/merge/resources/knowledgebase/types/event_type_enum.py deleted file mode 100644 index 537cea3f..00000000 --- a/src/merge/resources/knowledgebase/types/event_type_enum.py +++ /dev/null @@ -1,231 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EventTypeEnum(str, enum.Enum): - """ - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY" - DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY" - CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" - DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" - REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" - REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" - INVITED_USER = "INVITED_USER" - TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" - TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" - DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT" - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT" - CREATED_DESTINATION = "CREATED_DESTINATION" - DELETED_DESTINATION = "DELETED_DESTINATION" - CHANGED_DESTINATION = "CHANGED_DESTINATION" - CHANGED_SCOPES = "CHANGED_SCOPES" - CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION" - CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS" - ENABLED_INTEGRATION = "ENABLED_INTEGRATION" - DISABLED_INTEGRATION = "DISABLED_INTEGRATION" - ENABLED_CATEGORY = "ENABLED_CATEGORY" - DISABLED_CATEGORY = "DISABLED_CATEGORY" - CHANGED_PASSWORD = "CHANGED_PASSWORD" - RESET_PASSWORD = "RESET_PASSWORD" - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING" - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING" - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING" - DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING" - DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC" - MUTED_ISSUE = "MUTED_ISSUE" - GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK" - ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK" - DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK" - MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED" - END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED" - - def visit( - self, - created_remote_production_api_key: typing.Callable[[], T_Result], - deleted_remote_production_api_key: typing.Callable[[], T_Result], - created_test_api_key: typing.Callable[[], T_Result], - deleted_test_api_key: typing.Callable[[], T_Result], - regenerated_production_api_key: typing.Callable[[], T_Result], - regenerated_webhook_signature: typing.Callable[[], T_Result], - invited_user: typing.Callable[[], T_Result], - two_factor_auth_enabled: typing.Callable[[], T_Result], - two_factor_auth_disabled: typing.Callable[[], T_Result], - deleted_linked_account: typing.Callable[[], T_Result], - deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result], - created_destination: typing.Callable[[], T_Result], - deleted_destination: typing.Callable[[], T_Result], - changed_destination: typing.Callable[[], T_Result], - changed_scopes: typing.Callable[[], T_Result], - changed_personal_information: typing.Callable[[], T_Result], - changed_organization_settings: typing.Callable[[], T_Result], - enabled_integration: typing.Callable[[], T_Result], - disabled_integration: typing.Callable[[], T_Result], - enabled_category: typing.Callable[[], T_Result], - disabled_category: typing.Callable[[], T_Result], - changed_password: typing.Callable[[], T_Result], - reset_password: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - created_integration_wide_field_mapping: typing.Callable[[], T_Result], - created_linked_account_field_mapping: typing.Callable[[], T_Result], - changed_integration_wide_field_mapping: typing.Callable[[], T_Result], - changed_linked_account_field_mapping: typing.Callable[[], T_Result], - deleted_integration_wide_field_mapping: typing.Callable[[], T_Result], - deleted_linked_account_field_mapping: typing.Callable[[], T_Result], - created_linked_account_common_model_override: typing.Callable[[], T_Result], - changed_linked_account_common_model_override: typing.Callable[[], T_Result], - deleted_linked_account_common_model_override: typing.Callable[[], T_Result], - forced_linked_account_resync: typing.Callable[[], T_Result], - muted_issue: typing.Callable[[], T_Result], - generated_magic_link: typing.Callable[[], T_Result], - enabled_merge_webhook: typing.Callable[[], T_Result], - disabled_merge_webhook: typing.Callable[[], T_Result], - merge_webhook_target_changed: typing.Callable[[], T_Result], - end_user_credentials_accessed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY: - return created_remote_production_api_key() - if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY: - return deleted_remote_production_api_key() - if self is EventTypeEnum.CREATED_TEST_API_KEY: - return created_test_api_key() - if self is EventTypeEnum.DELETED_TEST_API_KEY: - return deleted_test_api_key() - if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY: - return regenerated_production_api_key() - if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE: - return regenerated_webhook_signature() - if self is EventTypeEnum.INVITED_USER: - return invited_user() - if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED: - return two_factor_auth_enabled() - if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED: - return two_factor_auth_disabled() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT: - return deleted_linked_account() - if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT: - return deleted_all_common_models_for_linked_account() - if self is EventTypeEnum.CREATED_DESTINATION: - return created_destination() - if self is EventTypeEnum.DELETED_DESTINATION: - return deleted_destination() - if self is EventTypeEnum.CHANGED_DESTINATION: - return changed_destination() - if self is EventTypeEnum.CHANGED_SCOPES: - return changed_scopes() - if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION: - return changed_personal_information() - if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS: - return changed_organization_settings() - if self is EventTypeEnum.ENABLED_INTEGRATION: - return enabled_integration() - if self is EventTypeEnum.DISABLED_INTEGRATION: - return disabled_integration() - if self is EventTypeEnum.ENABLED_CATEGORY: - return enabled_category() - if self is EventTypeEnum.DISABLED_CATEGORY: - return disabled_category() - if self is EventTypeEnum.CHANGED_PASSWORD: - return changed_password() - if self is EventTypeEnum.RESET_PASSWORD: - return reset_password() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return enabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return enabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return disabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return disabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING: - return created_integration_wide_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING: - return created_linked_account_field_mapping() - if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING: - return changed_integration_wide_field_mapping() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING: - return changed_linked_account_field_mapping() - if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING: - return deleted_integration_wide_field_mapping() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING: - return deleted_linked_account_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return created_linked_account_common_model_override() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return changed_linked_account_common_model_override() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return deleted_linked_account_common_model_override() - if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC: - return forced_linked_account_resync() - if self is EventTypeEnum.MUTED_ISSUE: - return muted_issue() - if self is EventTypeEnum.GENERATED_MAGIC_LINK: - return generated_magic_link() - if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK: - return enabled_merge_webhook() - if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK: - return disabled_merge_webhook() - if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED: - return merge_webhook_target_changed() - if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED: - return end_user_credentials_accessed() diff --git a/src/merge/resources/knowledgebase/types/external_target_field_api.py b/src/merge/resources/knowledgebase/types/external_target_field_api.py deleted file mode 100644 index c0fea1eb..00000000 --- a/src/merge/resources/knowledgebase/types/external_target_field_api.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ExternalTargetFieldApi(UncheckedBaseModel): - name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_mapped: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/external_target_field_api_response.py b/src/merge/resources/knowledgebase/types/external_target_field_api_response.py deleted file mode 100644 index 78a1df72..00000000 --- a/src/merge/resources/knowledgebase/types/external_target_field_api_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .external_target_field_api import ExternalTargetFieldApi - - -class ExternalTargetFieldApiResponse(UncheckedBaseModel): - container: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Container", default=None) - article: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Article", default=None) - attachment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Attachment", default=None) - user: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="User", default=None) - group: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Group", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_mapping_api_instance.py b/src/merge/resources/knowledgebase/types/field_mapping_api_instance.py deleted file mode 100644 index 0d257dcb..00000000 --- a/src/merge/resources/knowledgebase/types/field_mapping_api_instance.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField -from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - - -class FieldMappingApiInstance(UncheckedBaseModel): - id: typing.Optional[str] = None - is_integration_wide: typing.Optional[bool] = None - target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None - remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None - jmes_path: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field.py b/src/merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field.py deleted file mode 100644 index 578a2b10..00000000 --- a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, -) - - -class FieldMappingApiInstanceRemoteField(UncheckedBaseModel): - remote_key_name: typing.Optional[str] = None - schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field( - alias="schema", default=None - ) - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py b/src/merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py deleted file mode 100644 index 4171f08b..00000000 --- a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel): - method: typing.Optional[str] = None - url_path: typing.Optional[str] = None - field_traversal_path: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_response.py b/src/merge/resources/knowledgebase/types/field_mapping_api_instance_response.py deleted file mode 100644 index a3237ed5..00000000 --- a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance import FieldMappingApiInstance - - -class FieldMappingApiInstanceResponse(UncheckedBaseModel): - container: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Container", default=None) - article: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Article", default=None) - attachment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Attachment", default=None) - user: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="User", default=None) - group: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Group", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_target_field.py b/src/merge/resources/knowledgebase/types/field_mapping_api_instance_target_field.py deleted file mode 100644 index e6474cba..00000000 --- a/src/merge/resources/knowledgebase/types/field_mapping_api_instance_target_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceTargetField(UncheckedBaseModel): - name: str - description: str - is_organization_wide: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_mapping_instance_response.py b/src/merge/resources/knowledgebase/types/field_mapping_instance_response.py deleted file mode 100644 index f921e641..00000000 --- a/src/merge/resources/knowledgebase/types/field_mapping_instance_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .field_mapping_api_instance import FieldMappingApiInstance -from .warning_validation_problem import WarningValidationProblem - - -class FieldMappingInstanceResponse(UncheckedBaseModel): - model: FieldMappingApiInstance - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_permission_deserializer.py b/src/merge/resources/knowledgebase/types/field_permission_deserializer.py deleted file mode 100644 index 1d71ae04..00000000 --- a/src/merge/resources/knowledgebase/types/field_permission_deserializer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializer(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/field_permission_deserializer_request.py b/src/merge/resources/knowledgebase/types/field_permission_deserializer_request.py deleted file mode 100644 index a4113b46..00000000 --- a/src/merge/resources/knowledgebase/types/field_permission_deserializer_request.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializerRequest(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/group.py b/src/merge/resources/knowledgebase/types/group.py deleted file mode 100644 index 99fce32b..00000000 --- a/src/merge/resources/knowledgebase/types/group.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .group_users_item import GroupUsersItem -from .remote_data import RemoteData - - -class Group(UncheckedBaseModel): - """ - # The Group Object - ### Description - The `Group` object is used to represent any subset of `Users`. This can extend to company domains as well. - ### Usage Example - Fetch from the `GET /api/knowledgebase/v1/groups` endpoint and view their groups. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The group's name. - """ - - parent_group: typing.Optional["GroupParentGroup"] = pydantic.Field(default=None) - """ - The parent group for this group. - """ - - users: typing.Optional[typing.List[GroupUsersItem]] = None - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .group_parent_group import GroupParentGroup # noqa: E402, F401, I001 - -update_forward_refs(Group) diff --git a/src/merge/resources/knowledgebase/types/group_parent_group.py b/src/merge/resources/knowledgebase/types/group_parent_group.py deleted file mode 100644 index 4a8aec86..00000000 --- a/src/merge/resources/knowledgebase/types/group_parent_group.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .group import Group -GroupParentGroup = typing.Union[str, "Group"] diff --git a/src/merge/resources/knowledgebase/types/group_users_item.py b/src/merge/resources/knowledgebase/types/group_users_item.py deleted file mode 100644 index 969cb173..00000000 --- a/src/merge/resources/knowledgebase/types/group_users_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -GroupUsersItem = typing.Union[str, User] diff --git a/src/merge/resources/knowledgebase/types/individual_common_model_scope_deserializer.py b/src/merge/resources/knowledgebase/types/individual_common_model_scope_deserializer.py deleted file mode 100644 index 4b1ef6a4..00000000 --- a/src/merge/resources/knowledgebase/types/individual_common_model_scope_deserializer.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer import FieldPermissionDeserializer -from .model_permission_deserializer import ModelPermissionDeserializer - - -class IndividualCommonModelScopeDeserializer(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None - field_permissions: typing.Optional[FieldPermissionDeserializer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/individual_common_model_scope_deserializer_request.py b/src/merge/resources/knowledgebase/types/individual_common_model_scope_deserializer_request.py deleted file mode 100644 index 1dcda203..00000000 --- a/src/merge/resources/knowledgebase/types/individual_common_model_scope_deserializer_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer_request import FieldPermissionDeserializerRequest -from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - - -class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None - field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/issue.py b/src/merge/resources/knowledgebase/types/issue.py deleted file mode 100644 index df31be95..00000000 --- a/src/merge/resources/knowledgebase/types/issue.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue_status import IssueStatus - - -class Issue(UncheckedBaseModel): - id: typing.Optional[str] = None - status: typing.Optional[IssueStatus] = pydantic.Field(default=None) - """ - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - error_description: str - end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - first_incident_time: typing.Optional[dt.datetime] = None - last_incident_time: typing.Optional[dt.datetime] = None - is_muted: typing.Optional[bool] = None - error_details: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/issue_status.py b/src/merge/resources/knowledgebase/types/issue_status.py deleted file mode 100644 index 8e4d6516..00000000 --- a/src/merge/resources/knowledgebase/types/issue_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .issue_status_enum import IssueStatusEnum - -IssueStatus = typing.Union[IssueStatusEnum, str] diff --git a/src/merge/resources/knowledgebase/types/issue_status_enum.py b/src/merge/resources/knowledgebase/types/issue_status_enum.py deleted file mode 100644 index 57eb9618..00000000 --- a/src/merge/resources/knowledgebase/types/issue_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssueStatusEnum(str, enum.Enum): - """ - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssueStatusEnum.ONGOING: - return ongoing() - if self is IssueStatusEnum.RESOLVED: - return resolved() diff --git a/src/merge/resources/knowledgebase/types/language_enum.py b/src/merge/resources/knowledgebase/types/language_enum.py deleted file mode 100644 index 44b693f2..00000000 --- a/src/merge/resources/knowledgebase/types/language_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LanguageEnum(str, enum.Enum): - """ - * `en` - en - * `de` - de - """ - - EN = "en" - DE = "de" - - def visit(self, en: typing.Callable[[], T_Result], de: typing.Callable[[], T_Result]) -> T_Result: - if self is LanguageEnum.EN: - return en() - if self is LanguageEnum.DE: - return de() diff --git a/src/merge/resources/knowledgebase/types/last_sync_result_enum.py b/src/merge/resources/knowledgebase/types/last_sync_result_enum.py deleted file mode 100644 index ec777ee6..00000000 --- a/src/merge/resources/knowledgebase/types/last_sync_result_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LastSyncResultEnum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LastSyncResultEnum.SYNCING: - return syncing() - if self is LastSyncResultEnum.DONE: - return done() - if self is LastSyncResultEnum.FAILED: - return failed() - if self is LastSyncResultEnum.DISABLED: - return disabled() - if self is LastSyncResultEnum.PAUSED: - return paused() - if self is LastSyncResultEnum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/knowledgebase/types/link_token.py b/src/merge/resources/knowledgebase/types/link_token.py deleted file mode 100644 index f78dedeb..00000000 --- a/src/merge/resources/knowledgebase/types/link_token.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkToken(UncheckedBaseModel): - link_token: str - integration_name: typing.Optional[str] = None - magic_link_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/method_enum.py b/src/merge/resources/knowledgebase/types/method_enum.py deleted file mode 100644 index 57bcde10..00000000 --- a/src/merge/resources/knowledgebase/types/method_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodEnum(str, enum.Enum): - """ - * `GET` - GET - * `OPTIONS` - OPTIONS - * `HEAD` - HEAD - * `POST` - POST - * `PUT` - PUT - * `PATCH` - PATCH - * `DELETE` - DELETE - """ - - GET = "GET" - OPTIONS = "OPTIONS" - HEAD = "HEAD" - POST = "POST" - PUT = "PUT" - PATCH = "PATCH" - DELETE = "DELETE" - - def visit( - self, - get: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - head: typing.Callable[[], T_Result], - post: typing.Callable[[], T_Result], - put: typing.Callable[[], T_Result], - patch: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodEnum.GET: - return get() - if self is MethodEnum.OPTIONS: - return options() - if self is MethodEnum.HEAD: - return head() - if self is MethodEnum.POST: - return post() - if self is MethodEnum.PUT: - return put() - if self is MethodEnum.PATCH: - return patch() - if self is MethodEnum.DELETE: - return delete() diff --git a/src/merge/resources/knowledgebase/types/model_operation.py b/src/merge/resources/knowledgebase/types/model_operation.py deleted file mode 100644 index c367572d..00000000 --- a/src/merge/resources/knowledgebase/types/model_operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelOperation(UncheckedBaseModel): - """ - # The ModelOperation Object - ### Description - The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - - ### Usage Example - View what operations are supported for the `Candidate` endpoint. - """ - - model_name: str - available_operations: typing.List[str] - required_post_parameters: typing.List[str] - supported_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/model_permission_deserializer.py b/src/merge/resources/knowledgebase/types/model_permission_deserializer.py deleted file mode 100644 index 6381814c..00000000 --- a/src/merge/resources/knowledgebase/types/model_permission_deserializer.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializer(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/model_permission_deserializer_request.py b/src/merge/resources/knowledgebase/types/model_permission_deserializer_request.py deleted file mode 100644 index cdc2ff4c..00000000 --- a/src/merge/resources/knowledgebase/types/model_permission_deserializer_request.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializerRequest(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/multipart_form_field_request.py b/src/merge/resources/knowledgebase/types/multipart_form_field_request.py deleted file mode 100644 index abc37692..00000000 --- a/src/merge/resources/knowledgebase/types/multipart_form_field_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - - -class MultipartFormFieldRequest(UncheckedBaseModel): - """ - # The MultipartFormField Object - ### Description - The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - - ### Usage Example - Create a `MultipartFormField` to define a multipart form entry. - """ - - name: str = pydantic.Field() - """ - The name of the form field - """ - - data: str = pydantic.Field() - """ - The data for the form field. - """ - - encoding: typing.Optional[MultipartFormFieldRequestEncoding] = pydantic.Field(default=None) - """ - The encoding of the value of `data`. Defaults to `RAW` if not defined. - - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The file name of the form field, if the field is for a file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The MIME type of the file, if the field is for a file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/multipart_form_field_request_encoding.py b/src/merge/resources/knowledgebase/types/multipart_form_field_request_encoding.py deleted file mode 100644 index c6513b6b..00000000 --- a/src/merge/resources/knowledgebase/types/multipart_form_field_request_encoding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .encoding_enum import EncodingEnum - -MultipartFormFieldRequestEncoding = typing.Union[EncodingEnum, str] diff --git a/src/merge/resources/knowledgebase/types/paginated_account_details_and_actions_list.py b/src/merge/resources/knowledgebase/types/paginated_account_details_and_actions_list.py deleted file mode 100644 index d2d16116..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_account_details_and_actions_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions import AccountDetailsAndActions - - -class PaginatedAccountDetailsAndActionsList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountDetailsAndActions]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/paginated_article_list.py b/src/merge/resources/knowledgebase/types/paginated_article_list.py deleted file mode 100644 index 81de40ee..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_article_list.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedArticleList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Article"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .article import Article # noqa: E402, F401, I001 -from .group import Group # noqa: E402, F401, I001 - -update_forward_refs(PaginatedArticleList) diff --git a/src/merge/resources/knowledgebase/types/paginated_attachment_list.py b/src/merge/resources/knowledgebase/types/paginated_attachment_list.py deleted file mode 100644 index 3222cbc0..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_attachment_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .attachment import Attachment - - -class PaginatedAttachmentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Attachment]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/paginated_audit_log_event_list.py b/src/merge/resources/knowledgebase/types/paginated_audit_log_event_list.py deleted file mode 100644 index 24139397..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_audit_log_event_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event import AuditLogEvent - - -class PaginatedAuditLogEventList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AuditLogEvent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/paginated_container_list.py b/src/merge/resources/knowledgebase/types/paginated_container_list.py deleted file mode 100644 index 4a3ab735..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_container_list.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .container import Container - - -class PaginatedContainerList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Container]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .group import Group # noqa: E402, F401, I001 - -update_forward_refs(PaginatedContainerList) diff --git a/src/merge/resources/knowledgebase/types/paginated_group_list.py b/src/merge/resources/knowledgebase/types/paginated_group_list.py deleted file mode 100644 index ddbf97b2..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_group_list.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedGroupList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Group"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .group import Group # noqa: E402, F401, I001 - -update_forward_refs(PaginatedGroupList) diff --git a/src/merge/resources/knowledgebase/types/paginated_issue_list.py b/src/merge/resources/knowledgebase/types/paginated_issue_list.py deleted file mode 100644 index 686173e5..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_issue_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue import Issue - - -class PaginatedIssueList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Issue]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/paginated_sync_status_list.py b/src/merge/resources/knowledgebase/types/paginated_sync_status_list.py deleted file mode 100644 index cc4bd7a8..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_sync_status_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .sync_status import SyncStatus - - -class PaginatedSyncStatusList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[SyncStatus]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/paginated_user_list.py b/src/merge/resources/knowledgebase/types/paginated_user_list.py deleted file mode 100644 index 809b285c..00000000 --- a/src/merge/resources/knowledgebase/types/paginated_user_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .user import User - - -class PaginatedUserList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[User]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/permission.py b/src/merge/resources/knowledgebase/types/permission.py deleted file mode 100644 index 25d694be..00000000 --- a/src/merge/resources/knowledgebase/types/permission.py +++ /dev/null @@ -1,77 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .permission_group import PermissionGroup -from .permission_type import PermissionType -from .permission_user import PermissionUser -from .roles_enum import RolesEnum - - -class Permission(UncheckedBaseModel): - """ - # The Permission Object - ### Description - The `Permission` object is used to represent a user's or group's access to an article or container. Permissions are unexpanded by default. - ### Usage Example - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - user: typing.Optional[PermissionUser] = None - group: typing.Optional[PermissionGroup] = None - type: typing.Optional[PermissionType] = pydantic.Field(default=None) - """ - Denotes what type of people have access to the Article or Container. - - * `USER` - USER - * `GROUP` - GROUP - * `COMPANY` - COMPANY - * `ANYONE` - ANYONE - """ - - roles: typing.Optional[typing.List[typing.Optional[RolesEnum]]] = pydantic.Field(default=None) - """ - The permissions that the user or group has for the Article or Container. It is possible for a user or group to have multiple roles, such as viewing & uploading. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .group import Group # noqa: E402, F401, I001 - -update_forward_refs(Permission) diff --git a/src/merge/resources/knowledgebase/types/permission_group.py b/src/merge/resources/knowledgebase/types/permission_group.py deleted file mode 100644 index db417995..00000000 --- a/src/merge/resources/knowledgebase/types/permission_group.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .group import Group - -PermissionGroup = typing.Union[str, Group] diff --git a/src/merge/resources/knowledgebase/types/permission_type.py b/src/merge/resources/knowledgebase/types/permission_type.py deleted file mode 100644 index 974034d9..00000000 --- a/src/merge/resources/knowledgebase/types/permission_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .permission_type_enum import PermissionTypeEnum - -PermissionType = typing.Union[PermissionTypeEnum, str] diff --git a/src/merge/resources/knowledgebase/types/permission_type_enum.py b/src/merge/resources/knowledgebase/types/permission_type_enum.py deleted file mode 100644 index be003e46..00000000 --- a/src/merge/resources/knowledgebase/types/permission_type_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PermissionTypeEnum(str, enum.Enum): - """ - * `USER` - USER - * `GROUP` - GROUP - * `COMPANY` - COMPANY - * `ANYONE` - ANYONE - """ - - USER = "USER" - GROUP = "GROUP" - COMPANY = "COMPANY" - ANYONE = "ANYONE" - - def visit( - self, - user: typing.Callable[[], T_Result], - group: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - anyone: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PermissionTypeEnum.USER: - return user() - if self is PermissionTypeEnum.GROUP: - return group() - if self is PermissionTypeEnum.COMPANY: - return company() - if self is PermissionTypeEnum.ANYONE: - return anyone() diff --git a/src/merge/resources/knowledgebase/types/permission_user.py b/src/merge/resources/knowledgebase/types/permission_user.py deleted file mode 100644 index 85fec9a9..00000000 --- a/src/merge/resources/knowledgebase/types/permission_user.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -PermissionUser = typing.Union[str, User] diff --git a/src/merge/resources/knowledgebase/types/remote_data.py b/src/merge/resources/knowledgebase/types/remote_data.py deleted file mode 100644 index f34bec80..00000000 --- a/src/merge/resources/knowledgebase/types/remote_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteData(UncheckedBaseModel): - """ - # The RemoteData Object - ### Description - The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - - ### Usage Example - TODO - """ - - path: str = pydantic.Field() - """ - The third-party API path that is being called. - """ - - data: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The data returned from the third-party for this object in its original, unnormalized format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/remote_endpoint_info.py b/src/merge/resources/knowledgebase/types/remote_endpoint_info.py deleted file mode 100644 index 07ceff6a..00000000 --- a/src/merge/resources/knowledgebase/types/remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteEndpointInfo(UncheckedBaseModel): - method: str - url_path: str - field_traversal_path: typing.List[typing.Optional[typing.Any]] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/remote_field_api.py b/src/merge/resources/knowledgebase/types/remote_field_api.py deleted file mode 100644 index 0756bfc3..00000000 --- a/src/merge/resources/knowledgebase/types/remote_field_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_endpoint_info import RemoteEndpointInfo -from .remote_field_api_advanced_metadata import RemoteFieldApiAdvancedMetadata -from .remote_field_api_coverage import RemoteFieldApiCoverage - - -class RemoteFieldApi(UncheckedBaseModel): - schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema") - remote_key_name: str - remote_endpoint_info: RemoteEndpointInfo - example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - advanced_metadata: typing.Optional[RemoteFieldApiAdvancedMetadata] = None - coverage: typing.Optional[RemoteFieldApiCoverage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/remote_field_api_advanced_metadata.py b/src/merge/resources/knowledgebase/types/remote_field_api_advanced_metadata.py deleted file mode 100644 index e93da936..00000000 --- a/src/merge/resources/knowledgebase/types/remote_field_api_advanced_metadata.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .advanced_metadata import AdvancedMetadata - -RemoteFieldApiAdvancedMetadata = typing.Union[AdvancedMetadata, str] diff --git a/src/merge/resources/knowledgebase/types/remote_field_api_coverage.py b/src/merge/resources/knowledgebase/types/remote_field_api_coverage.py deleted file mode 100644 index adcd9be9..00000000 --- a/src/merge/resources/knowledgebase/types/remote_field_api_coverage.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RemoteFieldApiCoverage = typing.Union[int, float] diff --git a/src/merge/resources/knowledgebase/types/remote_field_api_response.py b/src/merge/resources/knowledgebase/types/remote_field_api_response.py deleted file mode 100644 index 13490496..00000000 --- a/src/merge/resources/knowledgebase/types/remote_field_api_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_api import RemoteFieldApi - - -class RemoteFieldApiResponse(UncheckedBaseModel): - container: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Container", default=None) - article: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Article", default=None) - attachment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Attachment", default=None) - user: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="User", default=None) - group: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Group", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/remote_key.py b/src/merge/resources/knowledgebase/types/remote_key.py deleted file mode 100644 index e5d9758c..00000000 --- a/src/merge/resources/knowledgebase/types/remote_key.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteKey(UncheckedBaseModel): - """ - # The RemoteKey Object - ### Description - The `RemoteKey` object is used to represent a request for a new remote key. - - ### Usage Example - Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - """ - - name: str - key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/remote_response.py b/src/merge/resources/knowledgebase/types/remote_response.py deleted file mode 100644 index db01131f..00000000 --- a/src/merge/resources/knowledgebase/types/remote_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_response_response_type import RemoteResponseResponseType - - -class RemoteResponse(UncheckedBaseModel): - """ - # The RemoteResponse Object - ### Description - The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - - ### Usage Example - View the `RemoteResponse` returned from your `DataPassthrough`. - """ - - method: str - path: str - status: int - response: typing.Optional[typing.Any] = None - response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[RemoteResponseResponseType] = None - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/remote_response_response_type.py b/src/merge/resources/knowledgebase/types/remote_response_response_type.py deleted file mode 100644 index 2556417a..00000000 --- a/src/merge/resources/knowledgebase/types/remote_response_response_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .response_type_enum import ResponseTypeEnum - -RemoteResponseResponseType = typing.Union[ResponseTypeEnum, str] diff --git a/src/merge/resources/knowledgebase/types/request_format_enum.py b/src/merge/resources/knowledgebase/types/request_format_enum.py deleted file mode 100644 index 21c272f2..00000000 --- a/src/merge/resources/knowledgebase/types/request_format_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestFormatEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `XML` - XML - * `MULTIPART` - MULTIPART - """ - - JSON = "JSON" - XML = "XML" - MULTIPART = "MULTIPART" - - def visit( - self, - json: typing.Callable[[], T_Result], - xml: typing.Callable[[], T_Result], - multipart: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestFormatEnum.JSON: - return json() - if self is RequestFormatEnum.XML: - return xml() - if self is RequestFormatEnum.MULTIPART: - return multipart() diff --git a/src/merge/resources/knowledgebase/types/response_type_enum.py b/src/merge/resources/knowledgebase/types/response_type_enum.py deleted file mode 100644 index ef241302..00000000 --- a/src/merge/resources/knowledgebase/types/response_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ResponseTypeEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `BASE64_GZIP` - BASE64_GZIP - """ - - JSON = "JSON" - BASE_64_GZIP = "BASE64_GZIP" - - def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result: - if self is ResponseTypeEnum.JSON: - return json() - if self is ResponseTypeEnum.BASE_64_GZIP: - return base_64_gzip() diff --git a/src/merge/resources/knowledgebase/types/role_enum.py b/src/merge/resources/knowledgebase/types/role_enum.py deleted file mode 100644 index a6cfcc6f..00000000 --- a/src/merge/resources/knowledgebase/types/role_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RoleEnum(str, enum.Enum): - """ - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ADMIN = "ADMIN" - DEVELOPER = "DEVELOPER" - MEMBER = "MEMBER" - API = "API" - SYSTEM = "SYSTEM" - MERGE_TEAM = "MERGE_TEAM" - - def visit( - self, - admin: typing.Callable[[], T_Result], - developer: typing.Callable[[], T_Result], - member: typing.Callable[[], T_Result], - api: typing.Callable[[], T_Result], - system: typing.Callable[[], T_Result], - merge_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RoleEnum.ADMIN: - return admin() - if self is RoleEnum.DEVELOPER: - return developer() - if self is RoleEnum.MEMBER: - return member() - if self is RoleEnum.API: - return api() - if self is RoleEnum.SYSTEM: - return system() - if self is RoleEnum.MERGE_TEAM: - return merge_team() diff --git a/src/merge/resources/knowledgebase/types/roles_enum.py b/src/merge/resources/knowledgebase/types/roles_enum.py deleted file mode 100644 index 1176c798..00000000 --- a/src/merge/resources/knowledgebase/types/roles_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RolesEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - * `OWNER` - OWNER - """ - - READ = "READ" - WRITE = "WRITE" - OWNER = "OWNER" - - def visit( - self, - read: typing.Callable[[], T_Result], - write: typing.Callable[[], T_Result], - owner: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RolesEnum.READ: - return read() - if self is RolesEnum.WRITE: - return write() - if self is RolesEnum.OWNER: - return owner() diff --git a/src/merge/resources/knowledgebase/types/selective_sync_configurations_usage_enum.py b/src/merge/resources/knowledgebase/types/selective_sync_configurations_usage_enum.py deleted file mode 100644 index 9ff43813..00000000 --- a/src/merge/resources/knowledgebase/types/selective_sync_configurations_usage_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum): - """ - * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * `IN_LAST_SYNC` - IN_LAST_SYNC - """ - - IN_NEXT_SYNC = "IN_NEXT_SYNC" - IN_LAST_SYNC = "IN_LAST_SYNC" - - def visit( - self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result] - ) -> T_Result: - if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC: - return in_next_sync() - if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC: - return in_last_sync() diff --git a/src/merge/resources/knowledgebase/types/status_3_c_6_enum.py b/src/merge/resources/knowledgebase/types/status_3_c_6_enum.py deleted file mode 100644 index 16df5fa6..00000000 --- a/src/merge/resources/knowledgebase/types/status_3_c_6_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class Status3C6Enum(str, enum.Enum): - """ - * `DRAFT` - DRAFT - * `PUBLISHED` - PUBLISHED - * `ARCHIVED` - ARCHIVED - * `TRASH` - TRASH - """ - - DRAFT = "DRAFT" - PUBLISHED = "PUBLISHED" - ARCHIVED = "ARCHIVED" - TRASH = "TRASH" - - def visit( - self, - draft: typing.Callable[[], T_Result], - published: typing.Callable[[], T_Result], - archived: typing.Callable[[], T_Result], - trash: typing.Callable[[], T_Result], - ) -> T_Result: - if self is Status3C6Enum.DRAFT: - return draft() - if self is Status3C6Enum.PUBLISHED: - return published() - if self is Status3C6Enum.ARCHIVED: - return archived() - if self is Status3C6Enum.TRASH: - return trash() diff --git a/src/merge/resources/knowledgebase/types/status_fd_5_enum.py b/src/merge/resources/knowledgebase/types/status_fd_5_enum.py deleted file mode 100644 index d753f77c..00000000 --- a/src/merge/resources/knowledgebase/types/status_fd_5_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class StatusFd5Enum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is StatusFd5Enum.SYNCING: - return syncing() - if self is StatusFd5Enum.DONE: - return done() - if self is StatusFd5Enum.FAILED: - return failed() - if self is StatusFd5Enum.DISABLED: - return disabled() - if self is StatusFd5Enum.PAUSED: - return paused() - if self is StatusFd5Enum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/knowledgebase/types/sync_status.py b/src/merge/resources/knowledgebase/types/sync_status.py deleted file mode 100644 index 07ab1dc2..00000000 --- a/src/merge/resources/knowledgebase/types/sync_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .sync_status_last_sync_result import SyncStatusLastSyncResult -from .sync_status_status import SyncStatusStatus - - -class SyncStatus(UncheckedBaseModel): - """ - # The SyncStatus Object - ### Description - The `SyncStatus` object is used to represent the syncing state of an account - - ### Usage Example - View the `SyncStatus` for an account to see how recently its models were synced. - """ - - model_name: str - model_id: str - last_sync_start: typing.Optional[dt.datetime] = None - next_sync_start: typing.Optional[dt.datetime] = None - last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None - last_sync_finished: typing.Optional[dt.datetime] = None - status: SyncStatusStatus - is_initial_sync: bool - selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/sync_status_last_sync_result.py b/src/merge/resources/knowledgebase/types/sync_status_last_sync_result.py deleted file mode 100644 index 980e7d94..00000000 --- a/src/merge/resources/knowledgebase/types/sync_status_last_sync_result.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .last_sync_result_enum import LastSyncResultEnum - -SyncStatusLastSyncResult = typing.Union[LastSyncResultEnum, str] diff --git a/src/merge/resources/knowledgebase/types/sync_status_status.py b/src/merge/resources/knowledgebase/types/sync_status_status.py deleted file mode 100644 index 78e4cc47..00000000 --- a/src/merge/resources/knowledgebase/types/sync_status_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .status_fd_5_enum import StatusFd5Enum - -SyncStatusStatus = typing.Union[StatusFd5Enum, str] diff --git a/src/merge/resources/knowledgebase/types/user.py b/src/merge/resources/knowledgebase/types/user.py deleted file mode 100644 index 35ec6bf1..00000000 --- a/src/merge/resources/knowledgebase/types/user.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class User(UncheckedBaseModel): - """ - # The User Object - ### Description - The `User` object is used to represent a user within the Knowledge Base account. - ### Usage Example - Fetch from the `GET /api/knowledgebase/v1/users` endpoint and view their users. - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's name. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's email address. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/validation_problem_source.py b/src/merge/resources/knowledgebase/types/validation_problem_source.py deleted file mode 100644 index fbebe626..00000000 --- a/src/merge/resources/knowledgebase/types/validation_problem_source.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ValidationProblemSource(UncheckedBaseModel): - pointer: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/visibility_enum.py b/src/merge/resources/knowledgebase/types/visibility_enum.py deleted file mode 100644 index 287312d8..00000000 --- a/src/merge/resources/knowledgebase/types/visibility_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class VisibilityEnum(str, enum.Enum): - """ - * `PUBLIC` - PUBLIC - * `INTERNAL` - INTERNAL - * `RESTRICTED` - RESTRICTED - """ - - PUBLIC = "PUBLIC" - INTERNAL = "INTERNAL" - RESTRICTED = "RESTRICTED" - - def visit( - self, - public: typing.Callable[[], T_Result], - internal: typing.Callable[[], T_Result], - restricted: typing.Callable[[], T_Result], - ) -> T_Result: - if self is VisibilityEnum.PUBLIC: - return public() - if self is VisibilityEnum.INTERNAL: - return internal() - if self is VisibilityEnum.RESTRICTED: - return restricted() diff --git a/src/merge/resources/knowledgebase/types/warning_validation_problem.py b/src/merge/resources/knowledgebase/types/warning_validation_problem.py deleted file mode 100644 index 4785e836..00000000 --- a/src/merge/resources/knowledgebase/types/warning_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class WarningValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/knowledgebase/types/webhook_receiver.py b/src/merge/resources/knowledgebase/types/webhook_receiver.py deleted file mode 100644 index fb49c044..00000000 --- a/src/merge/resources/knowledgebase/types/webhook_receiver.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class WebhookReceiver(UncheckedBaseModel): - event: str - is_active: bool - key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/__init__.py b/src/merge/resources/ticketing/__init__.py deleted file mode 100644 index 13477e7f..00000000 --- a/src/merge/resources/ticketing/__init__.py +++ /dev/null @@ -1,700 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - Account, - AccountDetails, - AccountDetailsAndActions, - AccountDetailsAndActionsCategory, - AccountDetailsAndActionsIntegration, - AccountDetailsAndActionsStatus, - AccountDetailsAndActionsStatusEnum, - AccountDetailsCategory, - AccountIntegration, - AccountToken, - AdvancedMetadata, - AsyncPassthroughReciept, - Attachment, - AttachmentRequest, - AttachmentRequestTicket, - AttachmentTicket, - AuditLogEvent, - AuditLogEventEventType, - AuditLogEventRole, - AvailableActions, - CategoriesEnum, - CategoryEnum, - Collection, - CollectionAccessLevel, - CollectionAccessLevelEnum, - CollectionCollectionType, - CollectionParentCollection, - CollectionTypeEnum, - Comment, - CommentContact, - CommentRequest, - CommentRequestContact, - CommentRequestTicket, - CommentRequestUser, - CommentResponse, - CommentTicket, - CommentUser, - CommonModelScopeApi, - CommonModelScopesBodyRequest, - CompletedAccountInitialScreenEnum, - Contact, - ContactAccount, - ContactRequest, - ContactRequestAccount, - DataPassthroughRequest, - DebugModeLog, - DebugModelLogSummary, - EnabledActionsEnum, - EncodingEnum, - ErrorValidationProblem, - EventTypeEnum, - ExternalTargetFieldApi, - ExternalTargetFieldApiResponse, - FieldFormatEnum, - FieldMappingApiInstance, - FieldMappingApiInstanceRemoteField, - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - FieldMappingApiInstanceResponse, - FieldMappingApiInstanceTargetField, - FieldMappingInstanceResponse, - FieldPermissionDeserializer, - FieldPermissionDeserializerRequest, - FieldTypeEnum, - IndividualCommonModelScopeDeserializer, - IndividualCommonModelScopeDeserializerRequest, - Issue, - IssueStatus, - IssueStatusEnum, - ItemFormatEnum, - ItemSchema, - ItemTypeEnum, - LanguageEnum, - LastSyncResultEnum, - LinkToken, - LinkedAccountStatus, - MetaResponse, - MethodEnum, - ModelOperation, - ModelPermissionDeserializer, - ModelPermissionDeserializerRequest, - MultipartFormFieldRequest, - MultipartFormFieldRequestEncoding, - PaginatedAccountDetailsAndActionsList, - PaginatedAccountList, - PaginatedAttachmentList, - PaginatedAuditLogEventList, - PaginatedCollectionList, - PaginatedCommentList, - PaginatedContactList, - PaginatedIssueList, - PaginatedProjectList, - PaginatedRemoteFieldClassList, - PaginatedRoleList, - PaginatedSyncStatusList, - PaginatedTagList, - PaginatedTeamList, - PaginatedTicketList, - PaginatedUserList, - PaginatedViewerList, - PatchedTicketRequest, - PatchedTicketRequestAccessLevel, - PatchedTicketRequestPriority, - PatchedTicketRequestStatus, - PriorityEnum, - Project, - RemoteData, - RemoteEndpointInfo, - RemoteField, - RemoteFieldApi, - RemoteFieldApiCoverage, - RemoteFieldApiResponse, - RemoteFieldClass, - RemoteFieldClassFieldChoicesItem, - RemoteFieldClassFieldFormat, - RemoteFieldClassFieldType, - RemoteFieldRemoteFieldClass, - RemoteFieldRequest, - RemoteFieldRequestRemoteFieldClass, - RemoteKey, - RemoteResponse, - RequestFormatEnum, - ResponseTypeEnum, - Role, - RoleEnum, - RoleTicketAccess, - RoleTicketActionsItem, - SelectiveSyncConfigurationsUsageEnum, - StatusFd5Enum, - SyncStatus, - SyncStatusLastSyncResult, - Tag, - Team, - Ticket, - TicketAccessEnum, - TicketAccessLevel, - TicketAccessLevelEnum, - TicketAccount, - TicketActionsEnum, - TicketAssignedTeamsItem, - TicketAssigneesItem, - TicketAttachmentsItem, - TicketCollectionsItem, - TicketContact, - TicketCreator, - TicketParentTicket, - TicketPriority, - TicketRequest, - TicketRequestAccessLevel, - TicketRequestAccount, - TicketRequestAssignedTeamsItem, - TicketRequestAssigneesItem, - TicketRequestAttachmentsItem, - TicketRequestCollectionsItem, - TicketRequestContact, - TicketRequestCreator, - TicketRequestParentTicket, - TicketRequestPriority, - TicketRequestStatus, - TicketResponse, - TicketStatus, - TicketStatusEnum, - TicketingAttachmentResponse, - TicketingContactResponse, - User, - UserRolesItem, - UserTeamsItem, - ValidationProblemSource, - Viewer, - ViewerTeam, - ViewerUser, - WarningValidationProblem, - WebhookReceiver, - ) - from .resources import ( - AsyncPassthroughRetrieveResponse, - CollectionsListRequestCollectionType, - CollectionsViewersListRequestExpand, - CommentsListRequestExpand, - CommentsRetrieveRequestExpand, - EndUserDetailsRequestCompletedAccountInitialScreen, - EndUserDetailsRequestLanguage, - IssuesListRequestStatus, - LinkedAccountsListRequestCategory, - ProjectsUsersListRequestExpand, - TicketsListRequestExpand, - TicketsListRequestPriority, - TicketsListRequestRemoteFields, - TicketsListRequestShowEnumOrigins, - TicketsListRequestStatus, - TicketsRetrieveRequestExpand, - TicketsRetrieveRequestRemoteFields, - TicketsRetrieveRequestShowEnumOrigins, - TicketsViewersListRequestExpand, - UsersListRequestExpand, - UsersRetrieveRequestExpand, - account_details, - account_token, - accounts, - async_passthrough, - attachments, - audit_trail, - available_actions, - collections, - comments, - contacts, - delete_account, - field_mapping, - force_resync, - generate_key, - issues, - link_token, - linked_accounts, - passthrough, - projects, - regenerate_key, - roles, - scopes, - sync_status, - tags, - teams, - tickets, - users, - webhook_receivers, - ) -_dynamic_imports: typing.Dict[str, str] = { - "Account": ".types", - "AccountDetails": ".types", - "AccountDetailsAndActions": ".types", - "AccountDetailsAndActionsCategory": ".types", - "AccountDetailsAndActionsIntegration": ".types", - "AccountDetailsAndActionsStatus": ".types", - "AccountDetailsAndActionsStatusEnum": ".types", - "AccountDetailsCategory": ".types", - "AccountIntegration": ".types", - "AccountToken": ".types", - "AdvancedMetadata": ".types", - "AsyncPassthroughReciept": ".types", - "AsyncPassthroughRetrieveResponse": ".resources", - "Attachment": ".types", - "AttachmentRequest": ".types", - "AttachmentRequestTicket": ".types", - "AttachmentTicket": ".types", - "AuditLogEvent": ".types", - "AuditLogEventEventType": ".types", - "AuditLogEventRole": ".types", - "AvailableActions": ".types", - "CategoriesEnum": ".types", - "CategoryEnum": ".types", - "Collection": ".types", - "CollectionAccessLevel": ".types", - "CollectionAccessLevelEnum": ".types", - "CollectionCollectionType": ".types", - "CollectionParentCollection": ".types", - "CollectionTypeEnum": ".types", - "CollectionsListRequestCollectionType": ".resources", - "CollectionsViewersListRequestExpand": ".resources", - "Comment": ".types", - "CommentContact": ".types", - "CommentRequest": ".types", - "CommentRequestContact": ".types", - "CommentRequestTicket": ".types", - "CommentRequestUser": ".types", - "CommentResponse": ".types", - "CommentTicket": ".types", - "CommentUser": ".types", - "CommentsListRequestExpand": ".resources", - "CommentsRetrieveRequestExpand": ".resources", - "CommonModelScopeApi": ".types", - "CommonModelScopesBodyRequest": ".types", - "CompletedAccountInitialScreenEnum": ".types", - "Contact": ".types", - "ContactAccount": ".types", - "ContactRequest": ".types", - "ContactRequestAccount": ".types", - "DataPassthroughRequest": ".types", - "DebugModeLog": ".types", - "DebugModelLogSummary": ".types", - "EnabledActionsEnum": ".types", - "EncodingEnum": ".types", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".resources", - "EndUserDetailsRequestLanguage": ".resources", - "ErrorValidationProblem": ".types", - "EventTypeEnum": ".types", - "ExternalTargetFieldApi": ".types", - "ExternalTargetFieldApiResponse": ".types", - "FieldFormatEnum": ".types", - "FieldMappingApiInstance": ".types", - "FieldMappingApiInstanceRemoteField": ".types", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".types", - "FieldMappingApiInstanceResponse": ".types", - "FieldMappingApiInstanceTargetField": ".types", - "FieldMappingInstanceResponse": ".types", - "FieldPermissionDeserializer": ".types", - "FieldPermissionDeserializerRequest": ".types", - "FieldTypeEnum": ".types", - "IndividualCommonModelScopeDeserializer": ".types", - "IndividualCommonModelScopeDeserializerRequest": ".types", - "Issue": ".types", - "IssueStatus": ".types", - "IssueStatusEnum": ".types", - "IssuesListRequestStatus": ".resources", - "ItemFormatEnum": ".types", - "ItemSchema": ".types", - "ItemTypeEnum": ".types", - "LanguageEnum": ".types", - "LastSyncResultEnum": ".types", - "LinkToken": ".types", - "LinkedAccountStatus": ".types", - "LinkedAccountsListRequestCategory": ".resources", - "MetaResponse": ".types", - "MethodEnum": ".types", - "ModelOperation": ".types", - "ModelPermissionDeserializer": ".types", - "ModelPermissionDeserializerRequest": ".types", - "MultipartFormFieldRequest": ".types", - "MultipartFormFieldRequestEncoding": ".types", - "PaginatedAccountDetailsAndActionsList": ".types", - "PaginatedAccountList": ".types", - "PaginatedAttachmentList": ".types", - "PaginatedAuditLogEventList": ".types", - "PaginatedCollectionList": ".types", - "PaginatedCommentList": ".types", - "PaginatedContactList": ".types", - "PaginatedIssueList": ".types", - "PaginatedProjectList": ".types", - "PaginatedRemoteFieldClassList": ".types", - "PaginatedRoleList": ".types", - "PaginatedSyncStatusList": ".types", - "PaginatedTagList": ".types", - "PaginatedTeamList": ".types", - "PaginatedTicketList": ".types", - "PaginatedUserList": ".types", - "PaginatedViewerList": ".types", - "PatchedTicketRequest": ".types", - "PatchedTicketRequestAccessLevel": ".types", - "PatchedTicketRequestPriority": ".types", - "PatchedTicketRequestStatus": ".types", - "PriorityEnum": ".types", - "Project": ".types", - "ProjectsUsersListRequestExpand": ".resources", - "RemoteData": ".types", - "RemoteEndpointInfo": ".types", - "RemoteField": ".types", - "RemoteFieldApi": ".types", - "RemoteFieldApiCoverage": ".types", - "RemoteFieldApiResponse": ".types", - "RemoteFieldClass": ".types", - "RemoteFieldClassFieldChoicesItem": ".types", - "RemoteFieldClassFieldFormat": ".types", - "RemoteFieldClassFieldType": ".types", - "RemoteFieldRemoteFieldClass": ".types", - "RemoteFieldRequest": ".types", - "RemoteFieldRequestRemoteFieldClass": ".types", - "RemoteKey": ".types", - "RemoteResponse": ".types", - "RequestFormatEnum": ".types", - "ResponseTypeEnum": ".types", - "Role": ".types", - "RoleEnum": ".types", - "RoleTicketAccess": ".types", - "RoleTicketActionsItem": ".types", - "SelectiveSyncConfigurationsUsageEnum": ".types", - "StatusFd5Enum": ".types", - "SyncStatus": ".types", - "SyncStatusLastSyncResult": ".types", - "Tag": ".types", - "Team": ".types", - "Ticket": ".types", - "TicketAccessEnum": ".types", - "TicketAccessLevel": ".types", - "TicketAccessLevelEnum": ".types", - "TicketAccount": ".types", - "TicketActionsEnum": ".types", - "TicketAssignedTeamsItem": ".types", - "TicketAssigneesItem": ".types", - "TicketAttachmentsItem": ".types", - "TicketCollectionsItem": ".types", - "TicketContact": ".types", - "TicketCreator": ".types", - "TicketParentTicket": ".types", - "TicketPriority": ".types", - "TicketRequest": ".types", - "TicketRequestAccessLevel": ".types", - "TicketRequestAccount": ".types", - "TicketRequestAssignedTeamsItem": ".types", - "TicketRequestAssigneesItem": ".types", - "TicketRequestAttachmentsItem": ".types", - "TicketRequestCollectionsItem": ".types", - "TicketRequestContact": ".types", - "TicketRequestCreator": ".types", - "TicketRequestParentTicket": ".types", - "TicketRequestPriority": ".types", - "TicketRequestStatus": ".types", - "TicketResponse": ".types", - "TicketStatus": ".types", - "TicketStatusEnum": ".types", - "TicketingAttachmentResponse": ".types", - "TicketingContactResponse": ".types", - "TicketsListRequestExpand": ".resources", - "TicketsListRequestPriority": ".resources", - "TicketsListRequestRemoteFields": ".resources", - "TicketsListRequestShowEnumOrigins": ".resources", - "TicketsListRequestStatus": ".resources", - "TicketsRetrieveRequestExpand": ".resources", - "TicketsRetrieveRequestRemoteFields": ".resources", - "TicketsRetrieveRequestShowEnumOrigins": ".resources", - "TicketsViewersListRequestExpand": ".resources", - "User": ".types", - "UserRolesItem": ".types", - "UserTeamsItem": ".types", - "UsersListRequestExpand": ".resources", - "UsersRetrieveRequestExpand": ".resources", - "ValidationProblemSource": ".types", - "Viewer": ".types", - "ViewerTeam": ".types", - "ViewerUser": ".types", - "WarningValidationProblem": ".types", - "WebhookReceiver": ".types", - "account_details": ".resources", - "account_token": ".resources", - "accounts": ".resources", - "async_passthrough": ".resources", - "attachments": ".resources", - "audit_trail": ".resources", - "available_actions": ".resources", - "collections": ".resources", - "comments": ".resources", - "contacts": ".resources", - "delete_account": ".resources", - "field_mapping": ".resources", - "force_resync": ".resources", - "generate_key": ".resources", - "issues": ".resources", - "link_token": ".resources", - "linked_accounts": ".resources", - "passthrough": ".resources", - "projects": ".resources", - "regenerate_key": ".resources", - "roles": ".resources", - "scopes": ".resources", - "sync_status": ".resources", - "tags": ".resources", - "teams": ".resources", - "tickets": ".resources", - "users": ".resources", - "webhook_receivers": ".resources", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "Account", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "AsyncPassthroughRetrieveResponse", - "Attachment", - "AttachmentRequest", - "AttachmentRequestTicket", - "AttachmentTicket", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CategoriesEnum", - "CategoryEnum", - "Collection", - "CollectionAccessLevel", - "CollectionAccessLevelEnum", - "CollectionCollectionType", - "CollectionParentCollection", - "CollectionTypeEnum", - "CollectionsListRequestCollectionType", - "CollectionsViewersListRequestExpand", - "Comment", - "CommentContact", - "CommentRequest", - "CommentRequestContact", - "CommentRequestTicket", - "CommentRequestUser", - "CommentResponse", - "CommentTicket", - "CommentUser", - "CommentsListRequestExpand", - "CommentsRetrieveRequestExpand", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompletedAccountInitialScreenEnum", - "Contact", - "ContactAccount", - "ContactRequest", - "ContactRequestAccount", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "EnabledActionsEnum", - "EncodingEnum", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldFormatEnum", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FieldTypeEnum", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "IssuesListRequestStatus", - "ItemFormatEnum", - "ItemSchema", - "ItemTypeEnum", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "LinkedAccountsListRequestCategory", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAccountList", - "PaginatedAttachmentList", - "PaginatedAuditLogEventList", - "PaginatedCollectionList", - "PaginatedCommentList", - "PaginatedContactList", - "PaginatedIssueList", - "PaginatedProjectList", - "PaginatedRemoteFieldClassList", - "PaginatedRoleList", - "PaginatedSyncStatusList", - "PaginatedTagList", - "PaginatedTeamList", - "PaginatedTicketList", - "PaginatedUserList", - "PaginatedViewerList", - "PatchedTicketRequest", - "PatchedTicketRequestAccessLevel", - "PatchedTicketRequestPriority", - "PatchedTicketRequestStatus", - "PriorityEnum", - "Project", - "ProjectsUsersListRequestExpand", - "RemoteData", - "RemoteEndpointInfo", - "RemoteField", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteFieldClass", - "RemoteFieldClassFieldChoicesItem", - "RemoteFieldClassFieldFormat", - "RemoteFieldClassFieldType", - "RemoteFieldRemoteFieldClass", - "RemoteFieldRequest", - "RemoteFieldRequestRemoteFieldClass", - "RemoteKey", - "RemoteResponse", - "RequestFormatEnum", - "ResponseTypeEnum", - "Role", - "RoleEnum", - "RoleTicketAccess", - "RoleTicketActionsItem", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "Tag", - "Team", - "Ticket", - "TicketAccessEnum", - "TicketAccessLevel", - "TicketAccessLevelEnum", - "TicketAccount", - "TicketActionsEnum", - "TicketAssignedTeamsItem", - "TicketAssigneesItem", - "TicketAttachmentsItem", - "TicketCollectionsItem", - "TicketContact", - "TicketCreator", - "TicketParentTicket", - "TicketPriority", - "TicketRequest", - "TicketRequestAccessLevel", - "TicketRequestAccount", - "TicketRequestAssignedTeamsItem", - "TicketRequestAssigneesItem", - "TicketRequestAttachmentsItem", - "TicketRequestCollectionsItem", - "TicketRequestContact", - "TicketRequestCreator", - "TicketRequestParentTicket", - "TicketRequestPriority", - "TicketRequestStatus", - "TicketResponse", - "TicketStatus", - "TicketStatusEnum", - "TicketingAttachmentResponse", - "TicketingContactResponse", - "TicketsListRequestExpand", - "TicketsListRequestPriority", - "TicketsListRequestRemoteFields", - "TicketsListRequestShowEnumOrigins", - "TicketsListRequestStatus", - "TicketsRetrieveRequestExpand", - "TicketsRetrieveRequestRemoteFields", - "TicketsRetrieveRequestShowEnumOrigins", - "TicketsViewersListRequestExpand", - "User", - "UserRolesItem", - "UserTeamsItem", - "UsersListRequestExpand", - "UsersRetrieveRequestExpand", - "ValidationProblemSource", - "Viewer", - "ViewerTeam", - "ViewerUser", - "WarningValidationProblem", - "WebhookReceiver", - "account_details", - "account_token", - "accounts", - "async_passthrough", - "attachments", - "audit_trail", - "available_actions", - "collections", - "comments", - "contacts", - "delete_account", - "field_mapping", - "force_resync", - "generate_key", - "issues", - "link_token", - "linked_accounts", - "passthrough", - "projects", - "regenerate_key", - "roles", - "scopes", - "sync_status", - "tags", - "teams", - "tickets", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/ticketing/client.py b/src/merge/resources/ticketing/client.py deleted file mode 100644 index 38570948..00000000 --- a/src/merge/resources/ticketing/client.py +++ /dev/null @@ -1,594 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .raw_client import AsyncRawTicketingClient, RawTicketingClient - -if typing.TYPE_CHECKING: - from .resources.account_details.client import AccountDetailsClient, AsyncAccountDetailsClient - from .resources.account_token.client import AccountTokenClient, AsyncAccountTokenClient - from .resources.accounts.client import AccountsClient, AsyncAccountsClient - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_ticketing_resources_async_passthrough_client_AsyncPassthroughClient, - ) - from .resources.attachments.client import AsyncAttachmentsClient, AttachmentsClient - from .resources.audit_trail.client import AsyncAuditTrailClient, AuditTrailClient - from .resources.available_actions.client import AsyncAvailableActionsClient, AvailableActionsClient - from .resources.collections.client import AsyncCollectionsClient, CollectionsClient - from .resources.comments.client import AsyncCommentsClient, CommentsClient - from .resources.contacts.client import AsyncContactsClient, ContactsClient - from .resources.delete_account.client import AsyncDeleteAccountClient, DeleteAccountClient - from .resources.field_mapping.client import AsyncFieldMappingClient, FieldMappingClient - from .resources.force_resync.client import AsyncForceResyncClient, ForceResyncClient - from .resources.generate_key.client import AsyncGenerateKeyClient, GenerateKeyClient - from .resources.issues.client import AsyncIssuesClient, IssuesClient - from .resources.link_token.client import AsyncLinkTokenClient, LinkTokenClient - from .resources.linked_accounts.client import AsyncLinkedAccountsClient, LinkedAccountsClient - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_ticketing_resources_passthrough_client_AsyncPassthroughClient, - ) - from .resources.passthrough.client import PassthroughClient - from .resources.projects.client import AsyncProjectsClient, ProjectsClient - from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient - from .resources.roles.client import AsyncRolesClient, RolesClient - from .resources.scopes.client import AsyncScopesClient, ScopesClient - from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient - from .resources.tags.client import AsyncTagsClient, TagsClient - from .resources.teams.client import AsyncTeamsClient, TeamsClient - from .resources.tickets.client import AsyncTicketsClient, TicketsClient - from .resources.users.client import AsyncUsersClient, UsersClient - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient - - -class TicketingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTicketingClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AccountDetailsClient] = None - self._account_token: typing.Optional[AccountTokenClient] = None - self._accounts: typing.Optional[AccountsClient] = None - self._async_passthrough: typing.Optional[ - resources_ticketing_resources_async_passthrough_client_AsyncPassthroughClient - ] = None - self._attachments: typing.Optional[AttachmentsClient] = None - self._audit_trail: typing.Optional[AuditTrailClient] = None - self._available_actions: typing.Optional[AvailableActionsClient] = None - self._collections: typing.Optional[CollectionsClient] = None - self._comments: typing.Optional[CommentsClient] = None - self._contacts: typing.Optional[ContactsClient] = None - self._scopes: typing.Optional[ScopesClient] = None - self._delete_account: typing.Optional[DeleteAccountClient] = None - self._field_mapping: typing.Optional[FieldMappingClient] = None - self._generate_key: typing.Optional[GenerateKeyClient] = None - self._issues: typing.Optional[IssuesClient] = None - self._link_token: typing.Optional[LinkTokenClient] = None - self._linked_accounts: typing.Optional[LinkedAccountsClient] = None - self._passthrough: typing.Optional[PassthroughClient] = None - self._projects: typing.Optional[ProjectsClient] = None - self._regenerate_key: typing.Optional[RegenerateKeyClient] = None - self._roles: typing.Optional[RolesClient] = None - self._sync_status: typing.Optional[SyncStatusClient] = None - self._force_resync: typing.Optional[ForceResyncClient] = None - self._tags: typing.Optional[TagsClient] = None - self._teams: typing.Optional[TeamsClient] = None - self._tickets: typing.Optional[TicketsClient] = None - self._users: typing.Optional[UsersClient] = None - self._webhook_receivers: typing.Optional[WebhookReceiversClient] = None - - @property - def with_raw_response(self) -> RawTicketingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTicketingClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AccountDetailsClient # noqa: E402 - - self._account_details = AccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AccountTokenClient # noqa: E402 - - self._account_token = AccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def accounts(self): - if self._accounts is None: - from .resources.accounts.client import AccountsClient # noqa: E402 - - self._accounts = AccountsClient(client_wrapper=self._client_wrapper) - return self._accounts - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import ( - AsyncPassthroughClient as resources_ticketing_resources_async_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._async_passthrough = resources_ticketing_resources_async_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._async_passthrough - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AttachmentsClient # noqa: E402 - - self._attachments = AttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AuditTrailClient # noqa: E402 - - self._audit_trail = AuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AvailableActionsClient # noqa: E402 - - self._available_actions = AvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def collections(self): - if self._collections is None: - from .resources.collections.client import CollectionsClient # noqa: E402 - - self._collections = CollectionsClient(client_wrapper=self._client_wrapper) - return self._collections - - @property - def comments(self): - if self._comments is None: - from .resources.comments.client import CommentsClient # noqa: E402 - - self._comments = CommentsClient(client_wrapper=self._client_wrapper) - return self._comments - - @property - def contacts(self): - if self._contacts is None: - from .resources.contacts.client import ContactsClient # noqa: E402 - - self._contacts = ContactsClient(client_wrapper=self._client_wrapper) - return self._contacts - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import ScopesClient # noqa: E402 - - self._scopes = ScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import DeleteAccountClient # noqa: E402 - - self._delete_account = DeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import FieldMappingClient # noqa: E402 - - self._field_mapping = FieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import GenerateKeyClient # noqa: E402 - - self._generate_key = GenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import IssuesClient # noqa: E402 - - self._issues = IssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import LinkTokenClient # noqa: E402 - - self._link_token = LinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import LinkedAccountsClient # noqa: E402 - - self._linked_accounts = LinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import PassthroughClient # noqa: E402 - - self._passthrough = PassthroughClient(client_wrapper=self._client_wrapper) - return self._passthrough - - @property - def projects(self): - if self._projects is None: - from .resources.projects.client import ProjectsClient # noqa: E402 - - self._projects = ProjectsClient(client_wrapper=self._client_wrapper) - return self._projects - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import RegenerateKeyClient # noqa: E402 - - self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def roles(self): - if self._roles is None: - from .resources.roles.client import RolesClient # noqa: E402 - - self._roles = RolesClient(client_wrapper=self._client_wrapper) - return self._roles - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import SyncStatusClient # noqa: E402 - - self._sync_status = SyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import ForceResyncClient # noqa: E402 - - self._force_resync = ForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tags(self): - if self._tags is None: - from .resources.tags.client import TagsClient # noqa: E402 - - self._tags = TagsClient(client_wrapper=self._client_wrapper) - return self._tags - - @property - def teams(self): - if self._teams is None: - from .resources.teams.client import TeamsClient # noqa: E402 - - self._teams = TeamsClient(client_wrapper=self._client_wrapper) - return self._teams - - @property - def tickets(self): - if self._tickets is None: - from .resources.tickets.client import TicketsClient # noqa: E402 - - self._tickets = TicketsClient(client_wrapper=self._client_wrapper) - return self._tickets - - @property - def users(self): - if self._users is None: - from .resources.users.client import UsersClient # noqa: E402 - - self._users = UsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import WebhookReceiversClient # noqa: E402 - - self._webhook_receivers = WebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers - - -class AsyncTicketingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTicketingClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._account_details: typing.Optional[AsyncAccountDetailsClient] = None - self._account_token: typing.Optional[AsyncAccountTokenClient] = None - self._accounts: typing.Optional[AsyncAccountsClient] = None - self._async_passthrough: typing.Optional[AsyncAsyncPassthroughClient] = None - self._attachments: typing.Optional[AsyncAttachmentsClient] = None - self._audit_trail: typing.Optional[AsyncAuditTrailClient] = None - self._available_actions: typing.Optional[AsyncAvailableActionsClient] = None - self._collections: typing.Optional[AsyncCollectionsClient] = None - self._comments: typing.Optional[AsyncCommentsClient] = None - self._contacts: typing.Optional[AsyncContactsClient] = None - self._scopes: typing.Optional[AsyncScopesClient] = None - self._delete_account: typing.Optional[AsyncDeleteAccountClient] = None - self._field_mapping: typing.Optional[AsyncFieldMappingClient] = None - self._generate_key: typing.Optional[AsyncGenerateKeyClient] = None - self._issues: typing.Optional[AsyncIssuesClient] = None - self._link_token: typing.Optional[AsyncLinkTokenClient] = None - self._linked_accounts: typing.Optional[AsyncLinkedAccountsClient] = None - self._passthrough: typing.Optional[resources_ticketing_resources_passthrough_client_AsyncPassthroughClient] = ( - None - ) - self._projects: typing.Optional[AsyncProjectsClient] = None - self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None - self._roles: typing.Optional[AsyncRolesClient] = None - self._sync_status: typing.Optional[AsyncSyncStatusClient] = None - self._force_resync: typing.Optional[AsyncForceResyncClient] = None - self._tags: typing.Optional[AsyncTagsClient] = None - self._teams: typing.Optional[AsyncTeamsClient] = None - self._tickets: typing.Optional[AsyncTicketsClient] = None - self._users: typing.Optional[AsyncUsersClient] = None - self._webhook_receivers: typing.Optional[AsyncWebhookReceiversClient] = None - - @property - def with_raw_response(self) -> AsyncRawTicketingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTicketingClient - """ - return self._raw_client - - @property - def account_details(self): - if self._account_details is None: - from .resources.account_details.client import AsyncAccountDetailsClient # noqa: E402 - - self._account_details = AsyncAccountDetailsClient(client_wrapper=self._client_wrapper) - return self._account_details - - @property - def account_token(self): - if self._account_token is None: - from .resources.account_token.client import AsyncAccountTokenClient # noqa: E402 - - self._account_token = AsyncAccountTokenClient(client_wrapper=self._client_wrapper) - return self._account_token - - @property - def accounts(self): - if self._accounts is None: - from .resources.accounts.client import AsyncAccountsClient # noqa: E402 - - self._accounts = AsyncAccountsClient(client_wrapper=self._client_wrapper) - return self._accounts - - @property - def async_passthrough(self): - if self._async_passthrough is None: - from .resources.async_passthrough.client import AsyncAsyncPassthroughClient # noqa: E402 - - self._async_passthrough = AsyncAsyncPassthroughClient(client_wrapper=self._client_wrapper) - return self._async_passthrough - - @property - def attachments(self): - if self._attachments is None: - from .resources.attachments.client import AsyncAttachmentsClient # noqa: E402 - - self._attachments = AsyncAttachmentsClient(client_wrapper=self._client_wrapper) - return self._attachments - - @property - def audit_trail(self): - if self._audit_trail is None: - from .resources.audit_trail.client import AsyncAuditTrailClient # noqa: E402 - - self._audit_trail = AsyncAuditTrailClient(client_wrapper=self._client_wrapper) - return self._audit_trail - - @property - def available_actions(self): - if self._available_actions is None: - from .resources.available_actions.client import AsyncAvailableActionsClient # noqa: E402 - - self._available_actions = AsyncAvailableActionsClient(client_wrapper=self._client_wrapper) - return self._available_actions - - @property - def collections(self): - if self._collections is None: - from .resources.collections.client import AsyncCollectionsClient # noqa: E402 - - self._collections = AsyncCollectionsClient(client_wrapper=self._client_wrapper) - return self._collections - - @property - def comments(self): - if self._comments is None: - from .resources.comments.client import AsyncCommentsClient # noqa: E402 - - self._comments = AsyncCommentsClient(client_wrapper=self._client_wrapper) - return self._comments - - @property - def contacts(self): - if self._contacts is None: - from .resources.contacts.client import AsyncContactsClient # noqa: E402 - - self._contacts = AsyncContactsClient(client_wrapper=self._client_wrapper) - return self._contacts - - @property - def scopes(self): - if self._scopes is None: - from .resources.scopes.client import AsyncScopesClient # noqa: E402 - - self._scopes = AsyncScopesClient(client_wrapper=self._client_wrapper) - return self._scopes - - @property - def delete_account(self): - if self._delete_account is None: - from .resources.delete_account.client import AsyncDeleteAccountClient # noqa: E402 - - self._delete_account = AsyncDeleteAccountClient(client_wrapper=self._client_wrapper) - return self._delete_account - - @property - def field_mapping(self): - if self._field_mapping is None: - from .resources.field_mapping.client import AsyncFieldMappingClient # noqa: E402 - - self._field_mapping = AsyncFieldMappingClient(client_wrapper=self._client_wrapper) - return self._field_mapping - - @property - def generate_key(self): - if self._generate_key is None: - from .resources.generate_key.client import AsyncGenerateKeyClient # noqa: E402 - - self._generate_key = AsyncGenerateKeyClient(client_wrapper=self._client_wrapper) - return self._generate_key - - @property - def issues(self): - if self._issues is None: - from .resources.issues.client import AsyncIssuesClient # noqa: E402 - - self._issues = AsyncIssuesClient(client_wrapper=self._client_wrapper) - return self._issues - - @property - def link_token(self): - if self._link_token is None: - from .resources.link_token.client import AsyncLinkTokenClient # noqa: E402 - - self._link_token = AsyncLinkTokenClient(client_wrapper=self._client_wrapper) - return self._link_token - - @property - def linked_accounts(self): - if self._linked_accounts is None: - from .resources.linked_accounts.client import AsyncLinkedAccountsClient # noqa: E402 - - self._linked_accounts = AsyncLinkedAccountsClient(client_wrapper=self._client_wrapper) - return self._linked_accounts - - @property - def passthrough(self): - if self._passthrough is None: - from .resources.passthrough.client import ( - AsyncPassthroughClient as resources_ticketing_resources_passthrough_client_AsyncPassthroughClient, # noqa: E402 - ) - - self._passthrough = resources_ticketing_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) - return self._passthrough - - @property - def projects(self): - if self._projects is None: - from .resources.projects.client import AsyncProjectsClient # noqa: E402 - - self._projects = AsyncProjectsClient(client_wrapper=self._client_wrapper) - return self._projects - - @property - def regenerate_key(self): - if self._regenerate_key is None: - from .resources.regenerate_key.client import AsyncRegenerateKeyClient # noqa: E402 - - self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper) - return self._regenerate_key - - @property - def roles(self): - if self._roles is None: - from .resources.roles.client import AsyncRolesClient # noqa: E402 - - self._roles = AsyncRolesClient(client_wrapper=self._client_wrapper) - return self._roles - - @property - def sync_status(self): - if self._sync_status is None: - from .resources.sync_status.client import AsyncSyncStatusClient # noqa: E402 - - self._sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper) - return self._sync_status - - @property - def force_resync(self): - if self._force_resync is None: - from .resources.force_resync.client import AsyncForceResyncClient # noqa: E402 - - self._force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper) - return self._force_resync - - @property - def tags(self): - if self._tags is None: - from .resources.tags.client import AsyncTagsClient # noqa: E402 - - self._tags = AsyncTagsClient(client_wrapper=self._client_wrapper) - return self._tags - - @property - def teams(self): - if self._teams is None: - from .resources.teams.client import AsyncTeamsClient # noqa: E402 - - self._teams = AsyncTeamsClient(client_wrapper=self._client_wrapper) - return self._teams - - @property - def tickets(self): - if self._tickets is None: - from .resources.tickets.client import AsyncTicketsClient # noqa: E402 - - self._tickets = AsyncTicketsClient(client_wrapper=self._client_wrapper) - return self._tickets - - @property - def users(self): - if self._users is None: - from .resources.users.client import AsyncUsersClient # noqa: E402 - - self._users = AsyncUsersClient(client_wrapper=self._client_wrapper) - return self._users - - @property - def webhook_receivers(self): - if self._webhook_receivers is None: - from .resources.webhook_receivers.client import AsyncWebhookReceiversClient # noqa: E402 - - self._webhook_receivers = AsyncWebhookReceiversClient(client_wrapper=self._client_wrapper) - return self._webhook_receivers diff --git a/src/merge/resources/ticketing/raw_client.py b/src/merge/resources/ticketing/raw_client.py deleted file mode 100644 index b929d799..00000000 --- a/src/merge/resources/ticketing/raw_client.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper - - -class RawTicketingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - -class AsyncRawTicketingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper diff --git a/src/merge/resources/ticketing/resources/__init__.py b/src/merge/resources/ticketing/resources/__init__.py deleted file mode 100644 index 801852a6..00000000 --- a/src/merge/resources/ticketing/resources/__init__.py +++ /dev/null @@ -1,180 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from . import ( - account_details, - account_token, - accounts, - async_passthrough, - attachments, - audit_trail, - available_actions, - collections, - comments, - contacts, - delete_account, - field_mapping, - force_resync, - generate_key, - issues, - link_token, - linked_accounts, - passthrough, - projects, - regenerate_key, - roles, - scopes, - sync_status, - tags, - teams, - tickets, - users, - webhook_receivers, - ) - from .async_passthrough import AsyncPassthroughRetrieveResponse - from .collections import CollectionsListRequestCollectionType, CollectionsViewersListRequestExpand - from .comments import CommentsListRequestExpand, CommentsRetrieveRequestExpand - from .issues import IssuesListRequestStatus - from .link_token import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage - from .linked_accounts import LinkedAccountsListRequestCategory - from .projects import ProjectsUsersListRequestExpand - from .tickets import ( - TicketsListRequestExpand, - TicketsListRequestPriority, - TicketsListRequestRemoteFields, - TicketsListRequestShowEnumOrigins, - TicketsListRequestStatus, - TicketsRetrieveRequestExpand, - TicketsRetrieveRequestRemoteFields, - TicketsRetrieveRequestShowEnumOrigins, - TicketsViewersListRequestExpand, - ) - from .users import UsersListRequestExpand, UsersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "AsyncPassthroughRetrieveResponse": ".async_passthrough", - "CollectionsListRequestCollectionType": ".collections", - "CollectionsViewersListRequestExpand": ".collections", - "CommentsListRequestExpand": ".comments", - "CommentsRetrieveRequestExpand": ".comments", - "EndUserDetailsRequestCompletedAccountInitialScreen": ".link_token", - "EndUserDetailsRequestLanguage": ".link_token", - "IssuesListRequestStatus": ".issues", - "LinkedAccountsListRequestCategory": ".linked_accounts", - "ProjectsUsersListRequestExpand": ".projects", - "TicketsListRequestExpand": ".tickets", - "TicketsListRequestPriority": ".tickets", - "TicketsListRequestRemoteFields": ".tickets", - "TicketsListRequestShowEnumOrigins": ".tickets", - "TicketsListRequestStatus": ".tickets", - "TicketsRetrieveRequestExpand": ".tickets", - "TicketsRetrieveRequestRemoteFields": ".tickets", - "TicketsRetrieveRequestShowEnumOrigins": ".tickets", - "TicketsViewersListRequestExpand": ".tickets", - "UsersListRequestExpand": ".users", - "UsersRetrieveRequestExpand": ".users", - "account_details": ".", - "account_token": ".", - "accounts": ".", - "async_passthrough": ".", - "attachments": ".", - "audit_trail": ".", - "available_actions": ".", - "collections": ".", - "comments": ".", - "contacts": ".", - "delete_account": ".", - "field_mapping": ".", - "force_resync": ".", - "generate_key": ".", - "issues": ".", - "link_token": ".", - "linked_accounts": ".", - "passthrough": ".", - "projects": ".", - "regenerate_key": ".", - "roles": ".", - "scopes": ".", - "sync_status": ".", - "tags": ".", - "teams": ".", - "tickets": ".", - "users": ".", - "webhook_receivers": ".", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "AsyncPassthroughRetrieveResponse", - "CollectionsListRequestCollectionType", - "CollectionsViewersListRequestExpand", - "CommentsListRequestExpand", - "CommentsRetrieveRequestExpand", - "EndUserDetailsRequestCompletedAccountInitialScreen", - "EndUserDetailsRequestLanguage", - "IssuesListRequestStatus", - "LinkedAccountsListRequestCategory", - "ProjectsUsersListRequestExpand", - "TicketsListRequestExpand", - "TicketsListRequestPriority", - "TicketsListRequestRemoteFields", - "TicketsListRequestShowEnumOrigins", - "TicketsListRequestStatus", - "TicketsRetrieveRequestExpand", - "TicketsRetrieveRequestRemoteFields", - "TicketsRetrieveRequestShowEnumOrigins", - "TicketsViewersListRequestExpand", - "UsersListRequestExpand", - "UsersRetrieveRequestExpand", - "account_details", - "account_token", - "accounts", - "async_passthrough", - "attachments", - "audit_trail", - "available_actions", - "collections", - "comments", - "contacts", - "delete_account", - "field_mapping", - "force_resync", - "generate_key", - "issues", - "link_token", - "linked_accounts", - "passthrough", - "projects", - "regenerate_key", - "roles", - "scopes", - "sync_status", - "tags", - "teams", - "tickets", - "users", - "webhook_receivers", -] diff --git a/src/merge/resources/ticketing/resources/account_details/__init__.py b/src/merge/resources/ticketing/resources/account_details/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/account_details/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/account_details/client.py b/src/merge/resources/ticketing/resources/account_details/client.py deleted file mode 100644 index 2a4f2856..00000000 --- a/src/merge/resources/ticketing/resources/account_details/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_details import AccountDetails -from .raw_client import AsyncRawAccountDetailsClient, RawAccountDetailsClient - - -class AccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountDetailsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.account_details.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountDetailsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountDetailsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountDetailsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AccountDetails: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountDetails - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.account_details.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/account_details/raw_client.py b/src/merge/resources/ticketing/resources/account_details/raw_client.py deleted file mode 100644 index 88f5a9ec..00000000 --- a/src/merge/resources/ticketing/resources/account_details/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_details import AccountDetails - - -class RawAccountDetailsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountDetails] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountDetailsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountDetails]: - """ - Get details for a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountDetails] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/account-details", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountDetails, - construct_type( - type_=AccountDetails, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/account_token/__init__.py b/src/merge/resources/ticketing/resources/account_token/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/account_token/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/account_token/client.py b/src/merge/resources/ticketing/resources/account_token/client.py deleted file mode 100644 index 45ac5bc2..00000000 --- a/src/merge/resources/ticketing/resources/account_token/client.py +++ /dev/null @@ -1,112 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account_token import AccountToken -from .raw_client import AsyncRawAccountTokenClient, RawAccountTokenClient - - -class AccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountTokenClient - """ - return self._raw_client - - def retrieve(self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.account_token.retrieve( - public_token="public_token", - ) - """ - _response = self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data - - -class AsyncAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountTokenClient - """ - return self._raw_client - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AccountToken: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AccountToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.account_token.retrieve( - public_token="public_token", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(public_token, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/account_token/raw_client.py b/src/merge/resources/ticketing/resources/account_token/raw_client.py deleted file mode 100644 index fecf4148..00000000 --- a/src/merge/resources/ticketing/resources/account_token/raw_client.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account_token import AccountToken - - -class RawAccountTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AccountToken] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, public_token: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AccountToken]: - """ - Returns the account token for the end user with the provided public token. - - Parameters - ---------- - public_token : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AccountToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/account-token/{jsonable_encoder(public_token)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AccountToken, - construct_type( - type_=AccountToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/accounts/__init__.py b/src/merge/resources/ticketing/resources/accounts/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/accounts/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/accounts/client.py b/src/merge/resources/ticketing/resources/accounts/client.py deleted file mode 100644 index 86947a64..00000000 --- a/src/merge/resources/ticketing/resources/accounts/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.account import Account -from ...types.paginated_account_list import PaginatedAccountList -from .raw_client import AsyncRawAccountsClient, RawAccountsClient - - -class AccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAccountsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountList: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.accounts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Account: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Account - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountList: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.accounts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Account: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Account - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.accounts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/accounts/raw_client.py b/src/merge/resources/ticketing/resources/accounts/raw_client.py deleted file mode 100644 index f0e4aa23..00000000 --- a/src/merge/resources/ticketing/resources/accounts/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.account import Account -from ...types.paginated_account_list import PaginatedAccountList - - -class RawAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountList]: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/accounts", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountList, - construct_type( - type_=PaginatedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Account]: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Account] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Account, - construct_type( - type_=Account, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountList]: - """ - Returns a list of `Account` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/accounts", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountList, - construct_type( - type_=PaginatedAccountList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Account]: - """ - Returns an `Account` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Account] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/accounts/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Account, - construct_type( - type_=Account, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/async_passthrough/__init__.py b/src/merge/resources/ticketing/resources/async_passthrough/__init__.py deleted file mode 100644 index 375c7953..00000000 --- a/src/merge/resources/ticketing/resources/async_passthrough/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/ticketing/resources/async_passthrough/client.py b/src/merge/resources/ticketing/resources/async_passthrough/client.py deleted file mode 100644 index 2b553f32..00000000 --- a/src/merge/resources/ticketing/resources/async_passthrough/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .raw_client import AsyncRawAsyncPassthroughClient, RawAsyncPassthroughClient -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAsyncPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - """ - _response = self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data - - -class AsyncAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAsyncPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAsyncPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAsyncPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughReciept: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughReciept - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.async_passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncPassthroughRetrieveResponse: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPassthroughRetrieveResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.async_passthrough.retrieve( - async_passthrough_receipt_id="async_passthrough_receipt_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(async_passthrough_receipt_id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/async_passthrough/raw_client.py b/src/merge/resources/ticketing/resources/async_passthrough/raw_client.py deleted file mode 100644 index 3e071ad4..00000000 --- a/src/merge/resources/ticketing/resources/async_passthrough/raw_client.py +++ /dev/null @@ -1,189 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.async_passthrough_reciept import AsyncPassthroughReciept -from ...types.data_passthrough_request import DataPassthroughRequest -from .types.async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughReciept] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughReciept]: - """ - Asynchronously pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughReciept] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/async-passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughReciept, - construct_type( - type_=AsyncPassthroughReciept, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, async_passthrough_receipt_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AsyncPassthroughRetrieveResponse]: - """ - Retrieves data from earlier async-passthrough POST request - - Parameters - ---------- - async_passthrough_receipt_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AsyncPassthroughRetrieveResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/async-passthrough/{jsonable_encoder(async_passthrough_receipt_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AsyncPassthroughRetrieveResponse, - construct_type( - type_=AsyncPassthroughRetrieveResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/async_passthrough/types/__init__.py b/src/merge/resources/ticketing/resources/async_passthrough/types/__init__.py deleted file mode 100644 index f6e9bec9..00000000 --- a/src/merge/resources/ticketing/resources/async_passthrough/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .async_passthrough_retrieve_response import AsyncPassthroughRetrieveResponse -_dynamic_imports: typing.Dict[str, str] = {"AsyncPassthroughRetrieveResponse": ".async_passthrough_retrieve_response"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["AsyncPassthroughRetrieveResponse"] diff --git a/src/merge/resources/ticketing/resources/async_passthrough/types/async_passthrough_retrieve_response.py b/src/merge/resources/ticketing/resources/async_passthrough/types/async_passthrough_retrieve_response.py deleted file mode 100644 index f8f87c18..00000000 --- a/src/merge/resources/ticketing/resources/async_passthrough/types/async_passthrough_retrieve_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.remote_response import RemoteResponse - -AsyncPassthroughRetrieveResponse = typing.Union[RemoteResponse, str] diff --git a/src/merge/resources/ticketing/resources/attachments/__init__.py b/src/merge/resources/ticketing/resources/attachments/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/attachments/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/attachments/client.py b/src/merge/resources/ticketing/resources/attachments/client.py deleted file mode 100644 index 8b5be527..00000000 --- a/src/merge/resources/ticketing/resources/attachments/client.py +++ /dev/null @@ -1,658 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.attachment import Attachment -from ...types.attachment_request import AttachmentRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_attachment_list import PaginatedAttachmentList -from ...types.ticketing_attachment_response import TicketingAttachmentResponse -from .raw_client import AsyncRawAttachmentsClient, RawAttachmentsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class AttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAttachmentsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAttachmentList: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return attachments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAttachmentList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.attachments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ticket_id="ticket_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_created_after=remote_created_after, - remote_id=remote_id, - ticket_id=ticket_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: AttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketingAttachmentResponse: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketingAttachmentResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import AttachmentRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.attachments.create( - is_debug_mode=True, - run_async=True, - model=AttachmentRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Attachment: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Attachment - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def download_retrieve( - self, - id: str, - *, - include_shell_data: typing.Optional[bool] = None, - mime_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.Iterator[bytes]: - """ - Returns the `File` content with the given `id` as a stream of bytes. - - Parameters - ---------- - id : str - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response. - - Returns - ------- - typing.Iterator[bytes] - - """ - with self._raw_client.download_retrieve( - id, include_shell_data=include_shell_data, mime_type=mime_type, request_options=request_options - ) as r: - yield from r.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TicketingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.attachments.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAttachmentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAttachmentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAttachmentsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAttachmentList: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return attachments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAttachmentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.attachments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ticket_id="ticket_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_created_after=remote_created_after, - remote_id=remote_id, - ticket_id=ticket_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: AttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketingAttachmentResponse: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketingAttachmentResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import AttachmentRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.attachments.create( - is_debug_mode=True, - run_async=True, - model=AttachmentRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Attachment: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Attachment - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.attachments.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def download_retrieve( - self, - id: str, - *, - include_shell_data: typing.Optional[bool] = None, - mime_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.AsyncIterator[bytes]: - """ - Returns the `File` content with the given `id` as a stream of bytes. - - Parameters - ---------- - id : str - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response. - - Returns - ------- - typing.AsyncIterator[bytes] - - """ - async with self._raw_client.download_retrieve( - id, include_shell_data=include_shell_data, mime_type=mime_type, request_options=request_options - ) as r: - async for _chunk in r.data: - yield _chunk - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TicketingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.attachments.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/attachments/raw_client.py b/src/merge/resources/ticketing/resources/attachments/raw_client.py deleted file mode 100644 index c98707ce..00000000 --- a/src/merge/resources/ticketing/resources/attachments/raw_client.py +++ /dev/null @@ -1,669 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import contextlib -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.attachment import Attachment -from ...types.attachment_request import AttachmentRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_attachment_list import PaginatedAttachmentList -from ...types.ticketing_attachment_response import TicketingAttachmentResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawAttachmentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAttachmentList]: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return attachments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAttachmentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/attachments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_id": remote_id, - "ticket_id": ticket_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAttachmentList, - construct_type( - type_=PaginatedAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: AttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TicketingAttachmentResponse]: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TicketingAttachmentResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/attachments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketingAttachmentResponse, - construct_type( - type_=TicketingAttachmentResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Attachment]: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Attachment] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Attachment, - construct_type( - type_=Attachment, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - @contextlib.contextmanager - def download_retrieve( - self, - id: str, - *, - include_shell_data: typing.Optional[bool] = None, - mime_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.Iterator[HttpResponse[typing.Iterator[bytes]]]: - """ - Returns the `File` content with the given `id` as a stream of bytes. - - Parameters - ---------- - id : str - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response. - - Returns - ------- - typing.Iterator[HttpResponse[typing.Iterator[bytes]]] - - """ - with self._client_wrapper.httpx_client.stream( - f"ticketing/v1/attachments/{jsonable_encoder(id)}/download", - method="GET", - params={ - "include_shell_data": include_shell_data, - "mime_type": mime_type, - }, - request_options=request_options, - ) as _response: - - def _stream() -> HttpResponse[typing.Iterator[bytes]]: - try: - if 200 <= _response.status_code < 300: - _chunk_size = request_options.get("chunk_size", None) if request_options is not None else None - return HttpResponse( - response=_response, data=(_chunk for _chunk in _response.iter_bytes(chunk_size=_chunk_size)) - ) - _response.read() - _response_json = _response.json() - except JSONDecodeError: - raise ApiError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.text - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - yield _stream() - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `TicketingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/attachments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAttachmentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAttachmentList]: - """ - Returns a list of `Attachment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return attachments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAttachmentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/attachments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_id": remote_id, - "ticket_id": ticket_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAttachmentList, - construct_type( - type_=PaginatedAttachmentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: AttachmentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TicketingAttachmentResponse]: - """ - Creates an `Attachment` object with the given values. - - Parameters - ---------- - model : AttachmentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TicketingAttachmentResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/attachments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketingAttachmentResponse, - construct_type( - type_=TicketingAttachmentResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["ticket"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Attachment]: - """ - Returns an `Attachment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["ticket"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Attachment] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/attachments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Attachment, - construct_type( - type_=Attachment, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - @contextlib.asynccontextmanager - async def download_retrieve( - self, - id: str, - *, - include_shell_data: typing.Optional[bool] = None, - mime_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]: - """ - Returns the `File` content with the given `id` as a stream of bytes. - - Parameters - ---------- - id : str - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - mime_type : typing.Optional[str] - If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response. - - Returns - ------- - typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]] - - """ - async with self._client_wrapper.httpx_client.stream( - f"ticketing/v1/attachments/{jsonable_encoder(id)}/download", - method="GET", - params={ - "include_shell_data": include_shell_data, - "mime_type": mime_type, - }, - request_options=request_options, - ) as _response: - - async def _stream() -> AsyncHttpResponse[typing.AsyncIterator[bytes]]: - try: - if 200 <= _response.status_code < 300: - _chunk_size = request_options.get("chunk_size", None) if request_options is not None else None - return AsyncHttpResponse( - response=_response, - data=(_chunk async for _chunk in _response.aiter_bytes(chunk_size=_chunk_size)), - ) - await _response.aread() - _response_json = _response.json() - except JSONDecodeError: - raise ApiError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.text - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - yield await _stream() - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `TicketingAttachment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/attachments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/audit_trail/__init__.py b/src/merge/resources/ticketing/resources/audit_trail/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/audit_trail/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/audit_trail/client.py b/src/merge/resources/ticketing/resources/audit_trail/client.py deleted file mode 100644 index 900cda44..00000000 --- a/src/merge/resources/ticketing/resources/audit_trail/client.py +++ /dev/null @@ -1,188 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList -from .raw_client import AsyncRawAuditTrailClient, RawAuditTrailClient - - -class AuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAuditTrailClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - """ - _response = self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data - - -class AsyncAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAuditTrailClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAuditTrailClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAuditTrailClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAuditLogEventList: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAuditLogEventList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.audit_trail.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - event_type="event_type", - page_size=1, - start_date="start_date", - user_email="user_email", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - cursor=cursor, - end_date=end_date, - event_type=event_type, - page_size=page_size, - start_date=start_date, - user_email=user_email, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/audit_trail/raw_client.py b/src/merge/resources/ticketing/resources/audit_trail/raw_client.py deleted file mode 100644 index 6960431a..00000000 --- a/src/merge/resources/ticketing/resources/audit_trail/raw_client.py +++ /dev/null @@ -1,161 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_audit_log_event_list import PaginatedAuditLogEventList - - -class RawAuditTrailClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAuditLogEventList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAuditTrailClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - event_type: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - user_email: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAuditLogEventList]: - """ - Gets a list of audit trail events. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include audit trail events that occurred before this time - - event_type : typing.Optional[str] - If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include audit trail events that occurred after this time - - user_email : typing.Optional[str] - If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAuditLogEventList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/audit-trail", - method="GET", - params={ - "cursor": cursor, - "end_date": end_date, - "event_type": event_type, - "page_size": page_size, - "start_date": start_date, - "user_email": user_email, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAuditLogEventList, - construct_type( - type_=PaginatedAuditLogEventList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/available_actions/__init__.py b/src/merge/resources/ticketing/resources/available_actions/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/available_actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/available_actions/client.py b/src/merge/resources/ticketing/resources/available_actions/client.py deleted file mode 100644 index 6f22b83e..00000000 --- a/src/merge/resources/ticketing/resources/available_actions/client.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.available_actions import AvailableActions -from .raw_client import AsyncRawAvailableActionsClient, RawAvailableActionsClient - - -class AvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawAvailableActionsClient - """ - return self._raw_client - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.available_actions.retrieve() - """ - _response = self._raw_client.retrieve(request_options=request_options) - return _response.data - - -class AsyncAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawAvailableActionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawAvailableActionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawAvailableActionsClient - """ - return self._raw_client - - async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> AvailableActions: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AvailableActions - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.available_actions.retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/available_actions/raw_client.py b/src/merge/resources/ticketing/resources/available_actions/raw_client.py deleted file mode 100644 index 49490cf5..00000000 --- a/src/merge/resources/ticketing/resources/available_actions/raw_client.py +++ /dev/null @@ -1,91 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.available_actions import AvailableActions - - -class RawAvailableActionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[AvailableActions] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawAvailableActionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[AvailableActions]: - """ - Returns a list of models and actions available for an account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[AvailableActions] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/available-actions", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - AvailableActions, - construct_type( - type_=AvailableActions, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/collections/__init__.py b/src/merge/resources/ticketing/resources/collections/__init__.py deleted file mode 100644 index 7b5531f7..00000000 --- a/src/merge/resources/ticketing/resources/collections/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import CollectionsListRequestCollectionType, CollectionsViewersListRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "CollectionsListRequestCollectionType": ".types", - "CollectionsViewersListRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CollectionsListRequestCollectionType", "CollectionsViewersListRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/collections/client.py b/src/merge/resources/ticketing/resources/collections/client.py deleted file mode 100644 index 8a54426f..00000000 --- a/src/merge/resources/ticketing/resources/collections/client.py +++ /dev/null @@ -1,636 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.collection import Collection -from ...types.paginated_collection_list import PaginatedCollectionList -from ...types.paginated_viewer_list import PaginatedViewerList -from .raw_client import AsyncRawCollectionsClient, RawCollectionsClient -from .types.collections_list_request_collection_type import CollectionsListRequestCollectionType -from .types.collections_viewers_list_request_expand import CollectionsViewersListRequestExpand - - -class CollectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCollectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCollectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCollectionsClient - """ - return self._raw_client - - def list( - self, - *, - collection_type: typing.Optional[CollectionsListRequestCollectionType] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_collection_id: typing.Optional[str] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCollectionList: - """ - Returns a list of `Collection` objects. - - Parameters - ---------- - collection_type : typing.Optional[CollectionsListRequestCollectionType] - If provided, will only return collections of the given type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return collections with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_collection_id : typing.Optional[str] - If provided, will only return collections whose parent collection matches the given id. - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCollectionList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ticketing.resources.collections import ( - CollectionsListRequestCollectionType, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.collections.list( - collection_type=CollectionsListRequestCollectionType.EMPTY, - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - parent_collection_id="parent_collection_id", - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - collection_type=collection_type, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - parent_collection_id=parent_collection_id, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def viewers_list( - self, - collection_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CollectionsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedViewerList: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Collection` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - collection_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CollectionsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedViewerList - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing.resources.collections import ( - CollectionsViewersListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.collections.viewers_list( - collection_id="collection_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CollectionsViewersListRequestExpand.TEAM, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.viewers_list( - collection_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Collection: - """ - Returns a `Collection` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Collection - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.collections.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - -class AsyncCollectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCollectionsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCollectionsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCollectionsClient - """ - return self._raw_client - - async def list( - self, - *, - collection_type: typing.Optional[CollectionsListRequestCollectionType] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_collection_id: typing.Optional[str] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCollectionList: - """ - Returns a list of `Collection` objects. - - Parameters - ---------- - collection_type : typing.Optional[CollectionsListRequestCollectionType] - If provided, will only return collections of the given type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return collections with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_collection_id : typing.Optional[str] - If provided, will only return collections whose parent collection matches the given id. - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCollectionList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ticketing.resources.collections import ( - CollectionsListRequestCollectionType, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.collections.list( - collection_type=CollectionsListRequestCollectionType.EMPTY, - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - parent_collection_id="parent_collection_id", - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - collection_type=collection_type, - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - parent_collection_id=parent_collection_id, - remote_fields=remote_fields, - remote_id=remote_id, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def viewers_list( - self, - collection_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CollectionsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedViewerList: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Collection` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - collection_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CollectionsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedViewerList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing.resources.collections import ( - CollectionsViewersListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.collections.viewers_list( - collection_id="collection_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CollectionsViewersListRequestExpand.TEAM, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.viewers_list( - collection_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Collection: - """ - Returns a `Collection` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Collection - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.collections.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/collections/raw_client.py b/src/merge/resources/ticketing/resources/collections/raw_client.py deleted file mode 100644 index d44a6e8f..00000000 --- a/src/merge/resources/ticketing/resources/collections/raw_client.py +++ /dev/null @@ -1,550 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.collection import Collection -from ...types.paginated_collection_list import PaginatedCollectionList -from ...types.paginated_viewer_list import PaginatedViewerList -from .types.collections_list_request_collection_type import CollectionsListRequestCollectionType -from .types.collections_viewers_list_request_expand import CollectionsViewersListRequestExpand - - -class RawCollectionsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - collection_type: typing.Optional[CollectionsListRequestCollectionType] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_collection_id: typing.Optional[str] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCollectionList]: - """ - Returns a list of `Collection` objects. - - Parameters - ---------- - collection_type : typing.Optional[CollectionsListRequestCollectionType] - If provided, will only return collections of the given type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return collections with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_collection_id : typing.Optional[str] - If provided, will only return collections whose parent collection matches the given id. - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCollectionList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/collections", - method="GET", - params={ - "collection_type": collection_type, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "parent_collection_id": parent_collection_id, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCollectionList, - construct_type( - type_=PaginatedCollectionList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def viewers_list( - self, - collection_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CollectionsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedViewerList]: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Collection` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - collection_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CollectionsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedViewerList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/collections/{jsonable_encoder(collection_id)}/viewers", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedViewerList, - construct_type( - type_=PaginatedViewerList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Collection]: - """ - Returns a `Collection` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Collection] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/collections/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Collection, - construct_type( - type_=Collection, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCollectionsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - collection_type: typing.Optional[CollectionsListRequestCollectionType] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_collection_id: typing.Optional[str] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - remote_id: typing.Optional[str] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCollectionList]: - """ - Returns a list of `Collection` objects. - - Parameters - ---------- - collection_type : typing.Optional[CollectionsListRequestCollectionType] - If provided, will only return collections of the given type. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return collections with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_collection_id : typing.Optional[str] - If provided, will only return collections whose parent collection matches the given id. - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCollectionList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/collections", - method="GET", - params={ - "collection_type": collection_type, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "parent_collection_id": parent_collection_id, - "remote_fields": remote_fields, - "remote_id": remote_id, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCollectionList, - construct_type( - type_=PaginatedCollectionList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def viewers_list( - self, - collection_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CollectionsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedViewerList]: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Collection` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - collection_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CollectionsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedViewerList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/collections/{jsonable_encoder(collection_id)}/viewers", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedViewerList, - construct_type( - type_=PaginatedViewerList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["parent_collection"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[typing.Literal["collection_type"]] = None, - show_enum_origins: typing.Optional[typing.Literal["collection_type"]] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Collection]: - """ - Returns a `Collection` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["parent_collection"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[typing.Literal["collection_type"]] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[typing.Literal["collection_type"]] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Collection] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/collections/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Collection, - construct_type( - type_=Collection, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/collections/types/__init__.py b/src/merge/resources/ticketing/resources/collections/types/__init__.py deleted file mode 100644 index e0b3499d..00000000 --- a/src/merge/resources/ticketing/resources/collections/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .collections_list_request_collection_type import CollectionsListRequestCollectionType - from .collections_viewers_list_request_expand import CollectionsViewersListRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "CollectionsListRequestCollectionType": ".collections_list_request_collection_type", - "CollectionsViewersListRequestExpand": ".collections_viewers_list_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CollectionsListRequestCollectionType", "CollectionsViewersListRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/collections/types/collections_list_request_collection_type.py b/src/merge/resources/ticketing/resources/collections/types/collections_list_request_collection_type.py deleted file mode 100644 index 131be5b6..00000000 --- a/src/merge/resources/ticketing/resources/collections/types/collections_list_request_collection_type.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CollectionsListRequestCollectionType(str, enum.Enum): - EMPTY = "" - LIST = "LIST" - PROJECT = "PROJECT" - - def visit( - self, - empty: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - project: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CollectionsListRequestCollectionType.EMPTY: - return empty() - if self is CollectionsListRequestCollectionType.LIST: - return list_() - if self is CollectionsListRequestCollectionType.PROJECT: - return project() diff --git a/src/merge/resources/ticketing/resources/collections/types/collections_viewers_list_request_expand.py b/src/merge/resources/ticketing/resources/collections/types/collections_viewers_list_request_expand.py deleted file mode 100644 index 1382dd6a..00000000 --- a/src/merge/resources/ticketing/resources/collections/types/collections_viewers_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CollectionsViewersListRequestExpand(str, enum.Enum): - TEAM = "team" - USER = "user" - USER_TEAM = "user,team" - - def visit( - self, - team: typing.Callable[[], T_Result], - user: typing.Callable[[], T_Result], - user_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CollectionsViewersListRequestExpand.TEAM: - return team() - if self is CollectionsViewersListRequestExpand.USER: - return user() - if self is CollectionsViewersListRequestExpand.USER_TEAM: - return user_team() diff --git a/src/merge/resources/ticketing/resources/comments/__init__.py b/src/merge/resources/ticketing/resources/comments/__init__.py deleted file mode 100644 index 1a37068c..00000000 --- a/src/merge/resources/ticketing/resources/comments/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import CommentsListRequestExpand, CommentsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "CommentsListRequestExpand": ".types", - "CommentsRetrieveRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CommentsListRequestExpand", "CommentsRetrieveRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/comments/client.py b/src/merge/resources/ticketing/resources/comments/client.py deleted file mode 100644 index 73fa1ee6..00000000 --- a/src/merge/resources/ticketing/resources/comments/client.py +++ /dev/null @@ -1,607 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.comment import Comment -from ...types.comment_request import CommentRequest -from ...types.comment_response import CommentResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_comment_list import PaginatedCommentList -from .raw_client import AsyncRawCommentsClient, RawCommentsClient -from .types.comments_list_request_expand import CommentsListRequestExpand -from .types.comments_retrieve_request_expand import CommentsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class CommentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawCommentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawCommentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawCommentsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CommentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCommentList: - """ - Returns a list of `Comment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CommentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return Comments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCommentList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ticketing.resources.comments import ( - CommentsListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.comments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CommentsListRequestExpand.CONTACT, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ticket_id="ticket_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_created_after=remote_created_after, - remote_id=remote_id, - ticket_id=ticket_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: CommentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CommentResponse: - """ - Creates a `Comment` object with the given values. - - Parameters - ---------- - model : CommentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommentResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import CommentRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.comments.create( - is_debug_mode=True, - run_async=True, - model=CommentRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CommentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Comment: - """ - Returns a `Comment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CommentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Comment - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing.resources.comments import ( - CommentsRetrieveRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.comments.retrieve( - id="id", - expand=CommentsRetrieveRequestExpand.CONTACT, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Comment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.comments.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncCommentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawCommentsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawCommentsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawCommentsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CommentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedCommentList: - """ - Returns a list of `Comment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CommentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return Comments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedCommentList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ticketing.resources.comments import ( - CommentsListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.comments.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=CommentsListRequestExpand.CONTACT, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_id="remote_id", - ticket_id="ticket_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_created_after=remote_created_after, - remote_id=remote_id, - ticket_id=ticket_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: CommentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> CommentResponse: - """ - Creates a `Comment` object with the given values. - - Parameters - ---------- - model : CommentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommentResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import CommentRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.comments.create( - is_debug_mode=True, - run_async=True, - model=CommentRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CommentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Comment: - """ - Returns a `Comment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CommentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Comment - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing.resources.comments import ( - CommentsRetrieveRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.comments.retrieve( - id="id", - expand=CommentsRetrieveRequestExpand.CONTACT, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Comment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.comments.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/comments/raw_client.py b/src/merge/resources/ticketing/resources/comments/raw_client.py deleted file mode 100644 index b4c11960..00000000 --- a/src/merge/resources/ticketing/resources/comments/raw_client.py +++ /dev/null @@ -1,555 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.comment import Comment -from ...types.comment_request import CommentRequest -from ...types.comment_response import CommentResponse -from ...types.meta_response import MetaResponse -from ...types.paginated_comment_list import PaginatedCommentList -from .types.comments_list_request_expand import CommentsListRequestExpand -from .types.comments_retrieve_request_expand import CommentsRetrieveRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawCommentsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CommentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedCommentList]: - """ - Returns a list of `Comment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CommentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return Comments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedCommentList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/comments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_id": remote_id, - "ticket_id": ticket_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCommentList, - construct_type( - type_=PaginatedCommentList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: CommentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommentResponse]: - """ - Creates a `Comment` object with the given values. - - Parameters - ---------- - model : CommentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommentResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/comments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommentResponse, - construct_type( - type_=CommentResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[CommentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Comment]: - """ - Returns a `Comment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CommentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Comment] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/comments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Comment, - construct_type( - type_=Comment, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Comment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/comments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawCommentsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - expand: typing.Optional[CommentsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_id: typing.Optional[str] = None, - ticket_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedCommentList]: - """ - Returns a list of `Comment` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[CommentsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return Comments created in the third party platform after this datetime. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - ticket_id : typing.Optional[str] - If provided, will only return comments for this ticket. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedCommentList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/comments", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_id": remote_id, - "ticket_id": ticket_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedCommentList, - construct_type( - type_=PaginatedCommentList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: CommentRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommentResponse]: - """ - Creates a `Comment` object with the given values. - - Parameters - ---------- - model : CommentRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommentResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/comments", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommentResponse, - construct_type( - type_=CommentResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[CommentsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Comment]: - """ - Returns a `Comment` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[CommentsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Comment] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/comments/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Comment, - construct_type( - type_=Comment, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Comment` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/comments/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/comments/types/__init__.py b/src/merge/resources/ticketing/resources/comments/types/__init__.py deleted file mode 100644 index 8a5f64ab..00000000 --- a/src/merge/resources/ticketing/resources/comments/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .comments_list_request_expand import CommentsListRequestExpand - from .comments_retrieve_request_expand import CommentsRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "CommentsListRequestExpand": ".comments_list_request_expand", - "CommentsRetrieveRequestExpand": ".comments_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["CommentsListRequestExpand", "CommentsRetrieveRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/comments/types/comments_list_request_expand.py b/src/merge/resources/ticketing/resources/comments/types/comments_list_request_expand.py deleted file mode 100644 index 81453337..00000000 --- a/src/merge/resources/ticketing/resources/comments/types/comments_list_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CommentsListRequestExpand(str, enum.Enum): - CONTACT = "contact" - CONTACT_TICKET = "contact,ticket" - TICKET = "ticket" - USER = "user" - USER_CONTACT = "user,contact" - USER_CONTACT_TICKET = "user,contact,ticket" - USER_TICKET = "user,ticket" - - def visit( - self, - contact: typing.Callable[[], T_Result], - contact_ticket: typing.Callable[[], T_Result], - ticket: typing.Callable[[], T_Result], - user: typing.Callable[[], T_Result], - user_contact: typing.Callable[[], T_Result], - user_contact_ticket: typing.Callable[[], T_Result], - user_ticket: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CommentsListRequestExpand.CONTACT: - return contact() - if self is CommentsListRequestExpand.CONTACT_TICKET: - return contact_ticket() - if self is CommentsListRequestExpand.TICKET: - return ticket() - if self is CommentsListRequestExpand.USER: - return user() - if self is CommentsListRequestExpand.USER_CONTACT: - return user_contact() - if self is CommentsListRequestExpand.USER_CONTACT_TICKET: - return user_contact_ticket() - if self is CommentsListRequestExpand.USER_TICKET: - return user_ticket() diff --git a/src/merge/resources/ticketing/resources/comments/types/comments_retrieve_request_expand.py b/src/merge/resources/ticketing/resources/comments/types/comments_retrieve_request_expand.py deleted file mode 100644 index e0ade3cb..00000000 --- a/src/merge/resources/ticketing/resources/comments/types/comments_retrieve_request_expand.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CommentsRetrieveRequestExpand(str, enum.Enum): - CONTACT = "contact" - CONTACT_TICKET = "contact,ticket" - TICKET = "ticket" - USER = "user" - USER_CONTACT = "user,contact" - USER_CONTACT_TICKET = "user,contact,ticket" - USER_TICKET = "user,ticket" - - def visit( - self, - contact: typing.Callable[[], T_Result], - contact_ticket: typing.Callable[[], T_Result], - ticket: typing.Callable[[], T_Result], - user: typing.Callable[[], T_Result], - user_contact: typing.Callable[[], T_Result], - user_contact_ticket: typing.Callable[[], T_Result], - user_ticket: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CommentsRetrieveRequestExpand.CONTACT: - return contact() - if self is CommentsRetrieveRequestExpand.CONTACT_TICKET: - return contact_ticket() - if self is CommentsRetrieveRequestExpand.TICKET: - return ticket() - if self is CommentsRetrieveRequestExpand.USER: - return user() - if self is CommentsRetrieveRequestExpand.USER_CONTACT: - return user_contact() - if self is CommentsRetrieveRequestExpand.USER_CONTACT_TICKET: - return user_contact_ticket() - if self is CommentsRetrieveRequestExpand.USER_TICKET: - return user_ticket() diff --git a/src/merge/resources/ticketing/resources/contacts/__init__.py b/src/merge/resources/ticketing/resources/contacts/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/contacts/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/contacts/client.py b/src/merge/resources/ticketing/resources/contacts/client.py deleted file mode 100644 index 7d63c6f3..00000000 --- a/src/merge/resources/ticketing/resources/contacts/client.py +++ /dev/null @@ -1,573 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.contact import Contact -from ...types.contact_request import ContactRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_contact_list import PaginatedContactList -from ...types.ticketing_contact_response import TicketingContactResponse -from .raw_client import AsyncRawContactsClient, RawContactsClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ContactsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawContactsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawContactsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawContactsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContactList: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContactList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.contacts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_address=email_address, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketingContactResponse: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketingContactResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import ContactRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Contact: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Contact - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.contacts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TicketingContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.contacts.meta_post_retrieve() - """ - _response = self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data - - -class AsyncContactsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawContactsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawContactsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawContactsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedContactList: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedContactList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.contacts.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_address=email_address, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketingContactResponse: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketingContactResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import ContactRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.contacts.create( - is_debug_mode=True, - run_async=True, - model=ContactRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Contact: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Contact - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.contacts.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def meta_post_retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `TicketingContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.contacts.meta_post_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/contacts/raw_client.py b/src/merge/resources/ticketing/resources/contacts/raw_client.py deleted file mode 100644 index d4f89160..00000000 --- a/src/merge/resources/ticketing/resources/contacts/raw_client.py +++ /dev/null @@ -1,539 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.contact import Contact -from ...types.contact_request import ContactRequest -from ...types.meta_response import MetaResponse -from ...types.paginated_contact_list import PaginatedContactList -from ...types.ticketing_contact_response import TicketingContactResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawContactsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedContactList]: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedContactList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/contacts", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_address": email_address, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContactList, - construct_type( - type_=PaginatedContactList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TicketingContactResponse]: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TicketingContactResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/contacts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketingContactResponse, - construct_type( - type_=TicketingContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Contact]: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Contact] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/contacts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Contact, - construct_type( - type_=Contact, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `TicketingContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/contacts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawContactsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[typing.Literal["account"]] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedContactList]: - """ - Returns a list of `Contact` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return Contacts that match this email. - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedContactList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/contacts", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_address": email_address, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedContactList, - construct_type( - type_=PaginatedContactList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: ContactRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TicketingContactResponse]: - """ - Creates a `Contact` object with the given values. - - Parameters - ---------- - model : ContactRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TicketingContactResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/contacts", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketingContactResponse, - construct_type( - type_=TicketingContactResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[typing.Literal["account"]] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Contact]: - """ - Returns a `Contact` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[typing.Literal["account"]] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Contact] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/contacts/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Contact, - construct_type( - type_=Contact, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `TicketingContact` POSTs. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/contacts/meta/post", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/delete_account/__init__.py b/src/merge/resources/ticketing/resources/delete_account/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/delete_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/delete_account/client.py b/src/merge/resources/ticketing/resources/delete_account/client.py deleted file mode 100644 index a18a8e1d..00000000 --- a/src/merge/resources/ticketing/resources/delete_account/client.py +++ /dev/null @@ -1,99 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from .raw_client import AsyncRawDeleteAccountClient, RawDeleteAccountClient - - -class DeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawDeleteAccountClient - """ - return self._raw_client - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.delete_account.delete() - """ - _response = self._raw_client.delete(request_options=request_options) - return _response.data - - -class AsyncDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawDeleteAccountClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawDeleteAccountClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawDeleteAccountClient - """ - return self._raw_client - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.delete_account.delete() - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/delete_account/raw_client.py b/src/merge/resources/ticketing/resources/delete_account/raw_client.py deleted file mode 100644 index 773ab786..00000000 --- a/src/merge/resources/ticketing/resources/delete_account/raw_client.py +++ /dev/null @@ -1,71 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions - - -class RawDeleteAccountClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return HttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawDeleteAccountClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def delete(self, *, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[None]: - """ - Delete a linked account. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/delete-account", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - return AsyncHttpResponse(response=_response, data=None) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/field_mapping/__init__.py b/src/merge/resources/ticketing/resources/field_mapping/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/field_mapping/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/field_mapping/client.py b/src/merge/resources/ticketing/resources/field_mapping/client.py deleted file mode 100644 index 8cbd3674..00000000 --- a/src/merge/resources/ticketing/resources/field_mapping/client.py +++ /dev/null @@ -1,664 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse -from .raw_client import AsyncRawFieldMappingClient, RawFieldMappingClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class FieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawFieldMappingClient - """ - return self._raw_client - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - """ - _response = self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - """ - _response = self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - """ - _response = self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - """ - _response = self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.field_mapping.target_fields_retrieve() - """ - _response = self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data - - -class AsyncFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawFieldMappingClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawFieldMappingClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawFieldMappingClient - """ - return self._raw_client - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingApiInstanceResponse: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingApiInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.field_mapping.field_mappings_retrieve( - exclude_remote_field_metadata=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_retrieve( - exclude_remote_field_metadata=exclude_remote_field_metadata, request_options=request_options - ) - return _response.data - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.field_mapping.field_mappings_create( - exclude_remote_field_metadata=True, - target_field_name="example_target_field_name", - target_field_description="this is a example description of the target field", - remote_field_traversal_path=["example_remote_field"], - remote_method="GET", - remote_url_path="/example-url-path", - common_model_name="ExampleCommonModel", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_create( - target_field_name=target_field_name, - target_field_description=target_field_description, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - common_model_name=common_model_name, - exclude_remote_field_metadata=exclude_remote_field_metadata, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> FieldMappingInstanceResponse: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.field_mapping.field_mappings_destroy( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_destroy(field_mapping_id, request_options=request_options) - return _response.data - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> FieldMappingInstanceResponse: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - FieldMappingInstanceResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.field_mapping.field_mappings_partial_update( - field_mapping_id="field_mapping_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.field_mappings_partial_update( - field_mapping_id, - remote_field_traversal_path=remote_field_traversal_path, - remote_method=remote_method, - remote_url_path=remote_url_path, - jmes_path=jmes_path, - request_options=request_options, - ) - return _response.data - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RemoteFieldApiResponse: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.field_mapping.remote_fields_retrieve( - common_models="common_models", - include_example_values="include_example_values", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_fields_retrieve( - common_models=common_models, include_example_values=include_example_values, request_options=request_options - ) - return _response.data - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> ExternalTargetFieldApiResponse: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - ExternalTargetFieldApiResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.field_mapping.target_fields_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.target_fields_retrieve(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/field_mapping/raw_client.py b/src/merge/resources/ticketing/resources/field_mapping/raw_client.py deleted file mode 100644 index 1609c8ac..00000000 --- a/src/merge/resources/ticketing/resources/field_mapping/raw_client.py +++ /dev/null @@ -1,672 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.external_target_field_api_response import ExternalTargetFieldApiResponse -from ...types.field_mapping_api_instance_response import FieldMappingApiInstanceResponse -from ...types.field_mapping_instance_response import FieldMappingInstanceResponse -from ...types.remote_field_api_response import RemoteFieldApiResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawFieldMappingClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[FieldMappingInstanceResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawFieldMappingClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def field_mappings_retrieve( - self, - *, - exclude_remote_field_metadata: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingApiInstanceResponse]: - """ - Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingApiInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/field-mappings", - method="GET", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingApiInstanceResponse, - construct_type( - type_=FieldMappingApiInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_create( - self, - *, - target_field_name: str, - target_field_description: str, - remote_field_traversal_path: typing.Sequence[typing.Optional[typing.Any]], - remote_method: str, - remote_url_path: str, - common_model_name: str, - exclude_remote_field_metadata: typing.Optional[bool] = None, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - target_field_name : str - The name of the target field you want this remote field to map to. - - target_field_description : str - The description of the target field you want this remote field to map to. - - remote_field_traversal_path : typing.Sequence[typing.Optional[typing.Any]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : str - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : str - The path of the remote endpoint where the remote field is coming from. - - common_model_name : str - The name of the Common Model that the remote field corresponds to in a given category. - - exclude_remote_field_metadata : typing.Optional[bool] - If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/field-mappings", - method="POST", - params={ - "exclude_remote_field_metadata": exclude_remote_field_metadata, - }, - json={ - "target_field_name": target_field_name, - "target_field_description": target_field_description, - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "common_model_name": common_model_name, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_destroy( - self, field_mapping_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="DELETE", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def field_mappings_partial_update( - self, - field_mapping_id: str, - *, - remote_field_traversal_path: typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] = OMIT, - remote_method: typing.Optional[str] = OMIT, - remote_url_path: typing.Optional[str] = OMIT, - jmes_path: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[FieldMappingInstanceResponse]: - """ - Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. - - Parameters - ---------- - field_mapping_id : str - - remote_field_traversal_path : typing.Optional[typing.Sequence[typing.Optional[typing.Any]]] - The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. - - remote_method : typing.Optional[str] - The method of the remote endpoint where the remote field is coming from. - - remote_url_path : typing.Optional[str] - The path of the remote endpoint where the remote field is coming from. - - jmes_path : typing.Optional[str] - JMES path to specify json query expression to be used on field mapping. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[FieldMappingInstanceResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/field-mappings/{jsonable_encoder(field_mapping_id)}", - method="PATCH", - json={ - "remote_field_traversal_path": remote_field_traversal_path, - "remote_method": remote_method, - "remote_url_path": remote_url_path, - "jmes_path": jmes_path, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - FieldMappingInstanceResponse, - construct_type( - type_=FieldMappingInstanceResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_fields_retrieve( - self, - *, - common_models: typing.Optional[str] = None, - include_example_values: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RemoteFieldApiResponse]: - """ - Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). - - Parameters - ---------- - common_models : typing.Optional[str] - A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. - - include_example_values : typing.Optional[str] - If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/remote-fields", - method="GET", - params={ - "common_models": common_models, - "include_example_values": include_example_values, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteFieldApiResponse, - construct_type( - type_=RemoteFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def target_fields_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[ExternalTargetFieldApiResponse]: - """ - Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[ExternalTargetFieldApiResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/target-fields", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - ExternalTargetFieldApiResponse, - construct_type( - type_=ExternalTargetFieldApiResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/force_resync/__init__.py b/src/merge/resources/ticketing/resources/force_resync/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/force_resync/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/force_resync/client.py b/src/merge/resources/ticketing/resources/force_resync/client.py deleted file mode 100644 index 50b87c37..00000000 --- a/src/merge/resources/ticketing/resources/force_resync/client.py +++ /dev/null @@ -1,106 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.sync_status import SyncStatus -from .raw_client import AsyncRawForceResyncClient, RawForceResyncClient - - -class ForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawForceResyncClient - """ - return self._raw_client - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.force_resync.sync_status_resync_create() - """ - _response = self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data - - -class AsyncForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawForceResyncClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawForceResyncClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawForceResyncClient - """ - return self._raw_client - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.List[SyncStatus]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[SyncStatus] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.force_resync.sync_status_resync_create() - - - asyncio.run(main()) - """ - _response = await self._raw_client.sync_status_resync_create(request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/force_resync/raw_client.py b/src/merge/resources/ticketing/resources/force_resync/raw_client.py deleted file mode 100644 index 1d964134..00000000 --- a/src/merge/resources/ticketing/resources/force_resync/raw_client.py +++ /dev/null @@ -1,93 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.sync_status import SyncStatus - - -class RawForceResyncClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[SyncStatus]] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawForceResyncClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def sync_status_resync_create( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[SyncStatus]]: - """ - Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[SyncStatus]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/sync-status/resync", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[SyncStatus], - construct_type( - type_=typing.List[SyncStatus], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/generate_key/__init__.py b/src/merge/resources/ticketing/resources/generate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/generate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/generate_key/client.py b/src/merge/resources/ticketing/resources/generate_key/client.py deleted file mode 100644 index 59a310e7..00000000 --- a/src/merge/resources/ticketing/resources/generate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawGenerateKeyClient, RawGenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class GenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawGenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.generate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawGenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawGenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawGenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.generate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/generate_key/raw_client.py b/src/merge/resources/ticketing/resources/generate_key/raw_client.py deleted file mode 100644 index d9c73292..00000000 --- a/src/merge/resources/ticketing/resources/generate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawGenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawGenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Create a remote key. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/generate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/issues/__init__.py b/src/merge/resources/ticketing/resources/issues/__init__.py deleted file mode 100644 index 3ca1094b..00000000 --- a/src/merge/resources/ticketing/resources/issues/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/ticketing/resources/issues/client.py b/src/merge/resources/ticketing/resources/issues/client.py deleted file mode 100644 index d5bd9179..00000000 --- a/src/merge/resources/ticketing/resources/issues/client.py +++ /dev/null @@ -1,378 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .raw_client import AsyncRawIssuesClient, RawIssuesClient -from .types.issues_list_request_status import IssuesListRequestStatus - - -class IssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawIssuesClient - """ - return self._raw_client - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ticketing.resources.issues import IssuesListRequestStatus - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - """ - _response = self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.issues.retrieve( - id="id", - ) - """ - _response = self._raw_client.retrieve(id, request_options=request_options) - return _response.data - - -class AsyncIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawIssuesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawIssuesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawIssuesClient - """ - return self._raw_client - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedIssueList: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedIssueList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ticketing.resources.issues import IssuesListRequestStatus - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.issues.list( - account_token="account_token", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_date="end_date", - end_user_organization_name="end_user_organization_name", - first_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - first_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - include_muted="include_muted", - integration_name="integration_name", - last_incident_time_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - last_incident_time_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - linked_account_id="linked_account_id", - page_size=1, - start_date="start_date", - status=IssuesListRequestStatus.ONGOING, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_token=account_token, - cursor=cursor, - end_date=end_date, - end_user_organization_name=end_user_organization_name, - first_incident_time_after=first_incident_time_after, - first_incident_time_before=first_incident_time_before, - include_muted=include_muted, - integration_name=integration_name, - last_incident_time_after=last_incident_time_after, - last_incident_time_before=last_incident_time_before, - linked_account_id=linked_account_id, - page_size=page_size, - start_date=start_date, - status=status, - request_options=request_options, - ) - return _response.data - - async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Issue: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Issue - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.issues.retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve(id, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/issues/raw_client.py b/src/merge/resources/ticketing/resources/issues/raw_client.py deleted file mode 100644 index 09986b0c..00000000 --- a/src/merge/resources/ticketing/resources/issues/raw_client.py +++ /dev/null @@ -1,336 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.issue import Issue -from ...types.paginated_issue_list import PaginatedIssueList -from .types.issues_list_request_status import IssuesListRequestStatus - - -class RawIssuesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedIssueList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Issue] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawIssuesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_token: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - end_date: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - first_incident_time_after: typing.Optional[dt.datetime] = None, - first_incident_time_before: typing.Optional[dt.datetime] = None, - include_muted: typing.Optional[str] = None, - integration_name: typing.Optional[str] = None, - last_incident_time_after: typing.Optional[dt.datetime] = None, - last_incident_time_before: typing.Optional[dt.datetime] = None, - linked_account_id: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - start_date: typing.Optional[str] = None, - status: typing.Optional[IssuesListRequestStatus] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedIssueList]: - """ - Gets all issues for Organization. - - Parameters - ---------- - account_token : typing.Optional[str] - - cursor : typing.Optional[str] - The pagination cursor value. - - end_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred before this time - - end_user_organization_name : typing.Optional[str] - - first_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was after this datetime. - - first_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose first incident time was before this datetime. - - include_muted : typing.Optional[str] - If true, will include muted issues - - integration_name : typing.Optional[str] - - last_incident_time_after : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was after this datetime. - - last_incident_time_before : typing.Optional[dt.datetime] - If provided, will only return issues whose last incident time was before this datetime. - - linked_account_id : typing.Optional[str] - If provided, will only include issues pertaining to the linked account passed in. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - start_date : typing.Optional[str] - If included, will only include issues whose most recent action occurred after this time - - status : typing.Optional[IssuesListRequestStatus] - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedIssueList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/issues", - method="GET", - params={ - "account_token": account_token, - "cursor": cursor, - "end_date": end_date, - "end_user_organization_name": end_user_organization_name, - "first_incident_time_after": serialize_datetime(first_incident_time_after) - if first_incident_time_after is not None - else None, - "first_incident_time_before": serialize_datetime(first_incident_time_before) - if first_incident_time_before is not None - else None, - "include_muted": include_muted, - "integration_name": integration_name, - "last_incident_time_after": serialize_datetime(last_incident_time_after) - if last_incident_time_after is not None - else None, - "last_incident_time_before": serialize_datetime(last_incident_time_before) - if last_incident_time_before is not None - else None, - "linked_account_id": linked_account_id, - "page_size": page_size, - "start_date": start_date, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedIssueList, - construct_type( - type_=PaginatedIssueList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[Issue]: - """ - Get a specific issue. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Issue] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/issues/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Issue, - construct_type( - type_=Issue, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/issues/types/__init__.py b/src/merge/resources/ticketing/resources/issues/types/__init__.py deleted file mode 100644 index 88fbf977..00000000 --- a/src/merge/resources/ticketing/resources/issues/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .issues_list_request_status import IssuesListRequestStatus -_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["IssuesListRequestStatus"] diff --git a/src/merge/resources/ticketing/resources/issues/types/issues_list_request_status.py b/src/merge/resources/ticketing/resources/issues/types/issues_list_request_status.py deleted file mode 100644 index 2bd3521e..00000000 --- a/src/merge/resources/ticketing/resources/issues/types/issues_list_request_status.py +++ /dev/null @@ -1,17 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssuesListRequestStatus(str, enum.Enum): - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssuesListRequestStatus.ONGOING: - return ongoing() - if self is IssuesListRequestStatus.RESOLVED: - return resolved() diff --git a/src/merge/resources/ticketing/resources/link_token/__init__.py b/src/merge/resources/ticketing/resources/link_token/__init__.py deleted file mode 100644 index be8c3839..00000000 --- a/src/merge/resources/ticketing/resources/link_token/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import EndUserDetailsRequestCompletedAccountInitialScreen, EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".types", - "EndUserDetailsRequestLanguage": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/ticketing/resources/link_token/client.py b/src/merge/resources/ticketing/resources/link_token/client.py deleted file mode 100644 index 9dba6f77..00000000 --- a/src/merge/resources/ticketing/resources/link_token/client.py +++ /dev/null @@ -1,290 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .raw_client import AsyncRawLinkTokenClient, RawLinkTokenClient -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class LinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkTokenClient - """ - return self._raw_client - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import CategoriesEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - """ - _response = self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkTokenClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkTokenClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkTokenClient - """ - return self._raw_client - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> LinkToken: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - LinkToken - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import CategoriesEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.link_token.create( - end_user_email_address="example@gmail.com", - end_user_organization_name="Test Organization", - end_user_origin_id="12345", - categories=[CategoriesEnum.HRIS, CategoriesEnum.ATS], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - categories=categories, - integration=integration, - link_expiry_mins=link_expiry_mins, - should_create_magic_link_url=should_create_magic_link_url, - hide_admin_magic_link=hide_admin_magic_link, - common_models=common_models, - category_common_model_scopes=category_common_model_scopes, - language=language, - are_syncs_disabled=are_syncs_disabled, - integration_specific_config=integration_specific_config, - completed_account_initial_screen=completed_account_initial_screen, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/link_token/raw_client.py b/src/merge/resources/ticketing/resources/link_token/raw_client.py deleted file mode 100644 index b93faced..00000000 --- a/src/merge/resources/ticketing/resources/link_token/raw_client.py +++ /dev/null @@ -1,273 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.categories_enum import CategoriesEnum -from ...types.common_model_scopes_body_request import CommonModelScopesBodyRequest -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from ...types.link_token import LinkToken -from .types.end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, -) -from .types.end_user_details_request_language import EndUserDetailsRequestLanguage - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawLinkTokenClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[LinkToken] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkTokenClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, - *, - end_user_email_address: str, - end_user_organization_name: str, - end_user_origin_id: str, - categories: typing.Sequence[CategoriesEnum], - integration: typing.Optional[str] = OMIT, - link_expiry_mins: typing.Optional[int] = OMIT, - should_create_magic_link_url: typing.Optional[bool] = OMIT, - hide_admin_magic_link: typing.Optional[bool] = OMIT, - common_models: typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] = OMIT, - category_common_model_scopes: typing.Optional[ - typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]] - ] = OMIT, - language: typing.Optional[EndUserDetailsRequestLanguage] = OMIT, - are_syncs_disabled: typing.Optional[bool] = OMIT, - integration_specific_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, - completed_account_initial_screen: typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[LinkToken]: - """ - Creates a link token to be used when linking a new end user. - - Parameters - ---------- - end_user_email_address : str - Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. - - end_user_organization_name : str - Your end user's organization. - - end_user_origin_id : str - This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. - - categories : typing.Sequence[CategoriesEnum] - The integration categories to show in Merge Link. - - integration : typing.Optional[str] - The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. - - link_expiry_mins : typing.Optional[int] - An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. - - should_create_magic_link_url : typing.Optional[bool] - Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - hide_admin_magic_link : typing.Optional[bool] - Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. - - common_models : typing.Optional[typing.Sequence[CommonModelScopesBodyRequest]] - An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. - - category_common_model_scopes : typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[IndividualCommonModelScopeDeserializerRequest]]]] - When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. - - language : typing.Optional[EndUserDetailsRequestLanguage] - The following subset of IETF language tags can be used to configure localization. - - * `en` - en - * `de` - de - - are_syncs_disabled : typing.Optional[bool] - The boolean that indicates whether initial, periodic, and force syncs will be disabled. - - integration_specific_config : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] - A JSON object containing integration-specific configuration options. - - completed_account_initial_screen : typing.Optional[EndUserDetailsRequestCompletedAccountInitialScreen] - When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - - * `SELECTIVE_SYNC` - SELECTIVE_SYNC - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[LinkToken] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/link-token", - method="POST", - json={ - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "categories": categories, - "integration": integration, - "link_expiry_mins": link_expiry_mins, - "should_create_magic_link_url": should_create_magic_link_url, - "hide_admin_magic_link": hide_admin_magic_link, - "common_models": common_models, - "category_common_model_scopes": category_common_model_scopes, - "language": language, - "are_syncs_disabled": are_syncs_disabled, - "integration_specific_config": integration_specific_config, - "completed_account_initial_screen": completed_account_initial_screen, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - LinkToken, - construct_type( - type_=LinkToken, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/link_token/types/__init__.py b/src/merge/resources/ticketing/resources/link_token/types/__init__.py deleted file mode 100644 index 55cc1d4e..00000000 --- a/src/merge/resources/ticketing/resources/link_token/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .end_user_details_request_completed_account_initial_screen import ( - EndUserDetailsRequestCompletedAccountInitialScreen, - ) - from .end_user_details_request_language import EndUserDetailsRequestLanguage -_dynamic_imports: typing.Dict[str, str] = { - "EndUserDetailsRequestCompletedAccountInitialScreen": ".end_user_details_request_completed_account_initial_screen", - "EndUserDetailsRequestLanguage": ".end_user_details_request_language", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["EndUserDetailsRequestCompletedAccountInitialScreen", "EndUserDetailsRequestLanguage"] diff --git a/src/merge/resources/ticketing/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py b/src/merge/resources/ticketing/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py deleted file mode 100644 index 0c5d586d..00000000 --- a/src/merge/resources/ticketing/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - -EndUserDetailsRequestCompletedAccountInitialScreen = typing.Union[CompletedAccountInitialScreenEnum, str] diff --git a/src/merge/resources/ticketing/resources/link_token/types/end_user_details_request_language.py b/src/merge/resources/ticketing/resources/link_token/types/end_user_details_request_language.py deleted file mode 100644 index 65c4b44a..00000000 --- a/src/merge/resources/ticketing/resources/link_token/types/end_user_details_request_language.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from ....types.language_enum import LanguageEnum - -EndUserDetailsRequestLanguage = typing.Union[LanguageEnum, str] diff --git a/src/merge/resources/ticketing/resources/linked_accounts/__init__.py b/src/merge/resources/ticketing/resources/linked_accounts/__init__.py deleted file mode 100644 index 0b9e42b4..00000000 --- a/src/merge/resources/ticketing/resources/linked_accounts/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/ticketing/resources/linked_accounts/client.py b/src/merge/resources/ticketing/resources/linked_accounts/client.py deleted file mode 100644 index 59ed7936..00000000 --- a/src/merge/resources/ticketing/resources/linked_accounts/client.py +++ /dev/null @@ -1,293 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .raw_client import AsyncRawLinkedAccountsClient, RawLinkedAccountsClient -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class LinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawLinkedAccountsClient - """ - return self._raw_client - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - """ - _response = self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data - - -class AsyncLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawLinkedAccountsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawLinkedAccountsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawLinkedAccountsClient - """ - return self._raw_client - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedAccountDetailsAndActionsList: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedAccountDetailsAndActionsList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing.resources.linked_accounts import ( - LinkedAccountsListRequestCategory, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.linked_accounts.list( - category=LinkedAccountsListRequestCategory.ACCOUNTING, - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - end_user_email_address="end_user_email_address", - end_user_organization_name="end_user_organization_name", - end_user_origin_id="end_user_origin_id", - end_user_origin_ids="end_user_origin_ids", - id="id", - ids="ids", - include_duplicates=True, - integration_name="integration_name", - is_test_account="is_test_account", - page_size=1, - status="status", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - category=category, - cursor=cursor, - end_user_email_address=end_user_email_address, - end_user_organization_name=end_user_organization_name, - end_user_origin_id=end_user_origin_id, - end_user_origin_ids=end_user_origin_ids, - id=id, - ids=ids, - include_duplicates=include_duplicates, - integration_name=integration_name, - is_test_account=is_test_account, - page_size=page_size, - status=status, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/linked_accounts/raw_client.py b/src/merge/resources/ticketing/resources/linked_accounts/raw_client.py deleted file mode 100644 index 5526d4f8..00000000 --- a/src/merge/resources/ticketing/resources/linked_accounts/raw_client.py +++ /dev/null @@ -1,246 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList -from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory - - -class RawLinkedAccountsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawLinkedAccountsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - category: typing.Optional[LinkedAccountsListRequestCategory] = None, - cursor: typing.Optional[str] = None, - end_user_email_address: typing.Optional[str] = None, - end_user_organization_name: typing.Optional[str] = None, - end_user_origin_id: typing.Optional[str] = None, - end_user_origin_ids: typing.Optional[str] = None, - id: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_duplicates: typing.Optional[bool] = None, - integration_name: typing.Optional[str] = None, - is_test_account: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - status: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedAccountDetailsAndActionsList]: - """ - List linked accounts for your organization. - - Parameters - ---------- - category : typing.Optional[LinkedAccountsListRequestCategory] - Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - - cursor : typing.Optional[str] - The pagination cursor value. - - end_user_email_address : typing.Optional[str] - If provided, will only return linked accounts associated with the given email address. - - end_user_organization_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given organization name. - - end_user_origin_id : typing.Optional[str] - If provided, will only return linked accounts associated with the given origin ID. - - end_user_origin_ids : typing.Optional[str] - Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. - - id : typing.Optional[str] - - ids : typing.Optional[str] - Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. - - include_duplicates : typing.Optional[bool] - If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. - - integration_name : typing.Optional[str] - If provided, will only return linked accounts associated with the given integration name. - - is_test_account : typing.Optional[str] - If included, will only include test linked accounts. If not included, will only include non-test linked accounts. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - status : typing.Optional[str] - Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedAccountDetailsAndActionsList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/linked-accounts", - method="GET", - params={ - "category": category, - "cursor": cursor, - "end_user_email_address": end_user_email_address, - "end_user_organization_name": end_user_organization_name, - "end_user_origin_id": end_user_origin_id, - "end_user_origin_ids": end_user_origin_ids, - "id": id, - "ids": ids, - "include_duplicates": include_duplicates, - "integration_name": integration_name, - "is_test_account": is_test_account, - "page_size": page_size, - "status": status, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedAccountDetailsAndActionsList, - construct_type( - type_=PaginatedAccountDetailsAndActionsList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/linked_accounts/types/__init__.py b/src/merge/resources/ticketing/resources/linked_accounts/types/__init__.py deleted file mode 100644 index a28f38cc..00000000 --- a/src/merge/resources/ticketing/resources/linked_accounts/types/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory -_dynamic_imports: typing.Dict[str, str] = { - "LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category" -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["LinkedAccountsListRequestCategory"] diff --git a/src/merge/resources/ticketing/resources/linked_accounts/types/linked_accounts_list_request_category.py b/src/merge/resources/ticketing/resources/linked_accounts/types/linked_accounts_list_request_category.py deleted file mode 100644 index bd873ea8..00000000 --- a/src/merge/resources/ticketing/resources/linked_accounts/types/linked_accounts_list_request_category.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LinkedAccountsListRequestCategory(str, enum.Enum): - ACCOUNTING = "accounting" - ATS = "ats" - CRM = "crm" - FILESTORAGE = "filestorage" - HRIS = "hris" - MKTG = "mktg" - TICKETING = "ticketing" - - def visit( - self, - accounting: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - hris: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LinkedAccountsListRequestCategory.ACCOUNTING: - return accounting() - if self is LinkedAccountsListRequestCategory.ATS: - return ats() - if self is LinkedAccountsListRequestCategory.CRM: - return crm() - if self is LinkedAccountsListRequestCategory.FILESTORAGE: - return filestorage() - if self is LinkedAccountsListRequestCategory.HRIS: - return hris() - if self is LinkedAccountsListRequestCategory.MKTG: - return mktg() - if self is LinkedAccountsListRequestCategory.TICKETING: - return ticketing() diff --git a/src/merge/resources/ticketing/resources/passthrough/__init__.py b/src/merge/resources/ticketing/resources/passthrough/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/passthrough/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/passthrough/client.py b/src/merge/resources/ticketing/resources/passthrough/client.py deleted file mode 100644 index 297798ec..00000000 --- a/src/merge/resources/ticketing/resources/passthrough/client.py +++ /dev/null @@ -1,126 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse -from .raw_client import AsyncRawPassthroughClient, RawPassthroughClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class PassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawPassthroughClient - """ - return self._raw_client - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import DataPassthroughRequest, MethodEnum - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - """ - _response = self._raw_client.create(request=request, request_options=request_options) - return _response.data - - -class AsyncPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawPassthroughClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawPassthroughClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawPassthroughClient - """ - return self._raw_client - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> RemoteResponse: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import DataPassthroughRequest, MethodEnum - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.passthrough.create( - request=DataPassthroughRequest( - method=MethodEnum.GET, - path="/scooters", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(request=request, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/passthrough/raw_client.py b/src/merge/resources/ticketing/resources/passthrough/raw_client.py deleted file mode 100644 index a81c9a2d..00000000 --- a/src/merge/resources/ticketing/resources/passthrough/raw_client.py +++ /dev/null @@ -1,111 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.data_passthrough_request import DataPassthroughRequest -from ...types.remote_response import RemoteResponse - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawPassthroughClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawPassthroughClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, request: DataPassthroughRequest, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteResponse]: - """ - Pull data from an endpoint not currently supported by Merge. - - Parameters - ---------- - request : DataPassthroughRequest - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/passthrough", - method="POST", - json=request, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteResponse, - construct_type( - type_=RemoteResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/projects/__init__.py b/src/merge/resources/ticketing/resources/projects/__init__.py deleted file mode 100644 index 177f19e3..00000000 --- a/src/merge/resources/ticketing/resources/projects/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ProjectsUsersListRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"ProjectsUsersListRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ProjectsUsersListRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/projects/client.py b/src/merge/resources/ticketing/resources/projects/client.py deleted file mode 100644 index 133cfa0d..00000000 --- a/src/merge/resources/ticketing/resources/projects/client.py +++ /dev/null @@ -1,533 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_project_list import PaginatedProjectList -from ...types.paginated_user_list import PaginatedUserList -from ...types.project import Project -from .raw_client import AsyncRawProjectsClient, RawProjectsClient -from .types.projects_users_list_request_expand import ProjectsUsersListRequestExpand - - -class ProjectsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawProjectsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawProjectsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawProjectsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedProjectList: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedProjectList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.projects.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Project: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Project - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.projects.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - def users_list( - self, - parent_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsUsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - parent_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsUsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing.resources.projects import ( - ProjectsUsersListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.projects.users_list( - parent_id="parent_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ProjectsUsersListRequestExpand.ROLES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.users_list( - parent_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncProjectsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawProjectsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawProjectsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawProjectsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedProjectList: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedProjectList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.projects.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Project: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Project - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.projects.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - async def users_list( - self, - parent_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsUsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - parent_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsUsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing.resources.projects import ( - ProjectsUsersListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.projects.users_list( - parent_id="parent_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=ProjectsUsersListRequestExpand.ROLES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.users_list( - parent_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/projects/raw_client.py b/src/merge/resources/ticketing/resources/projects/raw_client.py deleted file mode 100644 index ccc990a5..00000000 --- a/src/merge/resources/ticketing/resources/projects/raw_client.py +++ /dev/null @@ -1,459 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_project_list import PaginatedProjectList -from ...types.paginated_user_list import PaginatedUserList -from ...types.project import Project -from .types.projects_users_list_request_expand import ProjectsUsersListRequestExpand - - -class RawProjectsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedProjectList]: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedProjectList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/projects", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedProjectList, - construct_type( - type_=PaginatedProjectList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Project]: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Project] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/projects/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Project, - construct_type( - type_=Project, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def users_list( - self, - parent_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsUsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - parent_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsUsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedUserList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/projects/{jsonable_encoder(parent_id)}/users", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawProjectsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedProjectList]: - """ - Returns a list of `Project` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedProjectList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/projects", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedProjectList, - construct_type( - type_=PaginatedProjectList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Project]: - """ - Returns a `Project` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Project] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/projects/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Project, - construct_type( - type_=Project, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def users_list( - self, - parent_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[ProjectsUsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - parent_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[ProjectsUsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedUserList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/projects/{jsonable_encoder(parent_id)}/users", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/projects/types/__init__.py b/src/merge/resources/ticketing/resources/projects/types/__init__.py deleted file mode 100644 index ec7542f3..00000000 --- a/src/merge/resources/ticketing/resources/projects/types/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .projects_users_list_request_expand import ProjectsUsersListRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"ProjectsUsersListRequestExpand": ".projects_users_list_request_expand"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["ProjectsUsersListRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/projects/types/projects_users_list_request_expand.py b/src/merge/resources/ticketing/resources/projects/types/projects_users_list_request_expand.py deleted file mode 100644 index e1d7fbd6..00000000 --- a/src/merge/resources/ticketing/resources/projects/types/projects_users_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ProjectsUsersListRequestExpand(str, enum.Enum): - ROLES = "roles" - TEAMS = "teams" - TEAMS_ROLES = "teams,roles" - - def visit( - self, - roles: typing.Callable[[], T_Result], - teams: typing.Callable[[], T_Result], - teams_roles: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ProjectsUsersListRequestExpand.ROLES: - return roles() - if self is ProjectsUsersListRequestExpand.TEAMS: - return teams() - if self is ProjectsUsersListRequestExpand.TEAMS_ROLES: - return teams_roles() diff --git a/src/merge/resources/ticketing/resources/regenerate_key/__init__.py b/src/merge/resources/ticketing/resources/regenerate_key/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/regenerate_key/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/regenerate_key/client.py b/src/merge/resources/ticketing/resources/regenerate_key/client.py deleted file mode 100644 index 9deb7b9d..00000000 --- a/src/merge/resources/ticketing/resources/regenerate_key/client.py +++ /dev/null @@ -1,115 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.remote_key import RemoteKey -from .raw_client import AsyncRawRegenerateKeyClient, RawRegenerateKeyClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRegenerateKeyClient - """ - return self._raw_client - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.regenerate_key.create( - name="Remote Deployment Key 1", - ) - """ - _response = self._raw_client.create(name=name, request_options=request_options) - return _response.data - - -class AsyncRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRegenerateKeyClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRegenerateKeyClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRegenerateKeyClient - """ - return self._raw_client - - async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> RemoteKey: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RemoteKey - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.regenerate_key.create( - name="Remote Deployment Key 1", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create(name=name, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/regenerate_key/raw_client.py b/src/merge/resources/ticketing/resources/regenerate_key/raw_client.py deleted file mode 100644 index 0b07bbab..00000000 --- a/src/merge/resources/ticketing/resources/regenerate_key/raw_client.py +++ /dev/null @@ -1,114 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.remote_key import RemoteKey - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRegenerateKeyClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RemoteKey] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRegenerateKeyClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def create( - self, *, name: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[RemoteKey]: - """ - Exchange remote keys. - - Parameters - ---------- - name : str - The name of the remote key - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RemoteKey] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/regenerate-key", - method="POST", - json={ - "name": name, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RemoteKey, - construct_type( - type_=RemoteKey, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/roles/__init__.py b/src/merge/resources/ticketing/resources/roles/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/roles/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/roles/client.py b/src/merge/resources/ticketing/resources/roles/client.py deleted file mode 100644 index 69432e4c..00000000 --- a/src/merge/resources/ticketing/resources/roles/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_role_list import PaginatedRoleList -from ...types.role import Role -from .raw_client import AsyncRawRolesClient, RawRolesClient - - -class RolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRolesClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRoleList: - """ - Returns a list of `Role` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRoleList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.roles.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Role: - """ - Returns a `Role` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Role - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.roles.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRolesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRolesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRolesClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRoleList: - """ - Returns a list of `Role` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRoleList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.roles.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Role: - """ - Returns a `Role` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Role - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.roles.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/roles/raw_client.py b/src/merge/resources/ticketing/resources/roles/raw_client.py deleted file mode 100644 index 5f40ef03..00000000 --- a/src/merge/resources/ticketing/resources/roles/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_role_list import PaginatedRoleList -from ...types.role import Role - - -class RawRolesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRoleList]: - """ - Returns a list of `Role` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRoleList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/roles", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRoleList, - construct_type( - type_=PaginatedRoleList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Role]: - """ - Returns a `Role` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Role] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/roles/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Role, - construct_type( - type_=Role, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawRolesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRoleList]: - """ - Returns a list of `Role` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRoleList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/roles", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRoleList, - construct_type( - type_=PaginatedRoleList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Role]: - """ - Returns a `Role` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Role] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/roles/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Role, - construct_type( - type_=Role, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/scopes/__init__.py b/src/merge/resources/ticketing/resources/scopes/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/scopes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/scopes/client.py b/src/merge/resources/ticketing/resources/scopes/client.py deleted file mode 100644 index 78f6eb5f..00000000 --- a/src/merge/resources/ticketing/resources/scopes/client.py +++ /dev/null @@ -1,320 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest -from .raw_client import AsyncRawScopesClient, RawScopesClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class ScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawScopesClient - """ - return self._raw_client - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.scopes.default_scopes_retrieve() - """ - _response = self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.scopes.linked_account_scopes_retrieve() - """ - _response = self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - """ - _response = self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data - - -class AsyncScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawScopesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawScopesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawScopesClient - """ - return self._raw_client - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.scopes.default_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.default_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> CommonModelScopeApi: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.scopes.linked_account_scopes_retrieve() - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_retrieve(request_options=request_options) - return _response.data - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> CommonModelScopeApi: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - CommonModelScopeApi - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import ( - FieldPermissionDeserializerRequest, - IndividualCommonModelScopeDeserializerRequest, - ModelPermissionDeserializerRequest, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.scopes.linked_account_scopes_create( - common_models=[ - IndividualCommonModelScopeDeserializerRequest( - model_name="Employee", - model_permissions={ - "READ": ModelPermissionDeserializerRequest( - is_enabled=True, - ), - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ), - }, - field_permissions=FieldPermissionDeserializerRequest( - enabled_fields=["avatar", "home_location"], - disabled_fields=["work_location"], - ), - ), - IndividualCommonModelScopeDeserializerRequest( - model_name="Benefit", - model_permissions={ - "WRITE": ModelPermissionDeserializerRequest( - is_enabled=False, - ) - }, - ), - ], - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.linked_account_scopes_create( - common_models=common_models, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/scopes/raw_client.py b/src/merge/resources/ticketing/resources/scopes/raw_client.py deleted file mode 100644 index 0088cc62..00000000 --- a/src/merge/resources/ticketing/resources/scopes/raw_client.py +++ /dev/null @@ -1,267 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.common_model_scope_api import CommonModelScopeApi -from ...types.individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawScopesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[CommonModelScopeApi] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawScopesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def default_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/default-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_retrieve( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/linked-account-scopes", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def linked_account_scopes_create( - self, - *, - common_models: typing.Sequence[IndividualCommonModelScopeDeserializerRequest], - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[CommonModelScopeApi]: - """ - Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) - - Parameters - ---------- - common_models : typing.Sequence[IndividualCommonModelScopeDeserializerRequest] - The common models you want to update the scopes for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[CommonModelScopeApi] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/linked-account-scopes", - method="POST", - json={ - "common_models": common_models, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - CommonModelScopeApi, - construct_type( - type_=CommonModelScopeApi, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/sync_status/__init__.py b/src/merge/resources/ticketing/resources/sync_status/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/sync_status/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/sync_status/client.py b/src/merge/resources/ticketing/resources/sync_status/client.py deleted file mode 100644 index 9a69dc0c..00000000 --- a/src/merge/resources/ticketing/resources/sync_status/client.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_sync_status_list import PaginatedSyncStatusList -from .raw_client import AsyncRawSyncStatusClient, RawSyncStatusClient - - -class SyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawSyncStatusClient - """ - return self._raw_client - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - """ - _response = self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data - - -class AsyncSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawSyncStatusClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawSyncStatusClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawSyncStatusClient - """ - return self._raw_client - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedSyncStatusList: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedSyncStatusList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.sync_status.list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(cursor=cursor, page_size=page_size, request_options=request_options) - return _response.data diff --git a/src/merge/resources/ticketing/resources/sync_status/raw_client.py b/src/merge/resources/ticketing/resources/sync_status/raw_client.py deleted file mode 100644 index 0052fc35..00000000 --- a/src/merge/resources/ticketing/resources/sync_status/raw_client.py +++ /dev/null @@ -1,121 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_sync_status_list import PaginatedSyncStatusList - - -class RawSyncStatusClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedSyncStatusList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawSyncStatusClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - cursor: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedSyncStatusList]: - """ - Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedSyncStatusList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/sync-status", - method="GET", - params={ - "cursor": cursor, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedSyncStatusList, - construct_type( - type_=PaginatedSyncStatusList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/tags/__init__.py b/src/merge/resources/ticketing/resources/tags/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/tags/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/tags/client.py b/src/merge/resources/ticketing/resources/tags/client.py deleted file mode 100644 index c6184fb8..00000000 --- a/src/merge/resources/ticketing/resources/tags/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_tag_list import PaginatedTagList -from ...types.tag import Tag -from .raw_client import AsyncRawTagsClient, RawTagsClient - - -class TagsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTagsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTagsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTagsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTagList: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTagList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tags.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Tag: - """ - Returns a `Tag` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Tag - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tags.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncTagsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTagsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTagsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTagsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTagList: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTagList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tags.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Tag: - """ - Returns a `Tag` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Tag - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tags.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/tags/raw_client.py b/src/merge/resources/ticketing/resources/tags/raw_client.py deleted file mode 100644 index 8a283c5b..00000000 --- a/src/merge/resources/ticketing/resources/tags/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_tag_list import PaginatedTagList -from ...types.tag import Tag - - -class RawTagsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTagList]: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTagList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/tags", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTagList, - construct_type( - type_=PaginatedTagList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Tag]: - """ - Returns a `Tag` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Tag] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/tags/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Tag, - construct_type( - type_=Tag, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTagsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTagList]: - """ - Returns a list of `Tag` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTagList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/tags", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTagList, - construct_type( - type_=PaginatedTagList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Tag]: - """ - Returns a `Tag` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Tag] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/tags/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Tag, - construct_type( - type_=Tag, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/teams/__init__.py b/src/merge/resources/ticketing/resources/teams/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/teams/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/teams/client.py b/src/merge/resources/ticketing/resources/teams/client.py deleted file mode 100644 index 79af0f1c..00000000 --- a/src/merge/resources/ticketing/resources/teams/client.py +++ /dev/null @@ -1,367 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_team_list import PaginatedTeamList -from ...types.team import Team -from .raw_client import AsyncRawTeamsClient, RawTeamsClient - - -class TeamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTeamsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTeamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTeamsClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTeamList: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTeamList - - - Examples - -------- - import datetime - - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.teams.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Team: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Team - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.teams.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncTeamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTeamsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTeamsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTeamsClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTeamList: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTeamList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.teams.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Team: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Team - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.teams.retrieve( - id="id", - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/teams/raw_client.py b/src/merge/resources/ticketing/resources/teams/raw_client.py deleted file mode 100644 index 05f6264d..00000000 --- a/src/merge/resources/ticketing/resources/teams/raw_client.py +++ /dev/null @@ -1,311 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_team_list import PaginatedTeamList -from ...types.team import Team - - -class RawTeamsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTeamList]: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTeamList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/teams", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTeamList, - construct_type( - type_=PaginatedTeamList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Team]: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Team] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/teams/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Team, - construct_type( - type_=Team, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTeamsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTeamList]: - """ - Returns a list of `Team` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTeamList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/teams", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTeamList, - construct_type( - type_=PaginatedTeamList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Team]: - """ - Returns a `Team` object with the given `id`. - - Parameters - ---------- - id : str - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Team] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/teams/{jsonable_encoder(id)}", - method="GET", - params={ - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Team, - construct_type( - type_=Team, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/tickets/__init__.py b/src/merge/resources/ticketing/resources/tickets/__init__.py deleted file mode 100644 index 564c5c59..00000000 --- a/src/merge/resources/ticketing/resources/tickets/__init__.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import ( - TicketsListRequestExpand, - TicketsListRequestPriority, - TicketsListRequestRemoteFields, - TicketsListRequestShowEnumOrigins, - TicketsListRequestStatus, - TicketsRetrieveRequestExpand, - TicketsRetrieveRequestRemoteFields, - TicketsRetrieveRequestShowEnumOrigins, - TicketsViewersListRequestExpand, - ) -_dynamic_imports: typing.Dict[str, str] = { - "TicketsListRequestExpand": ".types", - "TicketsListRequestPriority": ".types", - "TicketsListRequestRemoteFields": ".types", - "TicketsListRequestShowEnumOrigins": ".types", - "TicketsListRequestStatus": ".types", - "TicketsRetrieveRequestExpand": ".types", - "TicketsRetrieveRequestRemoteFields": ".types", - "TicketsRetrieveRequestShowEnumOrigins": ".types", - "TicketsViewersListRequestExpand": ".types", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "TicketsListRequestExpand", - "TicketsListRequestPriority", - "TicketsListRequestRemoteFields", - "TicketsListRequestShowEnumOrigins", - "TicketsListRequestStatus", - "TicketsRetrieveRequestExpand", - "TicketsRetrieveRequestRemoteFields", - "TicketsRetrieveRequestShowEnumOrigins", - "TicketsViewersListRequestExpand", -] diff --git a/src/merge/resources/ticketing/resources/tickets/client.py b/src/merge/resources/ticketing/resources/tickets/client.py deleted file mode 100644 index f23cd724..00000000 --- a/src/merge/resources/ticketing/resources/tickets/client.py +++ /dev/null @@ -1,1523 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.meta_response import MetaResponse -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_ticket_list import PaginatedTicketList -from ...types.paginated_viewer_list import PaginatedViewerList -from ...types.patched_ticket_request import PatchedTicketRequest -from ...types.ticket import Ticket -from ...types.ticket_request import TicketRequest -from ...types.ticket_response import TicketResponse -from .raw_client import AsyncRawTicketsClient, RawTicketsClient -from .types.tickets_list_request_expand import TicketsListRequestExpand -from .types.tickets_list_request_priority import TicketsListRequestPriority -from .types.tickets_list_request_remote_fields import TicketsListRequestRemoteFields -from .types.tickets_list_request_show_enum_origins import TicketsListRequestShowEnumOrigins -from .types.tickets_list_request_status import TicketsListRequestStatus -from .types.tickets_retrieve_request_expand import TicketsRetrieveRequestExpand -from .types.tickets_retrieve_request_remote_fields import TicketsRetrieveRequestRemoteFields -from .types.tickets_retrieve_request_show_enum_origins import TicketsRetrieveRequestShowEnumOrigins -from .types.tickets_viewers_list_request_expand import TicketsViewersListRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class TicketsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawTicketsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawTicketsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawTicketsClient - """ - return self._raw_client - - def list( - self, - *, - account_id: typing.Optional[str] = None, - assignee_ids: typing.Optional[str] = None, - collection_ids: typing.Optional[str] = None, - completed_after: typing.Optional[dt.datetime] = None, - completed_before: typing.Optional[dt.datetime] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - creator_ids: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - due_after: typing.Optional[dt.datetime] = None, - due_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TicketsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_ticket_id: typing.Optional[str] = None, - priority: typing.Optional[TicketsListRequestPriority] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_created_before: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[TicketsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - remote_updated_after: typing.Optional[dt.datetime] = None, - remote_updated_before: typing.Optional[dt.datetime] = None, - show_enum_origins: typing.Optional[TicketsListRequestShowEnumOrigins] = None, - status: typing.Optional[TicketsListRequestStatus] = None, - tags: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - ticket_url: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTicketList: - """ - Returns a list of `Ticket` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return tickets for this account. - - assignee_ids : typing.Optional[str] - If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. - - collection_ids : typing.Optional[str] - If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. - - completed_after : typing.Optional[dt.datetime] - If provided, will only return tickets completed after this datetime. - - completed_before : typing.Optional[dt.datetime] - If provided, will only return tickets completed before this datetime. - - contact_id : typing.Optional[str] - If provided, will only return tickets for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return tickets created by this creator_id. - - creator_ids : typing.Optional[str] - If provided, will only return tickets created by the creator_ids; multiple creator_ids can be separated by commas. - - cursor : typing.Optional[str] - The pagination cursor value. - - due_after : typing.Optional[dt.datetime] - If provided, will only return tickets due after this datetime. - - due_before : typing.Optional[dt.datetime] - If provided, will only return tickets due before this datetime. - - expand : typing.Optional[TicketsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tickets with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_ticket_id : typing.Optional[str] - If provided, will only return sub tickets of the parent_ticket_id. - - priority : typing.Optional[TicketsListRequestPriority] - If provided, will only return tickets of this priority. - - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform after this datetime. - - remote_created_before : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform before this datetime. - - remote_fields : typing.Optional[TicketsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - remote_updated_after : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform after this datetime. - - remote_updated_before : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform before this datetime. - - show_enum_origins : typing.Optional[TicketsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TicketsListRequestStatus] - If provided, will only return tickets of this status. - - tags : typing.Optional[str] - If provided, will only return tickets matching the tags; multiple tags can be separated by commas. - - ticket_type : typing.Optional[str] - If provided, will only return tickets of this type. - - ticket_url : typing.Optional[str] - If provided, will only return tickets where the URL matches or contains the substring - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTicketList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ticketing.resources.tickets import ( - TicketsListRequestExpand, - TicketsListRequestPriority, - TicketsListRequestRemoteFields, - TicketsListRequestShowEnumOrigins, - TicketsListRequestStatus, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.list( - account_id="account_id", - assignee_ids="assignee_ids", - collection_ids="collection_ids", - completed_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - completed_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - creator_id="creator_id", - creator_ids="creator_ids", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - due_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - due_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=TicketsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - parent_ticket_id="parent_ticket_id", - priority=TicketsListRequestPriority.HIGH, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_fields=TicketsListRequestRemoteFields.PRIORITY, - remote_id="remote_id", - remote_updated_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_updated_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - show_enum_origins=TicketsListRequestShowEnumOrigins.PRIORITY, - status=TicketsListRequestStatus.EMPTY, - tags="tags", - ticket_type="ticket_type", - ticket_url="ticket_url", - ) - """ - _response = self._raw_client.list( - account_id=account_id, - assignee_ids=assignee_ids, - collection_ids=collection_ids, - completed_after=completed_after, - completed_before=completed_before, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - creator_id=creator_id, - creator_ids=creator_ids, - cursor=cursor, - due_after=due_after, - due_before=due_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - parent_ticket_id=parent_ticket_id, - priority=priority, - remote_created_after=remote_created_after, - remote_created_before=remote_created_before, - remote_fields=remote_fields, - remote_id=remote_id, - remote_updated_after=remote_updated_after, - remote_updated_before=remote_updated_before, - show_enum_origins=show_enum_origins, - status=status, - tags=tags, - ticket_type=ticket_type, - ticket_url=ticket_url, - request_options=request_options, - ) - return _response.data - - def create( - self, - *, - model: TicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketResponse: - """ - Creates a `Ticket` object with the given values. - - Parameters - ---------- - model : TicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import TicketRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.create( - is_debug_mode=True, - run_async=True, - model=TicketRequest(), - ) - """ - _response = self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TicketsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TicketsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TicketsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Ticket: - """ - Returns a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TicketsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TicketsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TicketsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Ticket - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing.resources.tickets import ( - TicketsRetrieveRequestExpand, - TicketsRetrieveRequestRemoteFields, - TicketsRetrieveRequestShowEnumOrigins, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.retrieve( - id="id", - expand=TicketsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - remote_fields=TicketsRetrieveRequestRemoteFields.PRIORITY, - show_enum_origins=TicketsRetrieveRequestShowEnumOrigins.PRIORITY, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - def partial_update( - self, - id: str, - *, - model: PatchedTicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketResponse: - """ - Updates a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketResponse - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing import PatchedTicketRequest - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedTicketRequest(), - ) - """ - _response = self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - def viewers_list( - self, - ticket_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TicketsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedViewerList: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - ticket_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TicketsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedViewerList - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing.resources.tickets import ( - TicketsViewersListRequestExpand, - ) - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.viewers_list( - ticket_id="ticket_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TicketsViewersListRequestExpand.TEAM, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - """ - _response = self._raw_client.viewers_list( - ticket_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - def meta_patch_retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MetaResponse: - """ - Returns metadata for `Ticket` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.meta_patch_retrieve( - id="id", - ) - """ - _response = self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - def meta_post_retrieve( - self, - *, - collection_id: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> MetaResponse: - """ - Returns metadata for `Ticket` POSTs. - - Parameters - ---------- - collection_id : typing.Optional[str] - If provided, will only return tickets for this collection. - - ticket_type : typing.Optional[str] - If provided, will only return tickets for this ticket type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.meta_post_retrieve( - collection_id="collection_id", - ticket_type="ticket_type", - ) - """ - _response = self._raw_client.meta_post_retrieve( - collection_id=collection_id, ticket_type=ticket_type, request_options=request_options - ) - return _response.data - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - ids : typing.Optional[str] - If provided, will only return remote field classes with the `ids` in this list - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.tickets.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ids="ids", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - """ - _response = self._raw_client.remote_field_classes_list( - cursor=cursor, - ids=ids, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - -class AsyncTicketsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawTicketsClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawTicketsClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawTicketsClient - """ - return self._raw_client - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - assignee_ids: typing.Optional[str] = None, - collection_ids: typing.Optional[str] = None, - completed_after: typing.Optional[dt.datetime] = None, - completed_before: typing.Optional[dt.datetime] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - creator_ids: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - due_after: typing.Optional[dt.datetime] = None, - due_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TicketsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_ticket_id: typing.Optional[str] = None, - priority: typing.Optional[TicketsListRequestPriority] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_created_before: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[TicketsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - remote_updated_after: typing.Optional[dt.datetime] = None, - remote_updated_before: typing.Optional[dt.datetime] = None, - show_enum_origins: typing.Optional[TicketsListRequestShowEnumOrigins] = None, - status: typing.Optional[TicketsListRequestStatus] = None, - tags: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - ticket_url: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedTicketList: - """ - Returns a list of `Ticket` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return tickets for this account. - - assignee_ids : typing.Optional[str] - If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. - - collection_ids : typing.Optional[str] - If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. - - completed_after : typing.Optional[dt.datetime] - If provided, will only return tickets completed after this datetime. - - completed_before : typing.Optional[dt.datetime] - If provided, will only return tickets completed before this datetime. - - contact_id : typing.Optional[str] - If provided, will only return tickets for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return tickets created by this creator_id. - - creator_ids : typing.Optional[str] - If provided, will only return tickets created by the creator_ids; multiple creator_ids can be separated by commas. - - cursor : typing.Optional[str] - The pagination cursor value. - - due_after : typing.Optional[dt.datetime] - If provided, will only return tickets due after this datetime. - - due_before : typing.Optional[dt.datetime] - If provided, will only return tickets due before this datetime. - - expand : typing.Optional[TicketsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tickets with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_ticket_id : typing.Optional[str] - If provided, will only return sub tickets of the parent_ticket_id. - - priority : typing.Optional[TicketsListRequestPriority] - If provided, will only return tickets of this priority. - - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform after this datetime. - - remote_created_before : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform before this datetime. - - remote_fields : typing.Optional[TicketsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - remote_updated_after : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform after this datetime. - - remote_updated_before : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform before this datetime. - - show_enum_origins : typing.Optional[TicketsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TicketsListRequestStatus] - If provided, will only return tickets of this status. - - tags : typing.Optional[str] - If provided, will only return tickets matching the tags; multiple tags can be separated by commas. - - ticket_type : typing.Optional[str] - If provided, will only return tickets of this type. - - ticket_url : typing.Optional[str] - If provided, will only return tickets where the URL matches or contains the substring - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedTicketList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ticketing.resources.tickets import ( - TicketsListRequestExpand, - TicketsListRequestPriority, - TicketsListRequestRemoteFields, - TicketsListRequestShowEnumOrigins, - TicketsListRequestStatus, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.list( - account_id="account_id", - assignee_ids="assignee_ids", - collection_ids="collection_ids", - completed_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - completed_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - contact_id="contact_id", - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - creator_id="creator_id", - creator_ids="creator_ids", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - due_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - due_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - expand=TicketsListRequestExpand.ACCOUNT, - include_deleted_data=True, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - name="name", - page_size=1, - parent_ticket_id="parent_ticket_id", - priority=TicketsListRequestPriority.HIGH, - remote_created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_fields=TicketsListRequestRemoteFields.PRIORITY, - remote_id="remote_id", - remote_updated_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - remote_updated_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - show_enum_origins=TicketsListRequestShowEnumOrigins.PRIORITY, - status=TicketsListRequestStatus.EMPTY, - tags="tags", - ticket_type="ticket_type", - ticket_url="ticket_url", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - account_id=account_id, - assignee_ids=assignee_ids, - collection_ids=collection_ids, - completed_after=completed_after, - completed_before=completed_before, - contact_id=contact_id, - created_after=created_after, - created_before=created_before, - creator_id=creator_id, - creator_ids=creator_ids, - cursor=cursor, - due_after=due_after, - due_before=due_before, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - name=name, - page_size=page_size, - parent_ticket_id=parent_ticket_id, - priority=priority, - remote_created_after=remote_created_after, - remote_created_before=remote_created_before, - remote_fields=remote_fields, - remote_id=remote_id, - remote_updated_after=remote_updated_after, - remote_updated_before=remote_updated_before, - show_enum_origins=show_enum_origins, - status=status, - tags=tags, - ticket_type=ticket_type, - ticket_url=ticket_url, - request_options=request_options, - ) - return _response.data - - async def create( - self, - *, - model: TicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketResponse: - """ - Creates a `Ticket` object with the given values. - - Parameters - ---------- - model : TicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import TicketRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.create( - is_debug_mode=True, - run_async=True, - model=TicketRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TicketsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TicketsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TicketsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> Ticket: - """ - Returns a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TicketsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TicketsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TicketsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - Ticket - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing.resources.tickets import ( - TicketsRetrieveRequestExpand, - TicketsRetrieveRequestRemoteFields, - TicketsRetrieveRequestShowEnumOrigins, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.retrieve( - id="id", - expand=TicketsRetrieveRequestExpand.ACCOUNT, - include_remote_data=True, - include_remote_fields=True, - include_shell_data=True, - remote_fields=TicketsRetrieveRequestRemoteFields.PRIORITY, - show_enum_origins=TicketsRetrieveRequestShowEnumOrigins.PRIORITY, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_remote_fields=include_remote_fields, - include_shell_data=include_shell_data, - remote_fields=remote_fields, - show_enum_origins=show_enum_origins, - request_options=request_options, - ) - return _response.data - - async def partial_update( - self, - id: str, - *, - model: PatchedTicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> TicketResponse: - """ - Updates a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - TicketResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing import PatchedTicketRequest - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.partial_update( - id="id", - is_debug_mode=True, - run_async=True, - model=PatchedTicketRequest(), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.partial_update( - id, model=model, is_debug_mode=is_debug_mode, run_async=run_async, request_options=request_options - ) - return _response.data - - async def viewers_list( - self, - ticket_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TicketsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedViewerList: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - ticket_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TicketsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedViewerList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing.resources.tickets import ( - TicketsViewersListRequestExpand, - ) - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.viewers_list( - ticket_id="ticket_id", - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand=TicketsViewersListRequestExpand.TEAM, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.viewers_list( - ticket_id, - cursor=cursor, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - page_size=page_size, - request_options=request_options, - ) - return _response.data - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> MetaResponse: - """ - Returns metadata for `Ticket` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.meta_patch_retrieve( - id="id", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_patch_retrieve(id, request_options=request_options) - return _response.data - - async def meta_post_retrieve( - self, - *, - collection_id: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> MetaResponse: - """ - Returns metadata for `Ticket` POSTs. - - Parameters - ---------- - collection_id : typing.Optional[str] - If provided, will only return tickets for this collection. - - ticket_type : typing.Optional[str] - If provided, will only return tickets for this ticket type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - MetaResponse - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.meta_post_retrieve( - collection_id="collection_id", - ticket_type="ticket_type", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.meta_post_retrieve( - collection_id=collection_id, ticket_type=ticket_type, request_options=request_options - ) - return _response.data - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedRemoteFieldClassList: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - ids : typing.Optional[str] - If provided, will only return remote field classes with the `ids` in this list - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedRemoteFieldClassList - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.tickets.remote_field_classes_list( - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ids="ids", - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - is_common_model_field=True, - is_custom=True, - page_size=1, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.remote_field_classes_list( - cursor=cursor, - ids=ids, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - is_common_model_field=is_common_model_field, - is_custom=is_custom, - page_size=page_size, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/tickets/raw_client.py b/src/merge/resources/ticketing/resources/tickets/raw_client.py deleted file mode 100644 index b9bb7a0d..00000000 --- a/src/merge/resources/ticketing/resources/tickets/raw_client.py +++ /dev/null @@ -1,1373 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.meta_response import MetaResponse -from ...types.paginated_remote_field_class_list import PaginatedRemoteFieldClassList -from ...types.paginated_ticket_list import PaginatedTicketList -from ...types.paginated_viewer_list import PaginatedViewerList -from ...types.patched_ticket_request import PatchedTicketRequest -from ...types.ticket import Ticket -from ...types.ticket_request import TicketRequest -from ...types.ticket_response import TicketResponse -from .types.tickets_list_request_expand import TicketsListRequestExpand -from .types.tickets_list_request_priority import TicketsListRequestPriority -from .types.tickets_list_request_remote_fields import TicketsListRequestRemoteFields -from .types.tickets_list_request_show_enum_origins import TicketsListRequestShowEnumOrigins -from .types.tickets_list_request_status import TicketsListRequestStatus -from .types.tickets_retrieve_request_expand import TicketsRetrieveRequestExpand -from .types.tickets_retrieve_request_remote_fields import TicketsRetrieveRequestRemoteFields -from .types.tickets_retrieve_request_show_enum_origins import TicketsRetrieveRequestShowEnumOrigins -from .types.tickets_viewers_list_request_expand import TicketsViewersListRequestExpand - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawTicketsClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - account_id: typing.Optional[str] = None, - assignee_ids: typing.Optional[str] = None, - collection_ids: typing.Optional[str] = None, - completed_after: typing.Optional[dt.datetime] = None, - completed_before: typing.Optional[dt.datetime] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - creator_ids: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - due_after: typing.Optional[dt.datetime] = None, - due_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TicketsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_ticket_id: typing.Optional[str] = None, - priority: typing.Optional[TicketsListRequestPriority] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_created_before: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[TicketsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - remote_updated_after: typing.Optional[dt.datetime] = None, - remote_updated_before: typing.Optional[dt.datetime] = None, - show_enum_origins: typing.Optional[TicketsListRequestShowEnumOrigins] = None, - status: typing.Optional[TicketsListRequestStatus] = None, - tags: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - ticket_url: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedTicketList]: - """ - Returns a list of `Ticket` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return tickets for this account. - - assignee_ids : typing.Optional[str] - If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. - - collection_ids : typing.Optional[str] - If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. - - completed_after : typing.Optional[dt.datetime] - If provided, will only return tickets completed after this datetime. - - completed_before : typing.Optional[dt.datetime] - If provided, will only return tickets completed before this datetime. - - contact_id : typing.Optional[str] - If provided, will only return tickets for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return tickets created by this creator_id. - - creator_ids : typing.Optional[str] - If provided, will only return tickets created by the creator_ids; multiple creator_ids can be separated by commas. - - cursor : typing.Optional[str] - The pagination cursor value. - - due_after : typing.Optional[dt.datetime] - If provided, will only return tickets due after this datetime. - - due_before : typing.Optional[dt.datetime] - If provided, will only return tickets due before this datetime. - - expand : typing.Optional[TicketsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tickets with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_ticket_id : typing.Optional[str] - If provided, will only return sub tickets of the parent_ticket_id. - - priority : typing.Optional[TicketsListRequestPriority] - If provided, will only return tickets of this priority. - - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform after this datetime. - - remote_created_before : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform before this datetime. - - remote_fields : typing.Optional[TicketsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - remote_updated_after : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform after this datetime. - - remote_updated_before : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform before this datetime. - - show_enum_origins : typing.Optional[TicketsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TicketsListRequestStatus] - If provided, will only return tickets of this status. - - tags : typing.Optional[str] - If provided, will only return tickets matching the tags; multiple tags can be separated by commas. - - ticket_type : typing.Optional[str] - If provided, will only return tickets of this type. - - ticket_url : typing.Optional[str] - If provided, will only return tickets where the URL matches or contains the substring - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedTicketList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets", - method="GET", - params={ - "account_id": account_id, - "assignee_ids": assignee_ids, - "collection_ids": collection_ids, - "completed_after": serialize_datetime(completed_after) if completed_after is not None else None, - "completed_before": serialize_datetime(completed_before) if completed_before is not None else None, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "creator_id": creator_id, - "creator_ids": creator_ids, - "cursor": cursor, - "due_after": serialize_datetime(due_after) if due_after is not None else None, - "due_before": serialize_datetime(due_before) if due_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "parent_ticket_id": parent_ticket_id, - "priority": priority, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_created_before": serialize_datetime(remote_created_before) - if remote_created_before is not None - else None, - "remote_fields": remote_fields, - "remote_id": remote_id, - "remote_updated_after": serialize_datetime(remote_updated_after) - if remote_updated_after is not None - else None, - "remote_updated_before": serialize_datetime(remote_updated_before) - if remote_updated_before is not None - else None, - "show_enum_origins": show_enum_origins, - "status": status, - "tags": tags, - "ticket_type": ticket_type, - "ticket_url": ticket_url, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTicketList, - construct_type( - type_=PaginatedTicketList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - model: TicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TicketResponse]: - """ - Creates a `Ticket` object with the given values. - - Parameters - ---------- - model : TicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TicketResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketResponse, - construct_type( - type_=TicketResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[TicketsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TicketsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TicketsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[Ticket]: - """ - Returns a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TicketsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TicketsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TicketsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[Ticket] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Ticket, - construct_type( - type_=Ticket, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def partial_update( - self, - id: str, - *, - model: PatchedTicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[TicketResponse]: - """ - Updates a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[TicketResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketResponse, - construct_type( - type_=TicketResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def viewers_list( - self, - ticket_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TicketsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedViewerList]: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - ticket_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TicketsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedViewerList] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/{jsonable_encoder(ticket_id)}/viewers", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedViewerList, - construct_type( - type_=PaginatedViewerList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Ticket` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def meta_post_retrieve( - self, - *, - collection_id: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[MetaResponse]: - """ - Returns metadata for `Ticket` POSTs. - - Parameters - ---------- - collection_id : typing.Optional[str] - If provided, will only return tickets for this collection. - - ticket_type : typing.Optional[str] - If provided, will only return tickets for this ticket type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[MetaResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets/meta/post", - method="GET", - params={ - "collection_id": collection_id, - "ticket_type": ticket_type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - ids : typing.Optional[str] - If provided, will only return remote field classes with the `ids` in this list - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "ids": ids, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawTicketsClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - account_id: typing.Optional[str] = None, - assignee_ids: typing.Optional[str] = None, - collection_ids: typing.Optional[str] = None, - completed_after: typing.Optional[dt.datetime] = None, - completed_before: typing.Optional[dt.datetime] = None, - contact_id: typing.Optional[str] = None, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - creator_id: typing.Optional[str] = None, - creator_ids: typing.Optional[str] = None, - cursor: typing.Optional[str] = None, - due_after: typing.Optional[dt.datetime] = None, - due_before: typing.Optional[dt.datetime] = None, - expand: typing.Optional[TicketsListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - name: typing.Optional[str] = None, - page_size: typing.Optional[int] = None, - parent_ticket_id: typing.Optional[str] = None, - priority: typing.Optional[TicketsListRequestPriority] = None, - remote_created_after: typing.Optional[dt.datetime] = None, - remote_created_before: typing.Optional[dt.datetime] = None, - remote_fields: typing.Optional[TicketsListRequestRemoteFields] = None, - remote_id: typing.Optional[str] = None, - remote_updated_after: typing.Optional[dt.datetime] = None, - remote_updated_before: typing.Optional[dt.datetime] = None, - show_enum_origins: typing.Optional[TicketsListRequestShowEnumOrigins] = None, - status: typing.Optional[TicketsListRequestStatus] = None, - tags: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - ticket_url: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedTicketList]: - """ - Returns a list of `Ticket` objects. - - Parameters - ---------- - account_id : typing.Optional[str] - If provided, will only return tickets for this account. - - assignee_ids : typing.Optional[str] - If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. - - collection_ids : typing.Optional[str] - If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. - - completed_after : typing.Optional[dt.datetime] - If provided, will only return tickets completed after this datetime. - - completed_before : typing.Optional[dt.datetime] - If provided, will only return tickets completed before this datetime. - - contact_id : typing.Optional[str] - If provided, will only return tickets for this contact. - - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - creator_id : typing.Optional[str] - If provided, will only return tickets created by this creator_id. - - creator_ids : typing.Optional[str] - If provided, will only return tickets created by the creator_ids; multiple creator_ids can be separated by commas. - - cursor : typing.Optional[str] - The pagination cursor value. - - due_after : typing.Optional[dt.datetime] - If provided, will only return tickets due after this datetime. - - due_before : typing.Optional[dt.datetime] - If provided, will only return tickets due before this datetime. - - expand : typing.Optional[TicketsListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - name : typing.Optional[str] - If provided, will only return tickets with this name. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - parent_ticket_id : typing.Optional[str] - If provided, will only return sub tickets of the parent_ticket_id. - - priority : typing.Optional[TicketsListRequestPriority] - If provided, will only return tickets of this priority. - - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - - remote_created_after : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform after this datetime. - - remote_created_before : typing.Optional[dt.datetime] - If provided, will only return tickets created in the third party platform before this datetime. - - remote_fields : typing.Optional[TicketsListRequestRemoteFields] - Deprecated. Use show_enum_origins. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - remote_updated_after : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform after this datetime. - - remote_updated_before : typing.Optional[dt.datetime] - If provided, will only return tickets updated in the third party platform before this datetime. - - show_enum_origins : typing.Optional[TicketsListRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - status : typing.Optional[TicketsListRequestStatus] - If provided, will only return tickets of this status. - - tags : typing.Optional[str] - If provided, will only return tickets matching the tags; multiple tags can be separated by commas. - - ticket_type : typing.Optional[str] - If provided, will only return tickets of this type. - - ticket_url : typing.Optional[str] - If provided, will only return tickets where the URL matches or contains the substring - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedTicketList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets", - method="GET", - params={ - "account_id": account_id, - "assignee_ids": assignee_ids, - "collection_ids": collection_ids, - "completed_after": serialize_datetime(completed_after) if completed_after is not None else None, - "completed_before": serialize_datetime(completed_before) if completed_before is not None else None, - "contact_id": contact_id, - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "creator_id": creator_id, - "creator_ids": creator_ids, - "cursor": cursor, - "due_after": serialize_datetime(due_after) if due_after is not None else None, - "due_before": serialize_datetime(due_before) if due_before is not None else None, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "name": name, - "page_size": page_size, - "parent_ticket_id": parent_ticket_id, - "priority": priority, - "remote_created_after": serialize_datetime(remote_created_after) - if remote_created_after is not None - else None, - "remote_created_before": serialize_datetime(remote_created_before) - if remote_created_before is not None - else None, - "remote_fields": remote_fields, - "remote_id": remote_id, - "remote_updated_after": serialize_datetime(remote_updated_after) - if remote_updated_after is not None - else None, - "remote_updated_before": serialize_datetime(remote_updated_before) - if remote_updated_before is not None - else None, - "show_enum_origins": show_enum_origins, - "status": status, - "tags": tags, - "ticket_type": ticket_type, - "ticket_url": ticket_url, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedTicketList, - construct_type( - type_=PaginatedTicketList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - model: TicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TicketResponse]: - """ - Creates a `Ticket` object with the given values. - - Parameters - ---------- - model : TicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TicketResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets", - method="POST", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketResponse, - construct_type( - type_=TicketResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[TicketsRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_remote_fields: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - remote_fields: typing.Optional[TicketsRetrieveRequestRemoteFields] = None, - show_enum_origins: typing.Optional[TicketsRetrieveRequestShowEnumOrigins] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[Ticket]: - """ - Returns a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[TicketsRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_remote_fields : typing.Optional[bool] - Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - remote_fields : typing.Optional[TicketsRetrieveRequestRemoteFields] - Deprecated. Use show_enum_origins. - - show_enum_origins : typing.Optional[TicketsRetrieveRequestShowEnumOrigins] - A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[Ticket] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_remote_fields": include_remote_fields, - "include_shell_data": include_shell_data, - "remote_fields": remote_fields, - "show_enum_origins": show_enum_origins, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - Ticket, - construct_type( - type_=Ticket, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def partial_update( - self, - id: str, - *, - model: PatchedTicketRequest, - is_debug_mode: typing.Optional[bool] = None, - run_async: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[TicketResponse]: - """ - Updates a `Ticket` object with the given `id`. - - Parameters - ---------- - id : str - - model : PatchedTicketRequest - - is_debug_mode : typing.Optional[bool] - Whether to include debug fields (such as log file links) in the response. - - run_async : typing.Optional[bool] - Whether or not third-party updates should be run asynchronously. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[TicketResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/{jsonable_encoder(id)}", - method="PATCH", - params={ - "is_debug_mode": is_debug_mode, - "run_async": run_async, - }, - json={ - "model": model, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - TicketResponse, - construct_type( - type_=TicketResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def viewers_list( - self, - ticket_id: str, - *, - cursor: typing.Optional[str] = None, - expand: typing.Optional[TicketsViewersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedViewerList]: - """ - Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) - - Parameters - ---------- - ticket_id : str - - cursor : typing.Optional[str] - The pagination cursor value. - - expand : typing.Optional[TicketsViewersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedViewerList] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/{jsonable_encoder(ticket_id)}/viewers", - method="GET", - params={ - "cursor": cursor, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedViewerList, - construct_type( - type_=PaginatedViewerList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_patch_retrieve( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Ticket` PATCHs. - - Parameters - ---------- - id : str - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/tickets/meta/patch/{jsonable_encoder(id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def meta_post_retrieve( - self, - *, - collection_id: typing.Optional[str] = None, - ticket_type: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[MetaResponse]: - """ - Returns metadata for `Ticket` POSTs. - - Parameters - ---------- - collection_id : typing.Optional[str] - If provided, will only return tickets for this collection. - - ticket_type : typing.Optional[str] - If provided, will only return tickets for this ticket type. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[MetaResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets/meta/post", - method="GET", - params={ - "collection_id": collection_id, - "ticket_type": ticket_type, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - MetaResponse, - construct_type( - type_=MetaResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def remote_field_classes_list( - self, - *, - cursor: typing.Optional[str] = None, - ids: typing.Optional[str] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - is_common_model_field: typing.Optional[bool] = None, - is_custom: typing.Optional[bool] = None, - page_size: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedRemoteFieldClassList]: - """ - Returns a list of `RemoteFieldClass` objects. - - Parameters - ---------- - cursor : typing.Optional[str] - The pagination cursor value. - - ids : typing.Optional[str] - If provided, will only return remote field classes with the `ids` in this list - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - is_common_model_field : typing.Optional[bool] - If provided, will only return remote field classes with this is_common_model_field value - - is_custom : typing.Optional[bool] - If provided, will only return remote fields classes with this is_custom value - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedRemoteFieldClassList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/tickets/remote-field-classes", - method="GET", - params={ - "cursor": cursor, - "ids": ids, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "is_common_model_field": is_common_model_field, - "is_custom": is_custom, - "page_size": page_size, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedRemoteFieldClassList, - construct_type( - type_=PaginatedRemoteFieldClassList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/tickets/types/__init__.py b/src/merge/resources/ticketing/resources/tickets/types/__init__.py deleted file mode 100644 index af027d4e..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/__init__.py +++ /dev/null @@ -1,60 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .tickets_list_request_expand import TicketsListRequestExpand - from .tickets_list_request_priority import TicketsListRequestPriority - from .tickets_list_request_remote_fields import TicketsListRequestRemoteFields - from .tickets_list_request_show_enum_origins import TicketsListRequestShowEnumOrigins - from .tickets_list_request_status import TicketsListRequestStatus - from .tickets_retrieve_request_expand import TicketsRetrieveRequestExpand - from .tickets_retrieve_request_remote_fields import TicketsRetrieveRequestRemoteFields - from .tickets_retrieve_request_show_enum_origins import TicketsRetrieveRequestShowEnumOrigins - from .tickets_viewers_list_request_expand import TicketsViewersListRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "TicketsListRequestExpand": ".tickets_list_request_expand", - "TicketsListRequestPriority": ".tickets_list_request_priority", - "TicketsListRequestRemoteFields": ".tickets_list_request_remote_fields", - "TicketsListRequestShowEnumOrigins": ".tickets_list_request_show_enum_origins", - "TicketsListRequestStatus": ".tickets_list_request_status", - "TicketsRetrieveRequestExpand": ".tickets_retrieve_request_expand", - "TicketsRetrieveRequestRemoteFields": ".tickets_retrieve_request_remote_fields", - "TicketsRetrieveRequestShowEnumOrigins": ".tickets_retrieve_request_show_enum_origins", - "TicketsViewersListRequestExpand": ".tickets_viewers_list_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "TicketsListRequestExpand", - "TicketsListRequestPriority", - "TicketsListRequestRemoteFields", - "TicketsListRequestShowEnumOrigins", - "TicketsListRequestStatus", - "TicketsRetrieveRequestExpand", - "TicketsRetrieveRequestRemoteFields", - "TicketsRetrieveRequestShowEnumOrigins", - "TicketsViewersListRequestExpand", -] diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_expand.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_expand.py deleted file mode 100644 index 77966842..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_expand.py +++ /dev/null @@ -1,1162 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsListRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_CONTACT = "account,contact" - ACCOUNT_CONTACT_CREATOR = "account,contact,creator" - ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "account,contact,creator,parent_ticket" - ACCOUNT_CONTACT_PARENT_TICKET = "account,contact,parent_ticket" - ACCOUNT_CREATOR = "account,creator" - ACCOUNT_CREATOR_PARENT_TICKET = "account,creator,parent_ticket" - ACCOUNT_PARENT_TICKET = "account,parent_ticket" - ASSIGNED_TEAMS = "assigned_teams" - ASSIGNED_TEAMS_ACCOUNT = "assigned_teams,account" - ASSIGNED_TEAMS_ACCOUNT_CONTACT = "assigned_teams,account,contact" - ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "assigned_teams,account,contact,creator" - ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "assigned_teams,account,contact,creator,parent_ticket" - ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = "assigned_teams,account,contact,parent_ticket" - ASSIGNED_TEAMS_ACCOUNT_CREATOR = "assigned_teams,account,creator" - ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = "assigned_teams,account,creator,parent_ticket" - ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "assigned_teams,account,parent_ticket" - ASSIGNED_TEAMS_CONTACT = "assigned_teams,contact" - ASSIGNED_TEAMS_CONTACT_CREATOR = "assigned_teams,contact,creator" - ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = "assigned_teams,contact,creator,parent_ticket" - ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "assigned_teams,contact,parent_ticket" - ASSIGNED_TEAMS_CREATOR = "assigned_teams,creator" - ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "assigned_teams,creator,parent_ticket" - ASSIGNED_TEAMS_PARENT_TICKET = "assigned_teams,parent_ticket" - ASSIGNEES = "assignees" - ASSIGNEES_ACCOUNT = "assignees,account" - ASSIGNEES_ACCOUNT_CONTACT = "assignees,account,contact" - ASSIGNEES_ACCOUNT_CONTACT_CREATOR = "assignees,account,contact,creator" - ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "assignees,account,contact,creator,parent_ticket" - ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET = "assignees,account,contact,parent_ticket" - ASSIGNEES_ACCOUNT_CREATOR = "assignees,account,creator" - ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET = "assignees,account,creator,parent_ticket" - ASSIGNEES_ACCOUNT_PARENT_TICKET = "assignees,account,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS = "assignees,assigned_teams" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT = "assignees,assigned_teams,account" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "assignees,assigned_teams,account,contact" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "assignees,assigned_teams,account,contact,creator" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,assigned_teams,account,contact,creator,parent_ticket" - ) - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = "assignees,assigned_teams,account,contact,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "assignees,assigned_teams,account,creator" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = "assignees,assigned_teams,account,creator,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "assignees,assigned_teams,account,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT = "assignees,assigned_teams,contact" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR = "assignees,assigned_teams,contact,creator" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = "assignees,assigned_teams,contact,creator,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "assignees,assigned_teams,contact,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_CREATOR = "assignees,assigned_teams,creator" - ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "assignees,assigned_teams,creator,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET = "assignees,assigned_teams,parent_ticket" - ASSIGNEES_COLLECTIONS = "assignees,collections" - ASSIGNEES_COLLECTIONS_ACCOUNT = "assignees,collections,account" - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT = "assignees,collections,account,contact" - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR = "assignees,collections,account,contact,creator" - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,collections,account,contact,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = "assignees,collections,account,contact,parent_ticket" - ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR = "assignees,collections,account,creator" - ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = "assignees,collections,account,creator,parent_ticket" - ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET = "assignees,collections,account,parent_ticket" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS = "assignees,collections,assigned_teams" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = "assignees,collections,assigned_teams,account" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "assignees,collections,assigned_teams,account,contact" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "assignees,collections,assigned_teams,account,contact,creator" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,contact,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "assignees,collections,assigned_teams,account,creator" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT = "assignees,collections,assigned_teams,contact" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = "assignees,collections,assigned_teams,contact,creator" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,contact,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "assignees,collections,assigned_teams,contact,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR = "assignees,collections,assigned_teams,creator" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = "assignees,collections,assigned_teams,parent_ticket" - ASSIGNEES_COLLECTIONS_CONTACT = "assignees,collections,contact" - ASSIGNEES_COLLECTIONS_CONTACT_CREATOR = "assignees,collections,contact,creator" - ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = "assignees,collections,contact,creator,parent_ticket" - ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET = "assignees,collections,contact,parent_ticket" - ASSIGNEES_COLLECTIONS_CREATOR = "assignees,collections,creator" - ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET = "assignees,collections,creator,parent_ticket" - ASSIGNEES_COLLECTIONS_PARENT_TICKET = "assignees,collections,parent_ticket" - ASSIGNEES_CONTACT = "assignees,contact" - ASSIGNEES_CONTACT_CREATOR = "assignees,contact,creator" - ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET = "assignees,contact,creator,parent_ticket" - ASSIGNEES_CONTACT_PARENT_TICKET = "assignees,contact,parent_ticket" - ASSIGNEES_CREATOR = "assignees,creator" - ASSIGNEES_CREATOR_PARENT_TICKET = "assignees,creator,parent_ticket" - ASSIGNEES_PARENT_TICKET = "assignees,parent_ticket" - ATTACHMENTS = "attachments" - ATTACHMENTS_ACCOUNT = "attachments,account" - ATTACHMENTS_ACCOUNT_CONTACT = "attachments,account,contact" - ATTACHMENTS_ACCOUNT_CONTACT_CREATOR = "attachments,account,contact,creator" - ATTACHMENTS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "attachments,account,contact,creator,parent_ticket" - ATTACHMENTS_ACCOUNT_CONTACT_PARENT_TICKET = "attachments,account,contact,parent_ticket" - ATTACHMENTS_ACCOUNT_CREATOR = "attachments,account,creator" - ATTACHMENTS_ACCOUNT_CREATOR_PARENT_TICKET = "attachments,account,creator,parent_ticket" - ATTACHMENTS_ACCOUNT_PARENT_TICKET = "attachments,account,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS = "attachments,assigned_teams" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT = "attachments,assigned_teams,account" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "attachments,assigned_teams,account,contact" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "attachments,assigned_teams,account,contact,creator" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "attachments,assigned_teams,account,creator" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "attachments,assigned_teams,account,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT = "attachments,assigned_teams,contact" - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR = "attachments,assigned_teams,contact,creator" - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "attachments,assigned_teams,contact,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS_CREATOR = "attachments,assigned_teams,creator" - ATTACHMENTS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "attachments,assigned_teams,creator,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS_PARENT_TICKET = "attachments,assigned_teams,parent_ticket" - ATTACHMENTS_ASSIGNEES = "attachments,assignees" - ATTACHMENTS_ASSIGNEES_ACCOUNT = "attachments,assignees,account" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT = "attachments,assignees,account,contact" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR = "attachments,assignees,account,contact,creator" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET = "attachments,assignees,account,contact,parent_ticket" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR = "attachments,assignees,account,creator" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET = "attachments,assignees,account,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_ACCOUNT_PARENT_TICKET = "attachments,assignees,account,parent_ticket" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS = "attachments,assignees,assigned_teams" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT = "attachments,assignees,assigned_teams,account" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "attachments,assignees,assigned_teams,account,contact" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,assignees,assigned_teams,account,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "attachments,assignees,assigned_teams,account,creator" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT = "attachments,assignees,assigned_teams,contact" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR = "attachments,assignees,assigned_teams,contact,creator" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR = "attachments,assignees,assigned_teams,creator" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET = "attachments,assignees,assigned_teams,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS = "attachments,assignees,collections" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT = "attachments,assignees,collections,account" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT = "attachments,assignees,collections,account,contact" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,assignees,collections,account,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assignees,collections,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR = "attachments,assignees,collections,account,creator" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET = "attachments,assignees,collections,account,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS = "attachments,assignees,collections,assigned_teams" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = ( - "attachments,assignees,collections,assigned_teams,account" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = ( - "attachments,assignees,collections,assigned_teams,account,contact" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,assignees,collections,assigned_teams,account,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = ( - "attachments,assignees,collections,assigned_teams,account,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT = ( - "attachments,assignees,collections,assigned_teams,contact" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = ( - "attachments,assignees,collections,assigned_teams,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR = ( - "attachments,assignees,collections,assigned_teams,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT = "attachments,assignees,collections,contact" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR = "attachments,assignees,collections,contact,creator" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET = "attachments,assignees,collections,contact,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR = "attachments,assignees,collections,creator" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET = "attachments,assignees,collections,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_PARENT_TICKET = "attachments,assignees,collections,parent_ticket" - ATTACHMENTS_ASSIGNEES_CONTACT = "attachments,assignees,contact" - ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR = "attachments,assignees,contact,creator" - ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET = "attachments,assignees,contact,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_CONTACT_PARENT_TICKET = "attachments,assignees,contact,parent_ticket" - ATTACHMENTS_ASSIGNEES_CREATOR = "attachments,assignees,creator" - ATTACHMENTS_ASSIGNEES_CREATOR_PARENT_TICKET = "attachments,assignees,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_PARENT_TICKET = "attachments,assignees,parent_ticket" - ATTACHMENTS_COLLECTIONS = "attachments,collections" - ATTACHMENTS_COLLECTIONS_ACCOUNT = "attachments,collections,account" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT = "attachments,collections,account,contact" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR = "attachments,collections,account,contact,creator" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,collections,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = "attachments,collections,account,contact,parent_ticket" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR = "attachments,collections,account,creator" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = "attachments,collections,account,creator,parent_ticket" - ATTACHMENTS_COLLECTIONS_ACCOUNT_PARENT_TICKET = "attachments,collections,account,parent_ticket" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS = "attachments,collections,assigned_teams" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = "attachments,collections,assigned_teams,account" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "attachments,collections,assigned_teams,account,contact" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,collections,assigned_teams,account,contact,creator" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "attachments,collections,assigned_teams,account,creator" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT = "attachments,collections,assigned_teams,contact" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = "attachments,collections,assigned_teams,contact,creator" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "attachments,collections,assigned_teams,contact,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR = "attachments,collections,assigned_teams,creator" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = "attachments,collections,assigned_teams,parent_ticket" - ATTACHMENTS_COLLECTIONS_CONTACT = "attachments,collections,contact" - ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR = "attachments,collections,contact,creator" - ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = "attachments,collections,contact,creator,parent_ticket" - ATTACHMENTS_COLLECTIONS_CONTACT_PARENT_TICKET = "attachments,collections,contact,parent_ticket" - ATTACHMENTS_COLLECTIONS_CREATOR = "attachments,collections,creator" - ATTACHMENTS_COLLECTIONS_CREATOR_PARENT_TICKET = "attachments,collections,creator,parent_ticket" - ATTACHMENTS_COLLECTIONS_PARENT_TICKET = "attachments,collections,parent_ticket" - ATTACHMENTS_CONTACT = "attachments,contact" - ATTACHMENTS_CONTACT_CREATOR = "attachments,contact,creator" - ATTACHMENTS_CONTACT_CREATOR_PARENT_TICKET = "attachments,contact,creator,parent_ticket" - ATTACHMENTS_CONTACT_PARENT_TICKET = "attachments,contact,parent_ticket" - ATTACHMENTS_CREATOR = "attachments,creator" - ATTACHMENTS_CREATOR_PARENT_TICKET = "attachments,creator,parent_ticket" - ATTACHMENTS_PARENT_TICKET = "attachments,parent_ticket" - COLLECTIONS = "collections" - COLLECTIONS_ACCOUNT = "collections,account" - COLLECTIONS_ACCOUNT_CONTACT = "collections,account,contact" - COLLECTIONS_ACCOUNT_CONTACT_CREATOR = "collections,account,contact,creator" - COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "collections,account,contact,creator,parent_ticket" - COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = "collections,account,contact,parent_ticket" - COLLECTIONS_ACCOUNT_CREATOR = "collections,account,creator" - COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = "collections,account,creator,parent_ticket" - COLLECTIONS_ACCOUNT_PARENT_TICKET = "collections,account,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS = "collections,assigned_teams" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = "collections,assigned_teams,account" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "collections,assigned_teams,account,contact" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "collections,assigned_teams,account,contact,creator" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "collections,assigned_teams,account,contact,creator,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "collections,assigned_teams,account,contact,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "collections,assigned_teams,account,creator" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "collections,assigned_teams,account,creator,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "collections,assigned_teams,account,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS_CONTACT = "collections,assigned_teams,contact" - COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = "collections,assigned_teams,contact,creator" - COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "collections,assigned_teams,contact,creator,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "collections,assigned_teams,contact,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS_CREATOR = "collections,assigned_teams,creator" - COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "collections,assigned_teams,creator,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = "collections,assigned_teams,parent_ticket" - COLLECTIONS_CONTACT = "collections,contact" - COLLECTIONS_CONTACT_CREATOR = "collections,contact,creator" - COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = "collections,contact,creator,parent_ticket" - COLLECTIONS_CONTACT_PARENT_TICKET = "collections,contact,parent_ticket" - COLLECTIONS_CREATOR = "collections,creator" - COLLECTIONS_CREATOR_PARENT_TICKET = "collections,creator,parent_ticket" - COLLECTIONS_PARENT_TICKET = "collections,parent_ticket" - CONTACT = "contact" - CONTACT_CREATOR = "contact,creator" - CONTACT_CREATOR_PARENT_TICKET = "contact,creator,parent_ticket" - CONTACT_PARENT_TICKET = "contact,parent_ticket" - CREATOR = "creator" - CREATOR_PARENT_TICKET = "creator,parent_ticket" - PARENT_TICKET = "parent_ticket" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_contact: typing.Callable[[], T_Result], - account_contact_creator: typing.Callable[[], T_Result], - account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - account_contact_parent_ticket: typing.Callable[[], T_Result], - account_creator: typing.Callable[[], T_Result], - account_creator_parent_ticket: typing.Callable[[], T_Result], - account_parent_ticket: typing.Callable[[], T_Result], - assigned_teams: typing.Callable[[], T_Result], - assigned_teams_account: typing.Callable[[], T_Result], - assigned_teams_account_contact: typing.Callable[[], T_Result], - assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_account_creator: typing.Callable[[], T_Result], - assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_contact: typing.Callable[[], T_Result], - assigned_teams_contact_creator: typing.Callable[[], T_Result], - assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_creator: typing.Callable[[], T_Result], - assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_parent_ticket: typing.Callable[[], T_Result], - assignees: typing.Callable[[], T_Result], - assignees_account: typing.Callable[[], T_Result], - assignees_account_contact: typing.Callable[[], T_Result], - assignees_account_contact_creator: typing.Callable[[], T_Result], - assignees_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_account_creator: typing.Callable[[], T_Result], - assignees_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_account_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams: typing.Callable[[], T_Result], - assignees_assigned_teams_account: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_account_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_contact: typing.Callable[[], T_Result], - assignees_assigned_teams_contact_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - assignees_collections: typing.Callable[[], T_Result], - assignees_collections_account: typing.Callable[[], T_Result], - assignees_collections_account_contact: typing.Callable[[], T_Result], - assignees_collections_account_contact_creator: typing.Callable[[], T_Result], - assignees_collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_account_creator: typing.Callable[[], T_Result], - assignees_collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_account_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_contact: typing.Callable[[], T_Result], - assignees_collections_contact_creator: typing.Callable[[], T_Result], - assignees_collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_creator: typing.Callable[[], T_Result], - assignees_collections_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_parent_ticket: typing.Callable[[], T_Result], - assignees_contact: typing.Callable[[], T_Result], - assignees_contact_creator: typing.Callable[[], T_Result], - assignees_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_creator: typing.Callable[[], T_Result], - assignees_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_parent_ticket: typing.Callable[[], T_Result], - attachments: typing.Callable[[], T_Result], - attachments_account: typing.Callable[[], T_Result], - attachments_account_contact: typing.Callable[[], T_Result], - attachments_account_contact_creator: typing.Callable[[], T_Result], - attachments_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_account_creator: typing.Callable[[], T_Result], - attachments_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams: typing.Callable[[], T_Result], - attachments_assigned_teams_account: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees: typing.Callable[[], T_Result], - attachments_assignees_account: typing.Callable[[], T_Result], - attachments_assignees_account_contact: typing.Callable[[], T_Result], - attachments_assignees_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_account_creator: typing.Callable[[], T_Result], - attachments_assignees_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections: typing.Callable[[], T_Result], - attachments_assignees_collections_account: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_account_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[ - [], T_Result - ], - attachments_assignees_collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_contact: typing.Callable[[], T_Result], - attachments_assignees_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_creator: typing.Callable[[], T_Result], - attachments_assignees_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_parent_ticket: typing.Callable[[], T_Result], - attachments_collections: typing.Callable[[], T_Result], - attachments_collections_account: typing.Callable[[], T_Result], - attachments_collections_account_contact: typing.Callable[[], T_Result], - attachments_collections_account_contact_creator: typing.Callable[[], T_Result], - attachments_collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_account_creator: typing.Callable[[], T_Result], - attachments_collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_account_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_contact: typing.Callable[[], T_Result], - attachments_collections_contact_creator: typing.Callable[[], T_Result], - attachments_collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_creator: typing.Callable[[], T_Result], - attachments_collections_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_parent_ticket: typing.Callable[[], T_Result], - attachments_contact: typing.Callable[[], T_Result], - attachments_contact_creator: typing.Callable[[], T_Result], - attachments_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_creator: typing.Callable[[], T_Result], - attachments_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_parent_ticket: typing.Callable[[], T_Result], - collections: typing.Callable[[], T_Result], - collections_account: typing.Callable[[], T_Result], - collections_account_contact: typing.Callable[[], T_Result], - collections_account_contact_creator: typing.Callable[[], T_Result], - collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - collections_account_creator: typing.Callable[[], T_Result], - collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - collections_account_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams: typing.Callable[[], T_Result], - collections_assigned_teams_account: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_contact: typing.Callable[[], T_Result], - collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_creator: typing.Callable[[], T_Result], - collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - collections_contact: typing.Callable[[], T_Result], - collections_contact_creator: typing.Callable[[], T_Result], - collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_contact_parent_ticket: typing.Callable[[], T_Result], - collections_creator: typing.Callable[[], T_Result], - collections_creator_parent_ticket: typing.Callable[[], T_Result], - collections_parent_ticket: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_creator: typing.Callable[[], T_Result], - contact_creator_parent_ticket: typing.Callable[[], T_Result], - contact_parent_ticket: typing.Callable[[], T_Result], - creator: typing.Callable[[], T_Result], - creator_parent_ticket: typing.Callable[[], T_Result], - parent_ticket: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsListRequestExpand.ACCOUNT: - return account() - if self is TicketsListRequestExpand.ACCOUNT_CONTACT: - return account_contact() - if self is TicketsListRequestExpand.ACCOUNT_CONTACT_CREATOR: - return account_contact_creator() - if self is TicketsListRequestExpand.ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ACCOUNT_CONTACT_PARENT_TICKET: - return account_contact_parent_ticket() - if self is TicketsListRequestExpand.ACCOUNT_CREATOR: - return account_creator() - if self is TicketsListRequestExpand.ACCOUNT_CREATOR_PARENT_TICKET: - return account_creator_parent_ticket() - if self is TicketsListRequestExpand.ACCOUNT_PARENT_TICKET: - return account_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS: - return assigned_teams() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT: - return assigned_teams_account() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return assigned_teams_account_contact() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return assigned_teams_account_contact_creator() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return assigned_teams_account_creator() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_CONTACT: - return assigned_teams_contact() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_CONTACT_CREATOR: - return assigned_teams_contact_creator() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_CREATOR: - return assigned_teams_creator() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNED_TEAMS_PARENT_TICKET: - return assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES: - return assignees() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT: - return assignees_account() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT_CONTACT: - return assignees_account_contact() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT_CONTACT_CREATOR: - return assignees_account_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assignees_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT_CREATOR: - return assignees_account_creator() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ACCOUNT_PARENT_TICKET: - return assignees_account_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS: - return assignees_assigned_teams() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT: - return assignees_assigned_teams_account() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return assignees_assigned_teams_account_contact() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return assignees_assigned_teams_account_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return assignees_assigned_teams_account_creator() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return assignees_assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT: - return assignees_assigned_teams_contact() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR: - return assignees_assigned_teams_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return assignees_assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CREATOR: - return assignees_assigned_teams_creator() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET: - return assignees_assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS: - return assignees_collections() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT: - return assignees_collections_account() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT: - return assignees_collections_account_contact() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return assignees_collections_account_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assignees_collections_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_collections_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR: - return assignees_collections_account_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_collections_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET: - return assignees_collections_account_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS: - return assignees_collections_assigned_teams() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return assignees_collections_assigned_teams_account() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return assignees_collections_assigned_teams_account_contact() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return assignees_collections_assigned_teams_account_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assignees_collections_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return assignees_collections_assigned_teams_account_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return assignees_collections_assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return assignees_collections_assigned_teams_contact() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return assignees_collections_assigned_teams_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return assignees_collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return assignees_collections_assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return assignees_collections_assigned_teams_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return assignees_collections_assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return assignees_collections_assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT: - return assignees_collections_contact() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT_CREATOR: - return assignees_collections_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return assignees_collections_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET: - return assignees_collections_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_CREATOR: - return assignees_collections_creator() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET: - return assignees_collections_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_COLLECTIONS_PARENT_TICKET: - return assignees_collections_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_CONTACT: - return assignees_contact() - if self is TicketsListRequestExpand.ASSIGNEES_CONTACT_CREATOR: - return assignees_contact_creator() - if self is TicketsListRequestExpand.ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET: - return assignees_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_CONTACT_PARENT_TICKET: - return assignees_contact_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_CREATOR: - return assignees_creator() - if self is TicketsListRequestExpand.ASSIGNEES_CREATOR_PARENT_TICKET: - return assignees_creator_parent_ticket() - if self is TicketsListRequestExpand.ASSIGNEES_PARENT_TICKET: - return assignees_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS: - return attachments() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT: - return attachments_account() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT: - return attachments_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT_CREATOR: - return attachments_account_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT_CREATOR: - return attachments_account_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ACCOUNT_PARENT_TICKET: - return attachments_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS: - return attachments_assigned_teams() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT: - return attachments_assigned_teams_account() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_assigned_teams_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return attachments_assigned_teams_account_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_assigned_teams_account_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT: - return attachments_assigned_teams_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_assigned_teams_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CREATOR: - return attachments_assigned_teams_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES: - return attachments_assignees() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT: - return attachments_assignees_account() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT: - return attachments_assignees_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR: - return attachments_assignees_account_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assignees_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR: - return attachments_assignees_account_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assignees_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_PARENT_TICKET: - return attachments_assignees_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS: - return attachments_assignees_assigned_teams() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT: - return attachments_assignees_assigned_teams_account() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_assignees_assigned_teams_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return attachments_assignees_assigned_teams_account_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assignees_assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_assignees_assigned_teams_account_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assignees_assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_assignees_assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT: - return attachments_assignees_assigned_teams_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_assignees_assigned_teams_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_assignees_assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR: - return attachments_assignees_assigned_teams_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_assignees_assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_assignees_assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS: - return attachments_assignees_collections() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT: - return attachments_assignees_collections_account() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT: - return attachments_assignees_collections_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return attachments_assignees_collections_account_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assignees_collections_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR: - return attachments_assignees_collections_account_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET: - return attachments_assignees_collections_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS: - return attachments_assignees_collections_assigned_teams() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return attachments_assignees_collections_assigned_teams_account() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_assignees_collections_assigned_teams_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return attachments_assignees_collections_assigned_teams_account_contact_creator() - if ( - self - is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_account_contact_creator_parent_ticket() - if ( - self - is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_assignees_collections_assigned_teams_account_creator() - if ( - self - is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return attachments_assignees_collections_assigned_teams_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_assignees_collections_assigned_teams_contact_creator() - if ( - self - is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return attachments_assignees_collections_assigned_teams_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT: - return attachments_assignees_collections_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR: - return attachments_assignees_collections_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET: - return attachments_assignees_collections_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR: - return attachments_assignees_collections_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_PARENT_TICKET: - return attachments_assignees_collections_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT: - return attachments_assignees_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR: - return attachments_assignees_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT_PARENT_TICKET: - return attachments_assignees_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_CREATOR: - return attachments_assignees_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_CREATOR_PARENT_TICKET: - return attachments_assignees_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_ASSIGNEES_PARENT_TICKET: - return attachments_assignees_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS: - return attachments_collections() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT: - return attachments_collections_account() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT: - return attachments_collections_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return attachments_collections_account_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_collections_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_collections_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR: - return attachments_collections_account_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_collections_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_PARENT_TICKET: - return attachments_collections_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS: - return attachments_collections_assigned_teams() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return attachments_collections_assigned_teams_account() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_collections_assigned_teams_account_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return attachments_collections_assigned_teams_account_contact_creator() - if ( - self - is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET - ): - return attachments_collections_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_collections_assigned_teams_account_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_collections_assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return attachments_collections_assigned_teams_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_collections_assigned_teams_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_collections_assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return attachments_collections_assigned_teams_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_collections_assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_collections_assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT: - return attachments_collections_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR: - return attachments_collections_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_collections_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT_PARENT_TICKET: - return attachments_collections_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_CREATOR: - return attachments_collections_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_CREATOR_PARENT_TICKET: - return attachments_collections_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_COLLECTIONS_PARENT_TICKET: - return attachments_collections_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_CONTACT: - return attachments_contact() - if self is TicketsListRequestExpand.ATTACHMENTS_CONTACT_CREATOR: - return attachments_contact_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_CONTACT_PARENT_TICKET: - return attachments_contact_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_CREATOR: - return attachments_creator() - if self is TicketsListRequestExpand.ATTACHMENTS_CREATOR_PARENT_TICKET: - return attachments_creator_parent_ticket() - if self is TicketsListRequestExpand.ATTACHMENTS_PARENT_TICKET: - return attachments_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS: - return collections() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT: - return collections_account() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT_CONTACT: - return collections_account_contact() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return collections_account_contact_creator() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return collections_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return collections_account_contact_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT_CREATOR: - return collections_account_creator() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return collections_account_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ACCOUNT_PARENT_TICKET: - return collections_account_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS: - return collections_assigned_teams() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return collections_assigned_teams_account() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return collections_assigned_teams_account_contact() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return collections_assigned_teams_account_contact_creator() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return collections_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return collections_assigned_teams_account_creator() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return collections_assigned_teams_account_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return collections_assigned_teams_contact() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return collections_assigned_teams_contact_creator() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return collections_assigned_teams_contact_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return collections_assigned_teams_creator() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return collections_assigned_teams_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return collections_assigned_teams_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_CONTACT: - return collections_contact() - if self is TicketsListRequestExpand.COLLECTIONS_CONTACT_CREATOR: - return collections_contact_creator() - if self is TicketsListRequestExpand.COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return collections_contact_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_CONTACT_PARENT_TICKET: - return collections_contact_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_CREATOR: - return collections_creator() - if self is TicketsListRequestExpand.COLLECTIONS_CREATOR_PARENT_TICKET: - return collections_creator_parent_ticket() - if self is TicketsListRequestExpand.COLLECTIONS_PARENT_TICKET: - return collections_parent_ticket() - if self is TicketsListRequestExpand.CONTACT: - return contact() - if self is TicketsListRequestExpand.CONTACT_CREATOR: - return contact_creator() - if self is TicketsListRequestExpand.CONTACT_CREATOR_PARENT_TICKET: - return contact_creator_parent_ticket() - if self is TicketsListRequestExpand.CONTACT_PARENT_TICKET: - return contact_parent_ticket() - if self is TicketsListRequestExpand.CREATOR: - return creator() - if self is TicketsListRequestExpand.CREATOR_PARENT_TICKET: - return creator_parent_ticket() - if self is TicketsListRequestExpand.PARENT_TICKET: - return parent_ticket() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_priority.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_priority.py deleted file mode 100644 index db455e45..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_priority.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsListRequestPriority(str, enum.Enum): - HIGH = "HIGH" - LOW = "LOW" - NORMAL = "NORMAL" - URGENT = "URGENT" - - def visit( - self, - high: typing.Callable[[], T_Result], - low: typing.Callable[[], T_Result], - normal: typing.Callable[[], T_Result], - urgent: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsListRequestPriority.HIGH: - return high() - if self is TicketsListRequestPriority.LOW: - return low() - if self is TicketsListRequestPriority.NORMAL: - return normal() - if self is TicketsListRequestPriority.URGENT: - return urgent() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_remote_fields.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_remote_fields.py deleted file mode 100644 index f12ce7d7..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_remote_fields.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsListRequestRemoteFields(str, enum.Enum): - PRIORITY = "priority" - PRIORITY_STATUS = "priority,status" - PRIORITY_STATUS_TICKET_TYPE = "priority,status,ticket_type" - PRIORITY_TICKET_TYPE = "priority,ticket_type" - STATUS = "status" - STATUS_TICKET_TYPE = "status,ticket_type" - TICKET_TYPE = "ticket_type" - - def visit( - self, - priority: typing.Callable[[], T_Result], - priority_status: typing.Callable[[], T_Result], - priority_status_ticket_type: typing.Callable[[], T_Result], - priority_ticket_type: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_ticket_type: typing.Callable[[], T_Result], - ticket_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsListRequestRemoteFields.PRIORITY: - return priority() - if self is TicketsListRequestRemoteFields.PRIORITY_STATUS: - return priority_status() - if self is TicketsListRequestRemoteFields.PRIORITY_STATUS_TICKET_TYPE: - return priority_status_ticket_type() - if self is TicketsListRequestRemoteFields.PRIORITY_TICKET_TYPE: - return priority_ticket_type() - if self is TicketsListRequestRemoteFields.STATUS: - return status() - if self is TicketsListRequestRemoteFields.STATUS_TICKET_TYPE: - return status_ticket_type() - if self is TicketsListRequestRemoteFields.TICKET_TYPE: - return ticket_type() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_show_enum_origins.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_show_enum_origins.py deleted file mode 100644 index d077c628..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_show_enum_origins.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsListRequestShowEnumOrigins(str, enum.Enum): - PRIORITY = "priority" - PRIORITY_STATUS = "priority,status" - PRIORITY_STATUS_TICKET_TYPE = "priority,status,ticket_type" - PRIORITY_TICKET_TYPE = "priority,ticket_type" - STATUS = "status" - STATUS_TICKET_TYPE = "status,ticket_type" - TICKET_TYPE = "ticket_type" - - def visit( - self, - priority: typing.Callable[[], T_Result], - priority_status: typing.Callable[[], T_Result], - priority_status_ticket_type: typing.Callable[[], T_Result], - priority_ticket_type: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_ticket_type: typing.Callable[[], T_Result], - ticket_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsListRequestShowEnumOrigins.PRIORITY: - return priority() - if self is TicketsListRequestShowEnumOrigins.PRIORITY_STATUS: - return priority_status() - if self is TicketsListRequestShowEnumOrigins.PRIORITY_STATUS_TICKET_TYPE: - return priority_status_ticket_type() - if self is TicketsListRequestShowEnumOrigins.PRIORITY_TICKET_TYPE: - return priority_ticket_type() - if self is TicketsListRequestShowEnumOrigins.STATUS: - return status() - if self is TicketsListRequestShowEnumOrigins.STATUS_TICKET_TYPE: - return status_ticket_type() - if self is TicketsListRequestShowEnumOrigins.TICKET_TYPE: - return ticket_type() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_status.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_status.py deleted file mode 100644 index edb298e9..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_list_request_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsListRequestStatus(str, enum.Enum): - EMPTY = "" - CLOSED = "CLOSED" - IN_PROGRESS = "IN_PROGRESS" - ON_HOLD = "ON_HOLD" - OPEN = "OPEN" - - def visit( - self, - empty: typing.Callable[[], T_Result], - closed: typing.Callable[[], T_Result], - in_progress: typing.Callable[[], T_Result], - on_hold: typing.Callable[[], T_Result], - open: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsListRequestStatus.EMPTY: - return empty() - if self is TicketsListRequestStatus.CLOSED: - return closed() - if self is TicketsListRequestStatus.IN_PROGRESS: - return in_progress() - if self is TicketsListRequestStatus.ON_HOLD: - return on_hold() - if self is TicketsListRequestStatus.OPEN: - return open() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_expand.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_expand.py deleted file mode 100644 index 62c0058f..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_expand.py +++ /dev/null @@ -1,1171 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsRetrieveRequestExpand(str, enum.Enum): - ACCOUNT = "account" - ACCOUNT_CONTACT = "account,contact" - ACCOUNT_CONTACT_CREATOR = "account,contact,creator" - ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "account,contact,creator,parent_ticket" - ACCOUNT_CONTACT_PARENT_TICKET = "account,contact,parent_ticket" - ACCOUNT_CREATOR = "account,creator" - ACCOUNT_CREATOR_PARENT_TICKET = "account,creator,parent_ticket" - ACCOUNT_PARENT_TICKET = "account,parent_ticket" - ASSIGNED_TEAMS = "assigned_teams" - ASSIGNED_TEAMS_ACCOUNT = "assigned_teams,account" - ASSIGNED_TEAMS_ACCOUNT_CONTACT = "assigned_teams,account,contact" - ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "assigned_teams,account,contact,creator" - ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "assigned_teams,account,contact,creator,parent_ticket" - ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = "assigned_teams,account,contact,parent_ticket" - ASSIGNED_TEAMS_ACCOUNT_CREATOR = "assigned_teams,account,creator" - ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = "assigned_teams,account,creator,parent_ticket" - ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "assigned_teams,account,parent_ticket" - ASSIGNED_TEAMS_CONTACT = "assigned_teams,contact" - ASSIGNED_TEAMS_CONTACT_CREATOR = "assigned_teams,contact,creator" - ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = "assigned_teams,contact,creator,parent_ticket" - ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "assigned_teams,contact,parent_ticket" - ASSIGNED_TEAMS_CREATOR = "assigned_teams,creator" - ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "assigned_teams,creator,parent_ticket" - ASSIGNED_TEAMS_PARENT_TICKET = "assigned_teams,parent_ticket" - ASSIGNEES = "assignees" - ASSIGNEES_ACCOUNT = "assignees,account" - ASSIGNEES_ACCOUNT_CONTACT = "assignees,account,contact" - ASSIGNEES_ACCOUNT_CONTACT_CREATOR = "assignees,account,contact,creator" - ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "assignees,account,contact,creator,parent_ticket" - ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET = "assignees,account,contact,parent_ticket" - ASSIGNEES_ACCOUNT_CREATOR = "assignees,account,creator" - ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET = "assignees,account,creator,parent_ticket" - ASSIGNEES_ACCOUNT_PARENT_TICKET = "assignees,account,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS = "assignees,assigned_teams" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT = "assignees,assigned_teams,account" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "assignees,assigned_teams,account,contact" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "assignees,assigned_teams,account,contact,creator" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,assigned_teams,account,contact,creator,parent_ticket" - ) - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = "assignees,assigned_teams,account,contact,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "assignees,assigned_teams,account,creator" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = "assignees,assigned_teams,account,creator,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "assignees,assigned_teams,account,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT = "assignees,assigned_teams,contact" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR = "assignees,assigned_teams,contact,creator" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = "assignees,assigned_teams,contact,creator,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "assignees,assigned_teams,contact,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_CREATOR = "assignees,assigned_teams,creator" - ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "assignees,assigned_teams,creator,parent_ticket" - ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET = "assignees,assigned_teams,parent_ticket" - ASSIGNEES_COLLECTIONS = "assignees,collections" - ASSIGNEES_COLLECTIONS_ACCOUNT = "assignees,collections,account" - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT = "assignees,collections,account,contact" - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR = "assignees,collections,account,contact,creator" - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,collections,account,contact,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = "assignees,collections,account,contact,parent_ticket" - ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR = "assignees,collections,account,creator" - ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = "assignees,collections,account,creator,parent_ticket" - ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET = "assignees,collections,account,parent_ticket" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS = "assignees,collections,assigned_teams" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = "assignees,collections,assigned_teams,account" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "assignees,collections,assigned_teams,account,contact" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "assignees,collections,assigned_teams,account,contact,creator" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,contact,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "assignees,collections,assigned_teams,account,creator" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "assignees,collections,assigned_teams,account,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT = "assignees,collections,assigned_teams,contact" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = "assignees,collections,assigned_teams,contact,creator" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,contact,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "assignees,collections,assigned_teams,contact,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR = "assignees,collections,assigned_teams,creator" - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "assignees,collections,assigned_teams,creator,parent_ticket" - ) - ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = "assignees,collections,assigned_teams,parent_ticket" - ASSIGNEES_COLLECTIONS_CONTACT = "assignees,collections,contact" - ASSIGNEES_COLLECTIONS_CONTACT_CREATOR = "assignees,collections,contact,creator" - ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = "assignees,collections,contact,creator,parent_ticket" - ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET = "assignees,collections,contact,parent_ticket" - ASSIGNEES_COLLECTIONS_CREATOR = "assignees,collections,creator" - ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET = "assignees,collections,creator,parent_ticket" - ASSIGNEES_COLLECTIONS_PARENT_TICKET = "assignees,collections,parent_ticket" - ASSIGNEES_CONTACT = "assignees,contact" - ASSIGNEES_CONTACT_CREATOR = "assignees,contact,creator" - ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET = "assignees,contact,creator,parent_ticket" - ASSIGNEES_CONTACT_PARENT_TICKET = "assignees,contact,parent_ticket" - ASSIGNEES_CREATOR = "assignees,creator" - ASSIGNEES_CREATOR_PARENT_TICKET = "assignees,creator,parent_ticket" - ASSIGNEES_PARENT_TICKET = "assignees,parent_ticket" - ATTACHMENTS = "attachments" - ATTACHMENTS_ACCOUNT = "attachments,account" - ATTACHMENTS_ACCOUNT_CONTACT = "attachments,account,contact" - ATTACHMENTS_ACCOUNT_CONTACT_CREATOR = "attachments,account,contact,creator" - ATTACHMENTS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "attachments,account,contact,creator,parent_ticket" - ATTACHMENTS_ACCOUNT_CONTACT_PARENT_TICKET = "attachments,account,contact,parent_ticket" - ATTACHMENTS_ACCOUNT_CREATOR = "attachments,account,creator" - ATTACHMENTS_ACCOUNT_CREATOR_PARENT_TICKET = "attachments,account,creator,parent_ticket" - ATTACHMENTS_ACCOUNT_PARENT_TICKET = "attachments,account,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS = "attachments,assigned_teams" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT = "attachments,assigned_teams,account" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "attachments,assigned_teams,account,contact" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "attachments,assigned_teams,account,contact,creator" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "attachments,assigned_teams,account,creator" - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "attachments,assigned_teams,account,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT = "attachments,assigned_teams,contact" - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR = "attachments,assigned_teams,contact,creator" - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "attachments,assigned_teams,contact,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS_CREATOR = "attachments,assigned_teams,creator" - ATTACHMENTS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "attachments,assigned_teams,creator,parent_ticket" - ATTACHMENTS_ASSIGNED_TEAMS_PARENT_TICKET = "attachments,assigned_teams,parent_ticket" - ATTACHMENTS_ASSIGNEES = "attachments,assignees" - ATTACHMENTS_ASSIGNEES_ACCOUNT = "attachments,assignees,account" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT = "attachments,assignees,account,contact" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR = "attachments,assignees,account,contact,creator" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET = "attachments,assignees,account,contact,parent_ticket" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR = "attachments,assignees,account,creator" - ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET = "attachments,assignees,account,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_ACCOUNT_PARENT_TICKET = "attachments,assignees,account,parent_ticket" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS = "attachments,assignees,assigned_teams" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT = "attachments,assignees,assigned_teams,account" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "attachments,assignees,assigned_teams,account,contact" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,assignees,assigned_teams,account,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "attachments,assignees,assigned_teams,account,creator" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,account,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT = "attachments,assignees,assigned_teams,contact" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR = "attachments,assignees,assigned_teams,contact,creator" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR = "attachments,assignees,assigned_teams,creator" - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "attachments,assignees,assigned_teams,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET = "attachments,assignees,assigned_teams,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS = "attachments,assignees,collections" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT = "attachments,assignees,collections,account" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT = "attachments,assignees,collections,account,contact" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,assignees,collections,account,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assignees,collections,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR = "attachments,assignees,collections,account,creator" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET = "attachments,assignees,collections,account,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS = "attachments,assignees,collections,assigned_teams" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = ( - "attachments,assignees,collections,assigned_teams,account" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = ( - "attachments,assignees,collections,assigned_teams,account,contact" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,assignees,collections,assigned_teams,account,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = ( - "attachments,assignees,collections,assigned_teams,account,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,account,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT = ( - "attachments,assignees,collections,assigned_teams,contact" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = ( - "attachments,assignees,collections,assigned_teams,contact,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,contact,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR = ( - "attachments,assignees,collections,assigned_teams,creator" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = ( - "attachments,assignees,collections,assigned_teams,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT = "attachments,assignees,collections,contact" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR = "attachments,assignees,collections,contact,creator" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,assignees,collections,contact,creator,parent_ticket" - ) - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET = "attachments,assignees,collections,contact,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR = "attachments,assignees,collections,creator" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET = "attachments,assignees,collections,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_COLLECTIONS_PARENT_TICKET = "attachments,assignees,collections,parent_ticket" - ATTACHMENTS_ASSIGNEES_CONTACT = "attachments,assignees,contact" - ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR = "attachments,assignees,contact,creator" - ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET = "attachments,assignees,contact,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_CONTACT_PARENT_TICKET = "attachments,assignees,contact,parent_ticket" - ATTACHMENTS_ASSIGNEES_CREATOR = "attachments,assignees,creator" - ATTACHMENTS_ASSIGNEES_CREATOR_PARENT_TICKET = "attachments,assignees,creator,parent_ticket" - ATTACHMENTS_ASSIGNEES_PARENT_TICKET = "attachments,assignees,parent_ticket" - ATTACHMENTS_COLLECTIONS = "attachments,collections" - ATTACHMENTS_COLLECTIONS_ACCOUNT = "attachments,collections,account" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT = "attachments,collections,account,contact" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR = "attachments,collections,account,contact,creator" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,collections,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = "attachments,collections,account,contact,parent_ticket" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR = "attachments,collections,account,creator" - ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = "attachments,collections,account,creator,parent_ticket" - ATTACHMENTS_COLLECTIONS_ACCOUNT_PARENT_TICKET = "attachments,collections,account,parent_ticket" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS = "attachments,collections,assigned_teams" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = "attachments,collections,assigned_teams,account" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "attachments,collections,assigned_teams,account,contact" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = ( - "attachments,collections,assigned_teams,account,contact,creator" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,contact,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,contact,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "attachments,collections,assigned_teams,account,creator" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = ( - "attachments,collections,assigned_teams,account,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT = "attachments,collections,assigned_teams,contact" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = "attachments,collections,assigned_teams,contact,creator" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,contact,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = ( - "attachments,collections,assigned_teams,contact,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR = "attachments,collections,assigned_teams,creator" - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = ( - "attachments,collections,assigned_teams,creator,parent_ticket" - ) - ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = "attachments,collections,assigned_teams,parent_ticket" - ATTACHMENTS_COLLECTIONS_CONTACT = "attachments,collections,contact" - ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR = "attachments,collections,contact,creator" - ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = "attachments,collections,contact,creator,parent_ticket" - ATTACHMENTS_COLLECTIONS_CONTACT_PARENT_TICKET = "attachments,collections,contact,parent_ticket" - ATTACHMENTS_COLLECTIONS_CREATOR = "attachments,collections,creator" - ATTACHMENTS_COLLECTIONS_CREATOR_PARENT_TICKET = "attachments,collections,creator,parent_ticket" - ATTACHMENTS_COLLECTIONS_PARENT_TICKET = "attachments,collections,parent_ticket" - ATTACHMENTS_CONTACT = "attachments,contact" - ATTACHMENTS_CONTACT_CREATOR = "attachments,contact,creator" - ATTACHMENTS_CONTACT_CREATOR_PARENT_TICKET = "attachments,contact,creator,parent_ticket" - ATTACHMENTS_CONTACT_PARENT_TICKET = "attachments,contact,parent_ticket" - ATTACHMENTS_CREATOR = "attachments,creator" - ATTACHMENTS_CREATOR_PARENT_TICKET = "attachments,creator,parent_ticket" - ATTACHMENTS_PARENT_TICKET = "attachments,parent_ticket" - COLLECTIONS = "collections" - COLLECTIONS_ACCOUNT = "collections,account" - COLLECTIONS_ACCOUNT_CONTACT = "collections,account,contact" - COLLECTIONS_ACCOUNT_CONTACT_CREATOR = "collections,account,contact,creator" - COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = "collections,account,contact,creator,parent_ticket" - COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET = "collections,account,contact,parent_ticket" - COLLECTIONS_ACCOUNT_CREATOR = "collections,account,creator" - COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET = "collections,account,creator,parent_ticket" - COLLECTIONS_ACCOUNT_PARENT_TICKET = "collections,account,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS = "collections,assigned_teams" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT = "collections,assigned_teams,account" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT = "collections,assigned_teams,account,contact" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR = "collections,assigned_teams,account,contact,creator" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET = ( - "collections,assigned_teams,account,contact,creator,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET = ( - "collections,assigned_teams,account,contact,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR = "collections,assigned_teams,account,creator" - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET = ( - "collections,assigned_teams,account,creator,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET = "collections,assigned_teams,account,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS_CONTACT = "collections,assigned_teams,contact" - COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR = "collections,assigned_teams,contact,creator" - COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET = ( - "collections,assigned_teams,contact,creator,parent_ticket" - ) - COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET = "collections,assigned_teams,contact,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS_CREATOR = "collections,assigned_teams,creator" - COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET = "collections,assigned_teams,creator,parent_ticket" - COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET = "collections,assigned_teams,parent_ticket" - COLLECTIONS_CONTACT = "collections,contact" - COLLECTIONS_CONTACT_CREATOR = "collections,contact,creator" - COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET = "collections,contact,creator,parent_ticket" - COLLECTIONS_CONTACT_PARENT_TICKET = "collections,contact,parent_ticket" - COLLECTIONS_CREATOR = "collections,creator" - COLLECTIONS_CREATOR_PARENT_TICKET = "collections,creator,parent_ticket" - COLLECTIONS_PARENT_TICKET = "collections,parent_ticket" - CONTACT = "contact" - CONTACT_CREATOR = "contact,creator" - CONTACT_CREATOR_PARENT_TICKET = "contact,creator,parent_ticket" - CONTACT_PARENT_TICKET = "contact,parent_ticket" - CREATOR = "creator" - CREATOR_PARENT_TICKET = "creator,parent_ticket" - PARENT_TICKET = "parent_ticket" - - def visit( - self, - account: typing.Callable[[], T_Result], - account_contact: typing.Callable[[], T_Result], - account_contact_creator: typing.Callable[[], T_Result], - account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - account_contact_parent_ticket: typing.Callable[[], T_Result], - account_creator: typing.Callable[[], T_Result], - account_creator_parent_ticket: typing.Callable[[], T_Result], - account_parent_ticket: typing.Callable[[], T_Result], - assigned_teams: typing.Callable[[], T_Result], - assigned_teams_account: typing.Callable[[], T_Result], - assigned_teams_account_contact: typing.Callable[[], T_Result], - assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_account_creator: typing.Callable[[], T_Result], - assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_contact: typing.Callable[[], T_Result], - assigned_teams_contact_creator: typing.Callable[[], T_Result], - assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_creator: typing.Callable[[], T_Result], - assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - assigned_teams_parent_ticket: typing.Callable[[], T_Result], - assignees: typing.Callable[[], T_Result], - assignees_account: typing.Callable[[], T_Result], - assignees_account_contact: typing.Callable[[], T_Result], - assignees_account_contact_creator: typing.Callable[[], T_Result], - assignees_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_account_creator: typing.Callable[[], T_Result], - assignees_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_account_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams: typing.Callable[[], T_Result], - assignees_assigned_teams_account: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_account_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_contact: typing.Callable[[], T_Result], - assignees_assigned_teams_contact_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_creator: typing.Callable[[], T_Result], - assignees_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - assignees_collections: typing.Callable[[], T_Result], - assignees_collections_account: typing.Callable[[], T_Result], - assignees_collections_account_contact: typing.Callable[[], T_Result], - assignees_collections_account_contact_creator: typing.Callable[[], T_Result], - assignees_collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_account_creator: typing.Callable[[], T_Result], - assignees_collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_account_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_creator: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_contact: typing.Callable[[], T_Result], - assignees_collections_contact_creator: typing.Callable[[], T_Result], - assignees_collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_creator: typing.Callable[[], T_Result], - assignees_collections_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_collections_parent_ticket: typing.Callable[[], T_Result], - assignees_contact: typing.Callable[[], T_Result], - assignees_contact_creator: typing.Callable[[], T_Result], - assignees_contact_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_contact_parent_ticket: typing.Callable[[], T_Result], - assignees_creator: typing.Callable[[], T_Result], - assignees_creator_parent_ticket: typing.Callable[[], T_Result], - assignees_parent_ticket: typing.Callable[[], T_Result], - attachments: typing.Callable[[], T_Result], - attachments_account: typing.Callable[[], T_Result], - attachments_account_contact: typing.Callable[[], T_Result], - attachments_account_contact_creator: typing.Callable[[], T_Result], - attachments_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_account_creator: typing.Callable[[], T_Result], - attachments_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams: typing.Callable[[], T_Result], - attachments_assigned_teams_account: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees: typing.Callable[[], T_Result], - attachments_assignees_account: typing.Callable[[], T_Result], - attachments_assignees_account_contact: typing.Callable[[], T_Result], - attachments_assignees_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_account_creator: typing.Callable[[], T_Result], - attachments_assignees_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections: typing.Callable[[], T_Result], - attachments_assignees_collections_account: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_account_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[ - [], T_Result - ], - attachments_assignees_collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_contact: typing.Callable[[], T_Result], - attachments_assignees_collections_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_creator: typing.Callable[[], T_Result], - attachments_assignees_collections_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_collections_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_contact: typing.Callable[[], T_Result], - attachments_assignees_contact_creator: typing.Callable[[], T_Result], - attachments_assignees_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_creator: typing.Callable[[], T_Result], - attachments_assignees_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_assignees_parent_ticket: typing.Callable[[], T_Result], - attachments_collections: typing.Callable[[], T_Result], - attachments_collections_account: typing.Callable[[], T_Result], - attachments_collections_account_contact: typing.Callable[[], T_Result], - attachments_collections_account_contact_creator: typing.Callable[[], T_Result], - attachments_collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_account_creator: typing.Callable[[], T_Result], - attachments_collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_account_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_creator: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_contact: typing.Callable[[], T_Result], - attachments_collections_contact_creator: typing.Callable[[], T_Result], - attachments_collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_creator: typing.Callable[[], T_Result], - attachments_collections_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_collections_parent_ticket: typing.Callable[[], T_Result], - attachments_contact: typing.Callable[[], T_Result], - attachments_contact_creator: typing.Callable[[], T_Result], - attachments_contact_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_contact_parent_ticket: typing.Callable[[], T_Result], - attachments_creator: typing.Callable[[], T_Result], - attachments_creator_parent_ticket: typing.Callable[[], T_Result], - attachments_parent_ticket: typing.Callable[[], T_Result], - collections: typing.Callable[[], T_Result], - collections_account: typing.Callable[[], T_Result], - collections_account_contact: typing.Callable[[], T_Result], - collections_account_contact_creator: typing.Callable[[], T_Result], - collections_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_account_contact_parent_ticket: typing.Callable[[], T_Result], - collections_account_creator: typing.Callable[[], T_Result], - collections_account_creator_parent_ticket: typing.Callable[[], T_Result], - collections_account_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams: typing.Callable[[], T_Result], - collections_assigned_teams_account: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact_creator: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_account_contact_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_account_creator: typing.Callable[[], T_Result], - collections_assigned_teams_account_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_account_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_contact: typing.Callable[[], T_Result], - collections_assigned_teams_contact_creator: typing.Callable[[], T_Result], - collections_assigned_teams_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_contact_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_creator: typing.Callable[[], T_Result], - collections_assigned_teams_creator_parent_ticket: typing.Callable[[], T_Result], - collections_assigned_teams_parent_ticket: typing.Callable[[], T_Result], - collections_contact: typing.Callable[[], T_Result], - collections_contact_creator: typing.Callable[[], T_Result], - collections_contact_creator_parent_ticket: typing.Callable[[], T_Result], - collections_contact_parent_ticket: typing.Callable[[], T_Result], - collections_creator: typing.Callable[[], T_Result], - collections_creator_parent_ticket: typing.Callable[[], T_Result], - collections_parent_ticket: typing.Callable[[], T_Result], - contact: typing.Callable[[], T_Result], - contact_creator: typing.Callable[[], T_Result], - contact_creator_parent_ticket: typing.Callable[[], T_Result], - contact_parent_ticket: typing.Callable[[], T_Result], - creator: typing.Callable[[], T_Result], - creator_parent_ticket: typing.Callable[[], T_Result], - parent_ticket: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsRetrieveRequestExpand.ACCOUNT: - return account() - if self is TicketsRetrieveRequestExpand.ACCOUNT_CONTACT: - return account_contact() - if self is TicketsRetrieveRequestExpand.ACCOUNT_CONTACT_CREATOR: - return account_contact_creator() - if self is TicketsRetrieveRequestExpand.ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ACCOUNT_CONTACT_PARENT_TICKET: - return account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ACCOUNT_CREATOR: - return account_creator() - if self is TicketsRetrieveRequestExpand.ACCOUNT_CREATOR_PARENT_TICKET: - return account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ACCOUNT_PARENT_TICKET: - return account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS: - return assigned_teams() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT: - return assigned_teams_account() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return assigned_teams_account_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return assigned_teams_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return assigned_teams_account_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_CONTACT: - return assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_CONTACT_CREATOR: - return assigned_teams_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_CREATOR: - return assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNED_TEAMS_PARENT_TICKET: - return assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES: - return assignees() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT: - return assignees_account() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT_CONTACT: - return assignees_account_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT_CONTACT_CREATOR: - return assignees_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assignees_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT_CREATOR: - return assignees_account_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ACCOUNT_PARENT_TICKET: - return assignees_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS: - return assignees_assigned_teams() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT: - return assignees_assigned_teams_account() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return assignees_assigned_teams_account_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return assignees_assigned_teams_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return assignees_assigned_teams_account_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return assignees_assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT: - return assignees_assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR: - return assignees_assigned_teams_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return assignees_assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CREATOR: - return assignees_assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return assignees_assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET: - return assignees_assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS: - return assignees_collections() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT: - return assignees_collections_account() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT: - return assignees_collections_account_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return assignees_collections_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return assignees_collections_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_collections_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR: - return assignees_collections_account_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_collections_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET: - return assignees_collections_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS: - return assignees_collections_assigned_teams() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return assignees_collections_assigned_teams_account() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return assignees_collections_assigned_teams_account_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return assignees_collections_assigned_teams_account_contact_creator() - if ( - self - is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET - ): - return assignees_collections_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return assignees_collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return assignees_collections_assigned_teams_account_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return assignees_collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return assignees_collections_assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return assignees_collections_assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return assignees_collections_assigned_teams_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return assignees_collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return assignees_collections_assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return assignees_collections_assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return assignees_collections_assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return assignees_collections_assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT: - return assignees_collections_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT_CREATOR: - return assignees_collections_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return assignees_collections_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET: - return assignees_collections_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_CREATOR: - return assignees_collections_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET: - return assignees_collections_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_COLLECTIONS_PARENT_TICKET: - return assignees_collections_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_CONTACT: - return assignees_contact() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_CONTACT_CREATOR: - return assignees_contact_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET: - return assignees_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_CONTACT_PARENT_TICKET: - return assignees_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_CREATOR: - return assignees_creator() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_CREATOR_PARENT_TICKET: - return assignees_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ASSIGNEES_PARENT_TICKET: - return assignees_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS: - return attachments() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT: - return attachments_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT: - return attachments_account_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT_CREATOR: - return attachments_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT_CREATOR: - return attachments_account_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ACCOUNT_PARENT_TICKET: - return attachments_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS: - return attachments_assigned_teams() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT: - return attachments_assigned_teams_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_assigned_teams_account_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return attachments_assigned_teams_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_assigned_teams_account_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT: - return attachments_assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_assigned_teams_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CREATOR: - return attachments_assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES: - return attachments_assignees() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT: - return attachments_assignees_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT: - return attachments_assignees_account_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR: - return attachments_assignees_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assignees_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR: - return attachments_assignees_account_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assignees_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ACCOUNT_PARENT_TICKET: - return attachments_assignees_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS: - return attachments_assignees_assigned_teams() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT: - return attachments_assignees_assigned_teams_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_assignees_assigned_teams_account_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return attachments_assignees_assigned_teams_account_contact_creator() - if ( - self - is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET - ): - return attachments_assignees_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assignees_assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_assignees_assigned_teams_account_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assignees_assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_assignees_assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT: - return attachments_assignees_assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_assignees_assigned_teams_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_assignees_assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR: - return attachments_assignees_assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_assignees_assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_assignees_assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS: - return attachments_assignees_collections() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT: - return attachments_assignees_collections_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT: - return attachments_assignees_collections_account_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return attachments_assignees_collections_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_assignees_collections_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR: - return attachments_assignees_collections_account_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ACCOUNT_PARENT_TICKET: - return attachments_assignees_collections_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS: - return attachments_assignees_collections_assigned_teams() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return attachments_assignees_collections_assigned_teams_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_assignees_collections_assigned_teams_account_contact() - if ( - self - is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR - ): - return attachments_assignees_collections_assigned_teams_account_contact_creator() - if ( - self - is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_account_contact_creator_parent_ticket() - if ( - self - is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_assignees_collections_assigned_teams_account_creator() - if ( - self - is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return attachments_assignees_collections_assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_assignees_collections_assigned_teams_contact_creator() - if ( - self - is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET - ): - return attachments_assignees_collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return attachments_assignees_collections_assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_assignees_collections_assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT: - return attachments_assignees_collections_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR: - return attachments_assignees_collections_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CONTACT_PARENT_TICKET: - return attachments_assignees_collections_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR: - return attachments_assignees_collections_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_CREATOR_PARENT_TICKET: - return attachments_assignees_collections_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_COLLECTIONS_PARENT_TICKET: - return attachments_assignees_collections_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT: - return attachments_assignees_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR: - return attachments_assignees_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT_CREATOR_PARENT_TICKET: - return attachments_assignees_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_CONTACT_PARENT_TICKET: - return attachments_assignees_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_CREATOR: - return attachments_assignees_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_CREATOR_PARENT_TICKET: - return attachments_assignees_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_ASSIGNEES_PARENT_TICKET: - return attachments_assignees_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS: - return attachments_collections() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT: - return attachments_collections_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT: - return attachments_collections_account_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return attachments_collections_account_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return attachments_collections_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_collections_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR: - return attachments_collections_account_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_collections_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ACCOUNT_PARENT_TICKET: - return attachments_collections_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS: - return attachments_collections_assigned_teams() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return attachments_collections_assigned_teams_account() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return attachments_collections_assigned_teams_account_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return attachments_collections_assigned_teams_account_contact_creator() - if ( - self - is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET - ): - return attachments_collections_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return attachments_collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return attachments_collections_assigned_teams_account_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return attachments_collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return attachments_collections_assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return attachments_collections_assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return attachments_collections_assigned_teams_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return attachments_collections_assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return attachments_collections_assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return attachments_collections_assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return attachments_collections_assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT: - return attachments_collections_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR: - return attachments_collections_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_collections_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_CONTACT_PARENT_TICKET: - return attachments_collections_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_CREATOR: - return attachments_collections_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_CREATOR_PARENT_TICKET: - return attachments_collections_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_COLLECTIONS_PARENT_TICKET: - return attachments_collections_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_CONTACT: - return attachments_contact() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_CONTACT_CREATOR: - return attachments_contact_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_CONTACT_CREATOR_PARENT_TICKET: - return attachments_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_CONTACT_PARENT_TICKET: - return attachments_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_CREATOR: - return attachments_creator() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_CREATOR_PARENT_TICKET: - return attachments_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.ATTACHMENTS_PARENT_TICKET: - return attachments_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS: - return collections() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT: - return collections_account() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT_CONTACT: - return collections_account_contact() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT_CONTACT_CREATOR: - return collections_account_contact_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return collections_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT_CONTACT_PARENT_TICKET: - return collections_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT_CREATOR: - return collections_account_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT_CREATOR_PARENT_TICKET: - return collections_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ACCOUNT_PARENT_TICKET: - return collections_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS: - return collections_assigned_teams() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT: - return collections_assigned_teams_account() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT: - return collections_assigned_teams_account_contact() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR: - return collections_assigned_teams_account_contact_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_CREATOR_PARENT_TICKET: - return collections_assigned_teams_account_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CONTACT_PARENT_TICKET: - return collections_assigned_teams_account_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR: - return collections_assigned_teams_account_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_CREATOR_PARENT_TICKET: - return collections_assigned_teams_account_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_ACCOUNT_PARENT_TICKET: - return collections_assigned_teams_account_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT: - return collections_assigned_teams_contact() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR: - return collections_assigned_teams_contact_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT_CREATOR_PARENT_TICKET: - return collections_assigned_teams_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CONTACT_PARENT_TICKET: - return collections_assigned_teams_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CREATOR: - return collections_assigned_teams_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_CREATOR_PARENT_TICKET: - return collections_assigned_teams_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_ASSIGNED_TEAMS_PARENT_TICKET: - return collections_assigned_teams_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_CONTACT: - return collections_contact() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_CONTACT_CREATOR: - return collections_contact_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_CONTACT_CREATOR_PARENT_TICKET: - return collections_contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_CONTACT_PARENT_TICKET: - return collections_contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_CREATOR: - return collections_creator() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_CREATOR_PARENT_TICKET: - return collections_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.COLLECTIONS_PARENT_TICKET: - return collections_parent_ticket() - if self is TicketsRetrieveRequestExpand.CONTACT: - return contact() - if self is TicketsRetrieveRequestExpand.CONTACT_CREATOR: - return contact_creator() - if self is TicketsRetrieveRequestExpand.CONTACT_CREATOR_PARENT_TICKET: - return contact_creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.CONTACT_PARENT_TICKET: - return contact_parent_ticket() - if self is TicketsRetrieveRequestExpand.CREATOR: - return creator() - if self is TicketsRetrieveRequestExpand.CREATOR_PARENT_TICKET: - return creator_parent_ticket() - if self is TicketsRetrieveRequestExpand.PARENT_TICKET: - return parent_ticket() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_remote_fields.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_remote_fields.py deleted file mode 100644 index 18dfa4e7..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_remote_fields.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsRetrieveRequestRemoteFields(str, enum.Enum): - PRIORITY = "priority" - PRIORITY_STATUS = "priority,status" - PRIORITY_STATUS_TICKET_TYPE = "priority,status,ticket_type" - PRIORITY_TICKET_TYPE = "priority,ticket_type" - STATUS = "status" - STATUS_TICKET_TYPE = "status,ticket_type" - TICKET_TYPE = "ticket_type" - - def visit( - self, - priority: typing.Callable[[], T_Result], - priority_status: typing.Callable[[], T_Result], - priority_status_ticket_type: typing.Callable[[], T_Result], - priority_ticket_type: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_ticket_type: typing.Callable[[], T_Result], - ticket_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsRetrieveRequestRemoteFields.PRIORITY: - return priority() - if self is TicketsRetrieveRequestRemoteFields.PRIORITY_STATUS: - return priority_status() - if self is TicketsRetrieveRequestRemoteFields.PRIORITY_STATUS_TICKET_TYPE: - return priority_status_ticket_type() - if self is TicketsRetrieveRequestRemoteFields.PRIORITY_TICKET_TYPE: - return priority_ticket_type() - if self is TicketsRetrieveRequestRemoteFields.STATUS: - return status() - if self is TicketsRetrieveRequestRemoteFields.STATUS_TICKET_TYPE: - return status_ticket_type() - if self is TicketsRetrieveRequestRemoteFields.TICKET_TYPE: - return ticket_type() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_show_enum_origins.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_show_enum_origins.py deleted file mode 100644 index a0fcfa42..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_retrieve_request_show_enum_origins.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsRetrieveRequestShowEnumOrigins(str, enum.Enum): - PRIORITY = "priority" - PRIORITY_STATUS = "priority,status" - PRIORITY_STATUS_TICKET_TYPE = "priority,status,ticket_type" - PRIORITY_TICKET_TYPE = "priority,ticket_type" - STATUS = "status" - STATUS_TICKET_TYPE = "status,ticket_type" - TICKET_TYPE = "ticket_type" - - def visit( - self, - priority: typing.Callable[[], T_Result], - priority_status: typing.Callable[[], T_Result], - priority_status_ticket_type: typing.Callable[[], T_Result], - priority_ticket_type: typing.Callable[[], T_Result], - status: typing.Callable[[], T_Result], - status_ticket_type: typing.Callable[[], T_Result], - ticket_type: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsRetrieveRequestShowEnumOrigins.PRIORITY: - return priority() - if self is TicketsRetrieveRequestShowEnumOrigins.PRIORITY_STATUS: - return priority_status() - if self is TicketsRetrieveRequestShowEnumOrigins.PRIORITY_STATUS_TICKET_TYPE: - return priority_status_ticket_type() - if self is TicketsRetrieveRequestShowEnumOrigins.PRIORITY_TICKET_TYPE: - return priority_ticket_type() - if self is TicketsRetrieveRequestShowEnumOrigins.STATUS: - return status() - if self is TicketsRetrieveRequestShowEnumOrigins.STATUS_TICKET_TYPE: - return status_ticket_type() - if self is TicketsRetrieveRequestShowEnumOrigins.TICKET_TYPE: - return ticket_type() diff --git a/src/merge/resources/ticketing/resources/tickets/types/tickets_viewers_list_request_expand.py b/src/merge/resources/ticketing/resources/tickets/types/tickets_viewers_list_request_expand.py deleted file mode 100644 index ddb14bb3..00000000 --- a/src/merge/resources/ticketing/resources/tickets/types/tickets_viewers_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketsViewersListRequestExpand(str, enum.Enum): - TEAM = "team" - USER = "user" - USER_TEAM = "user,team" - - def visit( - self, - team: typing.Callable[[], T_Result], - user: typing.Callable[[], T_Result], - user_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketsViewersListRequestExpand.TEAM: - return team() - if self is TicketsViewersListRequestExpand.USER: - return user() - if self is TicketsViewersListRequestExpand.USER_TEAM: - return user_team() diff --git a/src/merge/resources/ticketing/resources/users/__init__.py b/src/merge/resources/ticketing/resources/users/__init__.py deleted file mode 100644 index a2dfa5f8..00000000 --- a/src/merge/resources/ticketing/resources/users/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .types import UsersListRequestExpand, UsersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = {"UsersListRequestExpand": ".types", "UsersRetrieveRequestExpand": ".types"} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["UsersListRequestExpand", "UsersRetrieveRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/users/client.py b/src/merge/resources/ticketing/resources/users/client.py deleted file mode 100644 index 69855e85..00000000 --- a/src/merge/resources/ticketing/resources/users/client.py +++ /dev/null @@ -1,421 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User -from .raw_client import AsyncRawUsersClient, RawUsersClient -from .types.users_list_request_expand import UsersListRequestExpand -from .types.users_retrieve_request_expand import UsersRetrieveRequestExpand - - -class UsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawUsersClient - """ - return self._raw_client - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[UsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - team: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return users with emails equal to this value (case insensitive). - - expand : typing.Optional[UsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - team : typing.Optional[str] - If provided, will only return users matching in this team. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import datetime - - from merge import Merge - from merge.resources.ticketing.resources.users import UsersListRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - expand=UsersListRequestExpand.ROLES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - team="team", - ) - """ - _response = self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_address=email_address, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - team=team, - request_options=request_options, - ) - return _response.data - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[UsersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[UsersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - from merge import Merge - from merge.resources.ticketing.resources.users import UsersRetrieveRequestExpand - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.users.retrieve( - id="id", - expand=UsersRetrieveRequestExpand.ROLES, - include_remote_data=True, - include_shell_data=True, - ) - """ - _response = self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data - - -class AsyncUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawUsersClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawUsersClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawUsersClient - """ - return self._raw_client - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[UsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - team: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> PaginatedUserList: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return users with emails equal to this value (case insensitive). - - expand : typing.Optional[UsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - team : typing.Optional[str] - If provided, will only return users matching in this team. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - PaginatedUserList - - - Examples - -------- - import asyncio - import datetime - - from merge import AsyncMerge - from merge.resources.ticketing.resources.users import UsersListRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.users.list( - created_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - created_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email_address="email_address", - expand=UsersListRequestExpand.ROLES, - include_deleted_data=True, - include_remote_data=True, - include_shell_data=True, - modified_after=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - modified_before=datetime.datetime.fromisoformat( - "2024-01-15 09:30:00+00:00", - ), - page_size=1, - remote_id="remote_id", - team="team", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.list( - created_after=created_after, - created_before=created_before, - cursor=cursor, - email_address=email_address, - expand=expand, - include_deleted_data=include_deleted_data, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - modified_after=modified_after, - modified_before=modified_before, - page_size=page_size, - remote_id=remote_id, - team=team, - request_options=request_options, - ) - return _response.data - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[UsersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> User: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[UsersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - User - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - from merge.resources.ticketing.resources.users import UsersRetrieveRequestExpand - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.users.retrieve( - id="id", - expand=UsersRetrieveRequestExpand.ROLES, - include_remote_data=True, - include_shell_data=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.retrieve( - id, - expand=expand, - include_remote_data=include_remote_data, - include_shell_data=include_shell_data, - request_options=request_options, - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/users/raw_client.py b/src/merge/resources/ticketing/resources/users/raw_client.py deleted file mode 100644 index b7f9c286..00000000 --- a/src/merge/resources/ticketing/resources/users/raw_client.py +++ /dev/null @@ -1,353 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.datetime_utils import serialize_datetime -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.jsonable_encoder import jsonable_encoder -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.paginated_user_list import PaginatedUserList -from ...types.user import User -from .types.users_list_request_expand import UsersListRequestExpand -from .types.users_retrieve_request_expand import UsersRetrieveRequestExpand - - -class RawUsersClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[UsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - team: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return users with emails equal to this value (case insensitive). - - expand : typing.Optional[UsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - team : typing.Optional[str] - If provided, will only return users matching in this team. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[PaginatedUserList] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_address": email_address, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "team": team, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def retrieve( - self, - id: str, - *, - expand: typing.Optional[UsersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[UsersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[User] - - """ - _response = self._client_wrapper.httpx_client.request( - f"ticketing/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawUsersClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, - *, - created_after: typing.Optional[dt.datetime] = None, - created_before: typing.Optional[dt.datetime] = None, - cursor: typing.Optional[str] = None, - email_address: typing.Optional[str] = None, - expand: typing.Optional[UsersListRequestExpand] = None, - include_deleted_data: typing.Optional[bool] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - modified_after: typing.Optional[dt.datetime] = None, - modified_before: typing.Optional[dt.datetime] = None, - page_size: typing.Optional[int] = None, - remote_id: typing.Optional[str] = None, - team: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[PaginatedUserList]: - """ - Returns a list of `User` objects. - - Parameters - ---------- - created_after : typing.Optional[dt.datetime] - If provided, will only return objects created after this datetime. - - created_before : typing.Optional[dt.datetime] - If provided, will only return objects created before this datetime. - - cursor : typing.Optional[str] - The pagination cursor value. - - email_address : typing.Optional[str] - If provided, will only return users with emails equal to this value (case insensitive). - - expand : typing.Optional[UsersListRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_deleted_data : typing.Optional[bool] - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - modified_after : typing.Optional[dt.datetime] - If provided, only objects synced by Merge after this date time will be returned. - - modified_before : typing.Optional[dt.datetime] - If provided, only objects synced by Merge before this date time will be returned. - - page_size : typing.Optional[int] - Number of results to return per page. The maximum limit is 100. - - remote_id : typing.Optional[str] - The API provider's ID for the given object. - - team : typing.Optional[str] - If provided, will only return users matching in this team. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[PaginatedUserList] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/users", - method="GET", - params={ - "created_after": serialize_datetime(created_after) if created_after is not None else None, - "created_before": serialize_datetime(created_before) if created_before is not None else None, - "cursor": cursor, - "email_address": email_address, - "expand": expand, - "include_deleted_data": include_deleted_data, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - "modified_after": serialize_datetime(modified_after) if modified_after is not None else None, - "modified_before": serialize_datetime(modified_before) if modified_before is not None else None, - "page_size": page_size, - "remote_id": remote_id, - "team": team, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - PaginatedUserList, - construct_type( - type_=PaginatedUserList, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def retrieve( - self, - id: str, - *, - expand: typing.Optional[UsersRetrieveRequestExpand] = None, - include_remote_data: typing.Optional[bool] = None, - include_shell_data: typing.Optional[bool] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[User]: - """ - Returns a `User` object with the given `id`. - - Parameters - ---------- - id : str - - expand : typing.Optional[UsersRetrieveRequestExpand] - Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. - - include_remote_data : typing.Optional[bool] - Whether to include the original data Merge fetched from the third-party to produce these models. - - include_shell_data : typing.Optional[bool] - Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[User] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"ticketing/v1/users/{jsonable_encoder(id)}", - method="GET", - params={ - "expand": expand, - "include_remote_data": include_remote_data, - "include_shell_data": include_shell_data, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - User, - construct_type( - type_=User, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/resources/users/types/__init__.py b/src/merge/resources/ticketing/resources/users/types/__init__.py deleted file mode 100644 index bd60bdef..00000000 --- a/src/merge/resources/ticketing/resources/users/types/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .users_list_request_expand import UsersListRequestExpand - from .users_retrieve_request_expand import UsersRetrieveRequestExpand -_dynamic_imports: typing.Dict[str, str] = { - "UsersListRequestExpand": ".users_list_request_expand", - "UsersRetrieveRequestExpand": ".users_retrieve_request_expand", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = ["UsersListRequestExpand", "UsersRetrieveRequestExpand"] diff --git a/src/merge/resources/ticketing/resources/users/types/users_list_request_expand.py b/src/merge/resources/ticketing/resources/users/types/users_list_request_expand.py deleted file mode 100644 index d4b526f8..00000000 --- a/src/merge/resources/ticketing/resources/users/types/users_list_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class UsersListRequestExpand(str, enum.Enum): - ROLES = "roles" - TEAMS = "teams" - TEAMS_ROLES = "teams,roles" - - def visit( - self, - roles: typing.Callable[[], T_Result], - teams: typing.Callable[[], T_Result], - teams_roles: typing.Callable[[], T_Result], - ) -> T_Result: - if self is UsersListRequestExpand.ROLES: - return roles() - if self is UsersListRequestExpand.TEAMS: - return teams() - if self is UsersListRequestExpand.TEAMS_ROLES: - return teams_roles() diff --git a/src/merge/resources/ticketing/resources/users/types/users_retrieve_request_expand.py b/src/merge/resources/ticketing/resources/users/types/users_retrieve_request_expand.py deleted file mode 100644 index b7f19ab6..00000000 --- a/src/merge/resources/ticketing/resources/users/types/users_retrieve_request_expand.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class UsersRetrieveRequestExpand(str, enum.Enum): - ROLES = "roles" - TEAMS = "teams" - TEAMS_ROLES = "teams,roles" - - def visit( - self, - roles: typing.Callable[[], T_Result], - teams: typing.Callable[[], T_Result], - teams_roles: typing.Callable[[], T_Result], - ) -> T_Result: - if self is UsersRetrieveRequestExpand.ROLES: - return roles() - if self is UsersRetrieveRequestExpand.TEAMS: - return teams() - if self is UsersRetrieveRequestExpand.TEAMS_ROLES: - return teams_roles() diff --git a/src/merge/resources/ticketing/resources/webhook_receivers/__init__.py b/src/merge/resources/ticketing/resources/webhook_receivers/__init__.py deleted file mode 100644 index 5cde0202..00000000 --- a/src/merge/resources/ticketing/resources/webhook_receivers/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/merge/resources/ticketing/resources/webhook_receivers/client.py b/src/merge/resources/ticketing/resources/webhook_receivers/client.py deleted file mode 100644 index 7f31482f..00000000 --- a/src/merge/resources/ticketing/resources/webhook_receivers/client.py +++ /dev/null @@ -1,201 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.request_options import RequestOptions -from ...types.webhook_receiver import WebhookReceiver -from .raw_client import AsyncRawWebhookReceiversClient, RawWebhookReceiversClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class WebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawWebhookReceiversClient - """ - return self._raw_client - - def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.webhook_receivers.list() - """ - _response = self._raw_client.list(request_options=request_options) - return _response.data - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - from merge import Merge - - client = Merge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - client.ticketing.webhook_receivers.create( - event="event", - is_active=True, - ) - """ - _response = self._raw_client.create(event=event, is_active=is_active, key=key, request_options=request_options) - return _response.data - - -class AsyncWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawWebhookReceiversClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawWebhookReceiversClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawWebhookReceiversClient - """ - return self._raw_client - - async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[WebhookReceiver]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.List[WebhookReceiver] - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.webhook_receivers.list() - - - asyncio.run(main()) - """ - _response = await self._raw_client.list(request_options=request_options) - return _response.data - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> WebhookReceiver: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - WebhookReceiver - - - Examples - -------- - import asyncio - - from merge import AsyncMerge - - client = AsyncMerge( - account_token="YOUR_ACCOUNT_TOKEN", - api_key="YOUR_API_KEY", - ) - - - async def main() -> None: - await client.ticketing.webhook_receivers.create( - event="event", - is_active=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - event=event, is_active=is_active, key=key, request_options=request_options - ) - return _response.data diff --git a/src/merge/resources/ticketing/resources/webhook_receivers/raw_client.py b/src/merge/resources/ticketing/resources/webhook_receivers/raw_client.py deleted file mode 100644 index 9060561d..00000000 --- a/src/merge/resources/ticketing/resources/webhook_receivers/raw_client.py +++ /dev/null @@ -1,208 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing -from json.decoder import JSONDecodeError - -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.http_response import AsyncHttpResponse, HttpResponse -from .....core.request_options import RequestOptions -from .....core.unchecked_base_model import construct_type -from ...types.webhook_receiver import WebhookReceiver - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawWebhookReceiversClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.List[WebhookReceiver]] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[WebhookReceiver] - - """ - _response = self._client_wrapper.httpx_client.request( - "ticketing/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - -class AsyncRawWebhookReceiversClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list( - self, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.List[WebhookReceiver]]: - """ - Returns a list of `WebhookReceiver` objects. - - Parameters - ---------- - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.List[WebhookReceiver]] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/webhook-receivers", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.List[WebhookReceiver], - construct_type( - type_=typing.List[WebhookReceiver], # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def create( - self, - *, - event: str, - is_active: bool, - key: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[WebhookReceiver]: - """ - Creates a `WebhookReceiver` object with the given values. - - Parameters - ---------- - event : str - - is_active : bool - - key : typing.Optional[str] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[WebhookReceiver] - - """ - _response = await self._client_wrapper.httpx_client.request( - "ticketing/v1/webhook-receivers", - method="POST", - json={ - "event": event, - "is_active": is_active, - "key": key, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - WebhookReceiver, - construct_type( - type_=WebhookReceiver, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/merge/resources/ticketing/types/__init__.py b/src/merge/resources/ticketing/types/__init__.py deleted file mode 100644 index 59da70e3..00000000 --- a/src/merge/resources/ticketing/types/__init__.py +++ /dev/null @@ -1,551 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -import typing -from importlib import import_module - -if typing.TYPE_CHECKING: - from .account import Account - from .account_details import AccountDetails - from .account_details_and_actions import AccountDetailsAndActions - from .account_details_and_actions_category import AccountDetailsAndActionsCategory - from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration - from .account_details_and_actions_status import AccountDetailsAndActionsStatus - from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - from .account_details_category import AccountDetailsCategory - from .account_integration import AccountIntegration - from .account_token import AccountToken - from .advanced_metadata import AdvancedMetadata - from .async_passthrough_reciept import AsyncPassthroughReciept - from .attachment import Attachment - from .attachment_request import AttachmentRequest - from .attachment_request_ticket import AttachmentRequestTicket - from .attachment_ticket import AttachmentTicket - from .audit_log_event import AuditLogEvent - from .audit_log_event_event_type import AuditLogEventEventType - from .audit_log_event_role import AuditLogEventRole - from .available_actions import AvailableActions - from .categories_enum import CategoriesEnum - from .category_enum import CategoryEnum - from .collection import Collection - from .collection_access_level import CollectionAccessLevel - from .collection_access_level_enum import CollectionAccessLevelEnum - from .collection_collection_type import CollectionCollectionType - from .collection_parent_collection import CollectionParentCollection - from .collection_type_enum import CollectionTypeEnum - from .comment import Comment - from .comment_contact import CommentContact - from .comment_request import CommentRequest - from .comment_request_contact import CommentRequestContact - from .comment_request_ticket import CommentRequestTicket - from .comment_request_user import CommentRequestUser - from .comment_response import CommentResponse - from .comment_ticket import CommentTicket - from .comment_user import CommentUser - from .common_model_scope_api import CommonModelScopeApi - from .common_model_scopes_body_request import CommonModelScopesBodyRequest - from .completed_account_initial_screen_enum import CompletedAccountInitialScreenEnum - from .contact import Contact - from .contact_account import ContactAccount - from .contact_request import ContactRequest - from .contact_request_account import ContactRequestAccount - from .data_passthrough_request import DataPassthroughRequest - from .debug_mode_log import DebugModeLog - from .debug_model_log_summary import DebugModelLogSummary - from .enabled_actions_enum import EnabledActionsEnum - from .encoding_enum import EncodingEnum - from .error_validation_problem import ErrorValidationProblem - from .event_type_enum import EventTypeEnum - from .external_target_field_api import ExternalTargetFieldApi - from .external_target_field_api_response import ExternalTargetFieldApiResponse - from .field_format_enum import FieldFormatEnum - from .field_mapping_api_instance import FieldMappingApiInstance - from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField - from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ) - from .field_mapping_api_instance_response import FieldMappingApiInstanceResponse - from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - from .field_mapping_instance_response import FieldMappingInstanceResponse - from .field_permission_deserializer import FieldPermissionDeserializer - from .field_permission_deserializer_request import FieldPermissionDeserializerRequest - from .field_type_enum import FieldTypeEnum - from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - from .individual_common_model_scope_deserializer_request import IndividualCommonModelScopeDeserializerRequest - from .issue import Issue - from .issue_status import IssueStatus - from .issue_status_enum import IssueStatusEnum - from .item_format_enum import ItemFormatEnum - from .item_schema import ItemSchema - from .item_type_enum import ItemTypeEnum - from .language_enum import LanguageEnum - from .last_sync_result_enum import LastSyncResultEnum - from .link_token import LinkToken - from .linked_account_status import LinkedAccountStatus - from .meta_response import MetaResponse - from .method_enum import MethodEnum - from .model_operation import ModelOperation - from .model_permission_deserializer import ModelPermissionDeserializer - from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - from .multipart_form_field_request import MultipartFormFieldRequest - from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList - from .paginated_account_list import PaginatedAccountList - from .paginated_attachment_list import PaginatedAttachmentList - from .paginated_audit_log_event_list import PaginatedAuditLogEventList - from .paginated_collection_list import PaginatedCollectionList - from .paginated_comment_list import PaginatedCommentList - from .paginated_contact_list import PaginatedContactList - from .paginated_issue_list import PaginatedIssueList - from .paginated_project_list import PaginatedProjectList - from .paginated_remote_field_class_list import PaginatedRemoteFieldClassList - from .paginated_role_list import PaginatedRoleList - from .paginated_sync_status_list import PaginatedSyncStatusList - from .paginated_tag_list import PaginatedTagList - from .paginated_team_list import PaginatedTeamList - from .paginated_ticket_list import PaginatedTicketList - from .paginated_user_list import PaginatedUserList - from .paginated_viewer_list import PaginatedViewerList - from .patched_ticket_request import PatchedTicketRequest - from .patched_ticket_request_access_level import PatchedTicketRequestAccessLevel - from .patched_ticket_request_priority import PatchedTicketRequestPriority - from .patched_ticket_request_status import PatchedTicketRequestStatus - from .priority_enum import PriorityEnum - from .project import Project - from .remote_data import RemoteData - from .remote_endpoint_info import RemoteEndpointInfo - from .remote_field import RemoteField - from .remote_field_api import RemoteFieldApi - from .remote_field_api_coverage import RemoteFieldApiCoverage - from .remote_field_api_response import RemoteFieldApiResponse - from .remote_field_class import RemoteFieldClass - from .remote_field_class_field_choices_item import RemoteFieldClassFieldChoicesItem - from .remote_field_class_field_format import RemoteFieldClassFieldFormat - from .remote_field_class_field_type import RemoteFieldClassFieldType - from .remote_field_remote_field_class import RemoteFieldRemoteFieldClass - from .remote_field_request import RemoteFieldRequest - from .remote_field_request_remote_field_class import RemoteFieldRequestRemoteFieldClass - from .remote_key import RemoteKey - from .remote_response import RemoteResponse - from .request_format_enum import RequestFormatEnum - from .response_type_enum import ResponseTypeEnum - from .role import Role - from .role_enum import RoleEnum - from .role_ticket_access import RoleTicketAccess - from .role_ticket_actions_item import RoleTicketActionsItem - from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum - from .status_fd_5_enum import StatusFd5Enum - from .sync_status import SyncStatus - from .sync_status_last_sync_result import SyncStatusLastSyncResult - from .tag import Tag - from .team import Team - from .ticket import Ticket - from .ticket_access_enum import TicketAccessEnum - from .ticket_access_level import TicketAccessLevel - from .ticket_access_level_enum import TicketAccessLevelEnum - from .ticket_account import TicketAccount - from .ticket_actions_enum import TicketActionsEnum - from .ticket_assigned_teams_item import TicketAssignedTeamsItem - from .ticket_assignees_item import TicketAssigneesItem - from .ticket_attachments_item import TicketAttachmentsItem - from .ticket_collections_item import TicketCollectionsItem - from .ticket_contact import TicketContact - from .ticket_creator import TicketCreator - from .ticket_parent_ticket import TicketParentTicket - from .ticket_priority import TicketPriority - from .ticket_request import TicketRequest - from .ticket_request_access_level import TicketRequestAccessLevel - from .ticket_request_account import TicketRequestAccount - from .ticket_request_assigned_teams_item import TicketRequestAssignedTeamsItem - from .ticket_request_assignees_item import TicketRequestAssigneesItem - from .ticket_request_attachments_item import TicketRequestAttachmentsItem - from .ticket_request_collections_item import TicketRequestCollectionsItem - from .ticket_request_contact import TicketRequestContact - from .ticket_request_creator import TicketRequestCreator - from .ticket_request_parent_ticket import TicketRequestParentTicket - from .ticket_request_priority import TicketRequestPriority - from .ticket_request_status import TicketRequestStatus - from .ticket_response import TicketResponse - from .ticket_status import TicketStatus - from .ticket_status_enum import TicketStatusEnum - from .ticketing_attachment_response import TicketingAttachmentResponse - from .ticketing_contact_response import TicketingContactResponse - from .user import User - from .user_roles_item import UserRolesItem - from .user_teams_item import UserTeamsItem - from .validation_problem_source import ValidationProblemSource - from .viewer import Viewer - from .viewer_team import ViewerTeam - from .viewer_user import ViewerUser - from .warning_validation_problem import WarningValidationProblem - from .webhook_receiver import WebhookReceiver -_dynamic_imports: typing.Dict[str, str] = { - "Account": ".account", - "AccountDetails": ".account_details", - "AccountDetailsAndActions": ".account_details_and_actions", - "AccountDetailsAndActionsCategory": ".account_details_and_actions_category", - "AccountDetailsAndActionsIntegration": ".account_details_and_actions_integration", - "AccountDetailsAndActionsStatus": ".account_details_and_actions_status", - "AccountDetailsAndActionsStatusEnum": ".account_details_and_actions_status_enum", - "AccountDetailsCategory": ".account_details_category", - "AccountIntegration": ".account_integration", - "AccountToken": ".account_token", - "AdvancedMetadata": ".advanced_metadata", - "AsyncPassthroughReciept": ".async_passthrough_reciept", - "Attachment": ".attachment", - "AttachmentRequest": ".attachment_request", - "AttachmentRequestTicket": ".attachment_request_ticket", - "AttachmentTicket": ".attachment_ticket", - "AuditLogEvent": ".audit_log_event", - "AuditLogEventEventType": ".audit_log_event_event_type", - "AuditLogEventRole": ".audit_log_event_role", - "AvailableActions": ".available_actions", - "CategoriesEnum": ".categories_enum", - "CategoryEnum": ".category_enum", - "Collection": ".collection", - "CollectionAccessLevel": ".collection_access_level", - "CollectionAccessLevelEnum": ".collection_access_level_enum", - "CollectionCollectionType": ".collection_collection_type", - "CollectionParentCollection": ".collection_parent_collection", - "CollectionTypeEnum": ".collection_type_enum", - "Comment": ".comment", - "CommentContact": ".comment_contact", - "CommentRequest": ".comment_request", - "CommentRequestContact": ".comment_request_contact", - "CommentRequestTicket": ".comment_request_ticket", - "CommentRequestUser": ".comment_request_user", - "CommentResponse": ".comment_response", - "CommentTicket": ".comment_ticket", - "CommentUser": ".comment_user", - "CommonModelScopeApi": ".common_model_scope_api", - "CommonModelScopesBodyRequest": ".common_model_scopes_body_request", - "CompletedAccountInitialScreenEnum": ".completed_account_initial_screen_enum", - "Contact": ".contact", - "ContactAccount": ".contact_account", - "ContactRequest": ".contact_request", - "ContactRequestAccount": ".contact_request_account", - "DataPassthroughRequest": ".data_passthrough_request", - "DebugModeLog": ".debug_mode_log", - "DebugModelLogSummary": ".debug_model_log_summary", - "EnabledActionsEnum": ".enabled_actions_enum", - "EncodingEnum": ".encoding_enum", - "ErrorValidationProblem": ".error_validation_problem", - "EventTypeEnum": ".event_type_enum", - "ExternalTargetFieldApi": ".external_target_field_api", - "ExternalTargetFieldApiResponse": ".external_target_field_api_response", - "FieldFormatEnum": ".field_format_enum", - "FieldMappingApiInstance": ".field_mapping_api_instance", - "FieldMappingApiInstanceRemoteField": ".field_mapping_api_instance_remote_field", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo": ".field_mapping_api_instance_remote_field_remote_endpoint_info", - "FieldMappingApiInstanceResponse": ".field_mapping_api_instance_response", - "FieldMappingApiInstanceTargetField": ".field_mapping_api_instance_target_field", - "FieldMappingInstanceResponse": ".field_mapping_instance_response", - "FieldPermissionDeserializer": ".field_permission_deserializer", - "FieldPermissionDeserializerRequest": ".field_permission_deserializer_request", - "FieldTypeEnum": ".field_type_enum", - "IndividualCommonModelScopeDeserializer": ".individual_common_model_scope_deserializer", - "IndividualCommonModelScopeDeserializerRequest": ".individual_common_model_scope_deserializer_request", - "Issue": ".issue", - "IssueStatus": ".issue_status", - "IssueStatusEnum": ".issue_status_enum", - "ItemFormatEnum": ".item_format_enum", - "ItemSchema": ".item_schema", - "ItemTypeEnum": ".item_type_enum", - "LanguageEnum": ".language_enum", - "LastSyncResultEnum": ".last_sync_result_enum", - "LinkToken": ".link_token", - "LinkedAccountStatus": ".linked_account_status", - "MetaResponse": ".meta_response", - "MethodEnum": ".method_enum", - "ModelOperation": ".model_operation", - "ModelPermissionDeserializer": ".model_permission_deserializer", - "ModelPermissionDeserializerRequest": ".model_permission_deserializer_request", - "MultipartFormFieldRequest": ".multipart_form_field_request", - "MultipartFormFieldRequestEncoding": ".multipart_form_field_request_encoding", - "PaginatedAccountDetailsAndActionsList": ".paginated_account_details_and_actions_list", - "PaginatedAccountList": ".paginated_account_list", - "PaginatedAttachmentList": ".paginated_attachment_list", - "PaginatedAuditLogEventList": ".paginated_audit_log_event_list", - "PaginatedCollectionList": ".paginated_collection_list", - "PaginatedCommentList": ".paginated_comment_list", - "PaginatedContactList": ".paginated_contact_list", - "PaginatedIssueList": ".paginated_issue_list", - "PaginatedProjectList": ".paginated_project_list", - "PaginatedRemoteFieldClassList": ".paginated_remote_field_class_list", - "PaginatedRoleList": ".paginated_role_list", - "PaginatedSyncStatusList": ".paginated_sync_status_list", - "PaginatedTagList": ".paginated_tag_list", - "PaginatedTeamList": ".paginated_team_list", - "PaginatedTicketList": ".paginated_ticket_list", - "PaginatedUserList": ".paginated_user_list", - "PaginatedViewerList": ".paginated_viewer_list", - "PatchedTicketRequest": ".patched_ticket_request", - "PatchedTicketRequestAccessLevel": ".patched_ticket_request_access_level", - "PatchedTicketRequestPriority": ".patched_ticket_request_priority", - "PatchedTicketRequestStatus": ".patched_ticket_request_status", - "PriorityEnum": ".priority_enum", - "Project": ".project", - "RemoteData": ".remote_data", - "RemoteEndpointInfo": ".remote_endpoint_info", - "RemoteField": ".remote_field", - "RemoteFieldApi": ".remote_field_api", - "RemoteFieldApiCoverage": ".remote_field_api_coverage", - "RemoteFieldApiResponse": ".remote_field_api_response", - "RemoteFieldClass": ".remote_field_class", - "RemoteFieldClassFieldChoicesItem": ".remote_field_class_field_choices_item", - "RemoteFieldClassFieldFormat": ".remote_field_class_field_format", - "RemoteFieldClassFieldType": ".remote_field_class_field_type", - "RemoteFieldRemoteFieldClass": ".remote_field_remote_field_class", - "RemoteFieldRequest": ".remote_field_request", - "RemoteFieldRequestRemoteFieldClass": ".remote_field_request_remote_field_class", - "RemoteKey": ".remote_key", - "RemoteResponse": ".remote_response", - "RequestFormatEnum": ".request_format_enum", - "ResponseTypeEnum": ".response_type_enum", - "Role": ".role", - "RoleEnum": ".role_enum", - "RoleTicketAccess": ".role_ticket_access", - "RoleTicketActionsItem": ".role_ticket_actions_item", - "SelectiveSyncConfigurationsUsageEnum": ".selective_sync_configurations_usage_enum", - "StatusFd5Enum": ".status_fd_5_enum", - "SyncStatus": ".sync_status", - "SyncStatusLastSyncResult": ".sync_status_last_sync_result", - "Tag": ".tag", - "Team": ".team", - "Ticket": ".ticket", - "TicketAccessEnum": ".ticket_access_enum", - "TicketAccessLevel": ".ticket_access_level", - "TicketAccessLevelEnum": ".ticket_access_level_enum", - "TicketAccount": ".ticket_account", - "TicketActionsEnum": ".ticket_actions_enum", - "TicketAssignedTeamsItem": ".ticket_assigned_teams_item", - "TicketAssigneesItem": ".ticket_assignees_item", - "TicketAttachmentsItem": ".ticket_attachments_item", - "TicketCollectionsItem": ".ticket_collections_item", - "TicketContact": ".ticket_contact", - "TicketCreator": ".ticket_creator", - "TicketParentTicket": ".ticket_parent_ticket", - "TicketPriority": ".ticket_priority", - "TicketRequest": ".ticket_request", - "TicketRequestAccessLevel": ".ticket_request_access_level", - "TicketRequestAccount": ".ticket_request_account", - "TicketRequestAssignedTeamsItem": ".ticket_request_assigned_teams_item", - "TicketRequestAssigneesItem": ".ticket_request_assignees_item", - "TicketRequestAttachmentsItem": ".ticket_request_attachments_item", - "TicketRequestCollectionsItem": ".ticket_request_collections_item", - "TicketRequestContact": ".ticket_request_contact", - "TicketRequestCreator": ".ticket_request_creator", - "TicketRequestParentTicket": ".ticket_request_parent_ticket", - "TicketRequestPriority": ".ticket_request_priority", - "TicketRequestStatus": ".ticket_request_status", - "TicketResponse": ".ticket_response", - "TicketStatus": ".ticket_status", - "TicketStatusEnum": ".ticket_status_enum", - "TicketingAttachmentResponse": ".ticketing_attachment_response", - "TicketingContactResponse": ".ticketing_contact_response", - "User": ".user", - "UserRolesItem": ".user_roles_item", - "UserTeamsItem": ".user_teams_item", - "ValidationProblemSource": ".validation_problem_source", - "Viewer": ".viewer", - "ViewerTeam": ".viewer_team", - "ViewerUser": ".viewer_user", - "WarningValidationProblem": ".warning_validation_problem", - "WebhookReceiver": ".webhook_receiver", -} - - -def __getattr__(attr_name: str) -> typing.Any: - module_name = _dynamic_imports.get(attr_name) - if module_name is None: - raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") - try: - module = import_module(module_name, __package__) - result = getattr(module, attr_name) - return result - except ImportError as e: - raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e - except AttributeError as e: - raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e - - -def __dir__(): - lazy_attrs = list(_dynamic_imports.keys()) - return sorted(lazy_attrs) - - -__all__ = [ - "Account", - "AccountDetails", - "AccountDetailsAndActions", - "AccountDetailsAndActionsCategory", - "AccountDetailsAndActionsIntegration", - "AccountDetailsAndActionsStatus", - "AccountDetailsAndActionsStatusEnum", - "AccountDetailsCategory", - "AccountIntegration", - "AccountToken", - "AdvancedMetadata", - "AsyncPassthroughReciept", - "Attachment", - "AttachmentRequest", - "AttachmentRequestTicket", - "AttachmentTicket", - "AuditLogEvent", - "AuditLogEventEventType", - "AuditLogEventRole", - "AvailableActions", - "CategoriesEnum", - "CategoryEnum", - "Collection", - "CollectionAccessLevel", - "CollectionAccessLevelEnum", - "CollectionCollectionType", - "CollectionParentCollection", - "CollectionTypeEnum", - "Comment", - "CommentContact", - "CommentRequest", - "CommentRequestContact", - "CommentRequestTicket", - "CommentRequestUser", - "CommentResponse", - "CommentTicket", - "CommentUser", - "CommonModelScopeApi", - "CommonModelScopesBodyRequest", - "CompletedAccountInitialScreenEnum", - "Contact", - "ContactAccount", - "ContactRequest", - "ContactRequestAccount", - "DataPassthroughRequest", - "DebugModeLog", - "DebugModelLogSummary", - "EnabledActionsEnum", - "EncodingEnum", - "ErrorValidationProblem", - "EventTypeEnum", - "ExternalTargetFieldApi", - "ExternalTargetFieldApiResponse", - "FieldFormatEnum", - "FieldMappingApiInstance", - "FieldMappingApiInstanceRemoteField", - "FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo", - "FieldMappingApiInstanceResponse", - "FieldMappingApiInstanceTargetField", - "FieldMappingInstanceResponse", - "FieldPermissionDeserializer", - "FieldPermissionDeserializerRequest", - "FieldTypeEnum", - "IndividualCommonModelScopeDeserializer", - "IndividualCommonModelScopeDeserializerRequest", - "Issue", - "IssueStatus", - "IssueStatusEnum", - "ItemFormatEnum", - "ItemSchema", - "ItemTypeEnum", - "LanguageEnum", - "LastSyncResultEnum", - "LinkToken", - "LinkedAccountStatus", - "MetaResponse", - "MethodEnum", - "ModelOperation", - "ModelPermissionDeserializer", - "ModelPermissionDeserializerRequest", - "MultipartFormFieldRequest", - "MultipartFormFieldRequestEncoding", - "PaginatedAccountDetailsAndActionsList", - "PaginatedAccountList", - "PaginatedAttachmentList", - "PaginatedAuditLogEventList", - "PaginatedCollectionList", - "PaginatedCommentList", - "PaginatedContactList", - "PaginatedIssueList", - "PaginatedProjectList", - "PaginatedRemoteFieldClassList", - "PaginatedRoleList", - "PaginatedSyncStatusList", - "PaginatedTagList", - "PaginatedTeamList", - "PaginatedTicketList", - "PaginatedUserList", - "PaginatedViewerList", - "PatchedTicketRequest", - "PatchedTicketRequestAccessLevel", - "PatchedTicketRequestPriority", - "PatchedTicketRequestStatus", - "PriorityEnum", - "Project", - "RemoteData", - "RemoteEndpointInfo", - "RemoteField", - "RemoteFieldApi", - "RemoteFieldApiCoverage", - "RemoteFieldApiResponse", - "RemoteFieldClass", - "RemoteFieldClassFieldChoicesItem", - "RemoteFieldClassFieldFormat", - "RemoteFieldClassFieldType", - "RemoteFieldRemoteFieldClass", - "RemoteFieldRequest", - "RemoteFieldRequestRemoteFieldClass", - "RemoteKey", - "RemoteResponse", - "RequestFormatEnum", - "ResponseTypeEnum", - "Role", - "RoleEnum", - "RoleTicketAccess", - "RoleTicketActionsItem", - "SelectiveSyncConfigurationsUsageEnum", - "StatusFd5Enum", - "SyncStatus", - "SyncStatusLastSyncResult", - "Tag", - "Team", - "Ticket", - "TicketAccessEnum", - "TicketAccessLevel", - "TicketAccessLevelEnum", - "TicketAccount", - "TicketActionsEnum", - "TicketAssignedTeamsItem", - "TicketAssigneesItem", - "TicketAttachmentsItem", - "TicketCollectionsItem", - "TicketContact", - "TicketCreator", - "TicketParentTicket", - "TicketPriority", - "TicketRequest", - "TicketRequestAccessLevel", - "TicketRequestAccount", - "TicketRequestAssignedTeamsItem", - "TicketRequestAssigneesItem", - "TicketRequestAttachmentsItem", - "TicketRequestCollectionsItem", - "TicketRequestContact", - "TicketRequestCreator", - "TicketRequestParentTicket", - "TicketRequestPriority", - "TicketRequestStatus", - "TicketResponse", - "TicketStatus", - "TicketStatusEnum", - "TicketingAttachmentResponse", - "TicketingContactResponse", - "User", - "UserRolesItem", - "UserTeamsItem", - "ValidationProblemSource", - "Viewer", - "ViewerTeam", - "ViewerUser", - "WarningValidationProblem", - "WebhookReceiver", -] diff --git a/src/merge/resources/ticketing/types/account.py b/src/merge/resources/ticketing/types/account.py deleted file mode 100644 index 3d1cda4c..00000000 --- a/src/merge/resources/ticketing/types/account.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Account(UncheckedBaseModel): - """ - # The Account Object - ### Description - The `Account` object is used to represent the account that a ticket is associated with. - - The account is a company that may be a customer. This does not represent the company that is receiving the ticket. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The account's name. - """ - - domains: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The account's domain names. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/account_details.py b/src/merge/resources/ticketing/types/account_details.py deleted file mode 100644 index 98923cd8..00000000 --- a/src/merge/resources/ticketing/types/account_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_category import AccountDetailsCategory - - -class AccountDetails(UncheckedBaseModel): - id: typing.Optional[str] = None - integration: typing.Optional[str] = None - integration_slug: typing.Optional[str] = None - category: typing.Optional[AccountDetailsCategory] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: typing.Optional[str] = None - end_user_email_address: typing.Optional[str] = None - status: typing.Optional[str] = None - webhook_listener_url: typing.Optional[str] = None - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - account_type: typing.Optional[str] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The time at which account completes the linking flow. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/account_details_and_actions.py b/src/merge/resources/ticketing/types/account_details_and_actions.py deleted file mode 100644 index 93c874ed..00000000 --- a/src/merge/resources/ticketing/types/account_details_and_actions.py +++ /dev/null @@ -1,54 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions_category import AccountDetailsAndActionsCategory -from .account_details_and_actions_integration import AccountDetailsAndActionsIntegration -from .account_details_and_actions_status import AccountDetailsAndActionsStatus - - -class AccountDetailsAndActions(UncheckedBaseModel): - """ - # The LinkedAccount Object - ### Description - The `LinkedAccount` object is used to represent an end user's link with a specific integration. - - ### Usage Example - View a list of your organization's `LinkedAccount` objects. - """ - - id: str - category: typing.Optional[AccountDetailsAndActionsCategory] = None - status: AccountDetailsAndActionsStatus - status_detail: typing.Optional[str] = None - end_user_origin_id: typing.Optional[str] = None - end_user_organization_name: str - end_user_email_address: str - subdomain: typing.Optional[str] = pydantic.Field(default=None) - """ - The tenant or domain the customer has provided access to. - """ - - webhook_listener_url: str - is_duplicate: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. - """ - - integration: typing.Optional[AccountDetailsAndActionsIntegration] = None - account_type: str - completed_at: dt.datetime - integration_specific_fields: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/account_details_and_actions_category.py b/src/merge/resources/ticketing/types/account_details_and_actions_category.py deleted file mode 100644 index 93b4188b..00000000 --- a/src/merge/resources/ticketing/types/account_details_and_actions_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsAndActionsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/ticketing/types/account_details_and_actions_integration.py b/src/merge/resources/ticketing/types/account_details_and_actions_integration.py deleted file mode 100644 index 73467bbb..00000000 --- a/src/merge/resources/ticketing/types/account_details_and_actions_integration.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum -from .model_operation import ModelOperation - - -class AccountDetailsAndActionsIntegration(UncheckedBaseModel): - name: str - categories: typing.List[CategoriesEnum] - image: typing.Optional[str] = None - square_image: typing.Optional[str] = None - color: str - slug: str - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/account_details_and_actions_status.py b/src/merge/resources/ticketing/types/account_details_and_actions_status.py deleted file mode 100644 index 445922f8..00000000 --- a/src/merge/resources/ticketing/types/account_details_and_actions_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account_details_and_actions_status_enum import AccountDetailsAndActionsStatusEnum - -AccountDetailsAndActionsStatus = typing.Union[AccountDetailsAndActionsStatusEnum, str] diff --git a/src/merge/resources/ticketing/types/account_details_and_actions_status_enum.py b/src/merge/resources/ticketing/types/account_details_and_actions_status_enum.py deleted file mode 100644 index df37f582..00000000 --- a/src/merge/resources/ticketing/types/account_details_and_actions_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class AccountDetailsAndActionsStatusEnum(str, enum.Enum): - """ - * `COMPLETE` - COMPLETE - * `INCOMPLETE` - INCOMPLETE - * `RELINK_NEEDED` - RELINK_NEEDED - * `IDLE` - IDLE - """ - - COMPLETE = "COMPLETE" - INCOMPLETE = "INCOMPLETE" - RELINK_NEEDED = "RELINK_NEEDED" - IDLE = "IDLE" - - def visit( - self, - complete: typing.Callable[[], T_Result], - incomplete: typing.Callable[[], T_Result], - relink_needed: typing.Callable[[], T_Result], - idle: typing.Callable[[], T_Result], - ) -> T_Result: - if self is AccountDetailsAndActionsStatusEnum.COMPLETE: - return complete() - if self is AccountDetailsAndActionsStatusEnum.INCOMPLETE: - return incomplete() - if self is AccountDetailsAndActionsStatusEnum.RELINK_NEEDED: - return relink_needed() - if self is AccountDetailsAndActionsStatusEnum.IDLE: - return idle() diff --git a/src/merge/resources/ticketing/types/account_details_category.py b/src/merge/resources/ticketing/types/account_details_category.py deleted file mode 100644 index 8a0cc59c..00000000 --- a/src/merge/resources/ticketing/types/account_details_category.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .category_enum import CategoryEnum - -AccountDetailsCategory = typing.Union[CategoryEnum, str] diff --git a/src/merge/resources/ticketing/types/account_integration.py b/src/merge/resources/ticketing/types/account_integration.py deleted file mode 100644 index ef8b260d..00000000 --- a/src/merge/resources/ticketing/types/account_integration.py +++ /dev/null @@ -1,67 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .categories_enum import CategoriesEnum - - -class AccountIntegration(UncheckedBaseModel): - name: str = pydantic.Field() - """ - Company name. - """ - - abbreviated_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) - """ - - categories: typing.Optional[typing.List[CategoriesEnum]] = pydantic.Field(default=None) - """ - Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. - """ - - image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in rectangular shape. - """ - - square_image: typing.Optional[str] = pydantic.Field(default=None) - """ - Company logo in square shape. - """ - - color: typing.Optional[str] = pydantic.Field(default=None) - """ - The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. - """ - - slug: typing.Optional[str] = None - api_endpoints_to_documentation_urls: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = ( - pydantic.Field(default=None) - ) - """ - Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} - """ - - webhook_setup_guide_url: typing.Optional[str] = pydantic.Field(default=None) - """ - Setup guide URL for third party webhook creation. Exposed in Merge Docs. - """ - - category_beta_status: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Category or categories this integration is in beta status for. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/account_token.py b/src/merge/resources/ticketing/types/account_token.py deleted file mode 100644 index 6e82c8ac..00000000 --- a/src/merge/resources/ticketing/types/account_token.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration - - -class AccountToken(UncheckedBaseModel): - account_token: str - integration: AccountIntegration - id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/advanced_metadata.py b/src/merge/resources/ticketing/types/advanced_metadata.py deleted file mode 100644 index 60b5d072..00000000 --- a/src/merge/resources/ticketing/types/advanced_metadata.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AdvancedMetadata(UncheckedBaseModel): - id: str - display_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_required: typing.Optional[bool] = None - is_custom: typing.Optional[bool] = None - field_choices: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/async_passthrough_reciept.py b/src/merge/resources/ticketing/types/async_passthrough_reciept.py deleted file mode 100644 index 21c95080..00000000 --- a/src/merge/resources/ticketing/types/async_passthrough_reciept.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class AsyncPassthroughReciept(UncheckedBaseModel): - async_passthrough_receipt_id: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/attachment.py b/src/merge/resources/ticketing/types/attachment.py deleted file mode 100644 index 13163ced..00000000 --- a/src/merge/resources/ticketing/types/attachment.py +++ /dev/null @@ -1,92 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Attachment(UncheckedBaseModel): - """ - # The Attachment Object - ### Description - The `Attachment` object is used to represent an attachment for a ticket. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's name. It is required to include the file extension in the attachment's name. - """ - - ticket: typing.Optional["AttachmentTicket"] = pydantic.Field(default=None) - """ - The ticket associated with the attachment. - """ - - file_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's url. It is required to include the file extension in the file's URL. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's file format. - """ - - uploaded_by: typing.Optional[str] = pydantic.Field(default=None) - """ - The user who uploaded the attachment. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's attachment was created. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 -from .attachment_ticket import AttachmentTicket # noqa: E402, F401, I001 - -update_forward_refs(Attachment) diff --git a/src/merge/resources/ticketing/types/attachment_request.py b/src/merge/resources/ticketing/types/attachment_request.py deleted file mode 100644 index 62af0a78..00000000 --- a/src/merge/resources/ticketing/types/attachment_request.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .attachment_request_ticket import AttachmentRequestTicket - - -class AttachmentRequest(UncheckedBaseModel): - """ - # The Attachment Object - ### Description - The `Attachment` object is used to represent an attachment for a ticket. - - ### Usage Example - TODO - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's name. It is required to include the file extension in the attachment's name. - """ - - ticket: typing.Optional[AttachmentRequestTicket] = pydantic.Field(default=None) - """ - The ticket associated with the attachment. - """ - - file_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's url. It is required to include the file extension in the file's URL. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The attachment's file format. - """ - - uploaded_by: typing.Optional[str] = pydantic.Field(default=None) - """ - The user who uploaded the attachment. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(AttachmentRequest) diff --git a/src/merge/resources/ticketing/types/attachment_request_ticket.py b/src/merge/resources/ticketing/types/attachment_request_ticket.py deleted file mode 100644 index 88236232..00000000 --- a/src/merge/resources/ticketing/types/attachment_request_ticket.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket import Ticket - -AttachmentRequestTicket = typing.Union[str, Ticket] diff --git a/src/merge/resources/ticketing/types/attachment_ticket.py b/src/merge/resources/ticketing/types/attachment_ticket.py deleted file mode 100644 index 26898636..00000000 --- a/src/merge/resources/ticketing/types/attachment_ticket.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .ticket import Ticket -AttachmentTicket = typing.Union[str, "Ticket"] diff --git a/src/merge/resources/ticketing/types/audit_log_event.py b/src/merge/resources/ticketing/types/audit_log_event.py deleted file mode 100644 index ab69fd32..00000000 --- a/src/merge/resources/ticketing/types/audit_log_event.py +++ /dev/null @@ -1,97 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event_event_type import AuditLogEventEventType -from .audit_log_event_role import AuditLogEventRole - - -class AuditLogEvent(UncheckedBaseModel): - id: typing.Optional[str] = None - user_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's full name at the time of this Event occurring. - """ - - user_email: typing.Optional[str] = pydantic.Field(default=None) - """ - The User's email at the time of this Event occurring. - """ - - role: AuditLogEventRole = pydantic.Field() - """ - Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ip_address: str - event_type: AuditLogEventEventType = pydantic.Field() - """ - Designates the type of event that occurred. - - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - event_description: str - created_at: typing.Optional[dt.datetime] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/audit_log_event_event_type.py b/src/merge/resources/ticketing/types/audit_log_event_event_type.py deleted file mode 100644 index f9c9d2b3..00000000 --- a/src/merge/resources/ticketing/types/audit_log_event_event_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .event_type_enum import EventTypeEnum - -AuditLogEventEventType = typing.Union[EventTypeEnum, str] diff --git a/src/merge/resources/ticketing/types/audit_log_event_role.py b/src/merge/resources/ticketing/types/audit_log_event_role.py deleted file mode 100644 index fe91ed6f..00000000 --- a/src/merge/resources/ticketing/types/audit_log_event_role.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role_enum import RoleEnum - -AuditLogEventRole = typing.Union[RoleEnum, str] diff --git a/src/merge/resources/ticketing/types/available_actions.py b/src/merge/resources/ticketing/types/available_actions.py deleted file mode 100644 index 8b5019d7..00000000 --- a/src/merge/resources/ticketing/types/available_actions.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_integration import AccountIntegration -from .model_operation import ModelOperation - - -class AvailableActions(UncheckedBaseModel): - """ - # The AvailableActions Object - ### Description - The `Activity` object is used to see all available model/operation combinations for an integration. - - ### Usage Example - Fetch all the actions available for the `Zenefits` integration. - """ - - integration: AccountIntegration - passthrough_available: bool - available_model_operations: typing.Optional[typing.List[ModelOperation]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/categories_enum.py b/src/merge/resources/ticketing/types/categories_enum.py deleted file mode 100644 index da1e0dc0..00000000 --- a/src/merge/resources/ticketing/types/categories_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoriesEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - KNOWLEDGEBASE = "knowledgebase" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoriesEnum.HRIS: - return hris() - if self is CategoriesEnum.ATS: - return ats() - if self is CategoriesEnum.ACCOUNTING: - return accounting() - if self is CategoriesEnum.TICKETING: - return ticketing() - if self is CategoriesEnum.CRM: - return crm() - if self is CategoriesEnum.MKTG: - return mktg() - if self is CategoriesEnum.FILESTORAGE: - return filestorage() - if self is CategoriesEnum.KNOWLEDGEBASE: - return knowledgebase() diff --git a/src/merge/resources/ticketing/types/category_enum.py b/src/merge/resources/ticketing/types/category_enum.py deleted file mode 100644 index 1d7cd2c0..00000000 --- a/src/merge/resources/ticketing/types/category_enum.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CategoryEnum(str, enum.Enum): - """ - * `hris` - hris - * `ats` - ats - * `accounting` - accounting - * `ticketing` - ticketing - * `crm` - crm - * `mktg` - mktg - * `filestorage` - filestorage - * `knowledgebase` - knowledgebase - """ - - HRIS = "hris" - ATS = "ats" - ACCOUNTING = "accounting" - TICKETING = "ticketing" - CRM = "crm" - MKTG = "mktg" - FILESTORAGE = "filestorage" - KNOWLEDGEBASE = "knowledgebase" - - def visit( - self, - hris: typing.Callable[[], T_Result], - ats: typing.Callable[[], T_Result], - accounting: typing.Callable[[], T_Result], - ticketing: typing.Callable[[], T_Result], - crm: typing.Callable[[], T_Result], - mktg: typing.Callable[[], T_Result], - filestorage: typing.Callable[[], T_Result], - knowledgebase: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CategoryEnum.HRIS: - return hris() - if self is CategoryEnum.ATS: - return ats() - if self is CategoryEnum.ACCOUNTING: - return accounting() - if self is CategoryEnum.TICKETING: - return ticketing() - if self is CategoryEnum.CRM: - return crm() - if self is CategoryEnum.MKTG: - return mktg() - if self is CategoryEnum.FILESTORAGE: - return filestorage() - if self is CategoryEnum.KNOWLEDGEBASE: - return knowledgebase() diff --git a/src/merge/resources/ticketing/types/collection.py b/src/merge/resources/ticketing/types/collection.py deleted file mode 100644 index b74584a0..00000000 --- a/src/merge/resources/ticketing/types/collection.py +++ /dev/null @@ -1,110 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .collection_access_level import CollectionAccessLevel -from .collection_collection_type import CollectionCollectionType -from .remote_data import RemoteData - - -class Collection(UncheckedBaseModel): - """ - # The Collection Object - ### Description - The `Collection` object is used to represent one or more `Tickets`. There can be a hierarchy of `Collections`, in which a sub-collection belongs to a parent-collection. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The collection's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The collection's description. - """ - - access_level: typing.Optional[CollectionAccessLevel] = pydantic.Field(default=None) - """ - The level of access a User has to the Collection and its sub-objects. - - * `PRIVATE` - PRIVATE - * `COMPANY` - COMPANY - * `PUBLIC` - PUBLIC - * `PARENT_COLLECTION` - PARENT_COLLECTION - """ - - collection_type: typing.Optional[CollectionCollectionType] = pydantic.Field(default=None) - """ - The collection's type. - - * `LIST` - LIST - * `PROJECT` - PROJECT - """ - - parent_collection: typing.Optional["CollectionParentCollection"] = pydantic.Field(default=None) - """ - The parent collection for this collection. - """ - - collection_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The 3rd party url of the Collection. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's collection was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's collection was updated. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .collection_parent_collection import CollectionParentCollection # noqa: E402, F401, I001 - -update_forward_refs(Collection) diff --git a/src/merge/resources/ticketing/types/collection_access_level.py b/src/merge/resources/ticketing/types/collection_access_level.py deleted file mode 100644 index c81fa7fe..00000000 --- a/src/merge/resources/ticketing/types/collection_access_level.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .collection_access_level_enum import CollectionAccessLevelEnum - -CollectionAccessLevel = typing.Union[CollectionAccessLevelEnum, str] diff --git a/src/merge/resources/ticketing/types/collection_access_level_enum.py b/src/merge/resources/ticketing/types/collection_access_level_enum.py deleted file mode 100644 index 63f9cbc7..00000000 --- a/src/merge/resources/ticketing/types/collection_access_level_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CollectionAccessLevelEnum(str, enum.Enum): - """ - * `PRIVATE` - PRIVATE - * `COMPANY` - COMPANY - * `PUBLIC` - PUBLIC - * `PARENT_COLLECTION` - PARENT_COLLECTION - """ - - PRIVATE = "PRIVATE" - COMPANY = "COMPANY" - PUBLIC = "PUBLIC" - PARENT_COLLECTION = "PARENT_COLLECTION" - - def visit( - self, - private: typing.Callable[[], T_Result], - company: typing.Callable[[], T_Result], - public: typing.Callable[[], T_Result], - parent_collection: typing.Callable[[], T_Result], - ) -> T_Result: - if self is CollectionAccessLevelEnum.PRIVATE: - return private() - if self is CollectionAccessLevelEnum.COMPANY: - return company() - if self is CollectionAccessLevelEnum.PUBLIC: - return public() - if self is CollectionAccessLevelEnum.PARENT_COLLECTION: - return parent_collection() diff --git a/src/merge/resources/ticketing/types/collection_collection_type.py b/src/merge/resources/ticketing/types/collection_collection_type.py deleted file mode 100644 index 986d6db9..00000000 --- a/src/merge/resources/ticketing/types/collection_collection_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .collection_type_enum import CollectionTypeEnum - -CollectionCollectionType = typing.Union[CollectionTypeEnum, str] diff --git a/src/merge/resources/ticketing/types/collection_parent_collection.py b/src/merge/resources/ticketing/types/collection_parent_collection.py deleted file mode 100644 index 2010ce54..00000000 --- a/src/merge/resources/ticketing/types/collection_parent_collection.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .collection import Collection -CollectionParentCollection = typing.Union[str, "Collection"] diff --git a/src/merge/resources/ticketing/types/collection_type_enum.py b/src/merge/resources/ticketing/types/collection_type_enum.py deleted file mode 100644 index cd631559..00000000 --- a/src/merge/resources/ticketing/types/collection_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class CollectionTypeEnum(str, enum.Enum): - """ - * `LIST` - LIST - * `PROJECT` - PROJECT - """ - - LIST = "LIST" - PROJECT = "PROJECT" - - def visit(self, list_: typing.Callable[[], T_Result], project: typing.Callable[[], T_Result]) -> T_Result: - if self is CollectionTypeEnum.LIST: - return list_() - if self is CollectionTypeEnum.PROJECT: - return project() diff --git a/src/merge/resources/ticketing/types/comment.py b/src/merge/resources/ticketing/types/comment.py deleted file mode 100644 index 34dbbe8e..00000000 --- a/src/merge/resources/ticketing/types/comment.py +++ /dev/null @@ -1,100 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .comment_contact import CommentContact -from .comment_ticket import CommentTicket -from .comment_user import CommentUser -from .remote_data import RemoteData - - -class Comment(UncheckedBaseModel): - """ - # The Comment Object - ### Description - The `Comment` object is used to represent a comment on a ticket. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - user: typing.Optional[CommentUser] = pydantic.Field(default=None) - """ - The author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - """ - - contact: typing.Optional[CommentContact] = pydantic.Field(default=None) - """ - The author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - """ - - body: typing.Optional[str] = pydantic.Field(default=None) - """ - The comment's text body. - """ - - html_body: typing.Optional[str] = pydantic.Field(default=None) - """ - The comment's text body formatted as html. - """ - - ticket: typing.Optional[CommentTicket] = pydantic.Field(default=None) - """ - The ticket associated with the comment. - """ - - is_private: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the comment is internal. - """ - - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's comment was created. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(Comment) diff --git a/src/merge/resources/ticketing/types/comment_contact.py b/src/merge/resources/ticketing/types/comment_contact.py deleted file mode 100644 index 55fd4fa4..00000000 --- a/src/merge/resources/ticketing/types/comment_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -CommentContact = typing.Union[str, Contact] diff --git a/src/merge/resources/ticketing/types/comment_request.py b/src/merge/resources/ticketing/types/comment_request.py deleted file mode 100644 index 0f70cc1b..00000000 --- a/src/merge/resources/ticketing/types/comment_request.py +++ /dev/null @@ -1,72 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .comment_request_contact import CommentRequestContact -from .comment_request_ticket import CommentRequestTicket -from .comment_request_user import CommentRequestUser - - -class CommentRequest(UncheckedBaseModel): - """ - # The Comment Object - ### Description - The `Comment` object is used to represent a comment on a ticket. - - ### Usage Example - TODO - """ - - user: typing.Optional[CommentRequestUser] = pydantic.Field(default=None) - """ - The author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - """ - - contact: typing.Optional[CommentRequestContact] = pydantic.Field(default=None) - """ - The author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - """ - - body: typing.Optional[str] = pydantic.Field(default=None) - """ - The comment's text body. - """ - - html_body: typing.Optional[str] = pydantic.Field(default=None) - """ - The comment's text body formatted as html. - """ - - ticket: typing.Optional[CommentRequestTicket] = pydantic.Field(default=None) - """ - The ticket associated with the comment. - """ - - is_private: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the comment is internal. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(CommentRequest) diff --git a/src/merge/resources/ticketing/types/comment_request_contact.py b/src/merge/resources/ticketing/types/comment_request_contact.py deleted file mode 100644 index 927ae877..00000000 --- a/src/merge/resources/ticketing/types/comment_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -CommentRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/ticketing/types/comment_request_ticket.py b/src/merge/resources/ticketing/types/comment_request_ticket.py deleted file mode 100644 index 4edbf9d3..00000000 --- a/src/merge/resources/ticketing/types/comment_request_ticket.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket import Ticket - -CommentRequestTicket = typing.Union[str, Ticket] diff --git a/src/merge/resources/ticketing/types/comment_request_user.py b/src/merge/resources/ticketing/types/comment_request_user.py deleted file mode 100644 index dde5ed32..00000000 --- a/src/merge/resources/ticketing/types/comment_request_user.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -CommentRequestUser = typing.Union[str, User] diff --git a/src/merge/resources/ticketing/types/comment_response.py b/src/merge/resources/ticketing/types/comment_response.py deleted file mode 100644 index 68a9e96b..00000000 --- a/src/merge/resources/ticketing/types/comment_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .comment import Comment -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class CommentResponse(UncheckedBaseModel): - model: Comment - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(CommentResponse) diff --git a/src/merge/resources/ticketing/types/comment_ticket.py b/src/merge/resources/ticketing/types/comment_ticket.py deleted file mode 100644 index 5a8c6680..00000000 --- a/src/merge/resources/ticketing/types/comment_ticket.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket import Ticket - -CommentTicket = typing.Union[str, Ticket] diff --git a/src/merge/resources/ticketing/types/comment_user.py b/src/merge/resources/ticketing/types/comment_user.py deleted file mode 100644 index 73c7f4da..00000000 --- a/src/merge/resources/ticketing/types/comment_user.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -CommentUser = typing.Union[str, User] diff --git a/src/merge/resources/ticketing/types/common_model_scope_api.py b/src/merge/resources/ticketing/types/common_model_scope_api.py deleted file mode 100644 index 5484808d..00000000 --- a/src/merge/resources/ticketing/types/common_model_scope_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .individual_common_model_scope_deserializer import IndividualCommonModelScopeDeserializer - - -class CommonModelScopeApi(UncheckedBaseModel): - common_models: typing.List[IndividualCommonModelScopeDeserializer] = pydantic.Field() - """ - The common models you want to update the scopes for - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/common_model_scopes_body_request.py b/src/merge/resources/ticketing/types/common_model_scopes_body_request.py deleted file mode 100644 index a9fed25b..00000000 --- a/src/merge/resources/ticketing/types/common_model_scopes_body_request.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .enabled_actions_enum import EnabledActionsEnum - - -class CommonModelScopesBodyRequest(UncheckedBaseModel): - model_id: str - enabled_actions: typing.List[EnabledActionsEnum] - disabled_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/completed_account_initial_screen_enum.py b/src/merge/resources/ticketing/types/completed_account_initial_screen_enum.py deleted file mode 100644 index c112dfd1..00000000 --- a/src/merge/resources/ticketing/types/completed_account_initial_screen_enum.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CompletedAccountInitialScreenEnum = typing.Literal["SELECTIVE_SYNC"] diff --git a/src/merge/resources/ticketing/types/contact.py b/src/merge/resources/ticketing/types/contact.py deleted file mode 100644 index 2e699d49..00000000 --- a/src/merge/resources/ticketing/types/contact.py +++ /dev/null @@ -1,79 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact_account import ContactAccount -from .remote_data import RemoteData - - -class Contact(UncheckedBaseModel): - """ - # The Contact Object - ### Description - The `Contact` object is used to represent the customer, lead, or external user that a ticket is associated with. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's name. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's email address. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's phone number. - """ - - details: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's details. - """ - - account: typing.Optional[ContactAccount] = pydantic.Field(default=None) - """ - The contact's account. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/contact_account.py b/src/merge/resources/ticketing/types/contact_account.py deleted file mode 100644 index f21ef820..00000000 --- a/src/merge/resources/ticketing/types/contact_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ContactAccount = typing.Union[str, Account] diff --git a/src/merge/resources/ticketing/types/contact_request.py b/src/merge/resources/ticketing/types/contact_request.py deleted file mode 100644 index 92ec7aa6..00000000 --- a/src/merge/resources/ticketing/types/contact_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact_request_account import ContactRequestAccount - - -class ContactRequest(UncheckedBaseModel): - """ - # The Contact Object - ### Description - The `Contact` object is used to represent the customer, lead, or external user that a ticket is associated with. - - ### Usage Example - TODO - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's name. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's email address. - """ - - phone_number: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's phone number. - """ - - details: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact's details. - """ - - account: typing.Optional[ContactRequestAccount] = pydantic.Field(default=None) - """ - The contact's account. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/contact_request_account.py b/src/merge/resources/ticketing/types/contact_request_account.py deleted file mode 100644 index 449187af..00000000 --- a/src/merge/resources/ticketing/types/contact_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -ContactRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/ticketing/types/data_passthrough_request.py b/src/merge/resources/ticketing/types/data_passthrough_request.py deleted file mode 100644 index c9f0a799..00000000 --- a/src/merge/resources/ticketing/types/data_passthrough_request.py +++ /dev/null @@ -1,62 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .method_enum import MethodEnum -from .multipart_form_field_request import MultipartFormFieldRequest -from .request_format_enum import RequestFormatEnum - - -class DataPassthroughRequest(UncheckedBaseModel): - """ - # The DataPassthrough Object - ### Description - The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - - ### Usage Example - Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - """ - - method: MethodEnum - path: str = pydantic.Field() - """ - The path of the request in the third party's platform. - """ - - base_url_override: typing.Optional[str] = pydantic.Field(default=None) - """ - An optional override of the third party's base url for the request. - """ - - data: typing.Optional[str] = pydantic.Field(default=None) - """ - The data with the request. You must include a `request_format` parameter matching the data's format - """ - - multipart_form_data: typing.Optional[typing.List[MultipartFormFieldRequest]] = pydantic.Field(default=None) - """ - Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. - """ - - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. - """ - - request_format: typing.Optional[RequestFormatEnum] = None - normalize_response: typing.Optional[bool] = pydantic.Field(default=None) - """ - Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/debug_mode_log.py b/src/merge/resources/ticketing/types/debug_mode_log.py deleted file mode 100644 index 9c7d2a3f..00000000 --- a/src/merge/resources/ticketing/types/debug_mode_log.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_model_log_summary import DebugModelLogSummary - - -class DebugModeLog(UncheckedBaseModel): - log_id: str - dashboard_view: str - log_summary: DebugModelLogSummary - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/debug_model_log_summary.py b/src/merge/resources/ticketing/types/debug_model_log_summary.py deleted file mode 100644 index d7e1d3e6..00000000 --- a/src/merge/resources/ticketing/types/debug_model_log_summary.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class DebugModelLogSummary(UncheckedBaseModel): - url: str - method: str - status_code: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/enabled_actions_enum.py b/src/merge/resources/ticketing/types/enabled_actions_enum.py deleted file mode 100644 index 29cf9839..00000000 --- a/src/merge/resources/ticketing/types/enabled_actions_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EnabledActionsEnum(str, enum.Enum): - """ - * `READ` - READ - * `WRITE` - WRITE - """ - - READ = "READ" - WRITE = "WRITE" - - def visit(self, read: typing.Callable[[], T_Result], write: typing.Callable[[], T_Result]) -> T_Result: - if self is EnabledActionsEnum.READ: - return read() - if self is EnabledActionsEnum.WRITE: - return write() diff --git a/src/merge/resources/ticketing/types/encoding_enum.py b/src/merge/resources/ticketing/types/encoding_enum.py deleted file mode 100644 index 7454647e..00000000 --- a/src/merge/resources/ticketing/types/encoding_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EncodingEnum(str, enum.Enum): - """ - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - RAW = "RAW" - BASE_64 = "BASE64" - GZIP_BASE_64 = "GZIP_BASE64" - - def visit( - self, - raw: typing.Callable[[], T_Result], - base_64: typing.Callable[[], T_Result], - gzip_base_64: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EncodingEnum.RAW: - return raw() - if self is EncodingEnum.BASE_64: - return base_64() - if self is EncodingEnum.GZIP_BASE_64: - return gzip_base_64() diff --git a/src/merge/resources/ticketing/types/error_validation_problem.py b/src/merge/resources/ticketing/types/error_validation_problem.py deleted file mode 100644 index 04f82d05..00000000 --- a/src/merge/resources/ticketing/types/error_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class ErrorValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/event_type_enum.py b/src/merge/resources/ticketing/types/event_type_enum.py deleted file mode 100644 index 537cea3f..00000000 --- a/src/merge/resources/ticketing/types/event_type_enum.py +++ /dev/null @@ -1,231 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class EventTypeEnum(str, enum.Enum): - """ - * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * `INVITED_USER` - INVITED_USER - * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * `CREATED_DESTINATION` - CREATED_DESTINATION - * `DELETED_DESTINATION` - DELETED_DESTINATION - * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * `CHANGED_SCOPES` - CHANGED_SCOPES - * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * `RESET_PASSWORD` - RESET_PASSWORD - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * `MUTED_ISSUE` - MUTED_ISSUE - * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - """ - - CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY" - DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY" - CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" - DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" - REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" - REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" - INVITED_USER = "INVITED_USER" - TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" - TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" - DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT" - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT" - CREATED_DESTINATION = "CREATED_DESTINATION" - DELETED_DESTINATION = "DELETED_DESTINATION" - CHANGED_DESTINATION = "CHANGED_DESTINATION" - CHANGED_SCOPES = "CHANGED_SCOPES" - CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION" - CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS" - ENABLED_INTEGRATION = "ENABLED_INTEGRATION" - DISABLED_INTEGRATION = "DISABLED_INTEGRATION" - ENABLED_CATEGORY = "ENABLED_CATEGORY" - DISABLED_CATEGORY = "DISABLED_CATEGORY" - CHANGED_PASSWORD = "CHANGED_PASSWORD" - RESET_PASSWORD = "RESET_PASSWORD" - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION" - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT" - CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING" - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING" - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING" - DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING" - DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE" - FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC" - MUTED_ISSUE = "MUTED_ISSUE" - GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK" - ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK" - DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK" - MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED" - END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED" - - def visit( - self, - created_remote_production_api_key: typing.Callable[[], T_Result], - deleted_remote_production_api_key: typing.Callable[[], T_Result], - created_test_api_key: typing.Callable[[], T_Result], - deleted_test_api_key: typing.Callable[[], T_Result], - regenerated_production_api_key: typing.Callable[[], T_Result], - regenerated_webhook_signature: typing.Callable[[], T_Result], - invited_user: typing.Callable[[], T_Result], - two_factor_auth_enabled: typing.Callable[[], T_Result], - two_factor_auth_disabled: typing.Callable[[], T_Result], - deleted_linked_account: typing.Callable[[], T_Result], - deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result], - created_destination: typing.Callable[[], T_Result], - deleted_destination: typing.Callable[[], T_Result], - changed_destination: typing.Callable[[], T_Result], - changed_scopes: typing.Callable[[], T_Result], - changed_personal_information: typing.Callable[[], T_Result], - changed_organization_settings: typing.Callable[[], T_Result], - enabled_integration: typing.Callable[[], T_Result], - disabled_integration: typing.Callable[[], T_Result], - enabled_category: typing.Callable[[], T_Result], - disabled_category: typing.Callable[[], T_Result], - changed_password: typing.Callable[[], T_Result], - reset_password: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result], - disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result], - created_integration_wide_field_mapping: typing.Callable[[], T_Result], - created_linked_account_field_mapping: typing.Callable[[], T_Result], - changed_integration_wide_field_mapping: typing.Callable[[], T_Result], - changed_linked_account_field_mapping: typing.Callable[[], T_Result], - deleted_integration_wide_field_mapping: typing.Callable[[], T_Result], - deleted_linked_account_field_mapping: typing.Callable[[], T_Result], - created_linked_account_common_model_override: typing.Callable[[], T_Result], - changed_linked_account_common_model_override: typing.Callable[[], T_Result], - deleted_linked_account_common_model_override: typing.Callable[[], T_Result], - forced_linked_account_resync: typing.Callable[[], T_Result], - muted_issue: typing.Callable[[], T_Result], - generated_magic_link: typing.Callable[[], T_Result], - enabled_merge_webhook: typing.Callable[[], T_Result], - disabled_merge_webhook: typing.Callable[[], T_Result], - merge_webhook_target_changed: typing.Callable[[], T_Result], - end_user_credentials_accessed: typing.Callable[[], T_Result], - ) -> T_Result: - if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY: - return created_remote_production_api_key() - if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY: - return deleted_remote_production_api_key() - if self is EventTypeEnum.CREATED_TEST_API_KEY: - return created_test_api_key() - if self is EventTypeEnum.DELETED_TEST_API_KEY: - return deleted_test_api_key() - if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY: - return regenerated_production_api_key() - if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE: - return regenerated_webhook_signature() - if self is EventTypeEnum.INVITED_USER: - return invited_user() - if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED: - return two_factor_auth_enabled() - if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED: - return two_factor_auth_disabled() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT: - return deleted_linked_account() - if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT: - return deleted_all_common_models_for_linked_account() - if self is EventTypeEnum.CREATED_DESTINATION: - return created_destination() - if self is EventTypeEnum.DELETED_DESTINATION: - return deleted_destination() - if self is EventTypeEnum.CHANGED_DESTINATION: - return changed_destination() - if self is EventTypeEnum.CHANGED_SCOPES: - return changed_scopes() - if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION: - return changed_personal_information() - if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS: - return changed_organization_settings() - if self is EventTypeEnum.ENABLED_INTEGRATION: - return enabled_integration() - if self is EventTypeEnum.DISABLED_INTEGRATION: - return disabled_integration() - if self is EventTypeEnum.ENABLED_CATEGORY: - return enabled_category() - if self is EventTypeEnum.DISABLED_CATEGORY: - return disabled_category() - if self is EventTypeEnum.CHANGED_PASSWORD: - return changed_password() - if self is EventTypeEnum.RESET_PASSWORD: - return reset_password() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return enabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return enabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION: - return disabled_redact_unmapped_data_for_organization() - if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT: - return disabled_redact_unmapped_data_for_linked_account() - if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING: - return created_integration_wide_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING: - return created_linked_account_field_mapping() - if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING: - return changed_integration_wide_field_mapping() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING: - return changed_linked_account_field_mapping() - if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING: - return deleted_integration_wide_field_mapping() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING: - return deleted_linked_account_field_mapping() - if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return created_linked_account_common_model_override() - if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return changed_linked_account_common_model_override() - if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE: - return deleted_linked_account_common_model_override() - if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC: - return forced_linked_account_resync() - if self is EventTypeEnum.MUTED_ISSUE: - return muted_issue() - if self is EventTypeEnum.GENERATED_MAGIC_LINK: - return generated_magic_link() - if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK: - return enabled_merge_webhook() - if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK: - return disabled_merge_webhook() - if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED: - return merge_webhook_target_changed() - if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED: - return end_user_credentials_accessed() diff --git a/src/merge/resources/ticketing/types/external_target_field_api.py b/src/merge/resources/ticketing/types/external_target_field_api.py deleted file mode 100644 index c0fea1eb..00000000 --- a/src/merge/resources/ticketing/types/external_target_field_api.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ExternalTargetFieldApi(UncheckedBaseModel): - name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_mapped: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/external_target_field_api_response.py b/src/merge/resources/ticketing/types/external_target_field_api_response.py deleted file mode 100644 index 787b39d6..00000000 --- a/src/merge/resources/ticketing/types/external_target_field_api_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .external_target_field_api import ExternalTargetFieldApi - - -class ExternalTargetFieldApiResponse(UncheckedBaseModel): - ticket: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Ticket", default=None) - comment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Comment", default=None) - project: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Project", default=None) - collection: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Collection", default=None) - user: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="User", default=None) - role: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Role", default=None) - account: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Account", default=None) - team: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Team", default=None) - attachment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Attachment", default=None) - tag: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Tag", default=None) - contact: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Contact", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_format_enum.py b/src/merge/resources/ticketing/types/field_format_enum.py deleted file mode 100644 index 2f6eda2f..00000000 --- a/src/merge/resources/ticketing/types/field_format_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FieldFormatEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FieldFormatEnum.STRING: - return string() - if self is FieldFormatEnum.NUMBER: - return number() - if self is FieldFormatEnum.DATE: - return date() - if self is FieldFormatEnum.DATETIME: - return datetime() - if self is FieldFormatEnum.BOOL: - return bool_() - if self is FieldFormatEnum.LIST: - return list_() diff --git a/src/merge/resources/ticketing/types/field_mapping_api_instance.py b/src/merge/resources/ticketing/types/field_mapping_api_instance.py deleted file mode 100644 index 0d257dcb..00000000 --- a/src/merge/resources/ticketing/types/field_mapping_api_instance.py +++ /dev/null @@ -1,26 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField -from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField - - -class FieldMappingApiInstance(UncheckedBaseModel): - id: typing.Optional[str] = None - is_integration_wide: typing.Optional[bool] = None - target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None - remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None - jmes_path: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_mapping_api_instance_remote_field.py b/src/merge/resources/ticketing/types/field_mapping_api_instance_remote_field.py deleted file mode 100644 index 578a2b10..00000000 --- a/src/merge/resources/ticketing/types/field_mapping_api_instance_remote_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance_remote_field_remote_endpoint_info import ( - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, -) - - -class FieldMappingApiInstanceRemoteField(UncheckedBaseModel): - remote_key_name: typing.Optional[str] = None - schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field( - alias="schema", default=None - ) - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py b/src/merge/resources/ticketing/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py deleted file mode 100644 index 4171f08b..00000000 --- a/src/merge/resources/ticketing/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel): - method: typing.Optional[str] = None - url_path: typing.Optional[str] = None - field_traversal_path: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_mapping_api_instance_response.py b/src/merge/resources/ticketing/types/field_mapping_api_instance_response.py deleted file mode 100644 index 08b85996..00000000 --- a/src/merge/resources/ticketing/types/field_mapping_api_instance_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_mapping_api_instance import FieldMappingApiInstance - - -class FieldMappingApiInstanceResponse(UncheckedBaseModel): - ticket: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Ticket", default=None) - comment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Comment", default=None) - project: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Project", default=None) - collection: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Collection", default=None) - user: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="User", default=None) - role: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Role", default=None) - account: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Account", default=None) - team: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Team", default=None) - attachment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Attachment", default=None) - tag: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Tag", default=None) - contact: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Contact", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_mapping_api_instance_target_field.py b/src/merge/resources/ticketing/types/field_mapping_api_instance_target_field.py deleted file mode 100644 index e6474cba..00000000 --- a/src/merge/resources/ticketing/types/field_mapping_api_instance_target_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldMappingApiInstanceTargetField(UncheckedBaseModel): - name: str - description: str - is_organization_wide: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_mapping_instance_response.py b/src/merge/resources/ticketing/types/field_mapping_instance_response.py deleted file mode 100644 index f921e641..00000000 --- a/src/merge/resources/ticketing/types/field_mapping_instance_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .field_mapping_api_instance import FieldMappingApiInstance -from .warning_validation_problem import WarningValidationProblem - - -class FieldMappingInstanceResponse(UncheckedBaseModel): - model: FieldMappingApiInstance - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_permission_deserializer.py b/src/merge/resources/ticketing/types/field_permission_deserializer.py deleted file mode 100644 index 1d71ae04..00000000 --- a/src/merge/resources/ticketing/types/field_permission_deserializer.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializer(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_permission_deserializer_request.py b/src/merge/resources/ticketing/types/field_permission_deserializer_request.py deleted file mode 100644 index a4113b46..00000000 --- a/src/merge/resources/ticketing/types/field_permission_deserializer_request.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class FieldPermissionDeserializerRequest(UncheckedBaseModel): - enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/field_type_enum.py b/src/merge/resources/ticketing/types/field_type_enum.py deleted file mode 100644 index b99c1309..00000000 --- a/src/merge/resources/ticketing/types/field_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class FieldTypeEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is FieldTypeEnum.STRING: - return string() - if self is FieldTypeEnum.NUMBER: - return number() - if self is FieldTypeEnum.DATE: - return date() - if self is FieldTypeEnum.DATETIME: - return datetime() - if self is FieldTypeEnum.BOOL: - return bool_() - if self is FieldTypeEnum.LIST: - return list_() diff --git a/src/merge/resources/ticketing/types/individual_common_model_scope_deserializer.py b/src/merge/resources/ticketing/types/individual_common_model_scope_deserializer.py deleted file mode 100644 index 4b1ef6a4..00000000 --- a/src/merge/resources/ticketing/types/individual_common_model_scope_deserializer.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer import FieldPermissionDeserializer -from .model_permission_deserializer import ModelPermissionDeserializer - - -class IndividualCommonModelScopeDeserializer(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None - field_permissions: typing.Optional[FieldPermissionDeserializer] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/individual_common_model_scope_deserializer_request.py b/src/merge/resources/ticketing/types/individual_common_model_scope_deserializer_request.py deleted file mode 100644 index 1dcda203..00000000 --- a/src/merge/resources/ticketing/types/individual_common_model_scope_deserializer_request.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .field_permission_deserializer_request import FieldPermissionDeserializerRequest -from .model_permission_deserializer_request import ModelPermissionDeserializerRequest - - -class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel): - model_name: str - model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None - field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/issue.py b/src/merge/resources/ticketing/types/issue.py deleted file mode 100644 index df31be95..00000000 --- a/src/merge/resources/ticketing/types/issue.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue_status import IssueStatus - - -class Issue(UncheckedBaseModel): - id: typing.Optional[str] = None - status: typing.Optional[IssueStatus] = pydantic.Field(default=None) - """ - Status of the issue. Options: ('ONGOING', 'RESOLVED') - - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - error_description: str - end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - first_incident_time: typing.Optional[dt.datetime] = None - last_incident_time: typing.Optional[dt.datetime] = None - is_muted: typing.Optional[bool] = None - error_details: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/issue_status.py b/src/merge/resources/ticketing/types/issue_status.py deleted file mode 100644 index 8e4d6516..00000000 --- a/src/merge/resources/ticketing/types/issue_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .issue_status_enum import IssueStatusEnum - -IssueStatus = typing.Union[IssueStatusEnum, str] diff --git a/src/merge/resources/ticketing/types/issue_status_enum.py b/src/merge/resources/ticketing/types/issue_status_enum.py deleted file mode 100644 index 57eb9618..00000000 --- a/src/merge/resources/ticketing/types/issue_status_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class IssueStatusEnum(str, enum.Enum): - """ - * `ONGOING` - ONGOING - * `RESOLVED` - RESOLVED - """ - - ONGOING = "ONGOING" - RESOLVED = "RESOLVED" - - def visit(self, ongoing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result: - if self is IssueStatusEnum.ONGOING: - return ongoing() - if self is IssueStatusEnum.RESOLVED: - return resolved() diff --git a/src/merge/resources/ticketing/types/item_format_enum.py b/src/merge/resources/ticketing/types/item_format_enum.py deleted file mode 100644 index 6fef7236..00000000 --- a/src/merge/resources/ticketing/types/item_format_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemFormatEnum(str, enum.Enum): - """ - * `string` - uuid - * `number` - url - * `date` - email - * `datetime` - phone - * `bool` - currency - * `list` - decimal - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemFormatEnum.STRING: - return string() - if self is ItemFormatEnum.NUMBER: - return number() - if self is ItemFormatEnum.DATE: - return date() - if self is ItemFormatEnum.DATETIME: - return datetime() - if self is ItemFormatEnum.BOOL: - return bool_() - if self is ItemFormatEnum.LIST: - return list_() diff --git a/src/merge/resources/ticketing/types/item_schema.py b/src/merge/resources/ticketing/types/item_schema.py deleted file mode 100644 index fceec554..00000000 --- a/src/merge/resources/ticketing/types/item_schema.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item_format_enum import ItemFormatEnum -from .item_type_enum import ItemTypeEnum - - -class ItemSchema(UncheckedBaseModel): - item_type: typing.Optional[ItemTypeEnum] = None - item_format: typing.Optional[ItemFormatEnum] = None - item_choices: typing.Optional[typing.List[str]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/item_type_enum.py b/src/merge/resources/ticketing/types/item_type_enum.py deleted file mode 100644 index afcc4dd6..00000000 --- a/src/merge/resources/ticketing/types/item_type_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ItemTypeEnum(str, enum.Enum): - """ - * `string` - string - * `number` - number - * `date` - date - * `datetime` - datetime - * `bool` - bool - * `list` - list - """ - - STRING = "string" - NUMBER = "number" - DATE = "date" - DATETIME = "datetime" - BOOL = "bool" - LIST = "list" - - def visit( - self, - string: typing.Callable[[], T_Result], - number: typing.Callable[[], T_Result], - date: typing.Callable[[], T_Result], - datetime: typing.Callable[[], T_Result], - bool_: typing.Callable[[], T_Result], - list_: typing.Callable[[], T_Result], - ) -> T_Result: - if self is ItemTypeEnum.STRING: - return string() - if self is ItemTypeEnum.NUMBER: - return number() - if self is ItemTypeEnum.DATE: - return date() - if self is ItemTypeEnum.DATETIME: - return datetime() - if self is ItemTypeEnum.BOOL: - return bool_() - if self is ItemTypeEnum.LIST: - return list_() diff --git a/src/merge/resources/ticketing/types/language_enum.py b/src/merge/resources/ticketing/types/language_enum.py deleted file mode 100644 index 44b693f2..00000000 --- a/src/merge/resources/ticketing/types/language_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LanguageEnum(str, enum.Enum): - """ - * `en` - en - * `de` - de - """ - - EN = "en" - DE = "de" - - def visit(self, en: typing.Callable[[], T_Result], de: typing.Callable[[], T_Result]) -> T_Result: - if self is LanguageEnum.EN: - return en() - if self is LanguageEnum.DE: - return de() diff --git a/src/merge/resources/ticketing/types/last_sync_result_enum.py b/src/merge/resources/ticketing/types/last_sync_result_enum.py deleted file mode 100644 index ec777ee6..00000000 --- a/src/merge/resources/ticketing/types/last_sync_result_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class LastSyncResultEnum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is LastSyncResultEnum.SYNCING: - return syncing() - if self is LastSyncResultEnum.DONE: - return done() - if self is LastSyncResultEnum.FAILED: - return failed() - if self is LastSyncResultEnum.DISABLED: - return disabled() - if self is LastSyncResultEnum.PAUSED: - return paused() - if self is LastSyncResultEnum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/ticketing/types/link_token.py b/src/merge/resources/ticketing/types/link_token.py deleted file mode 100644 index f78dedeb..00000000 --- a/src/merge/resources/ticketing/types/link_token.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkToken(UncheckedBaseModel): - link_token: str - integration_name: typing.Optional[str] = None - magic_link_url: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/linked_account_status.py b/src/merge/resources/ticketing/types/linked_account_status.py deleted file mode 100644 index ab2e0f09..00000000 --- a/src/merge/resources/ticketing/types/linked_account_status.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class LinkedAccountStatus(UncheckedBaseModel): - linked_account_status: str - can_make_request: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/meta_response.py b/src/merge/resources/ticketing/types/meta_response.py deleted file mode 100644 index caa2c831..00000000 --- a/src/merge/resources/ticketing/types/meta_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .linked_account_status import LinkedAccountStatus - - -class MetaResponse(UncheckedBaseModel): - request_schema: typing.Dict[str, typing.Optional[typing.Any]] - remote_field_classes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - status: typing.Optional[LinkedAccountStatus] = None - has_conditional_params: bool - has_required_linked_account_params: bool - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/method_enum.py b/src/merge/resources/ticketing/types/method_enum.py deleted file mode 100644 index 57bcde10..00000000 --- a/src/merge/resources/ticketing/types/method_enum.py +++ /dev/null @@ -1,51 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class MethodEnum(str, enum.Enum): - """ - * `GET` - GET - * `OPTIONS` - OPTIONS - * `HEAD` - HEAD - * `POST` - POST - * `PUT` - PUT - * `PATCH` - PATCH - * `DELETE` - DELETE - """ - - GET = "GET" - OPTIONS = "OPTIONS" - HEAD = "HEAD" - POST = "POST" - PUT = "PUT" - PATCH = "PATCH" - DELETE = "DELETE" - - def visit( - self, - get: typing.Callable[[], T_Result], - options: typing.Callable[[], T_Result], - head: typing.Callable[[], T_Result], - post: typing.Callable[[], T_Result], - put: typing.Callable[[], T_Result], - patch: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - ) -> T_Result: - if self is MethodEnum.GET: - return get() - if self is MethodEnum.OPTIONS: - return options() - if self is MethodEnum.HEAD: - return head() - if self is MethodEnum.POST: - return post() - if self is MethodEnum.PUT: - return put() - if self is MethodEnum.PATCH: - return patch() - if self is MethodEnum.DELETE: - return delete() diff --git a/src/merge/resources/ticketing/types/model_operation.py b/src/merge/resources/ticketing/types/model_operation.py deleted file mode 100644 index c367572d..00000000 --- a/src/merge/resources/ticketing/types/model_operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelOperation(UncheckedBaseModel): - """ - # The ModelOperation Object - ### Description - The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - - ### Usage Example - View what operations are supported for the `Candidate` endpoint. - """ - - model_name: str - available_operations: typing.List[str] - required_post_parameters: typing.List[str] - supported_fields: typing.List[str] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/model_permission_deserializer.py b/src/merge/resources/ticketing/types/model_permission_deserializer.py deleted file mode 100644 index 6381814c..00000000 --- a/src/merge/resources/ticketing/types/model_permission_deserializer.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializer(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/model_permission_deserializer_request.py b/src/merge/resources/ticketing/types/model_permission_deserializer_request.py deleted file mode 100644 index cdc2ff4c..00000000 --- a/src/merge/resources/ticketing/types/model_permission_deserializer_request.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ModelPermissionDeserializerRequest(UncheckedBaseModel): - is_enabled: typing.Optional[bool] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/multipart_form_field_request.py b/src/merge/resources/ticketing/types/multipart_form_field_request.py deleted file mode 100644 index abc37692..00000000 --- a/src/merge/resources/ticketing/types/multipart_form_field_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding - - -class MultipartFormFieldRequest(UncheckedBaseModel): - """ - # The MultipartFormField Object - ### Description - The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - - ### Usage Example - Create a `MultipartFormField` to define a multipart form entry. - """ - - name: str = pydantic.Field() - """ - The name of the form field - """ - - data: str = pydantic.Field() - """ - The data for the form field. - """ - - encoding: typing.Optional[MultipartFormFieldRequestEncoding] = pydantic.Field(default=None) - """ - The encoding of the value of `data`. Defaults to `RAW` if not defined. - - * `RAW` - RAW - * `BASE64` - BASE64 - * `GZIP_BASE64` - GZIP_BASE64 - """ - - file_name: typing.Optional[str] = pydantic.Field(default=None) - """ - The file name of the form field, if the field is for a file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The MIME type of the file, if the field is for a file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/multipart_form_field_request_encoding.py b/src/merge/resources/ticketing/types/multipart_form_field_request_encoding.py deleted file mode 100644 index c6513b6b..00000000 --- a/src/merge/resources/ticketing/types/multipart_form_field_request_encoding.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .encoding_enum import EncodingEnum - -MultipartFormFieldRequestEncoding = typing.Union[EncodingEnum, str] diff --git a/src/merge/resources/ticketing/types/paginated_account_details_and_actions_list.py b/src/merge/resources/ticketing/types/paginated_account_details_and_actions_list.py deleted file mode 100644 index d2d16116..00000000 --- a/src/merge/resources/ticketing/types/paginated_account_details_and_actions_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account_details_and_actions import AccountDetailsAndActions - - -class PaginatedAccountDetailsAndActionsList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AccountDetailsAndActions]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_account_list.py b/src/merge/resources/ticketing/types/paginated_account_list.py deleted file mode 100644 index 0d541b39..00000000 --- a/src/merge/resources/ticketing/types/paginated_account_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .account import Account - - -class PaginatedAccountList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Account]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_attachment_list.py b/src/merge/resources/ticketing/types/paginated_attachment_list.py deleted file mode 100644 index e5f0a2cf..00000000 --- a/src/merge/resources/ticketing/types/paginated_attachment_list.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedAttachmentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Attachment"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(PaginatedAttachmentList) diff --git a/src/merge/resources/ticketing/types/paginated_audit_log_event_list.py b/src/merge/resources/ticketing/types/paginated_audit_log_event_list.py deleted file mode 100644 index 24139397..00000000 --- a/src/merge/resources/ticketing/types/paginated_audit_log_event_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .audit_log_event import AuditLogEvent - - -class PaginatedAuditLogEventList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[AuditLogEvent]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_collection_list.py b/src/merge/resources/ticketing/types/paginated_collection_list.py deleted file mode 100644 index ef8d33e3..00000000 --- a/src/merge/resources/ticketing/types/paginated_collection_list.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedCollectionList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Collection"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .collection import Collection # noqa: E402, F401, I001 - -update_forward_refs(PaginatedCollectionList) diff --git a/src/merge/resources/ticketing/types/paginated_comment_list.py b/src/merge/resources/ticketing/types/paginated_comment_list.py deleted file mode 100644 index 08c8a4f8..00000000 --- a/src/merge/resources/ticketing/types/paginated_comment_list.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .comment import Comment - - -class PaginatedCommentList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Comment]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(PaginatedCommentList) diff --git a/src/merge/resources/ticketing/types/paginated_contact_list.py b/src/merge/resources/ticketing/types/paginated_contact_list.py deleted file mode 100644 index 7a9d28a3..00000000 --- a/src/merge/resources/ticketing/types/paginated_contact_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact import Contact - - -class PaginatedContactList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Contact]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_issue_list.py b/src/merge/resources/ticketing/types/paginated_issue_list.py deleted file mode 100644 index 686173e5..00000000 --- a/src/merge/resources/ticketing/types/paginated_issue_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .issue import Issue - - -class PaginatedIssueList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Issue]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_project_list.py b/src/merge/resources/ticketing/types/paginated_project_list.py deleted file mode 100644 index c709e35b..00000000 --- a/src/merge/resources/ticketing/types/paginated_project_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .project import Project - - -class PaginatedProjectList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Project]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_remote_field_class_list.py b/src/merge/resources/ticketing/types/paginated_remote_field_class_list.py deleted file mode 100644 index 9d68cf9b..00000000 --- a/src/merge/resources/ticketing/types/paginated_remote_field_class_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_class import RemoteFieldClass - - -class PaginatedRemoteFieldClassList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[RemoteFieldClass]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_role_list.py b/src/merge/resources/ticketing/types/paginated_role_list.py deleted file mode 100644 index 1d6304a3..00000000 --- a/src/merge/resources/ticketing/types/paginated_role_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .role import Role - - -class PaginatedRoleList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Role]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_sync_status_list.py b/src/merge/resources/ticketing/types/paginated_sync_status_list.py deleted file mode 100644 index cc4bd7a8..00000000 --- a/src/merge/resources/ticketing/types/paginated_sync_status_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .sync_status import SyncStatus - - -class PaginatedSyncStatusList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[SyncStatus]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_tag_list.py b/src/merge/resources/ticketing/types/paginated_tag_list.py deleted file mode 100644 index 3b9aa2d4..00000000 --- a/src/merge/resources/ticketing/types/paginated_tag_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .tag import Tag - - -class PaginatedTagList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Tag]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_team_list.py b/src/merge/resources/ticketing/types/paginated_team_list.py deleted file mode 100644 index 0e73f9bd..00000000 --- a/src/merge/resources/ticketing/types/paginated_team_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .team import Team - - -class PaginatedTeamList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Team]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_ticket_list.py b/src/merge/resources/ticketing/types/paginated_ticket_list.py deleted file mode 100644 index 6c4128a0..00000000 --- a/src/merge/resources/ticketing/types/paginated_ticket_list.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel - - -class PaginatedTicketList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List["Ticket"]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(PaginatedTicketList) diff --git a/src/merge/resources/ticketing/types/paginated_user_list.py b/src/merge/resources/ticketing/types/paginated_user_list.py deleted file mode 100644 index 809b285c..00000000 --- a/src/merge/resources/ticketing/types/paginated_user_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .user import User - - -class PaginatedUserList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[User]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/paginated_viewer_list.py b/src/merge/resources/ticketing/types/paginated_viewer_list.py deleted file mode 100644 index c6845556..00000000 --- a/src/merge/resources/ticketing/types/paginated_viewer_list.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .viewer import Viewer - - -class PaginatedViewerList(UncheckedBaseModel): - next: typing.Optional[str] = None - previous: typing.Optional[str] = None - results: typing.Optional[typing.List[Viewer]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/patched_ticket_request.py b/src/merge/resources/ticketing/types/patched_ticket_request.py deleted file mode 100644 index d31860df..00000000 --- a/src/merge/resources/ticketing/types/patched_ticket_request.py +++ /dev/null @@ -1,132 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .patched_ticket_request_access_level import PatchedTicketRequestAccessLevel -from .patched_ticket_request_priority import PatchedTicketRequestPriority -from .patched_ticket_request_status import PatchedTicketRequestStatus -from .remote_field_request import RemoteFieldRequest - - -class PatchedTicketRequest(UncheckedBaseModel): - """ - # The Ticket Object - ### Description - The `Ticket` object is used to represent a ticket, issue, task or case. - ### Usage Example - TODO - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket's name. - """ - - assignees: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The individual `Users` who are assigned to this ticket. This does not include `Users` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access the ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). - """ - - assigned_teams: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The `Teams` that are assigned to this ticket. This does not include `Teams` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access this ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). - """ - - creator: typing.Optional[str] = pydantic.Field(default=None) - """ - The user who created this ticket. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ticket's due date. - """ - - status: typing.Optional[PatchedTicketRequestStatus] = pydantic.Field(default=None) - """ - The current status of the ticket. - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `IN_PROGRESS` - IN_PROGRESS - * `ON_HOLD` - ON_HOLD - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket’s description. HTML version of description is mapped if supported by the third-party platform. - """ - - collections: typing.Optional[typing.List[typing.Optional[str]]] = pydantic.Field(default=None) - """ - The `Collections` that this `Ticket` is included in. - """ - - ticket_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do. - """ - - account: typing.Optional[str] = pydantic.Field(default=None) - """ - The account associated with the ticket. - """ - - contact: typing.Optional[str] = pydantic.Field(default=None) - """ - The contact associated with the ticket. - """ - - parent_ticket: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket's parent ticket. - """ - - access_level: typing.Optional[PatchedTicketRequestAccessLevel] = pydantic.Field(default=None) - """ - The description of who is able to access a given ticket, or where access is inherited from. - - * `COMPANY` - COMPANY - * `PUBLIC` - PUBLIC - * `PRIVATE` - PRIVATE - * `COLLECTION` - COLLECTION - """ - - tags: typing.Optional[typing.List[typing.Optional[str]]] = None - roles: typing.Optional[typing.List[typing.Optional[str]]] = None - ticket_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The 3rd party url of the Ticket. - """ - - priority: typing.Optional[PatchedTicketRequestPriority] = pydantic.Field(default=None) - """ - The priority or urgency of the Ticket. - - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - """ - - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the ticket was completed. - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/patched_ticket_request_access_level.py b/src/merge/resources/ticketing/types/patched_ticket_request_access_level.py deleted file mode 100644 index 55791204..00000000 --- a/src/merge/resources/ticketing/types/patched_ticket_request_access_level.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_access_level_enum import TicketAccessLevelEnum - -PatchedTicketRequestAccessLevel = typing.Union[TicketAccessLevelEnum, str] diff --git a/src/merge/resources/ticketing/types/patched_ticket_request_priority.py b/src/merge/resources/ticketing/types/patched_ticket_request_priority.py deleted file mode 100644 index 73651006..00000000 --- a/src/merge/resources/ticketing/types/patched_ticket_request_priority.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .priority_enum import PriorityEnum - -PatchedTicketRequestPriority = typing.Union[PriorityEnum, str] diff --git a/src/merge/resources/ticketing/types/patched_ticket_request_status.py b/src/merge/resources/ticketing/types/patched_ticket_request_status.py deleted file mode 100644 index 190fd41f..00000000 --- a/src/merge/resources/ticketing/types/patched_ticket_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_status_enum import TicketStatusEnum - -PatchedTicketRequestStatus = typing.Union[TicketStatusEnum, str] diff --git a/src/merge/resources/ticketing/types/priority_enum.py b/src/merge/resources/ticketing/types/priority_enum.py deleted file mode 100644 index 73a079d4..00000000 --- a/src/merge/resources/ticketing/types/priority_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class PriorityEnum(str, enum.Enum): - """ - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - """ - - URGENT = "URGENT" - HIGH = "HIGH" - NORMAL = "NORMAL" - LOW = "LOW" - - def visit( - self, - urgent: typing.Callable[[], T_Result], - high: typing.Callable[[], T_Result], - normal: typing.Callable[[], T_Result], - low: typing.Callable[[], T_Result], - ) -> T_Result: - if self is PriorityEnum.URGENT: - return urgent() - if self is PriorityEnum.HIGH: - return high() - if self is PriorityEnum.NORMAL: - return normal() - if self is PriorityEnum.LOW: - return low() diff --git a/src/merge/resources/ticketing/types/project.py b/src/merge/resources/ticketing/types/project.py deleted file mode 100644 index 51ce64c5..00000000 --- a/src/merge/resources/ticketing/types/project.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Project(UncheckedBaseModel): - """ - # The Project Object - ### Description - Please use the `Collection` model. This model will be fully deprecated on 3/30/2024. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The project's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The project's description. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_data.py b/src/merge/resources/ticketing/types/remote_data.py deleted file mode 100644 index f34bec80..00000000 --- a/src/merge/resources/ticketing/types/remote_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteData(UncheckedBaseModel): - """ - # The RemoteData Object - ### Description - The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - - ### Usage Example - TODO - """ - - path: str = pydantic.Field() - """ - The third-party API path that is being called. - """ - - data: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None) - """ - The data returned from the third-party for this object in its original, unnormalized format. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_endpoint_info.py b/src/merge/resources/ticketing/types/remote_endpoint_info.py deleted file mode 100644 index 07ceff6a..00000000 --- a/src/merge/resources/ticketing/types/remote_endpoint_info.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteEndpointInfo(UncheckedBaseModel): - method: str - url_path: str - field_traversal_path: typing.List[typing.Optional[typing.Any]] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_field.py b/src/merge/resources/ticketing/types/remote_field.py deleted file mode 100644 index 1a9272f0..00000000 --- a/src/merge/resources/ticketing/types/remote_field.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_remote_field_class import RemoteFieldRemoteFieldClass - - -class RemoteField(UncheckedBaseModel): - remote_field_class: RemoteFieldRemoteFieldClass - value: typing.Optional[typing.Optional[typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_field_api.py b/src/merge/resources/ticketing/types/remote_field_api.py deleted file mode 100644 index 4c66a23b..00000000 --- a/src/merge/resources/ticketing/types/remote_field_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .advanced_metadata import AdvancedMetadata -from .remote_endpoint_info import RemoteEndpointInfo -from .remote_field_api_coverage import RemoteFieldApiCoverage - - -class RemoteFieldApi(UncheckedBaseModel): - schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema") - remote_key_name: str - remote_endpoint_info: RemoteEndpointInfo - example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None - advanced_metadata: typing.Optional[AdvancedMetadata] = None - coverage: typing.Optional[RemoteFieldApiCoverage] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_field_api_coverage.py b/src/merge/resources/ticketing/types/remote_field_api_coverage.py deleted file mode 100644 index adcd9be9..00000000 --- a/src/merge/resources/ticketing/types/remote_field_api_coverage.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RemoteFieldApiCoverage = typing.Union[int, float] diff --git a/src/merge/resources/ticketing/types/remote_field_api_response.py b/src/merge/resources/ticketing/types/remote_field_api_response.py deleted file mode 100644 index e844cd77..00000000 --- a/src/merge/resources/ticketing/types/remote_field_api_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_api import RemoteFieldApi - - -class RemoteFieldApiResponse(UncheckedBaseModel): - ticket: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Ticket", default=None) - comment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Comment", default=None) - project: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Project", default=None) - collection: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Collection", default=None) - user: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="User", default=None) - role: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Role", default=None) - account: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Account", default=None) - team: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Team", default=None) - attachment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Attachment", default=None) - tag: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Tag", default=None) - contact: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Contact", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_field_class.py b/src/merge/resources/ticketing/types/remote_field_class.py deleted file mode 100644 index 76189afe..00000000 --- a/src/merge/resources/ticketing/types/remote_field_class.py +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .item_schema import ItemSchema -from .remote_field_class_field_choices_item import RemoteFieldClassFieldChoicesItem -from .remote_field_class_field_format import RemoteFieldClassFieldFormat -from .remote_field_class_field_type import RemoteFieldClassFieldType - - -class RemoteFieldClass(UncheckedBaseModel): - id: typing.Optional[str] = None - display_name: typing.Optional[str] = None - remote_key_name: typing.Optional[str] = None - description: typing.Optional[str] = None - is_custom: typing.Optional[bool] = None - is_common_model_field: typing.Optional[bool] = None - is_required: typing.Optional[bool] = None - field_type: typing.Optional[RemoteFieldClassFieldType] = None - field_format: typing.Optional[RemoteFieldClassFieldFormat] = None - field_choices: typing.Optional[typing.List[RemoteFieldClassFieldChoicesItem]] = None - item_schema: typing.Optional[ItemSchema] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_field_class_field_choices_item.py b/src/merge/resources/ticketing/types/remote_field_class_field_choices_item.py deleted file mode 100644 index 9003f782..00000000 --- a/src/merge/resources/ticketing/types/remote_field_class_field_choices_item.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteFieldClassFieldChoicesItem(UncheckedBaseModel): - value: typing.Optional[typing.Optional[typing.Any]] = None - display_name: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_field_class_field_format.py b/src/merge/resources/ticketing/types/remote_field_class_field_format.py deleted file mode 100644 index 1412d3b4..00000000 --- a/src/merge/resources/ticketing/types/remote_field_class_field_format.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .field_format_enum import FieldFormatEnum - -RemoteFieldClassFieldFormat = typing.Union[str, FieldFormatEnum] diff --git a/src/merge/resources/ticketing/types/remote_field_class_field_type.py b/src/merge/resources/ticketing/types/remote_field_class_field_type.py deleted file mode 100644 index 41a0b893..00000000 --- a/src/merge/resources/ticketing/types/remote_field_class_field_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .field_type_enum import FieldTypeEnum - -RemoteFieldClassFieldType = typing.Union[str, FieldTypeEnum] diff --git a/src/merge/resources/ticketing/types/remote_field_remote_field_class.py b/src/merge/resources/ticketing/types/remote_field_remote_field_class.py deleted file mode 100644 index b7ab0ef6..00000000 --- a/src/merge/resources/ticketing/types/remote_field_remote_field_class.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_field_class import RemoteFieldClass - -RemoteFieldRemoteFieldClass = typing.Union[str, RemoteFieldClass] diff --git a/src/merge/resources/ticketing/types/remote_field_request.py b/src/merge/resources/ticketing/types/remote_field_request.py deleted file mode 100644 index 69bc39da..00000000 --- a/src/merge/resources/ticketing/types/remote_field_request.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_request_remote_field_class import RemoteFieldRequestRemoteFieldClass - - -class RemoteFieldRequest(UncheckedBaseModel): - remote_field_class: RemoteFieldRequestRemoteFieldClass - value: typing.Optional[typing.Optional[typing.Any]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_field_request_remote_field_class.py b/src/merge/resources/ticketing/types/remote_field_request_remote_field_class.py deleted file mode 100644 index 08797e5e..00000000 --- a/src/merge/resources/ticketing/types/remote_field_request_remote_field_class.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .remote_field_class import RemoteFieldClass - -RemoteFieldRequestRemoteFieldClass = typing.Union[str, RemoteFieldClass] diff --git a/src/merge/resources/ticketing/types/remote_key.py b/src/merge/resources/ticketing/types/remote_key.py deleted file mode 100644 index e5d9758c..00000000 --- a/src/merge/resources/ticketing/types/remote_key.py +++ /dev/null @@ -1,30 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class RemoteKey(UncheckedBaseModel): - """ - # The RemoteKey Object - ### Description - The `RemoteKey` object is used to represent a request for a new remote key. - - ### Usage Example - Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - """ - - name: str - key: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/remote_response.py b/src/merge/resources/ticketing/types/remote_response.py deleted file mode 100644 index af181fc0..00000000 --- a/src/merge/resources/ticketing/types/remote_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .response_type_enum import ResponseTypeEnum - - -class RemoteResponse(UncheckedBaseModel): - """ - # The RemoteResponse Object - ### Description - The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - - ### Usage Example - View the `RemoteResponse` returned from your `DataPassthrough`. - """ - - method: str - path: str - status: int - response: typing.Optional[typing.Any] = None - response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - response_type: typing.Optional[ResponseTypeEnum] = None - headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/request_format_enum.py b/src/merge/resources/ticketing/types/request_format_enum.py deleted file mode 100644 index 21c272f2..00000000 --- a/src/merge/resources/ticketing/types/request_format_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RequestFormatEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `XML` - XML - * `MULTIPART` - MULTIPART - """ - - JSON = "JSON" - XML = "XML" - MULTIPART = "MULTIPART" - - def visit( - self, - json: typing.Callable[[], T_Result], - xml: typing.Callable[[], T_Result], - multipart: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RequestFormatEnum.JSON: - return json() - if self is RequestFormatEnum.XML: - return xml() - if self is RequestFormatEnum.MULTIPART: - return multipart() diff --git a/src/merge/resources/ticketing/types/response_type_enum.py b/src/merge/resources/ticketing/types/response_type_enum.py deleted file mode 100644 index ef241302..00000000 --- a/src/merge/resources/ticketing/types/response_type_enum.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class ResponseTypeEnum(str, enum.Enum): - """ - * `JSON` - JSON - * `BASE64_GZIP` - BASE64_GZIP - """ - - JSON = "JSON" - BASE_64_GZIP = "BASE64_GZIP" - - def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result: - if self is ResponseTypeEnum.JSON: - return json() - if self is ResponseTypeEnum.BASE_64_GZIP: - return base_64_gzip() diff --git a/src/merge/resources/ticketing/types/role.py b/src/merge/resources/ticketing/types/role.py deleted file mode 100644 index 8d4109ff..00000000 --- a/src/merge/resources/ticketing/types/role.py +++ /dev/null @@ -1,74 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .role_ticket_access import RoleTicketAccess -from .role_ticket_actions_item import RoleTicketActionsItem - - -class Role(UncheckedBaseModel): - """ - # The Role Object - ### Description - The `Role` object is used to represent the set of actions & access that a user with this role is allowed to perform. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the Role. - """ - - ticket_actions: typing.Optional[typing.List[typing.Optional[RoleTicketActionsItem]]] = pydantic.Field(default=None) - """ - The set of actions that a User with this Role can perform. Possible enum values include: `VIEW`, `CREATE`, `EDIT`, `DELETE`, `CLOSE`, and `ASSIGN`. - """ - - ticket_access: typing.Optional[RoleTicketAccess] = pydantic.Field(default=None) - """ - The level of Ticket access that a User with this Role can perform. - - * `ALL` - ALL - * `ASSIGNED_ONLY` - ASSIGNED_ONLY - * `TEAM_ONLY` - TEAM_ONLY - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/role_enum.py b/src/merge/resources/ticketing/types/role_enum.py deleted file mode 100644 index a6cfcc6f..00000000 --- a/src/merge/resources/ticketing/types/role_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class RoleEnum(str, enum.Enum): - """ - * `ADMIN` - ADMIN - * `DEVELOPER` - DEVELOPER - * `MEMBER` - MEMBER - * `API` - API - * `SYSTEM` - SYSTEM - * `MERGE_TEAM` - MERGE_TEAM - """ - - ADMIN = "ADMIN" - DEVELOPER = "DEVELOPER" - MEMBER = "MEMBER" - API = "API" - SYSTEM = "SYSTEM" - MERGE_TEAM = "MERGE_TEAM" - - def visit( - self, - admin: typing.Callable[[], T_Result], - developer: typing.Callable[[], T_Result], - member: typing.Callable[[], T_Result], - api: typing.Callable[[], T_Result], - system: typing.Callable[[], T_Result], - merge_team: typing.Callable[[], T_Result], - ) -> T_Result: - if self is RoleEnum.ADMIN: - return admin() - if self is RoleEnum.DEVELOPER: - return developer() - if self is RoleEnum.MEMBER: - return member() - if self is RoleEnum.API: - return api() - if self is RoleEnum.SYSTEM: - return system() - if self is RoleEnum.MERGE_TEAM: - return merge_team() diff --git a/src/merge/resources/ticketing/types/role_ticket_access.py b/src/merge/resources/ticketing/types/role_ticket_access.py deleted file mode 100644 index bf10da43..00000000 --- a/src/merge/resources/ticketing/types/role_ticket_access.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_access_enum import TicketAccessEnum - -RoleTicketAccess = typing.Union[str, TicketAccessEnum] diff --git a/src/merge/resources/ticketing/types/role_ticket_actions_item.py b/src/merge/resources/ticketing/types/role_ticket_actions_item.py deleted file mode 100644 index 4b136989..00000000 --- a/src/merge/resources/ticketing/types/role_ticket_actions_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_actions_enum import TicketActionsEnum - -RoleTicketActionsItem = typing.Union[str, TicketActionsEnum] diff --git a/src/merge/resources/ticketing/types/selective_sync_configurations_usage_enum.py b/src/merge/resources/ticketing/types/selective_sync_configurations_usage_enum.py deleted file mode 100644 index 9ff43813..00000000 --- a/src/merge/resources/ticketing/types/selective_sync_configurations_usage_enum.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum): - """ - * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * `IN_LAST_SYNC` - IN_LAST_SYNC - """ - - IN_NEXT_SYNC = "IN_NEXT_SYNC" - IN_LAST_SYNC = "IN_LAST_SYNC" - - def visit( - self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result] - ) -> T_Result: - if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC: - return in_next_sync() - if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC: - return in_last_sync() diff --git a/src/merge/resources/ticketing/types/status_fd_5_enum.py b/src/merge/resources/ticketing/types/status_fd_5_enum.py deleted file mode 100644 index d753f77c..00000000 --- a/src/merge/resources/ticketing/types/status_fd_5_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class StatusFd5Enum(str, enum.Enum): - """ - * `SYNCING` - SYNCING - * `DONE` - DONE - * `FAILED` - FAILED - * `DISABLED` - DISABLED - * `PAUSED` - PAUSED - * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - """ - - SYNCING = "SYNCING" - DONE = "DONE" - FAILED = "FAILED" - DISABLED = "DISABLED" - PAUSED = "PAUSED" - PARTIALLY_SYNCED = "PARTIALLY_SYNCED" - - def visit( - self, - syncing: typing.Callable[[], T_Result], - done: typing.Callable[[], T_Result], - failed: typing.Callable[[], T_Result], - disabled: typing.Callable[[], T_Result], - paused: typing.Callable[[], T_Result], - partially_synced: typing.Callable[[], T_Result], - ) -> T_Result: - if self is StatusFd5Enum.SYNCING: - return syncing() - if self is StatusFd5Enum.DONE: - return done() - if self is StatusFd5Enum.FAILED: - return failed() - if self is StatusFd5Enum.DISABLED: - return disabled() - if self is StatusFd5Enum.PAUSED: - return paused() - if self is StatusFd5Enum.PARTIALLY_SYNCED: - return partially_synced() diff --git a/src/merge/resources/ticketing/types/sync_status.py b/src/merge/resources/ticketing/types/sync_status.py deleted file mode 100644 index 4a628c4f..00000000 --- a/src/merge/resources/ticketing/types/sync_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum -from .status_fd_5_enum import StatusFd5Enum -from .sync_status_last_sync_result import SyncStatusLastSyncResult - - -class SyncStatus(UncheckedBaseModel): - """ - # The SyncStatus Object - ### Description - The `SyncStatus` object is used to represent the syncing state of an account - - ### Usage Example - View the `SyncStatus` for an account to see how recently its models were synced. - """ - - model_name: str - model_id: str - last_sync_start: typing.Optional[dt.datetime] = None - next_sync_start: typing.Optional[dt.datetime] = None - last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None - last_sync_finished: typing.Optional[dt.datetime] = None - status: StatusFd5Enum - is_initial_sync: bool - selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/sync_status_last_sync_result.py b/src/merge/resources/ticketing/types/sync_status_last_sync_result.py deleted file mode 100644 index 980e7d94..00000000 --- a/src/merge/resources/ticketing/types/sync_status_last_sync_result.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .last_sync_result_enum import LastSyncResultEnum - -SyncStatusLastSyncResult = typing.Union[LastSyncResultEnum, str] diff --git a/src/merge/resources/ticketing/types/tag.py b/src/merge/resources/ticketing/types/tag.py deleted file mode 100644 index c5f85543..00000000 --- a/src/merge/resources/ticketing/types/tag.py +++ /dev/null @@ -1,58 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Tag(UncheckedBaseModel): - """ - # The Tag Object - ### Description - The `Tag` object is used to represent a tag or label for a ticket. - - ### Usage Example - TODO - """ - - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - id: typing.Optional[str] = None - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The tag's name. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/team.py b/src/merge/resources/ticketing/types/team.py deleted file mode 100644 index 0cd15521..00000000 --- a/src/merge/resources/ticketing/types/team.py +++ /dev/null @@ -1,63 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData - - -class Team(UncheckedBaseModel): - """ - # The Team Object - ### Description - The `Team` object is used to represent one or more `Users` within the company receiving the ticket. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The team's name. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The team's description. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/ticket.py b/src/merge/resources/ticketing/types/ticket.py deleted file mode 100644 index 0a550a82..00000000 --- a/src/merge/resources/ticketing/types/ticket.py +++ /dev/null @@ -1,183 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .remote_field import RemoteField -from .ticket_access_level import TicketAccessLevel -from .ticket_account import TicketAccount -from .ticket_assigned_teams_item import TicketAssignedTeamsItem -from .ticket_assignees_item import TicketAssigneesItem -from .ticket_collections_item import TicketCollectionsItem -from .ticket_contact import TicketContact -from .ticket_creator import TicketCreator -from .ticket_priority import TicketPriority -from .ticket_status import TicketStatus - - -class Ticket(UncheckedBaseModel): - """ - # The Ticket Object - ### Description - The `Ticket` object is used to represent a ticket, issue, task or case. - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket's name. - """ - - assignees: typing.Optional[typing.List[typing.Optional[TicketAssigneesItem]]] = pydantic.Field(default=None) - """ - The individual `Users` who are assigned to this ticket. This does not include `Users` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access the ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). - """ - - assigned_teams: typing.Optional[typing.List[typing.Optional[TicketAssignedTeamsItem]]] = pydantic.Field( - default=None - ) - """ - The `Teams` that are assigned to this ticket. This does not include `Teams` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access this ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). - """ - - creator: typing.Optional[TicketCreator] = pydantic.Field(default=None) - """ - The user who created this ticket. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ticket's due date. - """ - - status: typing.Optional[TicketStatus] = pydantic.Field(default=None) - """ - The current status of the ticket. - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `IN_PROGRESS` - IN_PROGRESS - * `ON_HOLD` - ON_HOLD - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket’s description. HTML version of description is mapped if supported by the third-party platform. - """ - - collections: typing.Optional[typing.List[typing.Optional[TicketCollectionsItem]]] = pydantic.Field(default=None) - """ - The `Collections` that this `Ticket` is included in. - """ - - ticket_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do. - """ - - account: typing.Optional[TicketAccount] = pydantic.Field(default=None) - """ - The account associated with the ticket. - """ - - contact: typing.Optional[TicketContact] = pydantic.Field(default=None) - """ - The contact associated with the ticket. - """ - - parent_ticket: typing.Optional["TicketParentTicket"] = pydantic.Field(default=None) - """ - The ticket's parent ticket. - """ - - attachments: typing.Optional[typing.List[typing.Optional["TicketAttachmentsItem"]]] = None - access_level: typing.Optional[TicketAccessLevel] = pydantic.Field(default=None) - """ - The description of who is able to access a given ticket, or where access is inherited from. - - * `COMPANY` - COMPANY - * `PUBLIC` - PUBLIC - * `PRIVATE` - PRIVATE - * `COLLECTION` - COLLECTION - """ - - tags: typing.Optional[typing.List[typing.Optional[str]]] = None - roles: typing.Optional[typing.List[typing.Optional[str]]] = None - remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's ticket was created. - """ - - remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the third party's ticket was updated. - """ - - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the ticket was completed. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - ticket_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The 3rd party url of the Ticket. - """ - - priority: typing.Optional[TicketPriority] = pydantic.Field(default=None) - """ - The priority or urgency of the Ticket. - - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - remote_fields: typing.Optional[typing.List[RemoteField]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .collection import Collection # noqa: E402, F401, I001 -from .attachment import Attachment # noqa: E402, F401, I001 -from .ticket_parent_ticket import TicketParentTicket # noqa: E402, F401, I001 -from .ticket_attachments_item import TicketAttachmentsItem # noqa: E402, F401, I001 - -update_forward_refs(Ticket) diff --git a/src/merge/resources/ticketing/types/ticket_access_enum.py b/src/merge/resources/ticketing/types/ticket_access_enum.py deleted file mode 100644 index 860f2f52..00000000 --- a/src/merge/resources/ticketing/types/ticket_access_enum.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketAccessEnum(str, enum.Enum): - """ - * `ALL` - ALL - * `ASSIGNED_ONLY` - ASSIGNED_ONLY - * `TEAM_ONLY` - TEAM_ONLY - """ - - ALL = "ALL" - ASSIGNED_ONLY = "ASSIGNED_ONLY" - TEAM_ONLY = "TEAM_ONLY" - - def visit( - self, - all_: typing.Callable[[], T_Result], - assigned_only: typing.Callable[[], T_Result], - team_only: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketAccessEnum.ALL: - return all_() - if self is TicketAccessEnum.ASSIGNED_ONLY: - return assigned_only() - if self is TicketAccessEnum.TEAM_ONLY: - return team_only() diff --git a/src/merge/resources/ticketing/types/ticket_access_level.py b/src/merge/resources/ticketing/types/ticket_access_level.py deleted file mode 100644 index ef66776d..00000000 --- a/src/merge/resources/ticketing/types/ticket_access_level.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_access_level_enum import TicketAccessLevelEnum - -TicketAccessLevel = typing.Union[TicketAccessLevelEnum, str] diff --git a/src/merge/resources/ticketing/types/ticket_access_level_enum.py b/src/merge/resources/ticketing/types/ticket_access_level_enum.py deleted file mode 100644 index c02bef7d..00000000 --- a/src/merge/resources/ticketing/types/ticket_access_level_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketAccessLevelEnum(str, enum.Enum): - """ - * `COMPANY` - COMPANY - * `PUBLIC` - PUBLIC - * `PRIVATE` - PRIVATE - * `COLLECTION` - COLLECTION - """ - - COMPANY = "COMPANY" - PUBLIC = "PUBLIC" - PRIVATE = "PRIVATE" - COLLECTION = "COLLECTION" - - def visit( - self, - company: typing.Callable[[], T_Result], - public: typing.Callable[[], T_Result], - private: typing.Callable[[], T_Result], - collection: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketAccessLevelEnum.COMPANY: - return company() - if self is TicketAccessLevelEnum.PUBLIC: - return public() - if self is TicketAccessLevelEnum.PRIVATE: - return private() - if self is TicketAccessLevelEnum.COLLECTION: - return collection() diff --git a/src/merge/resources/ticketing/types/ticket_account.py b/src/merge/resources/ticketing/types/ticket_account.py deleted file mode 100644 index 735aff2e..00000000 --- a/src/merge/resources/ticketing/types/ticket_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -TicketAccount = typing.Union[str, Account] diff --git a/src/merge/resources/ticketing/types/ticket_actions_enum.py b/src/merge/resources/ticketing/types/ticket_actions_enum.py deleted file mode 100644 index 03e873d8..00000000 --- a/src/merge/resources/ticketing/types/ticket_actions_enum.py +++ /dev/null @@ -1,46 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketActionsEnum(str, enum.Enum): - """ - * `VIEW` - VIEW - * `CREATE` - CREATE - * `EDIT` - EDIT - * `DELETE` - DELETE - * `CLOSE` - CLOSE - * `ASSIGN` - ASSIGN - """ - - VIEW = "VIEW" - CREATE = "CREATE" - EDIT = "EDIT" - DELETE = "DELETE" - CLOSE = "CLOSE" - ASSIGN = "ASSIGN" - - def visit( - self, - view: typing.Callable[[], T_Result], - create: typing.Callable[[], T_Result], - edit: typing.Callable[[], T_Result], - delete: typing.Callable[[], T_Result], - close: typing.Callable[[], T_Result], - assign: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketActionsEnum.VIEW: - return view() - if self is TicketActionsEnum.CREATE: - return create() - if self is TicketActionsEnum.EDIT: - return edit() - if self is TicketActionsEnum.DELETE: - return delete() - if self is TicketActionsEnum.CLOSE: - return close() - if self is TicketActionsEnum.ASSIGN: - return assign() diff --git a/src/merge/resources/ticketing/types/ticket_assigned_teams_item.py b/src/merge/resources/ticketing/types/ticket_assigned_teams_item.py deleted file mode 100644 index c74ba1f9..00000000 --- a/src/merge/resources/ticketing/types/ticket_assigned_teams_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .team import Team - -TicketAssignedTeamsItem = typing.Union[str, Team] diff --git a/src/merge/resources/ticketing/types/ticket_assignees_item.py b/src/merge/resources/ticketing/types/ticket_assignees_item.py deleted file mode 100644 index 91bc713c..00000000 --- a/src/merge/resources/ticketing/types/ticket_assignees_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -TicketAssigneesItem = typing.Union[str, User] diff --git a/src/merge/resources/ticketing/types/ticket_attachments_item.py b/src/merge/resources/ticketing/types/ticket_attachments_item.py deleted file mode 100644 index c8ef7eb5..00000000 --- a/src/merge/resources/ticketing/types/ticket_attachments_item.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .attachment import Attachment -TicketAttachmentsItem = typing.Union[str, "Attachment"] diff --git a/src/merge/resources/ticketing/types/ticket_collections_item.py b/src/merge/resources/ticketing/types/ticket_collections_item.py deleted file mode 100644 index ce728b10..00000000 --- a/src/merge/resources/ticketing/types/ticket_collections_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .collection import Collection - -TicketCollectionsItem = typing.Union[str, Collection] diff --git a/src/merge/resources/ticketing/types/ticket_contact.py b/src/merge/resources/ticketing/types/ticket_contact.py deleted file mode 100644 index 22375e74..00000000 --- a/src/merge/resources/ticketing/types/ticket_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -TicketContact = typing.Union[str, Contact] diff --git a/src/merge/resources/ticketing/types/ticket_creator.py b/src/merge/resources/ticketing/types/ticket_creator.py deleted file mode 100644 index 461faf42..00000000 --- a/src/merge/resources/ticketing/types/ticket_creator.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -TicketCreator = typing.Union[str, User] diff --git a/src/merge/resources/ticketing/types/ticket_parent_ticket.py b/src/merge/resources/ticketing/types/ticket_parent_ticket.py deleted file mode 100644 index 5838ffaa..00000000 --- a/src/merge/resources/ticketing/types/ticket_parent_ticket.py +++ /dev/null @@ -1,9 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -if typing.TYPE_CHECKING: - from .ticket import Ticket -TicketParentTicket = typing.Union[str, "Ticket"] diff --git a/src/merge/resources/ticketing/types/ticket_priority.py b/src/merge/resources/ticketing/types/ticket_priority.py deleted file mode 100644 index aee1ed76..00000000 --- a/src/merge/resources/ticketing/types/ticket_priority.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .priority_enum import PriorityEnum - -TicketPriority = typing.Union[PriorityEnum, str] diff --git a/src/merge/resources/ticketing/types/ticket_request.py b/src/merge/resources/ticketing/types/ticket_request.py deleted file mode 100644 index ed0e1ec4..00000000 --- a/src/merge/resources/ticketing/types/ticket_request.py +++ /dev/null @@ -1,154 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_field_request import RemoteFieldRequest -from .ticket_request_access_level import TicketRequestAccessLevel -from .ticket_request_account import TicketRequestAccount -from .ticket_request_assigned_teams_item import TicketRequestAssignedTeamsItem -from .ticket_request_assignees_item import TicketRequestAssigneesItem -from .ticket_request_attachments_item import TicketRequestAttachmentsItem -from .ticket_request_collections_item import TicketRequestCollectionsItem -from .ticket_request_contact import TicketRequestContact -from .ticket_request_creator import TicketRequestCreator -from .ticket_request_parent_ticket import TicketRequestParentTicket -from .ticket_request_priority import TicketRequestPriority -from .ticket_request_status import TicketRequestStatus - - -class TicketRequest(UncheckedBaseModel): - """ - # The Ticket Object - ### Description - The `Ticket` object is used to represent a ticket, issue, task or case. - ### Usage Example - TODO - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket's name. - """ - - assignees: typing.Optional[typing.List[typing.Optional[TicketRequestAssigneesItem]]] = pydantic.Field(default=None) - """ - The individual `Users` who are assigned to this ticket. This does not include `Users` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access the ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). - """ - - assigned_teams: typing.Optional[typing.List[typing.Optional[TicketRequestAssignedTeamsItem]]] = pydantic.Field( - default=None - ) - """ - The `Teams` that are assigned to this ticket. This does not include `Teams` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access this ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). - """ - - creator: typing.Optional[TicketRequestCreator] = pydantic.Field(default=None) - """ - The user who created this ticket. - """ - - due_date: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The ticket's due date. - """ - - status: typing.Optional[TicketRequestStatus] = pydantic.Field(default=None) - """ - The current status of the ticket. - - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `IN_PROGRESS` - IN_PROGRESS - * `ON_HOLD` - ON_HOLD - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - The ticket’s description. HTML version of description is mapped if supported by the third-party platform. - """ - - collections: typing.Optional[typing.List[typing.Optional[TicketRequestCollectionsItem]]] = pydantic.Field( - default=None - ) - """ - The `Collections` that this `Ticket` is included in. - """ - - ticket_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do. - """ - - account: typing.Optional[TicketRequestAccount] = pydantic.Field(default=None) - """ - The account associated with the ticket. - """ - - contact: typing.Optional[TicketRequestContact] = pydantic.Field(default=None) - """ - The contact associated with the ticket. - """ - - parent_ticket: typing.Optional[TicketRequestParentTicket] = pydantic.Field(default=None) - """ - The ticket's parent ticket. - """ - - attachments: typing.Optional[typing.List[typing.Optional[TicketRequestAttachmentsItem]]] = None - access_level: typing.Optional[TicketRequestAccessLevel] = pydantic.Field(default=None) - """ - The description of who is able to access a given ticket, or where access is inherited from. - - * `COMPANY` - COMPANY - * `PUBLIC` - PUBLIC - * `PRIVATE` - PRIVATE - * `COLLECTION` - COLLECTION - """ - - tags: typing.Optional[typing.List[typing.Optional[str]]] = None - roles: typing.Optional[typing.List[typing.Optional[str]]] = None - completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - When the ticket was completed. - """ - - ticket_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The 3rd party url of the Ticket. - """ - - priority: typing.Optional[TicketRequestPriority] = pydantic.Field(default=None) - """ - The priority or urgency of the Ticket. - - * `URGENT` - URGENT - * `HIGH` - HIGH - * `NORMAL` - NORMAL - * `LOW` - LOW - """ - - integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .collection import Collection # noqa: E402, F401, I001 -from .attachment import Attachment # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(TicketRequest) diff --git a/src/merge/resources/ticketing/types/ticket_request_access_level.py b/src/merge/resources/ticketing/types/ticket_request_access_level.py deleted file mode 100644 index d8ef44b8..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_access_level.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_access_level_enum import TicketAccessLevelEnum - -TicketRequestAccessLevel = typing.Union[TicketAccessLevelEnum, str] diff --git a/src/merge/resources/ticketing/types/ticket_request_account.py b/src/merge/resources/ticketing/types/ticket_request_account.py deleted file mode 100644 index 91596edc..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_account.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .account import Account - -TicketRequestAccount = typing.Union[str, Account] diff --git a/src/merge/resources/ticketing/types/ticket_request_assigned_teams_item.py b/src/merge/resources/ticketing/types/ticket_request_assigned_teams_item.py deleted file mode 100644 index deb739b3..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_assigned_teams_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .team import Team - -TicketRequestAssignedTeamsItem = typing.Union[str, Team] diff --git a/src/merge/resources/ticketing/types/ticket_request_assignees_item.py b/src/merge/resources/ticketing/types/ticket_request_assignees_item.py deleted file mode 100644 index 3f14bdaa..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_assignees_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -TicketRequestAssigneesItem = typing.Union[str, User] diff --git a/src/merge/resources/ticketing/types/ticket_request_attachments_item.py b/src/merge/resources/ticketing/types/ticket_request_attachments_item.py deleted file mode 100644 index 1e9bd3af..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_attachments_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .attachment import Attachment - -TicketRequestAttachmentsItem = typing.Union[str, Attachment] diff --git a/src/merge/resources/ticketing/types/ticket_request_collections_item.py b/src/merge/resources/ticketing/types/ticket_request_collections_item.py deleted file mode 100644 index 9a87b09a..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_collections_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .collection import Collection - -TicketRequestCollectionsItem = typing.Union[str, Collection] diff --git a/src/merge/resources/ticketing/types/ticket_request_contact.py b/src/merge/resources/ticketing/types/ticket_request_contact.py deleted file mode 100644 index b1313c40..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_contact.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .contact import Contact - -TicketRequestContact = typing.Union[str, Contact] diff --git a/src/merge/resources/ticketing/types/ticket_request_creator.py b/src/merge/resources/ticketing/types/ticket_request_creator.py deleted file mode 100644 index a6cbf7b9..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_creator.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -TicketRequestCreator = typing.Union[str, User] diff --git a/src/merge/resources/ticketing/types/ticket_request_parent_ticket.py b/src/merge/resources/ticketing/types/ticket_request_parent_ticket.py deleted file mode 100644 index f6943945..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_parent_ticket.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket import Ticket - -TicketRequestParentTicket = typing.Union[str, Ticket] diff --git a/src/merge/resources/ticketing/types/ticket_request_priority.py b/src/merge/resources/ticketing/types/ticket_request_priority.py deleted file mode 100644 index 51ca6ef8..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_priority.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .priority_enum import PriorityEnum - -TicketRequestPriority = typing.Union[PriorityEnum, str] diff --git a/src/merge/resources/ticketing/types/ticket_request_status.py b/src/merge/resources/ticketing/types/ticket_request_status.py deleted file mode 100644 index 583f2852..00000000 --- a/src/merge/resources/ticketing/types/ticket_request_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_status_enum import TicketStatusEnum - -TicketRequestStatus = typing.Union[TicketStatusEnum, str] diff --git a/src/merge/resources/ticketing/types/ticket_response.py b/src/merge/resources/ticketing/types/ticket_response.py deleted file mode 100644 index 1512f825..00000000 --- a/src/merge/resources/ticketing/types/ticket_response.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class TicketResponse(UncheckedBaseModel): - model: "Ticket" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(TicketResponse) diff --git a/src/merge/resources/ticketing/types/ticket_status.py b/src/merge/resources/ticketing/types/ticket_status.py deleted file mode 100644 index ebcc3a42..00000000 --- a/src/merge/resources/ticketing/types/ticket_status.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .ticket_status_enum import TicketStatusEnum - -TicketStatus = typing.Union[TicketStatusEnum, str] diff --git a/src/merge/resources/ticketing/types/ticket_status_enum.py b/src/merge/resources/ticketing/types/ticket_status_enum.py deleted file mode 100644 index 55651325..00000000 --- a/src/merge/resources/ticketing/types/ticket_status_enum.py +++ /dev/null @@ -1,36 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import enum -import typing - -T_Result = typing.TypeVar("T_Result") - - -class TicketStatusEnum(str, enum.Enum): - """ - * `OPEN` - OPEN - * `CLOSED` - CLOSED - * `IN_PROGRESS` - IN_PROGRESS - * `ON_HOLD` - ON_HOLD - """ - - OPEN = "OPEN" - CLOSED = "CLOSED" - IN_PROGRESS = "IN_PROGRESS" - ON_HOLD = "ON_HOLD" - - def visit( - self, - open: typing.Callable[[], T_Result], - closed: typing.Callable[[], T_Result], - in_progress: typing.Callable[[], T_Result], - on_hold: typing.Callable[[], T_Result], - ) -> T_Result: - if self is TicketStatusEnum.OPEN: - return open() - if self is TicketStatusEnum.CLOSED: - return closed() - if self is TicketStatusEnum.IN_PROGRESS: - return in_progress() - if self is TicketStatusEnum.ON_HOLD: - return on_hold() diff --git a/src/merge/resources/ticketing/types/ticketing_attachment_response.py b/src/merge/resources/ticketing/types/ticketing_attachment_response.py deleted file mode 100644 index 1afad69d..00000000 --- a/src/merge/resources/ticketing/types/ticketing_attachment_response.py +++ /dev/null @@ -1,35 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs -from ....core.unchecked_base_model import UncheckedBaseModel -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class TicketingAttachmentResponse(UncheckedBaseModel): - model: "Attachment" - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - -from .attachment import Attachment # noqa: E402, F401, I001 -from .collection import Collection # noqa: E402, F401, I001 -from .ticket import Ticket # noqa: E402, F401, I001 - -update_forward_refs(TicketingAttachmentResponse) diff --git a/src/merge/resources/ticketing/types/ticketing_contact_response.py b/src/merge/resources/ticketing/types/ticketing_contact_response.py deleted file mode 100644 index c72aa504..00000000 --- a/src/merge/resources/ticketing/types/ticketing_contact_response.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .contact import Contact -from .debug_mode_log import DebugModeLog -from .error_validation_problem import ErrorValidationProblem -from .warning_validation_problem import WarningValidationProblem - - -class TicketingContactResponse(UncheckedBaseModel): - model: Contact - warnings: typing.List[WarningValidationProblem] - errors: typing.List[ErrorValidationProblem] - logs: typing.Optional[typing.List[DebugModeLog]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/user.py b/src/merge/resources/ticketing/types/user.py deleted file mode 100644 index b89d230c..00000000 --- a/src/merge/resources/ticketing/types/user.py +++ /dev/null @@ -1,78 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .remote_data import RemoteData -from .user_roles_item import UserRolesItem -from .user_teams_item import UserTeamsItem - - -class User(UncheckedBaseModel): - """ - # The User Object - ### Description - The `User` object is used to represent a user with a login to the ticketing system. - Users are either assignees who are directly responsible or a viewer on a `Ticket`/ `Collection`. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - name: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's name. - """ - - email_address: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's email address. - """ - - is_active: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether or not the user is active. - """ - - teams: typing.Optional[typing.List[typing.Optional[UserTeamsItem]]] = None - roles: typing.Optional[typing.List[typing.Optional[UserRolesItem]]] = None - avatar: typing.Optional[str] = pydantic.Field(default=None) - """ - The user's avatar picture. - """ - - remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). - """ - - field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None - remote_data: typing.Optional[typing.List[RemoteData]] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/user_roles_item.py b/src/merge/resources/ticketing/types/user_roles_item.py deleted file mode 100644 index 8597ca2f..00000000 --- a/src/merge/resources/ticketing/types/user_roles_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .role import Role - -UserRolesItem = typing.Union[str, Role] diff --git a/src/merge/resources/ticketing/types/user_teams_item.py b/src/merge/resources/ticketing/types/user_teams_item.py deleted file mode 100644 index 55220039..00000000 --- a/src/merge/resources/ticketing/types/user_teams_item.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .team import Team - -UserTeamsItem = typing.Union[str, Team] diff --git a/src/merge/resources/ticketing/types/validation_problem_source.py b/src/merge/resources/ticketing/types/validation_problem_source.py deleted file mode 100644 index fbebe626..00000000 --- a/src/merge/resources/ticketing/types/validation_problem_source.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class ValidationProblemSource(UncheckedBaseModel): - pointer: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/viewer.py b/src/merge/resources/ticketing/types/viewer.py deleted file mode 100644 index 72155e91..00000000 --- a/src/merge/resources/ticketing/types/viewer.py +++ /dev/null @@ -1,56 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .viewer_team import ViewerTeam -from .viewer_user import ViewerUser - - -class Viewer(UncheckedBaseModel): - """ - # The Viewer Object - ### Description - The `Viewer` object is used to represent a User or Team within a company. - - ### Usage Example - TODO - """ - - id: typing.Optional[str] = None - remote_id: typing.Optional[str] = pydantic.Field(default=None) - """ - The third-party API ID of the matching object. - """ - - created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was created by Merge. - """ - - modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The datetime that this object was modified by Merge. - """ - - team: typing.Optional[ViewerTeam] = pydantic.Field(default=None) - """ - The Team this Viewer belongs to. - """ - - user: typing.Optional[ViewerUser] = pydantic.Field(default=None) - """ - The User this Viewer belongs to. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/viewer_team.py b/src/merge/resources/ticketing/types/viewer_team.py deleted file mode 100644 index f0714a73..00000000 --- a/src/merge/resources/ticketing/types/viewer_team.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .team import Team - -ViewerTeam = typing.Union[str, Team] diff --git a/src/merge/resources/ticketing/types/viewer_user.py b/src/merge/resources/ticketing/types/viewer_user.py deleted file mode 100644 index 4acea21c..00000000 --- a/src/merge/resources/ticketing/types/viewer_user.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .user import User - -ViewerUser = typing.Union[str, User] diff --git a/src/merge/resources/ticketing/types/warning_validation_problem.py b/src/merge/resources/ticketing/types/warning_validation_problem.py deleted file mode 100644 index 4785e836..00000000 --- a/src/merge/resources/ticketing/types/warning_validation_problem.py +++ /dev/null @@ -1,24 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel -from .validation_problem_source import ValidationProblemSource - - -class WarningValidationProblem(UncheckedBaseModel): - source: typing.Optional[ValidationProblemSource] = None - title: str - detail: str - problem_type: str - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/merge/resources/ticketing/types/webhook_receiver.py b/src/merge/resources/ticketing/types/webhook_receiver.py deleted file mode 100644 index fb49c044..00000000 --- a/src/merge/resources/ticketing/types/webhook_receiver.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel - - -class WebhookReceiver(UncheckedBaseModel): - event: str - is_active: bool - key: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow